/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-green: #7A8A44;
    --accent-orange: #C87530;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --beige-bg: #f7f3e8; /* Added beige color */
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #23291e;
    padding: 1rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    position: relative;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-logo {
    max-height: 100px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: max-height 0.2s;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    transition: right 0.3s;
}
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}
.nav-links a:hover {
    opacity: 0.8;
}
.header-instagram {
    color: #fff;
    font-size: 1.8rem;
    margin-left: 24px;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.header-instagram:hover {
    color: var(--accent-orange);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    margin-left: 10px;
}
.header-instagram.desktop-insta {
    display: none;
}
@media (min-width: 769px) {
    .header-instagram.desktop-insta {
        display: flex !important;
        align-items: center;
        font-size: 1.8rem;
        margin-left: 24px;
        color: #fff;
        transition: color 0.2s;
    }
    .header-left .header-instagram {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .header-instagram.desktop-insta {
        display: none !important;
    }
    .header-left .header-instagram {
        display: flex !important;
    }
    .header-logo {
        max-height: 120px !important;
        height: 120px !important;
        width: auto;
    }
}

/* Hamburger menu for mobile/tablet */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2100;
        background: none;
        border: none;
        color: #fff;
        font-size: 2.2rem;
        cursor: pointer;
        margin: 0;
        padding: 0;
    }
    .header-left {
        position: relative;
    }
}

/* Hamburger nav-links for mobile */
@media (max-width: 900px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: -100vw;
        width: 70vw;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: #23291e;
        box-shadow: -2px 0 16px rgba(0,0,0,0.18);
        border-radius: 0;
        padding: 0;
        margin: 0;
        gap: 0;
        z-index: 1999;
        transition: right 0.3s cubic-bezier(.4,0,.2,1);
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
    }
    .nav-links.open {
        right: 0;
        display: flex;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: left;
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links li a {
        display: block;
        padding: 20px 28px;
        color: #fff;
        font-size: 1.15rem;
        font-weight: 500;
        width: 100%;
    }
}

/* Hero Section & Carousel */
.hero {
    background: linear-gradient(135deg, var(--beige-bg) 0%);
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 120px;
    /* Remove text centering here, handled by .hero-content */
}

.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 0;
    height: 700px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

/* Overlay hero-content on carousel for desktop */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 2;
    /* Remove background and box-shadow for desktop */
    background: none;
    box-shadow: none;
    padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    border-radius: 24px;
    color: #fff;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content-mobile {
    display: none;
}
.hero-content-desktop {
    display: flex;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #6B7A3A;
}

/* Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 0;
    height: 700px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}
.carousel-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0; top: 0;
    align-items: center;
    justify-content: center;
}
.carousel-slide.active {
    display: flex;
    z-index: 1;
}
.carousel-img {
    width: 100%;
    height: 700px;
    max-height: 700px;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
    filter: brightness(0.55);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(35,41,30,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.carousel-btn:hover {
    background: var(--accent-orange);
}
.carousel-btn.prev {
    left: 24px;
}
.carousel-btn.next {
    right: 24px;
}
.carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 11;
}
.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: inline-block;
}
.carousel-dot.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* Nutrition Carousel */
.nutrition-carousel-wrapper {
    position: relative;
    max-width: 340px;
    margin: 0 auto 1.5rem auto;
}
.nutrition-carousel {
    width: 100%;
    overflow: hidden;
}
.nutrition-card {
    width: 100%;
    transition: opacity 0.3s;
}
.nutrition-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #7A8A44;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.85;
    transition: color 0.2s, opacity 0.2s;
}
.nutrition-carousel-btn:hover {
    color: #C87530;
    opacity: 1;
}
.nutrition-carousel-btn.prev {
    left: -36px;
}
.nutrition-carousel-btn.next {
    right: -36px;
}
.nutrition-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.nutrition-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e3e7d7;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
}
.nutrition-dot.active {
    background: #C87530;
}

