/* 
 * Sonal Nutrition Author - Premium Design System
 * Billion Dollar Aesthetic
 */

:root {
    /* --- Palette: Emerald & Gold Luxury --- */
    --primary-dark: #0f2e1c;
    /* Deepest Emerald */
    --primary: #1a4d2e;
    /* Rich Forest */
    --primary-light: #4f8f6b;
    /* Sage */
    --accent: #d4a373;
    /* Muted Gold */
    --accent-glow: rgba(212, 163, 115, 0.4);
    --cream: #faedcd;
    /* Warm Base */
    --white: #ffffff;

    --text-main: #1a1a1a;
    --text-muted: #5a5a5a;
    --text-light: #888888;

    --bg-body: #fdfbf7;
    /* Warm off-white */
    --bg-glass: rgba(255, 255, 255, 0.8);

    /* --- Typography --- */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* --- Shadows & Depth --- */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(26, 77, 46, 0.15);

    /* --- Radii --- */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 40px;
    --radius-full: 999px;
}

/* --- Resets & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Keyframe Animations --- */
/* MOVED NAVBAR STYLES HERE FOR PRIORITY */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.navbar.scrolled .logo,
.navbar.dark-text .logo {
    color: var(--primary-dark);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar.scrolled .nav-link,
.navbar.dark-text .nav-link {
    color: var(--text-main);
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 200px;
    padding: 1rem 0;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    display: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(26, 77, 46, 0.05);
    color: var(--primary);
    padding-left: 1.8rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* --- Animation Classes (Triggered by JS) --- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-stagger>* {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-stagger>* {
    transform: translateY(20px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.active {
    animation: fadeLeft 1s forwards;
}

.reveal-right.active {
    animation: fadeRight 1s forwards;
}

.reveal-stagger.active>*:nth-child(1) {
    animation: fadeUp 0.8s 0.1s forwards;
}

.reveal-stagger.active>*:nth-child(2) {
    animation: fadeUp 0.8s 0.2s forwards;
}

.reveal-stagger.active>*:nth-child(3) {
    animation: fadeUp 0.8s 0.3s forwards;
}



/* --- Hero Section (The "Billion Dollar" Header) --- */
.hero {
    min-height: 100vh;
    min-height: 100vh;
    padding-top: 120px;
    /* Increased to account for navbar */
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-body);
}

/* Animated Blobs Background */
.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob 15s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--cream);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #e0f2f1;
    animation-delay: 5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: rgba(212, 163, 115, 0.15);
    animation-delay: 2s;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tagline {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(45, 106, 79, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(26, 77, 46, 0.2);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 77, 46, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-5px);
}

/* --- Hero Image & Floating Cards --- */
.hero-image {
    position: relative;
    padding: 2rem;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
    overflow: visible;
}

.image-wrapper img {
    border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 20px 20px 0 var(--accent-glow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    border: 5px solid var(--white);
}

.image-wrapper:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-card .icon {
    font-size: 1.5rem;
}

.card-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: 0;
    animation-delay: 3s;
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Section Styling --- */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 5;
}

.bg-light {
    background-color: #f2f7f5;
}

.section-header {
    text-align: center;
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Premium Page Header (Banner Style) */
.section-header-premium {
    padding-top: 180px !important;
    /* Force clear fixed navbar */
    /* Force clear fixed navbar */
    padding-bottom: 6rem !important;
    background: radial-gradient(circle at 50% 0%, rgba(212, 163, 115, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    /* Force white text */
}

/* Force White Text on Premium Headers for Visibility */
.section-header-premium .page-title,
.section-header-premium h1 {
    color: var(--white) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-header-premium .overline {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header-premium .lead,
.section-header-premium p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-about {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/about.png');
}

.banner-programs {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/programs.png');
}

.banner-books {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/books.png');
}

.banner-media {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/media.png');
}

.banner-contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/contact.png');
}

.banner-testimonials {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/testimonials.png');
}

.banner-how-it-works {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/how_it_works.png');
}

.banner-recipes {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/recipes.png');
}

.banner-blog {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/blog.png');
}

.banner-health {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/banners/health.png');
}

.section-header-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.overline {
    display: block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- About Preview --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.section-title-left {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.about-content .lead {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--primary-dark);
    padding-bottom: 5px;
    margin-top: 2rem;
}

.btn-link:hover .arrow {
    transform: translateX(5px);
}

.arrow {
    transition: transform 0.3s ease;
}

/* --- Book Cards --- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.book-card {
    background: transparent;
    transition: transform 0.4s ease;
}

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

.book-cover {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    aspect-ratio: 2/3;
    margin-bottom: 1.5rem;
}

.book-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
    max-height: 400px;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.feature-icon {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    background: rgba(212, 163, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    /* Ensure image stays within circle */
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Blends white/light background of the icon */
    opacity: 0.9;
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 77, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* --- Blog Cards --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.read-more {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Parallax & Newsletter Redesign --- */
.newsletter-parallax {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* CSS transform removed to let JS handle it accurately without conflict */
    height: 120%;
    /* Taller for parallax movement */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 46, 28, 0.75);
    /* Dark emerald overlay */
    z-index: 1;
    backdrop-filter: blur(3px);
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.newsletter-content.active {
    transform: translateY(0);
    opacity: 1;
}

.icon-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.text-white {
    color: var(--white) !important;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.newsletter-form-premium {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-group input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

/* --- Ultra Minimal Utility Footer --- */
.footer-minimal {
    background-color: var(--white);
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.footer-left {
    justify-self: start;
}

.footer-center {
    justify-self: center;
    text-align: center;
}

.copyright-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.footer-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Legal Links */
.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--primary-dark);
}



/* Social Icons */
.footer-social-icons {
    display: flex;
    gap: 0.8rem;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.icon-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Responsive Minimal Footer */
@media (max-width: 900px) {
    .footer-bar {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .copyright-text {
        white-space: normal;
        order: 3;
        /* Copyright at bottom */
    }

    .footer-center {
        order: 2;
        /* Links in middle */
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .footer-right {
        order: 1;
        /* Icons on top */
    }
}

/* --- Utilities --- */
.mt-3rem {
    margin-top: 3rem;
}

.text-center {
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        padding: 3rem;
    }

    .newsletter-form {
        flex-direction: column;
        background: transparent;
        padding: 0;
    }

    .newsletter-form input {
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 1rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        outline: none;
    }



    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Health Form Wizard Modernization --- */

/* 1. Container & Card */
.health-wizard {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.health-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* 2. Progress Bar Fix & Styling */
.wizard-progress {
    margin-bottom: 3rem;
    position: relative;
    /* Ensure no clipping */
    padding: 0 1rem;
}

.progress-track {
    position: absolute;
    top: 50%;
    left: 4rem;
    /* Adjust based on dot size/margin */
    right: 4rem;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
    /* Low z-index */
    transform: translateY(-50%);
    border-radius: 10px;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 4rem;
    height: 3px;
    background: var(--primary);
    z-index: 2;
    /* Between track and dots */
    transform: translateY(-50%);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(26, 77, 46, 0.3);
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 10;
    /* High z-index to sit ON TOP of lines */
}

.step-dot {
    width: 45px;
    height: 45px;
    background: var(--white);
    /* Solid bg covers the line */
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s ease;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-dot.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(26, 77, 46, 0.1);
    /* Glow ring */
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.25);
}

/* 3. Typography & Headings */
.step-heading {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.step-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* 4. Modern Inputs */
.form-group {
    margin-bottom: 2rem;
    /* Increased from 1.5rem for better spacing */
}

.floating-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    /* Taller, more comfortable */
    font-size: 1rem;
    color: var(--text-main);
    background: #f8f9fa;
    border: 1px solid transparent;
    /* Cleaner look */
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-control:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 77, 46, 0.08);
    /* Focus ring */
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* 5. Radio Cards (Selection) */
.cards-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.radio-card {
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card .card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.radio-card input:checked+.card-content {
    background: rgba(26, 77, 46, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.1);
}

/* 6. Appetite Inputs (Boxes) */
.appetite-inputs {
    display: flex;
    gap: 1rem;
}

.appetite-box {
    flex: 1;
}

.appetite-box label {
    font-size: 0.8rem;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.appetite-box input {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* 7. Wizard Actions */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animation */
.wizard-step {
    display: none;
    animation: fadeUp 0.4s ease-out;
}



.wizard-step.active {
    display: block;
}

/* Custom Fancy Dropdown */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    color: #adb5bd;
    /* Placeholder color default */
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.custom-select-trigger.selected {
    color: var(--text-main);
    background: var(--white);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.custom-select-wrapper.open .custom-select-trigger {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 77, 46, 0.08);
    border-radius: 12px 12px 0 0;
}

.arrow {
    position: relative;
    height: 10px;
    width: 10px;
}

.arrow::before,
.arrow::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 0.15rem;
    height: 100%;
    transition: all 0.3s ease;
}

.arrow::before {
    left: -3px;
    transform: rotate(-45deg);
    background-color: var(--text-muted);
}

.arrow::after {
    left: 3px;
    transform: rotate(45deg);
    background-color: var(--text-muted);
}

.custom-select-wrapper.open .arrow::before {
    transform: rotate(-135deg);
}

.custom-select-wrapper.open .arrow::after {
    transform: rotate(135deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid var(--primary);
    border-top: 0;
    background: var(--white);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(-10px);
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option:hover {
    background: rgba(26, 77, 46, 0.05);
    color: var(--primary);
    padding-left: 1.5rem;
    /* Slight shift effect */
}

.custom-option.selected {
    background: var(--primary);
    color: var(--white);
}

/* Page Background Enhancement */
body {
    /* Adding a subtle pattern or using the uploaded image */
    background-image: radial-gradient(circle at 10% 20%, rgba(26, 77, 46, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(235, 203, 75, 0.05) 0%, transparent 20%);
    background-color: #fcfcfc;
    /* Slightly off-white base */
}

/* Optional: Add a texture overlay if an image was uploaded, assuming we want a subtle texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Pattern overlay URL if valid, otherwise fallback to gradient above */
    /* background-image: url('../images/pattern-bg.png'); */
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}


/* 8. Extra Form Elements (Missing in previous pass) */
.section-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: block;
    font-family: var(--font-heading);
}

.range-wrapper {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.range-wrapper label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.range-wrapper input[type=range] {
    width: 100%;
    margin-bottom: 0.5rem;
    accent-color: var(--primary);
}

.range-wrapper output {
    display: block;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.review-note {
    background: rgba(212, 163, 115, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    color: #885522;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 2.5rem;
    border: 1px solid rgba(212, 163, 115, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Fix Appetite Box Input */
.appetite-box input {
    width: 100%;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.appetite-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
    outline: none;
}

/* Secondary Button override if needed */
.btn-secondary {
    background: #e9ecef;
    color: var(--text-muted);
    border: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #dee2e6;
    color: var(--text-main);
}

/* --- Mobile Menu Styles --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.navbar.scrolled .hamburger span {
    background: var(--primary-dark);
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--primary-dark);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--primary-dark);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 0;
        /* Default closed height */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        overflow: hidden;
        gap: 2rem;
        padding-top: 60px;
        /* Space for header */
    }

    .nav-links.mobile-active {
        height: 100vh;
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.5rem;
        color: var(--primary-dark);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.mobile-active .nav-link {
        transform: translateY(0);
        opacity: 1;
        transition-delay: 0.2s;
        /* Stagger effect handled by JS optimally or simpler overlap */
    }

    .navbar.scrolled .hamburger span {
        background: var(--primary-dark);
    }

    /* Fix: Ensure hamburger is visible on white background even if not scrolled yet, 
       if the menu is open. */
    .menu-toggle.active .hamburger span {
        background: var(--primary-dark);
    }

    /* Dropdown in Mobile */
    .dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        text-align: center;
        padding: 0;
        display: none !important;
        /* Managed by JS/Hover? No, simplified for mobile */
        opacity: 1;
        visibility: visible;
        min-width: auto;
    }

    .nav-item.dropdown-active .dropdown-menu {
        display: block !important;
        position: relative !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        width: auto;
        /* Allow natural width (centered by flex parent) */
        min-width: 200px;
        /* Ensure generic width matches design */
        margin-top: 10px;
    }

    .dropdown-item {
        text-align: center;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dropdown-item:hover {
        padding-left: 0 !important;
        background: transparent;
        color: var(--primary);
    }

    .nav-item {
        flex-direction: column;
        height: auto;
    }
}