html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Fix for mobile browsers to prevent address bar interference */
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Condensed', -apple-system, Roboto, Helvetica, sans-serif;
    color: #000;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    width: 100%;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-slogan {
    position: absolute;
    left: 5.5%;
    top: 15%;
    width: 25.8%;
    height: auto;
    object-fit: contain;
    z-index: 3;
}

.hero-text {
    position: absolute;
    left: 5.5%;
    bottom: 15%;
    width: 35.4%;
    height: auto;
    object-fit: contain;
    z-index: 3;
}

.hero-items {
    position: absolute;
    right: 0;
    top: 0;
    width: 52%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    z-index: 3;
}

.order-now-btn {
    position: absolute;
    left: 5.5%;
    top: 55%;
    transform: translateY(-50%);
    background: #31ABAC;
    color: #FFF;
    font-size: 2.5rem;
    font-weight: 800;
    text-decoration: none;
    padding: 1.5rem 4.5rem;
    border-radius: 12px;
    z-index: 4;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 171, 172, 0.3);
}

.order-now-btn:hover {
    background: #2a9596;
    transform: translateY(-52%);
    box-shadow: 0 6px 20px rgba(49, 171, 172, 0.5);
}

.main-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    background: transparent;
    margin: 0;
    padding: 0;
    height: auto;
    /* Prevent mobile browser address bar from hiding the nav */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@media (min-width: 769px) {
    .main-nav.scrolled .nav-container {
        padding: 1rem 3rem !important;
        justify-content: flex-end !important;
        gap: 3rem !important;
    }

    .main-nav.scrolled .nav-logo {
        width: 68px !important;
        height: 68px !important;
        left: 2rem !important;
        transform: translateX(0) !important;
    }
}

.nav-background {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 68px;
    background: #FEF6F3;
    z-index: 98;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: height 0.3s ease;
}

.nav-container {
    position: relative;
    z-index: 999;
    max-width: 100%;
    margin: 0;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1rem, 5vw, 4rem);
    height: auto;
    min-height: 68px;
}

.nav-toggle {
    display: none !important;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    margin: 0;
    pointer-events: auto;
}

.mobile-nav-logo {
    display: none;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}


