/* ============================================================
   nutrition.css — Nutrition & Dietitian Services page
   All page-specific classes namespaced nut-*
   Depends on: ../styles.css for base variables & fonts
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.nut-hero {
    background: var(--forest);
    min-height: 90vh;
    padding-top: 121px;
    position: relative;
    overflow: hidden;
}
body.has-announcement .nut-hero { padding-top: 121px; }

.nut-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(49,184,152,.07);
    pointer-events: none;
}
.nut-hero-ring-1 { width: 820px; height: 820px; top: -35%; right: -18%; }
.nut-hero-ring-2 { width: 580px; height: 580px; top: -18%; right: -6%; }

.nut-hero-glow {
    position: absolute;
    width: 520px; height: 520px;
    top: -25%; right: -10%;
    background: radial-gradient(circle, rgba(49,184,152,.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nut-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 48px;
    min-height: 90vh;
}

.nut-hero-left {
    position: relative; z-index: 2;
    opacity: 0; animation: nut-fade-up .7s .1s forwards;
}
.nut-hero-right {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 24px;
    opacity: 0; animation: nut-fade-in .8s .28s forwards;
}

@keyframes nut-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes nut-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Breadcrumb */
.nut-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: var(--type-caption); text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,.55); margin-bottom: 28px;
}
.nut-breadcrumb a { color: inherit; text-decoration: none; transition: color .2s; }
.nut-breadcrumb a:hover { color: rgba(255,255,255,.5); }
.nut-breadcrumb-sep { opacity: .3; }
.nut-breadcrumb-current { color: rgba(255,255,255,.65); }

/* Hero headings */
.nut-hero h1 {
    font-family: var(--font-serif);
    font-size: var(--type-display);
    font-weight: 400; line-height: 1.04;
    color: white; margin-bottom: 16px;
}
.nut-hero h1 em { font-style: italic; color: var(--teal-light); }

.nut-hero-subtitle {
    font-size: var(--type-body); font-weight: 400; line-height: var(--lh-body);
    color: rgba(255,255,255,.75); max-width: 460px; margin-bottom: 32px;
}

/* Hero buttons */
.nut-hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.nut-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--teal); color: white; padding: 14px 30px;
    border-radius: 100px; font-size: 13px; font-weight: 500;
    text-decoration: none; box-shadow: 0 6px 20px rgba(49,184,152,.35);
    transition: background .25s, transform .2s, box-shadow .3s;
    position: relative; overflow: hidden;
}
.nut-btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transform: translateX(-100%); transition: transform .6s;
}
.nut-btn-primary:hover::before { transform: translateX(100%); }
.nut-btn-primary:hover { background: var(--teal-dim); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(49,184,152,.45); }

.nut-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid rgba(255,255,255,.18); color: rgba(255,255,255,.58);
    padding: 13px 26px; border-radius: 100px; font-size: 13px;
    font-weight: 400; text-decoration: none;
    transition: border-color .25s, color .25s, background .25s;
}
.nut-btn-ghost:hover {
    border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.05);
}

/* Hero proof bar */
.nut-hero-proof {
    display: flex; align-items: center; gap: 28px;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06);
}
.nut-proof-val {
    font-family: var(--font-serif); font-size: 28px; font-weight: 500;
    color: var(--teal-light); line-height: 1.1;
}
.nut-proof-lbl {
    font-size: var(--type-caption); font-weight: 400; letter-spacing: .03em;
    color: rgba(255,255,255,.65); margin-top: 2px;
}
.nut-proof-sep {
    width: 1px; height: 32px;
    background: rgba(255,255,255,.08);
}

