/* ============================================================
   QR ROOTS — Shared stylesheet (all pages)
   Palette taken from the home hero's forest green.
   ============================================================ */
:root {
    --bg: #122410;          /* page background (hero forest green) */
    --bg-2: #18301a;        /* alternate section background */
    --bg-deep: #112211;     /* footer */
    --surface: rgba(255, 255, 255, .06);
    --surface-hover: rgba(255, 255, 255, .1);
    --border: rgba(255, 255, 255, .14);
    --leaf: #96c83c;        /* logo leaf / accent */
    --leaf-soft: #d8ecb0;
    --text: rgba(255, 255, 255, .86);
    --text-muted: rgba(255, 255, 255, .7);
    --white: #ffffff;
    --radius-lg: 32px;
    --radius-md: 22px;
    --font-head: 'Nunito', 'Segoe UI', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --shadow: 0 30px 60px -25px rgba(0, 0, 0, .6);
    --gutter: clamp(16px, 3vw, 24px);
    --max: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; color: var(--white); letter-spacing: -0.01em; }
.accent { color: var(--leaf); }
/* Even line breaks: no single orphan word on headings and short lines */
h1, h2, h3, .sub, .support, .tagline, .lead, .story-tagline strong, .section-head p { text-wrap: balance; }
p { text-wrap: pretty; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-body); font-weight: 700; font-size: 1rem;
    padding: .95rem 1.8rem; border-radius: 999px;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    cursor: pointer; border: 0;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-leaf { background: var(--leaf); color: var(--bg); }
.btn-leaf:hover { background: #a9d957; transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(150, 200, 60, .7); }

/* ---------- Eyebrow label ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
    padding: .45rem 1rem; border-radius: 999px;
    background: rgba(150, 200, 60, .18); color: var(--leaf-soft);
    border: 1px solid rgba(150, 200, 60, .45);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }

/* ---------- Header ---------- */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(24, 48, 26, .88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .3s ease, background .3s ease;
}
header.scrolled { background: rgba(24, 48, 26, .96); box-shadow: 0 8px 28px -12px rgba(0, 0, 0, .6); }
.nav {
    max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a { font-weight: 600; font-size: .98rem; color: var(--text); position: relative; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--leaf); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: .7rem 1.4rem; font-size: .95rem; }
.menu-btn {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--white);
}
.menu-btn svg { width: 28px; height: 28px; }

.mobile-nav {
    position: fixed; inset: 0; z-index: 200; background: var(--bg-deep);
    display: flex; flex-direction: column; padding: 24px var(--gutter);
    transform: translateX(100%); transition: transform .35s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .close { align-self: flex-end; background: none; border: 0; color: var(--white); cursor: pointer; width: 44px; height: 44px; }
.mobile-nav .close svg { width: 28px; height: 28px; }
.mobile-nav ul { list-style: none; margin-top: 2rem; display: grid; gap: 1.4rem; }
.mobile-nav ul a { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--white); }
.mobile-nav .btn { margin-top: 2.5rem; align-self: flex-start; }

/* ---------- Home hero ---------- */
.hero-wrap { padding: 8px var(--gutter) 0; }
.hero {
    position: relative; max-width: 1400px; margin: 0 auto;
    border-radius: var(--radius-lg); overflow: hidden;
    min-height: calc(100vh - 96px);
    background: var(--bg) url('../images/home-hero-forest.jpg') center 40% / cover no-repeat;
    display: flex; align-items: center;
    box-shadow: var(--shadow);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 36, 16, .92) 0%, rgba(18, 36, 16, .75) 38%, rgba(18, 36, 16, .2) 62%, rgba(18, 36, 16, 0) 80%),
        linear-gradient(0deg, rgba(18, 36, 16, .45) 0%, rgba(18, 36, 16, 0) 35%);
}
.hero-content {
    position: relative; z-index: 1; width: 100%; max-width: 800px;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
    color: var(--white);
}
.hero .hero-title { white-space: nowrap; font-size: clamp(1.4rem, 3.9vw, 3.3rem); font-weight: 900; line-height: 1.05; margin-bottom: 1.2rem; }
.hero .sub { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.85rem); color: var(--leaf); line-height: 1.2; }
.hero .support { margin-top: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, .9); font-weight: 500; max-width: 480px; }
.hero .btn { margin-top: 2rem; }

