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

body {
    font-family: 'Inter', 'Noto Sans Thai', sans-serif;
    background: #f0f4f8;
    overflow-x: hidden;
}

/* ===== Hero Section — full viewport ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
}

/* ===== Slide Backgrounds (full-page, behind header) ===== */
.slide-bg {
    position: absolute;
    inset: -30px;
    /* extra space for parallax movement */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
    will-change: transform;
}

.slide-bg.active {
    opacity: 1;
}

/* ===== Header (transparent, over hero bg) ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-nav a {
    position: relative;
    transition: color 0.3s ease;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2563EB;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-nav a:hover {
    color: #2563EB;
}

.header-nav a:hover::after {
    width: 100%;
}

/* ===== Carousel ===== */
.carousel-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Card open-up animation ===== */
.slide-content-card {
    position: relative;
    overflow: visible;
    border-radius: 24px;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.6s ease;
    transform-origin: center center;
}

.slide-content-card.revealed {
    transform: scale(1);
    opacity: 1;
}

.slide-text-col {
    width: 55%;
}

/* ===== Card body ===== */
.slide-card-body {
    position: relative;
    overflow: visible;
    background: url(../asset/img/content-bg_carousel_1.png) center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== Product image — contained within the card ===== */
.slide-product-img {
    position: absolute;
    right: 0;
    bottom: 0;
    /* width: 45%; */
    height: min(535px, calc(100vh - 200px + 30px));
    object-fit: contain;
    object-position: right bottom;
    overflow: visible;
    z-index: 10;
    /* Animate in */
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-content-card.revealed .slide-product-img {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.4s;
}

/* ===== Slide text elements staggered animation ===== */
.slide-badge,
.slide-heading,
.slide-desc,
.slide-arrow {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-badge {
    margin-bottom: 1.25rem;
}

.slide-desc {
    margin-bottom: 1.25rem;
}

.slide-content-card.revealed .slide-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.slide-content-card.revealed .slide-heading {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.50s;
}

.slide-content-card.revealed .slide-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.65s;
}

.slide-content-card.revealed .slide-arrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.80s;
}

/* ===== Dot Indicators ===== */
.dot {
    width: 32px;
    height: 5px;
    border-radius: 3px;
    background: rgba(180, 190, 200, 0.6);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot.active {
    background: #2563EB;
}

/* ===== Brand Success Section ===== */
.brand-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to top right, #0c1d5e 0%, #0e2470 20%, #1540a8 45%, #2a75d8 70%, #4dc8f5 100%);
}

.brand-section .circle-bg {
    position: absolute;
    left: -2%;
    top: -45%;
    transform: translate(0%, 40%);
    width: 50%;
    max-width: 580px;
    opacity: 0.4;
    pointer-events: none;
}

.brand-section .brand-logo {
    max-width: 360px;
    width: 100%;
}

/* Bottom CTA rounded button */
.brand-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 120px;
    padding: 26px 32px 26px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    /* background: rgba(255, 255, 255, 0.04); */
    /* backdrop-filter: blur(4px); */
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    width: 75%;
    justify-content: center;
}

.brand-cta-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.brand-cta-btn .cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* border: 2px solid rgba(255, 255, 255, 0.4); */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* .brand-cta-btn:hover .cta-arrow {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
} */

/* ===== Product Categories Cards ===== */
.product-cat-card {
    /* border-radius: 20px; */
    overflow: hidden;
    cursor: pointer;
}

.product-cat-card-inner {
    position: relative;
    width: 90%;
    padding-bottom: 100%;
    background: var(--bg) center / cover no-repeat;
    transition: transform 0.5s ease;
}

.product-cat-card:hover .product-cat-card-inner {
    transform: scale(1.03);
}

.product-cat-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%); */
}

.product-cat-content {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    padding: 24px;
}