/* ── INCLUDED CARD (floating, hero right) ─────────────────── */
.nut-included-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px 24px;
}
.nut-ic-header {
    font-family: var(--font-serif); font-size: 18px; font-weight: 500;
    color: white; margin-bottom: 18px; padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nut-ic-item {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0; color: rgba(255,255,255,.65);
    font-size: var(--type-body); font-weight: 400;
}
.nut-ic-item svg { color: var(--teal-light); flex-shrink: 0; }

/* ── MINI TESTIMONIAL (floating, hero right) ──────────────── */
.nut-mini-testi {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 24px;
}
.nut-mini-stars { color: var(--teal-light); margin-bottom: 10px; display: flex; gap: 2px; }
.nut-mini-quote {
    font-family: var(--font-serif); font-size: var(--type-body); font-weight: 400;
    font-style: italic; line-height: 1.6; color: rgba(255,255,255,.7);
    margin: 0;
}
.nut-mini-who {
    font-size: var(--type-caption); color: rgba(255,255,255,.65);
    margin-top: 10px; font-weight: 400;
}

/* ── HOW IT WORKS — 3-step grid ──────────────────────────── */
.nut-how {
    padding: 120px 0;
    background: var(--off-white);
}

.nut-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.nut-step {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: transform .3s, box-shadow .3s;
}
.nut-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.nut-step-num {
    font-family: var(--font-serif); font-size: 36px; font-weight: 500;
    color: var(--teal); opacity: .35; line-height: 1; margin-bottom: 20px;
}
.nut-step h3 {
    font-family: var(--font-serif); font-size: var(--type-h3); font-weight: 500;
    color: var(--text-dark); margin-bottom: 12px; line-height: 1.25;
}
.nut-step p {
    font-size: var(--type-body); font-weight: 400; line-height: var(--lh-body);
    color: var(--text-medium);
}

/* ── WHY NUTRITION MATTERS (dark section) ─────────────────── */
.nut-why {
    padding: 120px 0;
    background: var(--forest);
    position: relative;
    overflow: hidden;
}
.nut-why-glow {
    position: absolute;
    width: 600px; height: 600px;
    bottom: -20%; left: -10%;
    background: radial-gradient(circle, rgba(49,184,152,.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nut-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.nut-why-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: background .3s, transform .3s, border-color .3s;
}
.nut-why-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(49,184,152,.2);
    transform: translateY(-3px);
}

.nut-why-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(49,184,152,.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal-light); margin-bottom: 20px;
}

.nut-why-card h3 {
    font-family: var(--font-serif); font-size: var(--type-h3); font-weight: 500;
    color: white; margin-bottom: 10px; line-height: 1.25;
}
.nut-why-card p {
    font-size: var(--type-body); font-weight: 400; line-height: var(--lh-body);
    color: rgba(255,255,255,.75);
}

/* ── MEET THE TEAM ────────────────────────────────────────── */
.nut-team {
    padding: 120px 0;
    background: var(--off-white);
}

.nut-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 56px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nut-team-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.nut-team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.nut-team-avatar {
    width: 100px; height: 100px;
    border-radius: 50%; overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--teal-pale);
}
.nut-team-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.nut-team-badge {
    display: inline-block;
    font-size: var(--type-caption); font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--teal); background: rgba(49,184,152,.08);
    padding: 4px 14px; border-radius: 100px;
    margin-bottom: 12px;
}

.nut-team-card h3 {
    font-family: var(--font-serif); font-size: var(--type-h3); font-weight: 500;
    color: var(--text-dark); margin-bottom: 4px;
}
.nut-team-role {
    font-size: var(--type-small); font-weight: 400;
    color: var(--muted); margin-bottom: 14px;
}
.nut-team-card p {
    font-size: var(--type-body); font-weight: 400; line-height: var(--lh-body);
    color: var(--text-medium);
}

/* ── NUTRITION + MEDICAL INTEGRATION ──────────────────────── */
.nut-integration {
    padding: 120px 0;
    background: var(--sand);
}

.nut-int-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.nut-int-left h2 { margin-bottom: 20px; }
.nut-int-left p {
    font-size: var(--type-body); font-weight: 400; line-height: var(--lh-body);
    color: var(--text-medium); margin-bottom: 16px;
}
.nut-int-left p:last-child { margin-bottom: 0; }

