
/* ==================================================
   BREW & BEAN
   RESPONSIVE DESIGN - MOBILE & TABLET
   Desktop styles are intentionally untouched.
================================================== */

/* ---------- GLOBAL MOBILE SAFETY ---------- */

@media (max-width: 768px) {

    html {
        scroll-behavior: smooth;
    }

    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
    }

    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }

    .section-padding {
        padding: 65px 5%;
    }

    /* ---------- MAIN NAVBAR ---------- */

    .navbar {
        height: 70px;
        padding: 0 5%;
        gap: 12px;
    }

    .logo {
        font-size: 22px;
        white-space: nowrap;
    }

    .nav-links {
        gap: 17px;
    }

    .nav-links a {
        font-size: 10px;
        white-space: nowrap;
    }

    .nav-actions {
        gap: 12px;
    }

    .sign-in {
        display: none;
    }

    .cart-btn {
        padding: 10px 12px;
        gap: 6px;
        font-size: 10px;
    }

    .menu-toggle {
        display: none;
    }

    /* ---------- HOME HERO ---------- */

    .hero {
        min-height: auto;
        padding: 65px 6% 55px;
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .hero-background {
        width: 320px;
        height: 320px;
        right: -100px;
        top: 15%;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-tag {
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(42px, 9vw, 65px);
        line-height: 1.1;
    }

    .hero-content > p {
        font-size: 14px;
        line-height: 1.9;
        max-width: 420px;
        margin: 18px auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-note {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 480px;
        margin: auto;
    }

    .hero-image-frame {
        width: 100%;
        height: 350px;
        margin: auto;
    }

    .hero-image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-image-sticker,
    .vertical-text,
    .floating-coffee,
    .hero-bottom {
        display: none;
    }

    /* ---------- MARQUEE ---------- */

    .marquee {
        overflow: hidden;
    }

    .marquee-content {
        white-space: nowrap;
    }

    /* ---------- INTRO ---------- */

    .intro {
        text-align: center;
    }

    .intro-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .intro-content h2,
    .section-heading h2 {
        font-size: clamp(30px, 7vw, 43px);
        line-height: 1.2;
    }

    .intro-description {
        flex-direction: column;
        gap: 20px;
    }

    .intro-description p {
        font-size: 14px;
        line-height: 1.9;
    }

    .circle-link {
        margin: auto;
    }

    /* ---------- CATEGORIES ---------- */

    .section-heading {
        gap: 15px;
        flex-wrap: wrap;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 12px;
    }

    .category-card {
        min-height: 210px;
    }

    .category-large {
        grid-row: auto;
    }

    .category-info {
        left: 15px;
        bottom: 18px;
    }

    .category-info h3 {
        font-size: clamp(23px, 5vw, 34px);
    }

    .category-number {
        top: 15px;
        right: 15px;
    }

    /* ---------- FEATURED PRODUCTS ---------- */

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-card {
        min-width: 0;
    }

    .product-image {
        height: 240px;
    }

    .product-info {
        padding: 14px 10px;
    }

    .product-info h3 {
        font-size: 15px;
    }

    .product-info p {
        font-size: 12px;
    }

    .product-arrow {
        font-size: 65px;
    }

    /* ---------- STORY ---------- */

    .story {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .story-image {
        width: 100%;
    }

    .story-content {
        text-align: left;
    }

    .story-content h2 {
        font-size: 36px;
    }

    /* ---------- NEWSLETTER ---------- */

    .newsletter-content {
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        max-width: 450px;
        margin: auto;
    }

    .newsletter-form input {
        min-width: 0;
        width: 100%;
    }

    /* ---------- FOOTER ---------- */

    .footer {
        padding: 55px 6% 25px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        padding-bottom: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        line-height: 1.8;
    }

    /* ==================================================
       MENU PAGE
    ================================================== */

    .menu-hero {
        min-height: 300px;
        padding: 75px 5%;
        text-align: center;
    }

    .menu-hero h1 {
        font-size: clamp(42px, 9vw, 65px);
        line-height: 1.1;
    }

    .menu-hero > p:last-child {
        font-size: 13px;
        line-height: 1.8;
    }

    .menu-section {
        padding: 55px 5%;
    }

    .menu-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .menu-heading h2 {
        font-size: 30px;
    }

    .menu-heading > p {
        font-size: 13px;
    }

    .menu-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 9px;
        margin: 25px 0;
    }

    .filter-btn {
        padding: 10px 15px;
        font-size: 11px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .menu-card {
        min-width: 0;
    }

    .menu-card img {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }

    .menu-card-info {
        padding: 13px 10px;
    }

    .menu-card-info h3 {
        font-size: 14px;
        line-height: 1.4;
    }

    .menu-card-info p {
        font-size: 11px;
        line-height: 1.6;
    }

    .product-bottom {
        gap: 8px;
        flex-wrap: wrap;
    }

    .product-bottom strong {
        font-size: 13px;
    }

    .add-cart-btn {
        padding: 9px 11px;
        font-size: 11px;
    }

    /* ==================================================
       CART PAGE
    ================================================== */

    .cart-hero {
        padding: 75px 6% 60px;
    }

    .cart-hero h1 {
        font-size: clamp(48px, 10vw, 75px);
    }

    .cart-hero > p:last-child {
        font-size: 13px;
        line-height: 1.8;
    }

    .cart-section {
        padding: 50px 5%;
    }

    .cart-title-row {
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .cart-title-row h2 {
        font-size: 29px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cart-items {
        min-width: 0;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 85px minmax(0, 1fr);
        align-items: center;
        gap: 13px;
        padding: 15px;
    }

    .cart-product-image {
        width: 85px;
        height: 85px;
        object-fit: cover;
    }

    .cart-item-info {
        min-width: 0;
    }

    .cart-item-info h3 {
        font-size: 14px;
        line-height: 1.4;
    }

    .cart-item-info p {
        font-size: 12px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .quantity-control {
        gap: 10px;
    }

    .cart-summary {
        position: static;
        width: 100%;
        padding: 25px 20px;
    }

    .checkout-btn {
        width: 100%;
    }

    /* ==================================================
       CHECKOUT PAGE
    ================================================== */

    .checkout-hero {
        padding: 65px 5% 45px;
        text-align: center;
    }

    .checkout-hero h1 {
        font-size: clamp(42px, 9vw, 65px);
    }

    .checkout-section {
        padding: 40px 5%;
    }

    .checkout-layout {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .checkout-form-area {
        width: 100%;
        min-width: 0;
    }

    .checkout-card {
        padding: 22px 17px;
    }

    .checkout-card-heading h2 {
        font-size: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group,
    .form-group.full-width {
        grid-column: 1 / -1;
        width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }

    .payment-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkout-summary {
        position: static;
        width: 100%;
        padding: 23px 18px;
    }

    .place-order-btn {
        width: 100%;
    }

    .order-success {
        padding: 30px 18px;
        text-align: center;
    }

    /* ==================================================
       ABOUT PAGE
    ================================================== */

    .about-navbar {
        padding: 0 5%;
    }

    .about-nav-container {
        gap: 12px;
    }

    .about-logo {
        font-size: 21px;
    }

    .about-nav-links {
        gap: 14px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .about-nav-links::-webkit-scrollbar {
        display: none;
    }

    .about-nav-links a {
        font-size: 10px;
        white-space: nowrap;
    }

    .about-nav-button {
        padding: 10px 12px;
        font-size: 10px;
        white-space: nowrap;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 65px 6% 50px;
    }

    .about-hero-content {
        text-align: center;
    }

    .about-hero h1 {
        font-size: clamp(40px, 9vw, 60px);
        line-height: 1.12;
    }

    .about-hero-content > p {
        font-size: 14px;
        line-height: 1.9;
    }

    .about-primary-button {
        margin: auto;
    }

    .about-hero-image {
        width: 100%;
        max-width: 480px;
        margin: auto;
    }

    .about-hero-image img {
        width: 100%;
        height: 340px;
        object-fit: cover;
    }

    .about-image-note {
        max-width: 90%;
    }

    .about-intro {
        padding: 60px 6%;
    }

    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-intro-text p {
        font-size: 14px;
        line-height: 1.9;
    }

    .about-story-image {
        min-height: 330px;
    }

    .about-story-overlay {
        padding: 25px;
    }

    .about-story-overlay h2 {
        font-size: 30px;
    }

    .about-philosophy {
        padding: 60px 5%;
    }

    .about-philosophy-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about-philosophy-heading h2 {
        font-size: 34px;
    }

    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .about-value-card {
        padding: 20px 14px;
    }

    .about-value-card h3 {
        font-size: 16px;
    }

    .about-value-card p {
        font-size: 12px;
        line-height: 1.8;
    }

    .about-experience {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 55px 6%;
    }

    .about-experience-image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .about-experience-content h2 {
        font-size: 34px;
    }

    .about-experience-content p {
        font-size: 14px;
        line-height: 1.9;
    }

    .about-cta {
        padding: 65px 6%;
        text-align: center;
    }

    .about-cta h2 {
        font-size: 34px;
    }

    .about-cta p {
        font-size: 13px;
        line-height: 1.8;
    }

    .about-footer {
        padding: 40px 6% 20px;
    }

    .about-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .about-footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .about-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* ==================================================
       CONTACT PAGE
    ================================================== */

    .contact-navbar {
        padding: 0 5%;
    }

    .contact-nav-container {
        gap: 12px;
    }

    .contact-logo {
        font-size: 21px;
    }

    .contact-nav-links {
        gap: 14px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .contact-nav-links::-webkit-scrollbar {
        display: none;
    }

    .contact-nav-links a {
        font-size: 10px;
        white-space: nowrap;
    }

    .contact-nav-button {
        padding: 10px 12px;
        font-size: 10px;
        white-space: nowrap;
    }

    .contact-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 65px 6% 50px;
    }

    .contact-hero-content {
        text-align: center;
    }

    .contact-hero h1 {
        font-size: clamp(40px, 9vw, 60px);
        line-height: 1.12;
    }

    .contact-hero-content p {
        font-size: 14px;
        line-height: 1.9;
    }

    .contact-scroll-link {
        justify-content: center;
    }

    .contact-hero-image {
        width: 100%;
        max-width: 480px;
        margin: auto;
    }

    .contact-hero-image img {
        width: 100%;
        height: 330px;
        object-fit: cover;
    }

    .contact-details {
        padding: 55px 6%;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-details-heading h2 {
        font-size: 32px;
    }

    .contact-info-item {
        gap: 14px;
    }

    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 5%;
    }

    .contact-form-image {
        min-height: 260px;
    }

    .contact-form-image img {
        width: 100%;
        height: 260px;
        object-fit: cover;
    }

    .contact-form-container {
        padding: 28px 18px;
    }

    .contact-form-container h2 {
        font-size: 29px;
    }

    .contact-input-group input,
    .contact-input-group select,
    .contact-input-group textarea {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }

    .contact-submit-button {
        width: 100%;
    }

    .contact-hours {
        padding: 55px 6%;
    }

    .contact-hours-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .opening-hours-card {
        width: 100%;
    }

    .hours-row {
        gap: 10px;
        flex-wrap: wrap;
    }

    .contact-location {
        padding: 55px 5%;
    }

    .contact-location-heading {
        text-align: center;
    }

    .contact-map-placeholder {
        min-height: 260px;
    }

    .contact-cta {
        padding: 65px 6%;
        text-align: center;
    }

    .contact-cta h2 {
        font-size: 34px;
    }

    .contact-footer {
        padding: 40px 6% 20px;
    }

    .contact-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .contact-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==================================================
   SMALL MOBILE PHONES
================================================== */

@media (max-width: 480px) {

    .section-padding {
        padding: 50px 18px;
    }

    .navbar {
        padding: 0 15px;
        gap: 8px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 9px;
    }

    .nav-actions {
        gap: 7px;
    }

    .cart-btn {
        padding: 9px;
        font-size: 9px;
    }

    .hero {
        padding: 50px 18px 40px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-image-frame {
        height: 280px;
    }

    .category-grid {
        gap: 10px;
    }

    .category-card {
        min-height: 175px;
    }

    .category-info {
        left: 12px;
        bottom: 13px;
    }

    .category-info h3 {
        font-size: 24px;
    }

    .product-grid,
    .menu-grid {
        gap: 10px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 11px 8px;
    }

    .product-info h3,
    .menu-card-info h3 {
        font-size: 13px;
    }

    .product-info p,
    .menu-card-info p {
        font-size: 10px;
    }

    .menu-card img {
        height: 165px;
    }

    .menu-card-info {
        padding: 10px 8px;
    }

    .product-bottom {
        align-items: center;
    }

    .product-bottom strong {
        font-size: 12px;
    }

    .add-cart-btn {
        padding: 8px 9px;
        font-size: 10px;
    }

    .menu-filters {
        gap: 7px;
    }

    .filter-btn {
        padding: 9px 11px;
        font-size: 10px;
    }

    .cart-item {
        padding: 12px;
    }

    .cart-product-image {
        width: 75px;
        height: 75px;
    }

    .cart-item-info h3 {
        font-size: 13px;
    }

    .cart-summary,
    .checkout-summary {
        padding: 20px 15px;
    }

    .checkout-card {
        padding: 18px 13px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-value-card {
        padding: 22px;
    }

    .about-hero-image img {
        height: 270px;
    }

    .contact-hero-image img {
        height: 270px;
    }

    .contact-form-image img {
        height: 230px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .about-footer-top,
    .contact-footer-top {
        align-items: center;
        text-align: center;
    }

    .about-footer-bottom,
    .contact-footer-bottom {
        align-items: center;
        text-align: center;
    }
}

/* ==================================================
   EXTRA SMALL PHONES
================================================== */

@media (max-width: 360px) {

    .navbar {
        padding: 0 10px;
    }

    .logo {
        font-size: 17px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 8px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .menu-hero h1 {
        font-size: 39px;
    }

    .product-grid,
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 250px;
    }

    .menu-card img {
        height: 240px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 220px;
    }

    .category-large {
        grid-column: auto;
    }

    .cart-title-row h2 {
        font-size: 25px;
    }
}
