@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --primary: #2D4635;
    /* Forest Green */
    --primary-dark: #1b2d22;
    --accent: #C5A059;
    /* Muted Gold */
    --accent-light: #E0C18A;
    --bg-light: #FDF9F5;
    /* Cream */
    --text-dark: #1A1C1A;
    --text-muted: #555A55;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.85);

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-med: 0 20px 60px rgba(0, 0, 0, 0.08);

    --radius: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Compatibility for legacy components like Quiz */
    --color-primary: var(--primary);
    --color-primary-dark: var(--primary-dark);
    --color-secondary: var(--bg-light);
    --color-text-main: var(--text-dark);
    --color-text-light: var(--text-muted);
    --color-white: var(--white);
    --color-border: rgba(0, 0, 0, 0.08);
    --radius-full: 999px;
    --radius-md: 24px;
    --spacing-xl: 100px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    overflow-y: auto;
    /* Ensure scroll is always enabled */
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.main-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav a:hover::after {
    width: 20px;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 70, 53, 0.2);
}

/* --- Hero --- */
.hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Force breaking out of any containers */
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 240px 20px 90px;
    /* Pushes text down and grows bottom room */
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.8)), url('../images/hero_human_diet.png') no-repeat center center;
    background-size: cover !important;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
    color: white;
    clip-path: ellipse(260% 100% at 50% 0%);
    margin-top: -100px;
    /* Pull it to the very top */
}


.hero h1 {
    color: white;
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
    max-width: 1000px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero h2 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 1rem;
    color: var(--accent-light);
    margin-bottom: 2rem;
    font-weight: 700;
    animation: fadeInUp 1s 0.2s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto 3rem;
    /* Centered */
    text-align: center;
    animation: fadeInUp 1s 0.4s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero .cta-button-group {
    justify-content: center;
    /* Center buttons in hero */
}

.hero .cta-secondary {
    border-color: white;
    color: white;
}

/* Cleaned up old hover overrides */

/* --- Buttons --- */
.cta-button-group,
.cta-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 1s 0.6s backwards;
}

.cta-button,
.cta-secondary {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    min-width: 200px;
}

.cta-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cta-button:hover,
.cta-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

/* --- Journey Results --- */
.journey-results-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-med);
    margin-bottom: 3rem;
}

.journey-results-img {
    width: 100%;
    overflow: hidden;
    border-radius: calc(var(--radius) / 1.5);
    line-height: 0;
}

.journey-results-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cta-mini {
    margin-top: 4rem;
}

/* --- Programs Grid --- */
.program-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0 4rem;
}

.program-box {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
}

.program-box:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-med);
    border-color: var(--accent);
}

.wisdom-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.wisdom-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: var(--accent-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.program-box h3,
.wisdom-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.program-box p {
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    flex-grow: 1;
}

.program-box .cta-button {
    margin-top: auto;
}

/* Pop control: Stop internal buttons from popping if the whole tile pops */
.program-box:hover .cta-button,
.program-card:hover .cta-button {
    transform: none !important;
}

/* --- About Section --- */
.about-roxana {
    padding: 6rem 0;
    text-align: center;
    background: var(--white);
    position: relative;
}

.roxana-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 3rem;
    border: 10px solid var(--bg-light);
    box-shadow: var(--shadow-med);
}

.portrait-photo {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-med);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    text-align: left !important;
}

.about-roxana h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.about-roxana p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* --- Journey/Story Specifics --- */
.journey-header {
    padding: 10rem 0 3rem;
    background: var(--primary);
    color: white;
    text-align: center;
    clip-path: ellipse(210% 100% at 50% 0%);
}

.journey-header h1 {
    color: white !important;
    font-size: 4rem;
    margin-top: 1rem;
}

.journey-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 1.5rem auto 0;
    font-size: 1.2rem;
}

.journey-header .cta-button {
    background: var(--accent);
    color: var(--primary);
    border: none;
}

.journey-header .cta-button:hover {
    background: white;
    transform: translateY(-3px);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--accent);
}

.journey-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    padding: 6rem 0;
    align-items: center;
}

.quote-box {
    margin: 3rem 0;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 8px solid var(--accent);
    box-shadow: var(--shadow-soft);
}

.quote-box blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary);
}

.transformation-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-med);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Footer --- */
.main-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
    /* Reduced height */
    text-align: center;
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.social-media a {
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    color: #fff;
}