/* ---------- Inner page header (Our Story, Packages, Contact…) ---------- */
.page-hero {
    position: relative; max-width: 1400px; margin: 0 auto;
    border-radius: var(--radius-lg); overflow: hidden;
    min-height: clamp(340px, 52vh, 520px);
    background: var(--bg) url('../images/home-hero-forest.jpg') center 30% / cover no-repeat;
    display: flex; align-items: flex-end;
    box-shadow: var(--shadow);
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(18, 36, 16, .95) 0%, rgba(18, 36, 16, .6) 45%, rgba(18, 36, 16, .2) 100%);
}
.page-hero-content { position: relative; z-index: 1; padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); font-weight: 900; line-height: 1.08; margin-top: .8rem; }
.page-hero p { margin-top: .8rem; max-width: 620px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text); }
/* Full-bleed heroes (Home, Our Story): image runs edge to edge and fades into the page green */
.hero-wrap { padding: 0; }
.hero, .page-hero { max-width: none; border-radius: 0; box-shadow: none; }
.page-hero.plain { border: 0; border-bottom: 1px solid var(--border); }
.page-hero.plain .page-hero-content { max-width: 1400px; margin: 0 auto; width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }
/* Closing CTA runs full width and sits flush on the footer */
#begin .container { max-width: none; padding: 0; }
.cta-card { border-radius: 0; box-shadow: none; border-left: 0; border-right: 0; }
main:has(.cta-card) + footer { margin-top: 0; }
.hero::after, .page-hero.story-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(18, 36, 16, 0) 100%); pointer-events: none;
}
.welcome-text, .container.narrow { max-width: 820px; margin: 0 auto; }
.welcome-text { text-align: center; }
.welcome-text p { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text); line-height: 1.85; }
/* Our Story header: meditation-room image, heading on the right so the subject stays visible */
.page-hero.story-hero {
    min-height: clamp(380px, 62vh, 600px); align-items: center;
    background-image: url('../images/home-welcome.jpg'); background-position: 30% 45%;
}
.page-hero.story-hero::before {
    background:
        linear-gradient(270deg, rgba(18, 36, 16, .92) 0%, rgba(18, 36, 16, .7) 35%, rgba(18, 36, 16, .1) 65%, rgba(18, 36, 16, 0) 100%),
        linear-gradient(0deg, rgba(18, 36, 16, .5) 0%, rgba(18, 36, 16, 0) 40%);
}
.page-hero.story-hero .page-hero-content { margin-left: auto; max-width: 560px; }
@media (max-width: 760px) {
    .page-hero.story-hero { align-items: flex-end; min-height: 460px; background-position: 25% center; }
    .page-hero.story-hero::before { background: linear-gradient(0deg, rgba(18, 36, 16, .95) 0%, rgba(18, 36, 16, .55) 45%, rgba(18, 36, 16, 0) 100%); }
    .page-hero.story-hero .page-hero-content { margin-left: 0; }
}
/* Header without a photo (Packages) */
.page-hero.plain {
    min-height: clamp(280px, 40vh, 400px);
    background:
        radial-gradient(60% 90% at 85% 10%, rgba(150, 200, 60, .22), transparent 70%),
        radial-gradient(50% 80% at 0% 100%, rgba(150, 200, 60, .1), transparent 70%),
        var(--bg-2);
    border: 1px solid var(--border);
}
.page-hero.plain::before { display: none; }
.breadcrumb { display: flex; gap: .5rem; font-size: .9rem; color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--leaf); }
.breadcrumb span[aria-current] { color: var(--leaf); }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 130px) 0; }
.section-alt {
    background:
        radial-gradient(60% 80% at 15% 0%, rgba(150, 200, 60, .1), transparent 70%),
        var(--bg-2);
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head p { margin-top: 1rem; font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--text-muted); }