.cat-dietary {
    background: url('../asset/img/dietary.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.cat-skincare {
    background: url('../asset/img/skincare.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.cat-cosmetics {
    background: url('../asset/img/cosmetics.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/* ===== Second Carousel ===== */
.carousel2-section {
    position: relative;
    background: #f0f4f8;
    overflow: hidden;
    height: 100vh;
    min-height: 640px;
}

.carousel2-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.carousel2-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Image area */
.carousel2-img-area {
    position: relative;
    width: 100%;
    height: min(500px, 55vh);
}

.carousel2-slide .c2-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.carousel2-img-area .c2-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: rgba(0, 170, 255, 0.65);
    backdrop-filter: blur(6px);
    padding: 20px 28px;
}

.carousel2-img-area .c2-product {
    position: absolute;
    right: 15%;
    bottom: 0;
    height: 110%;
    top: 18%;
    z-index: 2;
    object-fit: contain;
    object-position: right bottom;
}

/* Text area below image */
.carousel2-text-area {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 36px 48px 80px;
    color: white;
}

/* Controls overlay — stays fixed at bottom center */
.c2-controls {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Dot nav for carousel 2 */
.c2-dot {
    width: 32px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s ease;
}

.c2-dot.active {
    background: #fff;
}

.c2-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.c2-arrow-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

/* Slide element animations */
.c2-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel2-slide.active .c2-anim {
    opacity: 1;
    transform: translateY(0);
}

.carousel2-slide.active .c2-anim-d1 {
    transition-delay: 0.1s;
}

.carousel2-slide.active .c2-anim-d2 {
    transition-delay: 0.25s;
}

.carousel2-slide.active .c2-anim-d3 {
    transition-delay: 0.4s;
}

.carousel2-slide.active .c2-anim-d4 {
    transition-delay: 0.55s;
}

.c2-slide-0,
.c2-slide-1,
.c2-slide-2 {
    background: url('../asset/img/background_carousel_section_2_slide1.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel2-text-area h2 {
    padding-top: 5%;
}

/* ===== Production Process Section ===== */
.process-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: grid;
    grid-template-columns: 35% 65%;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    background: #f0f2f5;
}

/* Left panel */
.process-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.process-left-bg {
    position: absolute;
    height: 100%;
    object-fit: contain;
    z-index: 0;
}

.process-label-img {
    position: absolute;
    bottom: 15%;
    left: 40px;
    width: 70%;
    z-index: 1;
    object-fit: contain;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-section.visible .process-label-img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Right panel */
.process-right {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px 48px 24px;
}

/* Static card layout — 3 cards stacked */
.process-cards-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.process-card {
    position: relative;
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 0;
}

.process-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Inner area where step images animate */
.process-card-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.process-step-img {
    position: absolute;
    inset: 0;
    width: 90%;
    height: 70%;
    margin: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
}

.process-step-img.active {
    transform: translateY(0);
    opacity: 1;
}

.process-step-img.exit-up {
    transform: translateY(-110%);
    opacity: 0;
}

.process-step-img.enter-below {
    transform: translateY(110%);
    opacity: 0;
}

.process-step-img.exit-down {
    transform: translateY(110%);
    opacity: 0;
}

.process-step-img.enter-above {
    transform: translateY(-110%);
    opacity: 0;
}

/* Card stagger animation on scroll */
.process-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-section.visible .process-card {
    opacity: 1;
    transform: translateY(0);
}

.process-section.visible .process-card:nth-child(1) {
    transition-delay: 0.1s;
}

.process-section.visible .process-card:nth-child(2) {
    transition-delay: 0.25s;
}

.process-section.visible .process-card:nth-child(3) {
    transition-delay: 0.4s;
}

/* Bottom row: tagline + dots in grid */
.process-bottom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px 48px 20px;
}

.process-tagline {
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #64748b;
}

.process-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.process-dot {
    width: 32px;
    height: 5px;
    border-radius: 3px;
    background: rgba(100, 116, 139, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.process-dot.active {
    background: #1a3c6e;
}

/* ===== Trends Banner Section ===== */
.trends-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.trends-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.trends-banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(32px, 5vw, 80px);
}

/* Orange dot */
.trends-orange-dot {
    position: absolute;
    top: 12%;
    right: 18%;
    width: clamp(36px, 4vw, 60px);
    height: auto;
    z-index: 2;
    opacity: 0;
    transform: scale(0) rotate(-30deg);
    transition: opacity 0.5s ease 0.2s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.trends-banner.visible .trends-orange-dot {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Top Supplement pill */
.trends-badge {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.trends-banner.visible .trends-badge {
    opacity: 1;
    transform: translateX(0);
}

.trends-badge img {
    height: clamp(28px, 3.5vw, 44px);
    object-fit: contain;
}

/* Heading */
.trends-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 3.6vw, 56px);
    line-height: 1.15;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.trends-banner.visible .trends-heading {
    opacity: 1;
    transform: translateY(0);
}

.trends-heading strong {
    font-weight: 800;
}

.trends-heading .trends-light {
    font-weight: 300;
}

/* Underline stretch */
.trends-underline {
    display: block;
    height: 3px;
    background: #12acf1;
    margin-top: 8px;
    width: 0;
    transition: width 0s;
    border-radius: 2px;
}

.trends-banner.visible .trends-underline {
    animation: stretchLine 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

@keyframes stretchLine {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Arrow button */
.trends-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 72px;
    height: 72px;
    margin-top: 18px;
    border: none;
    border-radius: 0;
    color: #fff;
    background: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s,
        color 0.3s ease;
}

.trends-banner.visible .trends-arrow {
    opacity: 1;
    transform: translateY(0);
}

.trends-arrow:hover {
    color: rgba(255, 255, 255, 0.7);
}

.trends-arrow svg {
    width: 48px;
    height: 48px;
}

/* Underline wrapper — only under 'Need to Know' */
.trends-underline-wrap {
    position: relative;
    display: inline;
}

.trends-underline-wrap .trends-underline {
    position: absolute;
    left: 0;
    bottom: -4px;
}

/* ===== Scroll-triggered animations ===== */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.25s;
}

.delay-3 {
    transition-delay: 0.4s;
}

.delay-4 {
    transition-delay: 0.55s;
}

.delay-5 {
    transition-delay: 0.7s;
}

.delay-6 {
    transition-delay: 0.85s;
}

/* ===== Site Footer ===== */
.site-footer {
    position: relative;
    background: linear-gradient(to top right, #0c1d5e 0%, #0e2470 20%, #1540a8 45%, #2a75d8 70%, #30cfff 100%);
    color: #fff;
    font-family: 'Inter', 'Noto Sans Thai', sans-serif;
}

.footer-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 48px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.footer-logo img {
    width: 220px;
    height: auto;
    opacity: 0.95;
}

.footer-links h4,
.footer-info h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-links ul li a::before {
    content: '• ';
    color: rgba(255, 255, 255, 0.5);
}

.footer-info-block {
    margin-bottom: 18px;
}

.footer-info-block p {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding: 24px 48px;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #fff;
}



/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .slide-inner-grid {
        /* flex-direction: column !important; */
        height: min(380px, calc(100vh - 200px)) !important;
    }

    .slide-text-col {
        width: 50% !important;
    }

    .slide-product-img {
        /* position: relative; */
        /* width: 100%; */
        height: 405px;
        /* border-radius: 0 0 24px 24px; */
    }

    .brand-section .circle-bg {
        width: 80%;
        /* left: -15%; */
        top: -45;
        bottom: 10%;
        transform: none;
        opacity: 0.2;
    }

    .brand-section .brand-logo {
        max-width: 240px;
    }
}

/* White logo hidden everywhere by default — only enabled on mobile via 768px media query */
#logo-white { display: none; }

/* Mobile menu hidden on desktop by default — revealed only inside ≤1023px block */
#mobile-menu { display: none; }

/* ===== HAMBURGER + MENU OVERLAY: all widths where lg:hidden button shows (0–1023px) ===== */
@media (max-width: 1023px) {

    /* Hamburger bars: base style */
    #mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background-color: white;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    background-color 0.3s ease;
    }

    /* Dark bars when header has scrolled (white backdrop) */
    .site-header.scrolled #mobile-menu-btn span {
        background-color: #1a1a2e;
    }

    /* Keep bars white when menu is open (overlay hides header anyway) */
    .site-header.nav-open #mobile-menu-btn span {
        background-color: white;
    }

    /* Hamburger → X */
    #mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    #mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Hide header when overlay is open */
    .site-header.nav-open {
        visibility: hidden;
    }

    /* Full-page overlay */
    #mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 150;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        background: #ffffff;
        padding: 80px 0 40px;
        opacity: 0;
        transform: translateX(100%);
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-menu.menu-open {
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
    }

    /* X close button inside overlay */
    #mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: #1a1a2e;
        padding: 8px;
    }

    #mobile-menu-close svg {
        width: 28px;
        height: 28px;
    }

    /* Nav links */
    #mobile-menu nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #mobile-menu nav a {
        font-size: 1.3rem;
        font-weight: 400;
        color: #1a1a2e;
        padding: 16px 32px;
        letter-spacing: 0.02em;
        text-decoration: none;
        opacity: 0;
        transform: translateX(30px);
        transition: color 0.2s ease, background 0.2s ease,
                    padding-left 0.2s ease,
                    opacity 0.4s ease, transform 0.4s ease;
    }

    #mobile-menu nav a:first-child { font-weight: 600; }

    #mobile-menu nav a:hover {
        color: #1251c5;
        background: rgba(18, 81, 197, 0.05);
        padding-left: 40px;
    }

    /* Staggered slide-in */
    #mobile-menu.menu-open nav a { opacity: 1; transform: translateX(0); }
    #mobile-menu.menu-open nav a:nth-child(1) { transition-delay: 0.08s; }
    #mobile-menu.menu-open nav a:nth-child(2) { transition-delay: 0.13s; }
    #mobile-menu.menu-open nav a:nth-child(3) { transition-delay: 0.18s; }
    #mobile-menu.menu-open nav a:nth-child(4) { transition-delay: 0.23s; }
    #mobile-menu.menu-open nav a:nth-child(5) { transition-delay: 0.28s; }
    #mobile-menu.menu-open nav a:nth-child(6) { transition-delay: 0.33s; }
    #mobile-menu.menu-open nav a:nth-child(7) { transition-delay: 0.38s; }
    #mobile-menu.menu-open nav a:nth-child(8) { transition-delay: 0.43s; }
}