/* Footer */
footer {
    background-color: #23291e;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    text-align: center;
}
.footer-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.footer-center-group {
    flex: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 0;
    margin-bottom: 0.5rem;
}
.footer-center-group p {
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
    white-space: normal;
    text-align: center;
}
.footer-logo {
    max-height: 100px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: max-height 0.2s;
}
.footer-content a[href*="instagram.com"] i {
    color: #fff;
    font-size: 2.2rem;
    transition: color 0.2s;
    vertical-align: middle;
}
.footer-content a[href*="instagram.com"]:hover i {
    color: var(--accent-orange);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    text-align: center;
}
.footer-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.footer-center-group {
    flex: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 0;
    margin-bottom: 0.5rem;
}
.footer-center-group p {
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
    white-space: normal;
    text-align: center;
}
.footer-logo {
    max-height: 100px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: max-height 0.2s;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Meals Section */
.meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    /* Add this to prevent grid overflow on mobile */
    width: 100%;
    box-sizing: border-box;
}

.meal-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.meal-card:hover {
    transform: translateY(-10px);
}

.meal-image {
    width: 100%;
    height: 250px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 0;
}
.meal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meal-info-banner {
    background: linear-gradient(90deg, var(--primary-green) 60%, var(--accent-orange) 100%);
    color: #fff;
    padding: 1.2rem 1rem 1.2rem 1rem;
    text-align: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.meal-info-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.meal-info-banner p {
    font-size: 1.05rem;
    margin: 0;
    color: #fff;
}

/* Topview Meal Section */
.topview {
    display: block !important; /* Always show the section */
    background: #f7f8f3;
    padding: 3rem 0 3.5rem 0;
    text-align: center;
}

.topview .container {
    max-width: 700px;
    margin: 0 auto;
}

.topview .section-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--primary-green);
    letter-spacing: 0.02em;
}

.topview-image {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0 auto 2.2rem auto;
    border-radius: 18px;
    /* Remove box-shadow */
    /* box-shadow: 0 4px 24px rgba(0,0,0,0.08); */
    animation: slow-rotate 60s linear infinite;
}
@keyframes slow-rotate {
    from { transform: rotate(0deg);}
    to { transform: rotate(360deg);}
}

.nutrition-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.nutrition-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(122,138,68,0.08);
    padding: 1.2rem 1.4rem 1.1rem 1.4rem;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}