.nav-link {
    color: #000;
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-logo {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 4px 12px rgba(49, 171, 172, 0.2));
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.nav-logo:hover {
    transform: translateX(-50%) scale(1.1);
    filter: drop-shadow(0 8px 20px rgba(49, 171, 172, 0.4));
}

.handcrafted-section {
    background: url('assets/images/backgrounds/b66b4b984e7c7f2e492607ec3f8ae14fe25df455.png') center/cover;
    padding: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.handcrafted-container {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.handcrafted-image {
    width: 50%;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.handcrafted-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.handcrafted-content {
    flex: 1;
    padding: 5% 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.handcrafted-title-img {
    width: 432px;
    height: 280px;
    display: block;
    margin-bottom: 0;
}

.info-block {
    margin-bottom: 0;
}

.info-block:last-of-type {
    margin-bottom: 0;
}

.info-title-img {
    width: 100%;
    max-width: 32.8%;
    height: auto;
    display: block;
    margin-bottom: 1.5%;
}

.info-text-img {
    width: 100%;
    max-width: 60%;
    height: auto;
    display: block;
}

.journey-section,
.collab-section {
    padding: 6rem 3rem;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flavors-section {
    padding: 6rem 0;
    background: url('assets/images/backgrounds/63f47081f0c4698fb32c9766376ca8eb6e303586.png') center/cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.journey-section {
    background: url('assets/images/backgrounds/4bf679383eff6e5a0a228ac78807e28a429370ba.png') center/cover;
}

.collab-section {
    background: #FEEDE4;
}

.section-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 100%;
    padding: 0 2rem;
}

.journey-cards {
    max-width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
    align-items: start;
}

.journey-card {
    background: #F5FFFF;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, max-height 0.5s ease, padding 0.3s ease;
    border-radius: 1px;
    /* border: 2px solid #000; removed per request */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: auto;
    min-height: 280px;
    position: relative;
    /* For absolute positioning of children if needed */
}

.journey-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.journey-card.expanded {
    max-height: 900px;
    padding: 2.5rem;
    transform: translateY(-20px);
    border-radius: 0;
}

.card-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    transition: margin-bottom 0.3s ease;
}

.journey-card.expanded .card-image {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    transition: margin-bottom 0.3s ease, font-size 0.3s ease;
    line-height: 1.3;
}

.journey-card.expanded .card-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card-text {
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.journey-card.expanded .card-text {
    display: block;
    opacity: 1;
}

.journey-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.journey-modal.active {
    display: flex !important;
}

.journey-modal-content {
    background: #FFF;
    border-radius: 0;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}


.journey-modal-image {
    width: 100%;
    height: auto;
    border-radius: 0px;
    margin-bottom: 2rem;
    display: block;
}

.journey-modal-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000;
}

.journey-modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.flavors-section {
    background: url('assets/images/backgrounds/63f47081f0c4698fb32c9766376ca8eb6e303586.png') center/cover;
    padding: 4rem 3rem;
    min-height: auto;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flavors-grid {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8rem;
    padding: 0;
    flex: 1;
}

.flavor-item {
    position: relative;
    width: 100%;
    cursor: pointer;
    aspect-ratio: 1;
    min-width: 0;
}

.flavor-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.flavor-default {
    opacity: 1;
    z-index: 1;
}

.flavor-hover {
    opacity: 0;
    z-index: 2;
}

.flavor-item:hover .flavor-default {
    opacity: 0;
}

.flavor-item:hover .flavor-hover {
    opacity: 1;
    transform: scale(1.25);
}

.collab-section {
    background: url('assets/images/backgrounds/21e839f76f09e8ec06c3e13ce01073df6627e1f3.png') center/cover;
    padding: 2rem 0;
    min-height: auto;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.collab-grid {
    max-width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8rem;
    padding: 0;
    align-items: center;
}

.collab-item {
    position: relative;
    width: 100%;
    cursor: pointer;
    aspect-ratio: 1;
    min-width: 0;
}

.collab-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.collab-default {
    opacity: 1;
    z-index: 1;
}

.collab-hover {
    opacity: 0;
    z-index: 2;
}

.collab-item:hover .collab-default {
    opacity: 0;
}

.collab-item:hover .collab-hover {
    opacity: 1;
    transform: scale(1.25);
}

.footer {
    background: #F5FFFF;
    padding: 1rem 2rem;
    min-height: auto;
    display: flex;
    align-items: center;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
    width: 100%;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-style: normal;
}

.contact-item {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #000;
}

.contact-item a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #31ABAC;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: block;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link svg {
    width: 35px;
    height: auto;
    display: block;
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5fffff5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
    flex-direction: column;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    /* topmost */
    opacity: 1;
    /* fully visible */
    width: 200px;
    height: auto;
    /* black background */
}


.loader-logo svg {
    width: 100%;
    height: auto;
}

.loader-buffer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    /* Larger than logo (200px) */
    height: 240px;
    border: 4px solid rgba(49, 171, 172, 0.1);
    border-top: 4px solid #31ABAC;
    border-radius: 50%;
    animation: spinner 1.5s linear infinite;
    z-index: 1;
    /* behind logo */
    /* no background color */
}

/* Dripping effect removed */


@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spinner {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ==========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .hero {
        padding-bottom: 65%;
    }

    .hero-slogan {
        width: 30%;
    }

    .hero-text {
        width: 40%;
    }

    .order-now-btn {
        font-size: 2rem;
        padding: 1.2rem 3.5rem;
    }

    .section-title {
        font-size: 4rem;
    }

    .journey-cards {
        gap: 1rem;
    }

    .journey-card {
        max-height: 340px;
    }

    .flavors-grid,
    .collab-grid {
        gap: 5rem;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ========================================== */
@media (max-width: 1024px) {
    html {
        scroll-padding-top: 70px;
    }

    /* Mobile Navigation */
    .main-nav {
        min-height: 60px;
    }

    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #000;
        font-size: 2rem;
        width: 44px;
        height: 44px;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #FEF6F3;
        flex-direction: column;
        justify-content: flex-start;
        padding: 4rem 2rem 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        /* Shadow on right side */
    }

    .nav-container.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
        text-align: left;
    }

    .nav-logo,
    .main-nav.scrolled .nav-logo {
        display: none !important;
    }

    .nav-background {
        min-height: 60px;
    }

    /* Hero Section Mobile */
    .hero {
        padding-bottom: 120%;
        min-height: 500px;
    }

    .hero-slogan {
        left: 50%;
        transform: translateX(-50%);
        top: 10%;
        width: 70%;
        text-align: center;
    }

    .hero-text {
        left: 50%;
        transform: translate(-50%, -50%);
        /* Center both axes */
        top: 60%;
        /* Center vertical */
        bottom: auto;
        width: 70%;
    }

    .hero-items {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        /* or cover if you want crop, but contain usually best for transparent pngs to fit width */
        padding: 0;
    }

    /* Mobile Logo */
    .mobile-nav-logo {
        display: block;
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        top: 50%;
        width: 50px;
        height: 50px;
        z-index: 1000;
    }

    .mobile-nav-logo svg {
        width: 100%;
        height: 100%;
    }

    .order-now-btn {
        display: none;
    }

    /* Handcrafted Section Mobile */
    .handcrafted-section {
        aspect-ratio: auto;
        min-height: auto;
        padding: 0;
        /* Mobile background - add your mobile image path here */
        background: url('assets/images/backgrounds/b66b4b984e7c7f2e492607ec3f8ae14fe25df455_mobile.png') center/cover;
    }

    .handcrafted-container {
        flex-direction: column;
    }

    .handcrafted-image {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .handcrafted-content {
        padding: 2rem;
        gap: 1.5rem;
    }

    .handcrafted-title-img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .info-title-img {
        max-width: 60%;
    }

    .info-text-img {
        max-width: 90%;
    }

    /* Journey Section Mobile */
    .journey-section {
        aspect-ratio: auto;
        min-height: auto;
        padding: 3rem 1.5rem;
        /* Mobile background - add your mobile image path here */
        background: url('assets/images/backgrounds/4bf679383eff6e5a0a228ac78807e28a429370ba_mobile.png') center/cover;
    }

    .section-title {
        font-size: 3rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .journey-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .journey-card {
        max-height: none;
        height: auto;
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    /* Journey Modal Mobile */
    .journey-modal-content {
        padding: 2.5rem 1.5rem;
        margin: 1rem;
        max-height: 90vh;
    }

    .journey-modal-title {
        font-size: 1.75rem;
    }

    .journey-modal-text {
        font-size: 1rem;
    }

    /* Flavors Section Mobile */
    .flavors-section {
        aspect-ratio: auto;
        min-height: auto;
        padding: 6rem 1.5rem;
        background-attachment: scroll;
        /* Mobile background - stacked/repeating */
        background: url('assets/images/backgrounds/63f47081f0c4698fb32c9766376ca8eb6e303586_mobile.png');
        background-size: 100% auto;
        background-repeat: repeat-y;
        background-position: top center;
    }

    .flavors-grid {
        grid-template-columns: 1fr;
        gap: 8rem;
        width: 100%;
        flex: none;
    }

    .flavor-item {
        width: 70%;
        margin: 0 auto;
    }

    .flavor-item:hover .flavor-hover,
    .collab-item:hover .collab-hover {
        transform: scale(1.1);
    }

    /* Collab Section Mobile */
    .collab-section {
        aspect-ratio: auto;
        min-height: auto;
        padding: 50px 1.5rem 6rem;
        background-attachment: scroll;
        /* Mobile background - add your mobile image path here */
        background: url('assets/images/backgrounds/21e839f76f09e8ec06c3e13ce01073df6627e1f3_mobile.png');
        background-size: 100% auto;
        background-repeat: repeat-y;
        background-position: top center;
    }

    .collab-grid {
        grid-template-columns: 1fr;
        gap: 8rem;
        width: 100%;
        flex: none;
    }

    .collab-item {
        width: 70%;
        margin: 0 auto;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-contact {
        align-items: center;
    }

    .contact-item {
        font-size: 1.4rem;
    }

    .footer-social {
        flex-direction: row;
        gap: 1.5rem;
    }

    .social-link svg {
        width: 45px;
    }

    /* Loading Screen Mobile */
    .loader-logo {
        width: 150px;
    }

    .loader-buffer {
        width: 180px;
        height: 180px;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
    .hero {
        padding-bottom: 150%;
        min-height: 450px;
    }

    .hero-slogan {
        width: 70%;
        top: 10%;
    }

    .hero-text {
        width: 70%;
        top: 60%;
        bottom: auto;
    }

    .hero-items {
        width: 100%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        padding: 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .handcrafted-title-img {
        max-width: 220px;
    }

    .journey-card {
        max-height: none;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .flavors-grid,
    .collab-grid {
        gap: 1rem;
    }

    .footer-contact {
        gap: 0.5rem;
    }

    .contact-item {
        font-size: 1.3rem;
    }

    .loader-logo {
        width: 120px;
    }

    .loader-buffer {
        width: 150px;
        height: 150px;
    }
}

/* ==========================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================== */
@media (hover: none) and (pointer: coarse) {

    .flavor-item,
    .collab-item {
        -webkit-tap-highlight-color: transparent;
    }

    .order-now-btn:active {
        transform: translateX(-50%) scale(0.98);
    }

    .journey-card:active {
        transform: translateY(-4px);
    }

    .nav-link:active {
        opacity: 0.7;
    }
}