@media (max-width: 768px) {

    /* ===== LOGO SWAP: white on blue header, normal when scrolled ===== */
    #logo-white { display: block; }
    #logo-default { display: none; }
    .site-header.scrolled #logo-white { display: none; }
    .site-header.scrolled #logo-default { display: block; }



    /* ===== SECTION 1: HERO BANNER CAROUSEL ===== */
    /* On mobile, the hero bg image (mobile_banner1.png) is fully self-contained
       (includes heading, product, and bottom info bar baked in).
       We hide the entire desktop card structure and let the bg fill the viewport. */

    .hero-section {
        height: 100svh;
        min-height: 580px;
    }

    .slide-bg {
        inset: 0;
        /* override -30px parallax spacing */
        background-size: cover;
        background-position: center center;
    }

    /* Header: solid brand-blue gradient on mobile, matching the reference design */
    .site-header {
        background: linear-gradient(to bottom, #0d4cb1, rgba(173, 216, 230, 0));
    }

    /* Keep the scrolled state (blur + white) intact */
    .site-header.scrolled {
        background: rgba(255, 255, 255, 0.85);
    }

    /* Hide desktop card structure entirely */
    .carousel-wrapper .slide-content-card {
        display: none;
    }

    /* Dots: visible, nudged down slightly */
    #carousel-dots {
        bottom: 12px;
    }

    .dot {
        width: 24px;
        height: 4px;
    }


    /* ===== SECTION 2: BRAND SUCCESS ===== */
    .brand-section {
        padding-top: 48px;
        padding-bottom: 48px;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Fix circle bg — desktop positions it at top:-45% which goes off-screen on mobile */
    .brand-section .circle-bg {
        width: 100%;
        max-width: none;
        top: -10%;
        left: -20%;
        transform: none;
        opacity: 0.25;
    }

    /* Logo: centered, slightly smaller */
    .brand-section .brand-logo {
        max-width: 200px;
    }

    /* Inner container: reduce padding on mobile */
    .brand-section .max-w-\[1320px\] {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    /* Text column: center-align on mobile */
    .brand-section .lg\:w-\[60\%\] {
        text-align: center;
    }

    .brand-section h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 16px;
    }

    .brand-section .space-y-4 p {
        font-size: 13px;
    }

    /* CTA button: stay on ONE row — arrow stays right, just reduce the gap */
    .brand-cta-btn {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 16px 14px;
        width: 92%;
        text-align: left;
    }

    .brand-cta-btn span:first-child {
        font-size: 11px;
        line-height: 1.5;
        flex: 1;
    }

    .brand-cta-btn .cta-arrow {
        flex-shrink: 0;
        margin: 0;
        width: 36px;
        height: 36px;
    }

    .brand-cta-btn .cta-arrow img {
        width: 16px;
    }


    /* ===== SECTION 3: PRODUCT CATEGORIES ===== */
    #product-categories {
        padding-top: 0;
        padding-bottom: 0;
        min-height: 100svh;
    }

    /* Hide heading on mobile */
    #product-categories h2 {
        display: none;
    }

    /* Container: full-width, full-height, flex column */
    #product-categories .max-w-\[1320px\] {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        height: 100svh;
        display: flex;
        flex-direction: column;
    }

    /* Grid: fill remaining height, no gap, stack as flex column */
    #product-categories .grid {
        gap: 0;
        margin-bottom: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Each card: equal share of the full height */
    .product-cat-card {
        flex: 1;
        min-height: 0;
    }

    /* Image: fill card fully */
    .cat-dietary,
    .cat-skincare,
    .cat-cosmetics {
        background-size: cover;
        background-position: center;
        height: 100%;
    }

    /* Card inner: fill the card — override padding-bottom trick */
    .product-cat-card-inner {
        width: 100%;
        height: 100%;
        padding-bottom: 0;
    }

    /* Gradient overlay at bottom for text legibility */
    .product-cat-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
    }

    /* Title only at bottom-left — hide description */
    .product-cat-content {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
    }

    .product-cat-content h3 {
        font-size: 1.2rem;
        font-weight: 300;
        letter-spacing: 0.04em;
        margin-bottom: 0;
    }

    .product-cat-content p {
        display: none;
    }

    /* Hide bottom tagline too since there's no heading on mobile */
    #product-categories .text-center {
        display: none;
    }


    /* ===== SECTION 4: SECOND CAROUSEL (PROBIOTICS) ===== */
    .carousel2-section {
        height: auto;
        min-height: 90svh;
    }

    /* Override inner wrapper inline height */
    .carousel2-section>div {
        height: auto !important;
        min-height: 90svh;
    }

    /* Each slide fills viewport */
    .carousel2-slide {
        min-height: 90svh;
    }

    /* White background on mobile — replace dark gradient image */
    .c2-slide-0,
    .c2-slide-1,
    .c2-slide-2 {
        background: #ffffff;
    }

    /* Image area: white, taller */
    .carousel2-img-area {
        height: 55vh;
        min-height: 260px;
        flex-shrink: 0;
        background: #ffffff;
    }

    /* Badge: solid blue, top-center */
    .carousel2-img-area .c2-badge {
        left: 0;
        right: 0;
        top: 0;
        width: fit-content;
        margin: 0 auto;
        padding: 14px 24px;
        background: rgba(10, 80, 200, 0.92);
        backdrop-filter: none;
        text-align: center;
    }

    .carousel2-img-area .c2-badge h3 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .carousel2-img-area .c2-badge p {
        font-size: 10px;
        margin-top: 4px;
    }

    /* Hide the next-slide arrow button in text area on mobile */
    #carousel2-next {
        display: none;
    }

    /* Grid: since arrow is hidden, use single column */
    .carousel2-text-area .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }


    /* Product image: right side on white bg */
    .carousel2-img-area .c2-product {
        right: 0;
        bottom: 0;
        height: 100%;
        object-position: center;
    }

    /* Text area: white bg, dark text */
    .carousel2-text-area {
        padding: 20px 20px 72px;
        text-align: left;
        align-items: flex-start;
        flex: 1;
        color: #1a1a2e;
        background: #ffffff;
        padding-top: 80px
    }

    /* Inner container: full-width on mobile */
    .carousel2-text-area .max-w-\[1320px\] {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    /* Heading: large, dark */
    .carousel2-text-area h2 {
        font-size: 2.2rem;
        padding-top: 0;
        margin-bottom: 10px;
        color: #1a1a2e;
    }


    /* Body text: dark, capped at 3 lines */
    .carousel2-text-area p {
        font-size: 12px;
        line-height: 1.7;
        color: #444;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Arrow button: dark stroke on white bg */
    #carousel2-next svg {
        stroke: #1a1a2e;
    }

    /* Dot controls */
    .c2-controls {
        bottom: 20px;
        gap: 16px;
    }

    .c2-dot {
        width: 24px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
    }

    .c2-dot.active {
        background: #1a1a2e;
    }


    /* ===== SECTION 5: PRODUCTION PROCESS ===== */
    .process-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        height: auto !important;
        min-height: auto !important;
        background: #f0f2f5;
    }

    /* Left panel: full-width photo strip at the top */
    .process-left {
        width: 100%;
        height: 220px;
        grid-column: 1 / -1;
    }

    .process-left-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    /* Label image: centered with margin auto (avoids transform conflict with scroll animation) */
    .process-label-img {
        width: 55%;
        left: 0;
        right: 0;
        margin: 0 auto;
        bottom: 10%;
    }

    /* No transform override needed — base CSS handles translateY animation correctly */

    /* Right panel: 3 cards stacked */
    .process-right {
        padding: 20px 16px 8px;
        height: 420px;
    }

    .process-cards-area {
        gap: 10px;
    }

    /* Bottom row: tagline centered above dots */
    .process-bottom {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 10px;
        justify-items: center;
        text-align: center;
        padding: 12px 20px 32px;
    }

    .process-tagline {
        font-size: 12px;
        line-height: 1.6;
        max-width: 280px;
    }


    /* ===== SECTION 6: TRENDS BANNER ===== */

    /* Section: flex column, full viewport height */
    .trends-banner {
        display: flex;
        flex-direction: column;
        height: 40svh;
        min-height: 580px;
        padding: 0;
        overflow: hidden;
    }

    /* Photo: pulled out of absolute positioning, takes top ~58% */
    .trends-banner-bg {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 58%;
        object-fit: cover;
        object-position: center 15%;
        flex-shrink: 0;
    }

    /* Orange dot: decorative only on desktop — hide on mobile */
    .trends-orange-dot {
        display: none;
    }

    /* Content area: white background, fills remaining height */
    .trends-banner-content {
        position: relative;
        flex: 1;
        height: auto;
        background: #ffffff;
        padding: 20px 20px 24px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 6px;
        align-items: flex-start;
        text-align: left;
        color: #1a1a2e;
    }

    /* Badge */
    .trends-badge {
        margin-bottom: 4px;
    }

    .trends-badge img {
        height: 28px;
    }

    /* Heading: dark text; strong becomes block so colon stays on line 1 */
    .trends-heading {
        white-space: normal;
        font-size: clamp(1.35rem, 5.5vw, 1.8rem);
        line-height: 1.3;
        color: #1a1a2e;
    }

    .trends-heading strong {
        display: block;
    }

    /* Arrow: dark blue, right-aligned, tight below heading */
    .trends-arrow {
        align-self: flex-end;
        width: 44px;
        height: 44px;
        margin-top: 4px;
        color: #1565c0;
    }

    .trends-arrow svg {
        width: 28px;
        height: 28px;
    }


    /* ===== SECTION 7: FOOTER ===== */
    .footer-main {
        grid-template-columns: 1fr;
        padding: 36px 20px 24px;
        gap: 28px;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-logo img {
        width: 160px;
    }

    .footer-links ul li a::before {
        content: none;
    }

    .footer-bottom {
        padding: 16px 20px;
    }
}