/* Split: media + text (Welcome, Root Story) */
.split {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.split-media { position: relative; z-index: 0; }
.split-media img {
    width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.split-media::after {
    content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); pointer-events: none;
    background: linear-gradient(0deg, rgba(18, 36, 16, .45) 0%, rgba(18, 36, 16, 0) 35%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 60px rgba(18, 36, 16, .45);
}
.split-media::before {
    content: ''; position: absolute; z-index: -1; inset: auto -18px -18px auto;
    width: 70%; height: 70%; border-radius: var(--radius-lg);
    background: rgba(150, 200, 60, .22); border: 1px solid rgba(150, 200, 60, .35);
}
.split-text > p { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text); line-height: 1.85; }
.split-text .eyebrow + .section-title { margin-top: 1.2rem; }

/* Image panel: full-width photo that fades into the page green, like the hero (Welcome) */
.image-panel {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    min-height: clamp(460px, 70vh, 640px);
    display: flex; align-items: center;
    background: var(--bg) url('../images/home-welcome.jpg') 25% 45% / cover no-repeat;
}
.image-panel::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(270deg, rgba(18, 36, 16, .94) 0%, rgba(18, 36, 16, .78) 38%, rgba(18, 36, 16, .2) 62%, rgba(18, 36, 16, 0) 80%),
        linear-gradient(0deg, rgba(18, 36, 16, .45) 0%, rgba(18, 36, 16, 0) 35%);
}
.image-panel-content { margin-left: auto; width: 100%; max-width: 600px; padding: clamp(40px, 6vw, 72px); }
.image-panel-content p { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text); line-height: 1.85; }
@media (max-width: 760px) {
    .image-panel { align-items: flex-end; min-height: 0; background-position: 22% top; background-size: auto 420px; background-color: var(--bg); }
    .image-panel::before { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 420px), rgba(18, 36, 16, .2) 100%); }
    .image-panel-content { margin-left: 0; padding: 300px 24px 32px; }
}

/* Root Story text */
.story-text p { margin-top: 1.1rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text); line-height: 1.85; }
.story-tagline {
    margin-top: 2rem; padding: 1.6rem 1.8rem; border-radius: var(--radius-md);
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--leaf);
}
.story-tagline strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.35rem, 2.3vw, 1.85rem); color: var(--white); line-height: 1.2; }
.story-tagline strong span { color: var(--leaf); }
.story-tagline em { display: block; margin-top: .6rem; color: var(--text-muted); font-size: 1rem; }

/* Generic glass card */
.card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); background: var(--surface-hover); border-color: rgba(150, 200, 60, .5); }
.card::after {
    content: ''; position: absolute; right: -70px; bottom: -70px; width: 200px; height: 200px;
    border-radius: 50%; border: 30px solid rgba(150, 200, 60, .08); pointer-events: none;
}

/* How We Work — three cards in a row */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.step { display: flex; flex-direction: column; min-height: 320px; padding: clamp(28px, 3vw, 40px); }
.step-num {
    font-family: var(--font-head); font-weight: 900; font-size: clamp(2.6rem, 3.8vw, 3rem);
    line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--leaf);
}
.step-body { margin-top: auto; padding-top: 2.5rem; }
.step h3 { font-size: clamp(1.4rem, 2.1vw, 1.7rem); }
.step p { margin-top: .5rem; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-muted); font-weight: 500; }

/* Mission & Vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.mv-card { padding: clamp(32px, 4vw, 56px); }
.icon-badge {
    width: 64px; height: 64px; border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(150, 200, 60, .16); border: 1px solid rgba(150, 200, 60, .4); color: var(--leaf);
}
.icon-badge svg { width: 30px; height: 30px; }
.mv-card h3 { margin-top: 1.6rem; font-size: clamp(1.5rem, 2.3vw, 1.8rem); }
.mv-card p { margin-top: .9rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text); line-height: 1.8; }

/* Areas of Expertise */
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
.expertise-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 1.4rem; min-height: 190px; }
.expertise-card .icon-badge { width: 56px; height: 56px; border-radius: 18px; }
.expertise-card .icon-badge svg { width: 26px; height: 26px; }
.expertise-card h3 { margin-top: auto; font-size: 1.3rem; line-height: 1.25; }