.nutrition-item i {
    font-size: 1.7rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.nutr-label {
    font-size: 1.08rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.2rem;
    letter-spacing: 0.01em;
}

.nutr-value {
    font-size: 1.25rem;
    color: var(--accent-orange);
    font-weight: bold;
    margin-top: 0.1rem;
}

@media (max-width: 900px) {
    .topview {
        padding: 2rem 0 2.5rem 0;
    }
    .topview .container {
        max-width: 98vw;
        padding: 0 8px;
    }
    .topview-image {
        max-width: 95vw;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    .nutrition-bar {
        gap: 1.1rem;
        flex-wrap: wrap;
    }
    .nutrition-item {
        min-width: 70px;
        padding: 0.8rem 0.7rem 0.8rem 0.7rem;
    }
    .nutr-label {
        font-size: 0.98rem;
    }
    .nutr-value {
        font-size: 1.08rem;
    }
}

@media (max-width: 600px) {
    .topview {
        padding: 1.2rem 0 1.5rem 0;
    }
    .topview-image {
        max-width: 98vw;
        border-radius: 8px;
        margin-bottom: 1.2rem;
    }
    .nutrition-bar {
        gap: 0.7rem;
    }
    .nutrition-item {
        min-width: 60px;
        padding: 0.6rem 0.5rem 0.6rem 0.5rem;
    }
    .nutr-label {
        font-size: 0.92rem;
    }
    .nutr-value {
        font-size: 0.98rem;
    }
}

/* Immersive Test Section - Progress bar floats with user inside immersive section */
.immersive-test {
    width: 100vw;
    min-height: 100vh;
    background: #f7f8f3;
    position: relative;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}
.immersive-steps {
    width: 100vw;
    position: relative;
    display: block;
}
.immersive-step {
    min-height: 60vh; /* reduced from 92vh */
    padding-top: 2vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.2;
    pointer-events: none;
    transform: scale(0.96) translateY(40px);
    transition: 
        opacity 0.5s cubic-bezier(.4,0,.2,1),
        transform 0.7s cubic-bezier(.4,0,.2,1),
        filter 0.5s cubic-bezier(.4,0,.2,1);
    filter: blur(6px) grayscale(40%);
    will-change: opacity, transform, filter;
}
.immersive-step.active {
    opacity: 1;
    pointer-events: auto;
    filter: none;
    transform: scale(1) translateY(0);
    z-index: 2;
}
.immersive-step.prev {
    opacity: 0.1;
    filter: blur(10px) grayscale(80%);
    transform: scale(0.92) translateY(-60px);
    z-index: 0;
}
.immersive-step-content {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.5s;
    overflow: auto;
    position: relative;
    /* subtle floating effect for active */
}
.immersive-step.active .immersive-step-content {
    animation: immersive-pop-in 0.7s cubic-bezier(.4,0,.2,1);
}
@keyframes immersive-pop-in {
    0% { opacity: 0; transform: scale(0.96) translateY(40px);}
    100% { opacity: 1; transform: scale(1) translateY(0);}
}
.immersive-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 8px;
    background: #e3e7d7;
    z-index: 100;
    margin-bottom: 0;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
.immersive-test.in-view .immersive-progress-bar {
    opacity: 1;
    pointer-events: auto;
}
.immersive-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-orange));
    width: 0;
    transition: width 0.5s cubic-bezier(.4,0,.2,1);
    border-radius: 4px;
}
.immersive-progress-steps {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}
.immersive-progress-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e3e7d7;
    border: 2px solid var(--primary-green);
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 0 0 rgba(200,117,48,0.0);
}
.immersive-progress-dot.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 6px rgba(200,117,48,0.12);
}
@media (max-width: 900px) {
    .immersive-step-content {
        max-width: 98vw;
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
    }
    .immersive-step-content h2 {
        font-size: 1.3rem;
    }
    .immersive-step-icon {
        font-size: 2.2rem;
    }
}

/* Immersive intro title before steps */
.immersive-intro-title {
    width: 100vw;
    max-width: 100vw;
    text-align: center;
    margin: 0 auto 1.2rem auto; /* reduce bottom margin */
    padding: 2.5rem 0 0.5rem 0;
}
.immersive-intro-title h2 {
    font-size: 2.1rem;
    color: var(--primary-green);
    margin-bottom: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.01em;
}
.immersive-intro-title p {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.immersive-intro-icons {
    margin: 0.7rem 0 0.2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    font-size: 1.7rem;
    color: var(--accent-orange);
}
.immersive-intro-icons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7f8f3;
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    box-shadow: 0 2px 8px rgba(122,138,68,0.07);
}
.immersive-step-icon i {
    margin: 0 0.15em;
    font-size: 2.1rem;
    color: var(--accent-orange);
    vertical-align: middle;
}
.join-cta {
    margin-top: 2.5rem !important;
}

/* How it Works Section */
.how-it-works {
    background: #f7f8f3;
    padding: 3rem 0 3.5rem 0;
    text-align: center;
}
.how-it-works .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}
.how-it-works .section-title {
    font-size: 2.1rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 2.2rem;
    letter-spacing: 0.01em;
}
.steps-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.step {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(122,138,68,0.08);
    padding: 2rem 1.2rem 1.7rem 1.2rem;
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.step:hover {
    box-shadow: 0 8px 32px rgba(200,117,48,0.13);
    transform: translateY(-6px) scale(1.03);
}
.step-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.1rem;
}
.step h3 {
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-bottom: 0.7rem;
    font-weight: bold;
}
.step p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0;
}