.social-img {
    height: 28px;
    width: auto;
    display: block;
    fill: currentColor;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.social-media a.social-fb:hover {
    color: #1877f2;
}

.social-media a.social-ig:hover {
    color: #e4405f;
}

.social-media a.social-yt:hover {
    color: #ff0000;
}

.social-media a.social-patreon:hover {
    color: #ff424d;
}

.social-media a:hover .social-img {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Blog & Generic Pages --- */
.program-detail,
.blog-header,
.quiz-wrapper {
    padding-top: 180px !important;
    min-height: 80vh;
}

.blog-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.blog-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 6rem 0 10rem;
}

.article-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-med);
    border-color: var(--accent);
}

.article-card .eyebrow {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    display: block;
}

.article-card h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.read-more {
    margin-top: auto;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.article-card:hover .read-more::after,
.wisdom-card:hover .read-more::after {
    transform: translateX(5px);
}

/* --- Premium Card & Grid System --- */
.program-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.program-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
    text-decoration: none !important;
    color: inherit !important;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-med);
    border-color: var(--accent);
}

.program-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.program-card strong {
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.program-card p {
    margin-bottom: 3rem;
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.program-card .cta-button {
    margin-top: auto;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* --- Certifications --- */
.certs-section {
    padding: 4rem 0;
    text-align: center;
    background: #f9f9f9;
}

.certs-section h2 {
    color: #820000;
    /* Dark Red from old design */
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-family: 'Playfair Display', serif;
}

.certs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 200px;
}

.cert-item img {
    height: 80px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.cert-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.cert-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.3;
}

/* --- Blog & Journey Content Formatting --- */
.blog-content,
.journey-text {
    line-height: 1.95;
    font-size: 1.15rem;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}

.blog-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding: 6rem 0;
}

.blog-main {
    flex: 2;
}

.blog-sidebar {
    flex: 1;
    position: sticky;
    top: 120px;
}

@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }

    .blog-sidebar {
        position: static;
        width: 100%;
        margin-top: 4rem;
    }
}

.blog-content p,
.journey-text p {
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.blog-content h2,
.blog-content h3,
.journey-text h2,
.journey-text h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.25;
}

/* Ensure links in text match brand colors, excluding buttons */
.blog-content a:not(.cta-button):not(.cta-secondary),
.journey-text a:not(.cta-button):not(.cta-secondary) {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.blog-content a:not(.cta-button):not(.cta-secondary):hover,
.journey-text a:not(.cta-button):not(.cta-secondary):hover {
    color: var(--accent);
}

/* Explicit button overrides for legibility and to prevent underscores */
.cta-button,
.cta-secondary {
    text-decoration: none !important;
    display: inline-block;
}

/* Default state for standard primary buttons (White text on Brand Green) */
.cta-button {
    color: var(--white) !important;
}

/* Default state for secondary buttons (Brand Green text on white) */
.cta-secondary {
    color: var(--primary) !important;
}

/* Specific exceptions for buttons in Hero/Journey Headers */
.journey-header .cta-button,
.hero .cta-button {
    background: var(--accent);
    color: var(--primary) !important;
}

.journey-header .cta-secondary,
.hero .cta-secondary {
    color: var(--white) !important;
    border-color: var(--white) !important;
}

/* Unified button hover behavior for pop-up effect - No Shade */
.cta-button:hover,
.cta-secondary:hover,
.nav-cta:hover {
    transform: translateY(-5px) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.8rem;
}

.blog-content strong {
    color: var(--primary);
    font-weight: 700;
}

.blog-content .quote-box {
    margin: 3rem 0;
    padding: 2.5rem;
    background: #fdfdfd;
}

/* --- Section Spacing Utility --- */
.section-gap {
    padding: 5rem 0;
}

.section-margin {
    margin-bottom: 6rem;
}

.hero-gap {
    padding-top: 2rem;
}

@media (max-width: 900px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero {
        padding-top: 260px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero p {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
        padding: 0 10px;
    }

    .nav-container {
        width: 92%;
        top: 10px;
        padding: 0.6rem 1.2rem;
        border-radius: 30px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex !important;
        margin-top: 1rem;
    }

    /* Hamburger Menu Logic */
    .menu-icon {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-icon span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--primary);
        transition: var(--transition);
        border-radius: 2px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        gap: 2rem;
    }

    #menu-toggle:checked~.main-nav {
        right: 0;
    }

    #menu-toggle:checked~.menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle:checked~.menu-icon span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center !important;
    }

    .photo-container {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Visibility Utilities */
.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none !important;
}

.grecaptcha-badge {
    visibility: hidden;
}

/* Premium CTA Callout Box */
.cta-box {
    margin-top: 8rem;
    text-align: center;
    background: #fdfaf6;
    padding: 5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(204, 142, 53, 0.1);
}

.cta-box h2,
.cta-box h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.cta-box p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.cta-box-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box-group .cta-button,
.cta-box-group .cta-secondary {
    min-width: 250px;
}