/* ============================================================
   PACKAGES PAGE — program cards (reference-site style) + plan popup
   ============================================================ */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.pcard {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 20px; aspect-ratio: 9 / 16;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--bg-2); box-shadow: var(--shadow);
}
.pcard > img {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transition: transform .6s ease;
}
.pcard:hover > img { transform: scale(1.04); }
.pcard::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(0deg, rgba(10, 20, 9, .94) 0%, rgba(10, 20, 9, .72) 26%, rgba(10, 20, 9, .18) 50%, rgba(10, 20, 9, 0) 64%),
        linear-gradient(180deg, rgba(10, 20, 9, .25) 0%, rgba(10, 20, 9, 0) 14%);
}
.pcard-body { padding: 0 24px 26px; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.pcard-icon {
    width: 62px; height: 62px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white); color: #4f7f3f; border: 3px solid rgba(150, 200, 60, .55);
    margin-bottom: 1rem;
}
.pcard-icon svg { width: 30px; height: 30px; }
.pcard h3 { font-size: clamp(1.5rem, 2.1vw, 1.8rem); line-height: 1.15; }
.pcard .tagline { margin-top: .5rem; font-size: .98rem; color: rgba(255, 255, 255, .85); line-height: 1.5; }
.pcard .pkg-name { margin-top: .35rem; font-size: .9rem; font-weight: 700; color: var(--leaf); }
.pcard .label { margin-top: 1.3rem; font-weight: 700; color: var(--white); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .6rem; }
.pill {
    font-family: var(--font-body); font-weight: 700; font-size: .9rem;
    padding: .55rem .85rem; border-radius: 8px; border: 0; cursor: pointer;
    background: #6a9f45; color: var(--white);
    transition: background .2s ease, transform .2s ease, color .2s ease;
}
.pill:hover { background: var(--leaf); color: var(--bg); transform: translateY(-2px); }
.pill:focus-visible { outline: 3px solid var(--leaf-soft); outline-offset: 2px; }

/* Checklist */
.checklist { list-style: none; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.7rem; font-size: .98rem; color: var(--text); line-height: 1.5; }
.checklist li::before {
    content: ''; position: absolute; left: 0; top: .2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122410' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Plan popup */
.plan-modal {
    width: min(540px, calc(100% - 32px)); max-height: calc(100vh - 48px);
    margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 26px;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(150, 200, 60, .2), transparent 70%),
        var(--bg-2);
    color: var(--text); overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8);
}
.plan-modal[open] { display: flex; flex-direction: column; animation: modal-in .3s ease; }
.plan-modal::backdrop { background: rgba(6, 12, 5, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .08); color: var(--white); display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255, 255, 255, .18); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 34px 28px 28px; position: relative; overflow-y: auto; }
.modal-body .kicker { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--leaf); }
.modal-body h3 { margin-top: .4rem; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.modal-body .tagline { margin-top: .4rem; color: var(--text-muted); }
.modal-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.modal-meta span { font-size: .85rem; font-weight: 700; padding: .4rem .85rem; border-radius: 999px; background: rgba(150, 200, 60, .14); color: var(--leaf-soft); }
.modal-body .includes-label { margin: 1.5rem 0 .8rem; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--leaf); }
.modal-body .btn { margin-top: 1.8rem; width: 100%; justify-content: center; }

@media (max-width: 1024px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .program-grid { grid-template-columns: 1fr; }
    .modal-body { padding: 30px 20px 22px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(18px, 2.4vw, 28px); align-items: start; }
.contact-info { display: grid; gap: clamp(14px, 2vw, 20px); }
.info-card { display: flex; align-items: center; gap: 18px; padding: 24px; }
.info-card .icon-badge { flex: none; }
.info-card .info-label { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--leaf); }
.info-card .info-value { display: block; margin-top: .2rem; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.15rem, 1.6vw, 1.25rem); color: var(--white); }
.info-card:hover .info-value { color: var(--leaf); }
.form-card { padding: clamp(26px, 3.5vw, 44px); }
.form-card:hover { transform: none; }
.form-card::after { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 700; color: var(--white); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--white);
    background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-radius: 14px;
    padding: .9rem 1rem; transition: border-color .2s ease, background .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
    background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396c83c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat; }
.field select option { background: var(--bg-2); color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); background: rgba(255, 255, 255, .09); }
.form-card .btn { margin-top: 1.6rem; }
.form-note { margin-top: .9rem; font-size: .88rem; color: var(--text-muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card .btn { width: 100%; justify-content: center; } }

/* Closing CTA */
.cta-card {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-lg);
    padding: clamp(56px, 9vw, 110px) clamp(24px, 6vw, 80px);
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(150, 200, 60, .2), transparent 70%),
        var(--bg-2);
    border: 1px solid var(--border);
    text-align: center; box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 820px; margin: 0 auto; }
.cta-card p { margin: 1.1rem auto 0; max-width: 560px; font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--text); font-weight: 500; }
.cta-card .btn { margin-top: 2rem; }