.nut-int-right {
    display: flex; flex-direction: column; gap: 20px;
}

.nut-int-stat {
    display: flex; align-items: center; gap: 18px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    transition: transform .3s, box-shadow .3s;
}
.nut-int-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nut-int-stat-icon {
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(49,184,152,.10);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal); flex-shrink: 0;
}
.nut-int-stat-icon.rose {
    background: rgba(184,137,122,.10);
    color: var(--rose-gold);
}
.nut-int-stat-icon.forest {
    background: rgba(28,56,50,.08);
    color: var(--forest);
}

.nut-int-stat-val {
    font-family: var(--font-serif); font-size: 17px; font-weight: 500;
    color: var(--text-dark); line-height: 1.2;
}
.nut-int-stat-lbl {
    font-size: var(--type-small); font-weight: 400;
    color: var(--muted); margin-top: 2px;
}

/* ── RECIPES PREVIEW ──────────────────────────────────────── */
.nut-recipes {
    padding: 120px 0;
    background: var(--off-white);
}

.nut-recipe-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.nut-recipe-cat {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.nut-recipe-cat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(49,184,152,.25);
}

.nut-recipe-cat-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(49,184,152,.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal); margin: 0 auto 18px;
}
.nut-recipe-cat-icon.rose {
    background: rgba(184,137,122,.08);
    color: var(--rose-gold);
}
.nut-recipe-cat-icon.forest {
    background: rgba(28,56,50,.06);
    color: var(--forest);
}

.nut-recipe-cat h3 {
    font-family: var(--font-serif); font-size: var(--type-h3); font-weight: 500;
    color: var(--text-dark); margin-bottom: 6px;
}
.nut-recipe-cat p {
    font-size: var(--type-small); font-weight: 400; line-height: 1.6;
    color: var(--muted);
}

/* ── SHARED SECTION PRIMITIVES (scoped overrides) ─────────── */
.nut-how .section-header,
.nut-team .section-header,
.nut-recipes .section-header,
.nut-integration .section-header { text-align: center; }

.nut-why .section-header { text-align: center; }

/* ── REVEAL / ANIMATION DELAYS ────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s cubic-bezier(.22,1,.36,1),
                transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view,
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .28s; }
.reveal.d4 { transition-delay: .38s; }

/* ── PROMO BANNER ────────────────────────────────────────── */

/* ── CTA SECTION (reuses global .cta-section from styles.css) */

/* ── MOBILE RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
    .nut-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 60px 32px;
        min-height: auto;
    }
    .nut-hero-right { order: -1; }

    .nut-steps-grid { grid-template-columns: 1fr; gap: 24px; }

    .nut-why-grid { grid-template-columns: 1fr; }

    .nut-int-grid { grid-template-columns: 1fr; gap: 40px; }

    .nut-recipe-categories { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
    .nut-hero { min-height: auto; padding-top: 100px; }
    .nut-hero-inner { padding: 48px 20px 60px; }

    .nut-hero-btns { flex-direction: column; align-items: stretch; }
    .nut-btn-primary,
    .nut-btn-ghost { justify-content: center; text-align: center; }

    .nut-hero-proof { flex-wrap: wrap; gap: 16px; }
    .nut-proof-sep { display: none; }
    .nut-proof-stat { min-width: 80px; }

    .nut-how,
    .nut-why,
    .nut-team,
    .nut-integration,
    .nut-recipes { padding: 80px 0; }

    .nut-how .container,
    .nut-why .container,
    .nut-team .container,
    .nut-integration .container,
    .nut-recipes .container { padding: 0 20px; }

    .nut-team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .nut-step { padding: 28px 24px; }
    .nut-why-card { padding: 28px 24px; }
    .nut-team-card { padding: 32px 24px; }

    .nut-recipe-categories { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .nut-recipe-categories { grid-template-columns: 1fr; }
}