/* ---------- Footer ---------- */
footer { background: var(--bg-deep); color: var(--text-muted); padding: 72px 0 28px; margin-top: clamp(72px, 10vw, 130px); border-top: 1px solid rgba(255, 255, 255, .06); }
footer.flush { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-logo img { height: 34px; width: auto; }
.footer-brand p { margin-top: 1rem; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--white); line-height: 1.3; }
.footer-brand p span { color: var(--leaf); }
footer h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); margin-bottom: 1.1rem; }
footer ul { list-style: none; display: grid; gap: .7rem; }
footer ul a { font-size: .95rem; }
footer ul a:hover { color: var(--white); }
.socials { display: flex; gap: .7rem; margin-top: 1.3rem; }
.socials a {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--white);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.socials a:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .6); }
/* Official brand colours */
.socials .facebook { background: #1877f2; }
.socials .instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.socials .youtube { background: #ff0000; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.socials svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.footer-bottom {
    margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .88rem;
}
.footer-bottom a { color: var(--leaf); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 150;
    width: 60px; height: 60px; border-radius: 50%; background: #25d366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .6);
    transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease, background .3s ease, border-color .3s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.in.card:hover { transform: translateY(-6px); }
.stagger > .reveal:nth-child(2) { transition-delay: .1s; }
.stagger > .reveal:nth-child(3) { transition-delay: .2s; }
.stagger > .reveal:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .nav-links, .nav-cta { display: none; }
    .menu-btn { display: inline-flex; }
    .split { grid-template-columns: 1fr; }
    .split-media { max-width: 640px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
    .steps, .mv-grid { grid-template-columns: 1fr; }
    .step { min-height: 0; flex-direction: row; align-items: center; gap: 24px; }
    .step-body { margin-top: 0; padding-top: 0; }
}
@media (max-width: 760px) {
    .logo img { height: 34px; }
    .hero { min-height: calc(100svh - 90px); align-items: flex-end; background-position: 58% center; }
    .hero::before {
        background: linear-gradient(0deg, rgba(18, 36, 16, .95) 0%, rgba(18, 36, 16, .75) 50%, rgba(18, 36, 16, .2) 100%);
    }
    .split-media::before { inset: auto -10px -10px auto; }
    .hero .sub { font-size: 1.05rem; }
    .hero .support { font-size: .95rem; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .expertise-card { min-height: 160px; padding: 22px 18px; }
    .expertise-card h3 { font-size: 1.1rem; }
    .hero .btn, .cta-card .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   PHONE TYPE SCALE (≤640px) — one consistent hierarchy on all pages
   Page/hero titles 26–28px · section titles 26px · card titles 19–22px · body 15–16px
   ============================================================ */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero-content { padding-left: 20px; padding-right: 20px; }
    .hero .hero-title { font-size: clamp(1.35rem, 6.6vw, 1.6rem); }
    .page-hero h1 { font-size: 1.75rem; }
    .page-hero p, .section-head p, .cta-card p { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }
    .cta-card h2 { font-size: 1.55rem; }
    .step-num { font-size: 2.25rem; }
    .step h3 { font-size: 1.35rem; }
    .step p { font-size: .95rem; }
    .mv-card h3 { font-size: 1.45rem; margin-top: 1.1rem; }
    .mv-card p, .story-text p, .split-text > p, .welcome-text p { font-size: 1rem; line-height: 1.75; }
    .story-tagline strong { font-size: 1.25rem; }
    .expertise-card h3 { font-size: 1.02rem; }
    .pcard h3 { font-size: 1.35rem; }
    .pcard .tagline { font-size: .92rem; }
    .info-card { padding: 18px; gap: 14px; }
    .info-card .icon-badge { width: 52px; height: 52px; border-radius: 16px; }
    .info-card .info-value { font-size: 1.1rem; }
    .modal-body h3 { font-size: 1.5rem; }
    .footer-brand p { font-size: 1rem; }
    .footer-logo img { height: 30px; }
    footer ul a { font-size: .95rem; }
    .mobile-nav ul a { font-size: 1.6rem; }
    .icon-badge { width: 54px; height: 54px; border-radius: 16px; }
    .icon-badge svg { width: 26px; height: 26px; }
}

/* ---------- Seamless edges: hero → page → closing CTA → footer ---------- */
.page-hero.plain { border-bottom: 0; }
.page-hero.story-hero {
    min-height: clamp(380px, 52vw, 760px); background-position: 30% 30%;
}
.cta-card {
    border: 0;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(18, 36, 16, 0) 30%),
        linear-gradient(0deg, var(--bg-deep) 0%, rgba(17, 34, 17, 0) 35%),
        radial-gradient(60% 120% at 50% 0%, rgba(150, 200, 60, .2), transparent 70%),
        var(--bg-2);
}
main:has(.cta-card) + footer { border-top: 0; padding-top: 56px; }
@media (max-width: 760px) {
    .page-hero.story-hero { min-height: 460px; background-position: 25% center; }
}

/* ---------- Our Story: left-aligned hero + two-column Root Story ---------- */
.page-hero.story-hero { background-image: url('../images/story-hero.jpg'); background-position: center 30%; }
.page-hero.story-hero::before {
    background:
        linear-gradient(90deg, rgba(18, 36, 16, .92) 0%, rgba(18, 36, 16, .7) 35%, rgba(18, 36, 16, .1) 65%, rgba(18, 36, 16, 0) 100%),
        linear-gradient(0deg, rgba(18, 36, 16, .5) 0%, rgba(18, 36, 16, 0) 40%);
}
.page-hero.story-hero .page-hero-content { margin-left: 0; max-width: 640px; }
.page-hero.story-hero .sub { margin-top: 1.4rem; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.85rem); color: var(--leaf); line-height: 1.2; }
.page-hero.story-hero p:not(.sub) { margin-top: 1.1rem; max-width: 500px; }
.story-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.story-grid .story-text p:first-child { margin-top: 0; }
.story-left .story-tagline { margin-top: 1.8rem; }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .page-hero.story-hero { background-position: 70% center; }
    .page-hero.story-hero::before { background: linear-gradient(0deg, rgba(18, 36, 16, .95) 0%, rgba(18, 36, 16, .55) 45%, rgba(18, 36, 16, 0) 100%); }
}

/* Packages / Contact header: subtitle stays on one line (wraps only on narrow screens) */
.page-hero.plain p { max-width: none; text-wrap: nowrap; }
@media (max-width: 900px) { .page-hero.plain p { text-wrap: balance; } }

/* ---------- Packages cards: photo melts into the page green ---------- */
.pcard { background: var(--bg); box-shadow: none; border: 1px solid rgba(255, 255, 255, .06); }
.pcard::after {
    background:
        linear-gradient(0deg, var(--bg) 0%, rgba(18, 36, 16, .94) 22%, rgba(18, 36, 16, .6) 42%, rgba(18, 36, 16, 0) 66%),
        linear-gradient(180deg, rgba(18, 36, 16, .35) 0%, rgba(18, 36, 16, 0) 18%);
}
.pcard-icon { background: rgba(150, 200, 60, .16); color: var(--leaf); border: 1px solid rgba(150, 200, 60, .45); backdrop-filter: blur(6px); }

/* ---------- Mobile menu: compact type ---------- */
@media (max-width: 760px) {
    .mobile-nav { padding: 18px 20px 28px; }
    .mobile-nav ul { margin-top: 1.2rem; gap: 0; }
    .mobile-nav ul li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .mobile-nav ul a { display: block; padding: .95rem 0; font-size: 1.15rem; font-weight: 700; }
    .mobile-nav .btn { margin-top: 1.6rem; align-self: stretch; justify-content: center; font-size: .95rem; }
}
@media (max-width: 640px) {
    .pcard { aspect-ratio: auto; min-height: 480px; }
    .pcard-body { padding: 0 20px 22px; }
    .pill { font-size: .85rem; padding: .5rem .75rem; }
}

/* ---------- Final blend: closing CTA melts into the footer (no card edges) ---------- */
.cta-card {
    border-radius: 0; box-shadow: none; border: 0;
    background:
        linear-gradient(0deg, var(--bg-deep) 0%, rgba(17, 34, 17, 0) 40%),
        radial-gradient(60% 110% at 50% 0%, rgba(150, 200, 60, .16), transparent 70%),
        var(--bg);
}
footer { border-top: 0; }
main:has(.cta-card) + footer { margin-top: 0; padding-top: 40px; }
main:has(.cta-card) ~ footer { margin-top: 0; padding-top: 40px; }
