/* ============================================================
 Dr. Aryan Mehta · Cardiology, Sample Doctor Website
 Distinct identity: warm ivory + clinical green + soft sage.
 ============================================================ */
:root {
 --bg: #F8F4EC;
 --bg-2: #EFE9DC;
 --paper: #FFFFFF;
 --ink: #133029;
 --ink-2: #1F4A40;
 --green: #2A7F62;
 --green-soft: #DCEFE6;
 --green-deep: #1B5944;
 --sage: #B7CFC2;
 --rose: #E07A5F;
 --rose-soft: #FBE2D9;
 --gold: #C8A24A;
 --line: #E5DFCF;
 --muted: #5C6B62;

 --radius-lg: 28px;
 --radius-md: 18px;
 --radius-sm: 12px;
 --shadow-soft: 0 12px 36px -16px rgba(19, 48, 41, .18);
 --shadow-pop: 0 28px 60px -22px rgba(19, 48, 41, .32);

 --max: 1180px;
 --gut: clamp(20px, 4vw, 44px);

 --f-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
 --f-body: 'Manrope', system-ui, sans-serif;
 --f-mono: 'Space Grotesk', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
 font-family: var(--f-body);
 font-size: 16px; line-height: 1.65;
 color: var(--ink); background: var(--bg);
 overflow-x: hidden;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
 font-family: var(--f-display);
 font-weight: 500;
 letter-spacing: -0.012em;
 line-height: 1.08;
 color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; }
em { font-style: italic; color: var(--green-deep); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow {
 display: inline-flex; align-items: center; gap: 8px;
 font-family: var(--f-mono); font-weight: 500;
 font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
 color: var(--green-deep);
}
.eyebrow::before {
 content: ""; width: 22px; height: 1.5px; background: var(--green-deep);
}

/* ===== NAV ===== */
.nav {
 position: sticky; top: 0; z-index: 60;
 backdrop-filter: blur(14px);
 -webkit-backdrop-filter: blur(14px);
 background: rgba(248,244,236, 0.86);
 border-bottom: 1px solid rgba(19, 48, 41, 0.07);
}
.nav-inner {
 display: flex; align-items: center; justify-content: space-between;
 padding: 16px 0;
}
.brand {
 display: flex; align-items: center; gap: 12px;
}
.brand-mark {
 width: 42px; height: 42px; border-radius: 50%;
 background: var(--ink);
 color: var(--bg);
 display: grid; place-items: center;
 font-family: var(--f-display); font-weight: 500; font-size: 18px;
 border: 1.5px solid var(--gold);
}
.brand-name {
 display: grid;
 font-family: var(--f-display); font-weight: 500; font-size: 19px;
 letter-spacing: -0.01em;
 line-height: 1.1;
}
.brand-tag {
 font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
 color: var(--muted); font-weight: 500;
}
.nav-links { display: none; gap: 26px; align-items: center; font-size: 14px; }
.nav-links a:hover { color: var(--green-deep); }
.nav-links a.active { color: var(--green-deep); }
.nav-cta {
 font-family: var(--f-mono); font-weight: 500;
 background: var(--ink); color: var(--bg);
 padding: 11px 20px; border-radius: 999px;
 font-size: 13px; letter-spacing: 0.04em;
 transition: background .25s ease, transform .25s ease;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }
@media (min-width: 880px) { .nav-links { display: flex; } }
.menu-btn { display: inline-grid; place-items: center; padding: 10px; border-radius: 8px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 4px 0; }
@media (min-width: 880px) { .menu-btn { display: none; } }
.mobile-menu {
 display: none; flex-direction: column; gap: 6px; padding: 14px var(--gut);
 background: var(--paper); border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mobile-menu a:last-child { border-bottom: 0; }

/* ===== HERO ===== */
.hero {
 padding: clamp(60px, 8vw, 110px) 0 clamp(60px, 8vw, 110px);
 position: relative; overflow: hidden;
}
.hero-grid {
 display: grid; gap: clamp(32px, 5vw, 56px);
 grid-template-columns: 1fr;
 align-items: center;
}
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin: 18px 0 22px; }
.hero h1 em { font-family: var(--f-display); font-style: italic; color: var(--green-deep); }
.hero-sub {
 font-size: 1.1rem; max-width: 540px;
 color: #2A4036; margin-bottom: 28px;
}
.hero-cta {
 display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
 margin-bottom: 36px;
}
.btn-primary {
 display: inline-flex; align-items: center; gap: 10px;
 background: var(--ink); color: var(--bg);
 padding: 16px 28px; border-radius: 999px;
 font-family: var(--f-mono); font-weight: 500;
 font-size: 14px; letter-spacing: 0.04em;
 box-shadow: var(--shadow-pop);
 transition: background .25s ease, transform .25s ease;
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost {
 display: inline-flex; align-items: center; gap: 10px;
 padding: 14px 22px; border-radius: 999px;
 border: 1.5px solid rgba(19, 48, 41, 0.2);
 font-family: var(--f-mono); font-weight: 500; font-size: 13px;
 transition: border-color .25s ease, background .25s ease;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(19, 48, 41, 0.04); }
.hero-stats {
 display: flex; gap: 28px; flex-wrap: wrap;
 padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-stats div { line-height: 1.2; }
.hero-stats strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; color: var(--ink); }
.hero-stats span { font-size: 12px; color: var(--muted); font-family: var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

.hero-img-wrap {
 position: relative;
 border-radius: var(--radius-lg);
 overflow: hidden;
 aspect-ratio: 4/5;
 background: var(--bg-2);
 box-shadow: var(--shadow-pop);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-wrap::after {
 content: ""; position: absolute; inset: 0;
 background: linear-gradient(180deg, transparent 50%, rgba(19, 48, 41, 0.18));
}
.hero-badge {
 position: absolute; left: 18px; bottom: 18px;
 background: rgba(248,244,236, 0.96); backdrop-filter: blur(10px);
 border-radius: 14px; padding: 14px 18px;
 display: flex; gap: 12px; align-items: center;
 box-shadow: 0 12px 30px -10px rgba(19, 48, 41, 0.3);
}
.hero-badge .dot {
 width: 10px; height: 10px; border-radius: 50%;
 background: var(--green); box-shadow: 0 0 0 4px rgba(42,127, 98, 0.18);
}
.hero-badge span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; }

/* Decorative ring */
.hero::before {
 content: ""; position: absolute;
 width: 280px; height: 280px; border-radius: 50%;
 border: 1.5px solid rgba(42,127, 98, 0.18);
 top: 12%; right: -90px;
 z-index: 0; pointer-events: none;
}
.hero::after {
 content: ""; position: absolute;
 width: 180px; height: 180px; border-radius: 50%;
 background: radial-gradient(circle, rgba(200,162, 74, 0.18), transparent 60%);
 bottom: 10%; left: -40px;
 filter: blur(20px); z-index: 0;
}

/* ===== Section base ===== */
section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.sec-head { max-width: 720px; margin: 0 auto 56px; }
.sec-head.center { text-align: center; }
.sec-head h2 { margin-top: 14px; }
.sec-head p { margin-top: 16px; font-size: 1.05rem; color: #344A41; }

/* ===== About strip ===== */
.about-strip {
 background: var(--paper);
 border-top: 1px solid var(--line);
 border-bottom: 1px solid var(--line);
}
.about-grid {
 display: grid; gap: 40px;
 grid-template-columns: 1fr;
 align-items: center;
}
@media (min-width: 980px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; } }
.about-img {
 border-radius: var(--radius-lg); overflow: hidden;
 aspect-ratio: 3/4; max-height: 540px;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text blockquote {
 margin: 22px 0;
 border-left: 2px solid var(--green); padding-left: 18px;
 font-family: var(--f-display); font-style: italic;
 font-size: 1.3rem; line-height: 1.5; color: var(--ink-2);
}
.signature {
 font-family: var(--f-display); font-style: italic; font-size: 1.4rem;
 color: var(--green-deep); margin-top: 14px;
}
.cred-list {
 list-style: none; display: grid; gap: 10px; margin-top: 22px;
 font-size: 14.5px;
}
.cred-list li {
 display: flex; gap: 12px; align-items: flex-start;
 padding: 10px 0; border-bottom: 1px solid var(--line);
}
.cred-list li::before {
 content: ""; width: 6px; height: 6px; border-radius: 50%;
 background: var(--green); margin-top: 9px; flex: none;
}
.cred-list li:last-child { border-bottom: 0; }

/* ===== Services / cards ===== */
.cards {
 display: grid; gap: 22px;
 grid-template-columns: 1fr;
}
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
 background: var(--paper); border: 1px solid var(--line);
 border-radius: var(--radius-md); padding: 28px;
 transition: transform .3s ease, box-shadow .3s ease;
 position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card .icon {
 width: 48px; height: 48px; border-radius: 12px;
 background: var(--green-soft); color: var(--green-deep);
 display: grid; place-items: center; font-size: 20px; font-weight: 700;
 margin-bottom: 18px;
 font-family: var(--f-display);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; color: #44574E; line-height: 1.65; }
.card a.more {
 display: inline-flex; align-items: center; gap: 6px;
 margin-top: 16px; font-family: var(--f-mono); font-weight: 500; font-size: 13px;
 color: var(--green-deep);
 border-bottom: 1px solid var(--green-deep);
 padding-bottom: 2px;
}
.card a.more:hover { color: var(--ink); border-color: var(--ink); }

/* Image card variant */
.card.img-card { padding: 0; overflow: hidden; }
.card.img-card .imgbox { aspect-ratio: 4/3; overflow: hidden; }
.card.img-card .imgbox img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card.img-card:hover .imgbox img { transform: scale(1.04); }
.card.img-card .pad { padding: 24px; }

/* ===== Treatment hero (used on treatment pages) ===== */
.treat-hero {
 background: linear-gradient(180deg, var(--bg-2), var(--bg));
 padding: clamp(60px, 7vw, 100px) 0 clamp(40px, 5vw, 60px);
}
.treat-hero-grid {
 display: grid; gap: 36px;
 grid-template-columns: 1fr;
 align-items: center;
}
@media (min-width: 980px) { .treat-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.treat-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0; }
.treat-hero-img {
 border-radius: var(--radius-lg); overflow: hidden;
 aspect-ratio: 4/3; box-shadow: var(--shadow-pop);
}
.treat-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.section-split {
 display: grid; gap: 40px;
 grid-template-columns: 1fr;
}
@media (min-width: 880px) { .section-split { grid-template-columns: 1.1fr 0.9fr; } }
.section-split .text p { margin-bottom: 14px; color: #34453D; font-size: 15.5px; }
.section-split .text h3 { margin-top: 24px; margin-bottom: 10px; }
.section-split ul { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.section-split ul li { padding-left: 22px; position: relative; font-size: 15px; color: #34453D; }
.section-split ul li::before {
 content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 4px;
}

.aside-card {
 background: var(--paper); border: 1px solid var(--line);
 border-radius: var(--radius-md); padding: 28px;
 position: sticky; top: 100px;
}
.aside-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.aside-card p { font-size: 14.5px; margin-bottom: 14px; color: #44574E; }

/* ===== Tools (sample site) ===== */
.tool {
 background: var(--paper); border-radius: var(--radius-md);
 padding: 28px; border: 1px solid var(--line);
 display: flex; flex-direction: column;
}
.tool h3 { margin-bottom: 8px; font-size: 1.2rem; }
.tool p { font-size: 14.5px; color: #44574E; margin-bottom: 18px; }
.tool .body { display: grid; gap: 12px; }
.tool label { font-size: 13.5px; color: #34453D; display: flex; align-items: center; gap: 10px; }
.tool input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green-deep); }
.tool input[type=text], .tool input[type=number], .tool select, .tool textarea {
 padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg);
 width: 100%;
}
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: none; border-color: var(--green-deep); background: var(--paper); }
.tool .btn {
 background: var(--ink); color: var(--bg); padding: 12px 20px;
 border-radius: 999px; font-family: var(--f-mono); font-weight: 500;
 font-size: 13px; letter-spacing: 0.04em;
 margin-top: 16px; align-self: flex-start;
 transition: background .25s ease;
}
.tool .btn:hover { background: var(--green-deep); }
.tool .out {
 margin-top: 16px; padding: 14px 16px;
 background: var(--green-soft); border-radius: 12px;
 font-size: 14px; color: var(--green-deep); display: none; line-height: 1.55;
}
.tool .out.show { display: block; }
.tool .out strong { display: block; color: var(--ink); margin-bottom: 6px; }

/* ===== Quote / testimonial ===== */
.quote-card {
 background: var(--paper); border: 1px solid var(--line);
 border-radius: var(--radius-md); padding: 28px;
}
.quote-card p {
 font-family: var(--f-display); font-size: 1.2rem; line-height: 1.5;
 color: var(--ink-2); font-style: italic;
}
.quote-card .who {
 display: flex; align-items: center; gap: 12px;
 margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.quote-card .who .av {
 width: 42px; height: 42px; border-radius: 50%;
 background: var(--green-soft); color: var(--green-deep);
 display: grid; place-items: center; font-family: var(--f-display); font-weight: 500;
}
.quote-card .who span { font-size: 13px; color: var(--muted); display: block; font-family: var(--f-mono); letter-spacing: 0.04em; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
 background: var(--paper); border: 1px solid var(--line);
 border-radius: var(--radius-md); padding: 4px 24px;
 margin-bottom: 14px;
}
.faq-item[open] { border-color: var(--green-deep); }
.faq-item summary {
 list-style: none; cursor: pointer;
 padding: 22px 0;
 font-family: var(--f-display); font-weight: 500; font-size: 1.15rem;
 display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-deep); font-family: var(--f-mono); font-size: 22px; transition: transform .25s ease; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 22px; color: #44574E; font-size: 15px; }

/* ===== CTA banner ===== */
.cta-banner {
 background: var(--ink); color: var(--bg);
 border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 56px);
 position: relative; overflow: hidden;
}
.cta-banner::before {
 content: ""; position: absolute; inset: 0;
 background: radial-gradient(circle at 100% 0, rgba(42,127, 98, 0.32), transparent 50%);
}
.cta-banner-grid {
 position: relative; display: grid; gap: 24px; align-items: center;
 grid-template-columns: 1fr;
}
@media (min-width: 880px) { .cta-banner-grid { grid-template-columns: 1.4fr 0.6fr; } }
.cta-banner h2 { color: var(--bg); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-banner p { color: rgba(248,244,236, 0.78); margin-top: 12px; }
.cta-banner .btn-primary { background: var(--bg); color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--gold); }

/* ===== Maps ===== */
.map-card {
 background: var(--paper); border-radius: var(--radius-md); overflow: hidden;
 border: 1px solid var(--line);
}
.map-card iframe { width: 100%; aspect-ratio: 16/8; border: 0; display: block; }

/* ===== Footer ===== */
footer {
 background: var(--ink); color: rgba(248,244,236, 0.72);
 padding: 70px 0 24px;
}
.footer-grid {
 display: grid; gap: 32px;
 grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 {
 font-family: var(--f-mono); font-weight: 500; font-size: 11px;
 color: var(--bg); letter-spacing: 0.16em; text-transform: uppercase;
 margin-bottom: 18px;
}
footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
footer ul a:hover { color: var(--gold); }
footer p { font-size: 14px; line-height: 1.65; color: rgba(248,244,236, 0.6); margin-top: 14px; }
footer .brand-mark { background: var(--bg); color: var(--ink); border-color: var(--gold); }
.footer-bottom {
 margin-top: 50px; padding-top: 22px;
 border-top: 1px solid rgba(248,244,236, 0.08);
 display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
 font-size: 12px; font-family: var(--f-mono); color: rgba(248,244,236, 0.5); letter-spacing: 0.04em;
}

/* ===== Page header (inner pages) ===== */
.page-head {
 padding: clamp(60px, 7vw, 100px) 0 clamp(40px, 5vw, 60px);
 background: linear-gradient(180deg, var(--bg-2), var(--bg));
 text-align: center;
}
.page-head h1 { margin: 14px 0 18px; }
.page-head p { max-width: 640px; margin: 0 auto; color: #34453D; font-size: 1.05rem; }
.crumbs {
 font-family: var(--f-mono); font-size: 12px; color: var(--muted);
 letter-spacing: 0.06em; text-transform: uppercase;
}
.crumbs a { color: var(--green-deep); }
.crumbs a:hover { color: var(--ink); }

/* ===== Floating bars (sample site) ===== */
.float-side-sample {
 position: fixed; right: 18px; bottom: 24px;
 display: none; flex-direction: column; gap: 10px;
 z-index: 80;
}
.float-side-sample a {
 display: inline-flex; align-items: center; gap: 8px;
 padding: 12px 18px; border-radius: 999px;
 background: var(--ink); color: var(--bg);
 font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.04em;
 box-shadow: var(--shadow-pop);
 transition: transform .25s ease, background .25s ease;
}
.float-side-sample a:hover { transform: translateY(-2px); }
.float-side-sample .wa { background: #25D366; }
.float-side-sample .gold { background: var(--gold); color: var(--ink); }
@media (min-width: 880px) { .float-side-sample { display: flex; } }

.float-bottom-sample {
 position: fixed; left: 0; right: 0; bottom: 0;
 background: var(--paper); border-top: 1px solid var(--line);
 padding: 10px 12px;
 display: flex; gap: 8px; z-index: 80;
 box-shadow: 0 -8px 24px -10px rgba(19, 48, 41, 0.18);
}
.float-bottom-sample a {
 flex: 1; padding: 12px 8px; border-radius: 12px;
 display: flex; align-items: center; justify-content: center; gap: 6px;
 font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.04em;
}
.float-bottom-sample .call { background: var(--green-soft); color: var(--green-deep); }
.float-bottom-sample .wa { background: #25D366; color: white; }
.float-bottom-sample .gold { background: var(--gold); color: var(--ink); }
@media (min-width: 880px) { .float-bottom-sample { display: none; } }
@media (max-width: 880px) { body { padding-bottom: 70px; } }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: all .8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: all .7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {
 animation-duration: 0.001ms !important; transition-duration: 0.001ms !important;
 }
}

/* ===== Form ===== */
.form-grid {
 display: grid; gap: 36px;
 grid-template-columns: 1fr;
}
@media (min-width: 980px) { .form-grid { grid-template-columns: 0.9fr 1.1fr; } }
.form-card {
 background: var(--paper); border-radius: var(--radius-md);
 border: 1px solid var(--line);
 padding: 36px;
}
.field { margin-bottom: 16px; }
.field label {
 display: block; font-size: 11.5px; font-family: var(--f-mono); font-weight: 500;
 color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase;
 margin-bottom: 8px;
}
.field input, .field select, .field textarea {
 width: 100%; padding: 14px 16px;
 border: 1.5px solid var(--line); border-radius: 12px;
 background: var(--bg); transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-deep); background: var(--paper); }
.field textarea { resize: vertical; min-height: 110px; }
.form-card button[type=submit] {
 background: var(--ink); color: var(--bg);
 width: 100%; padding: 16px; border-radius: 12px;
 font-family: var(--f-mono); font-weight: 500; font-size: 13px;
 letter-spacing: 0.06em; text-transform: uppercase;
 transition: background .25s ease;
}
.form-card button[type=submit]:hover { background: var(--green-deep); }

/* ===== Helper ===== */
.center { text-align: center; }
.tag-pill {
 display: inline-flex; align-items: center; gap: 8px;
 background: var(--green-soft); color: var(--green-deep);
 padding: 6px 12px; border-radius: 999px;
 font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}
.row-2 { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

/* Numbered process */
.steps {
 display: grid; gap: 18px;
 grid-template-columns: 1fr;
 counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.step {
 background: var(--paper); border: 1px solid var(--line);
 padding: 28px; border-radius: var(--radius-md);
 position: relative;
}
.step::before {
 counter-increment: step;
 content: counter(step, decimal-leading-zero);
 font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em;
 color: var(--green); display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: #44574E; }

/* ===== WhatsApp icon ===== */
.wa-ic {
  width: 18px; height: 18px; display: inline-block; flex: none;
  vertical-align: middle;
}
.float-side-sample .wa .wa-ic { width: 20px; height: 20px; }
.float-bottom-sample .wa .wa-ic { width: 16px; height: 16px; }

/* ===== Marquee / scrolling strip ===== */
.marquee {
  background: var(--ink); color: rgba(248,244,236,0.78);
  overflow: hidden; padding: 18px 0;
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  letter-spacing: -0.01em;
  border-top: 1px solid rgba(248,244,236,0.08);
  border-bottom: 1px solid rgba(248,244,236,0.08);
}
.marquee-track { display: flex; gap: 60px; animation: scroll-x 32s linear infinite; white-space: nowrap; align-items: center; }
.marquee-track .gold { color: var(--gold); }
.marquee-track .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin: 0 24px; vertical-align: middle; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee.light { background: var(--bg-2); color: var(--ink); border-color: var(--line); }
.marquee.light .gold { color: var(--green-deep); }
.marquee.light .dot { background: var(--green); }

/* ===== Animated counters strip ===== */
.counters {
  display: grid; gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counter {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px 22px;
  text-align: left; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.counter:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.counter::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--green));
}
.counter strong {
  display: block; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.counter span {
  display: block; margin-top: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}

/* ===== Philosophy / pull section ===== */
.pull {
  text-align: center; max-width: 880px; margin: 0 auto;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.35;
  color: var(--ink-2); letter-spacing: -0.012em;
}
.pull em { color: var(--green-deep); font-style: italic; font-weight: 400; }
.pull-attribution {
  display: block; margin-top: 22px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

/* ===== Conditions list (2 columns) ===== */
.conditions {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .conditions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .conditions { grid-template-columns: 1fr 1fr 1fr; } }
.conditions a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 1.15rem;
  letter-spacing: -0.01em;
  transition: padding .3s ease, color .3s ease;
}
.conditions a::after {
  content: "→"; opacity: 0; transform: translateX(-6px);
  transition: opacity .3s ease, transform .3s ease; color: var(--green-deep);
}
.conditions a:hover { padding-left: 12px; color: var(--green-deep); }
.conditions a:hover::after { opacity: 1; transform: translateX(0); }

/* ===== Floating call out / pull-quote band ===== */
.band {
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(60px, 7vw, 100px) 0;
  text-align: center;
}

/* ===== Image gallery 2-up ===== */
.gallery2 {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .gallery2 { grid-template-columns: 1fr 1fr; } }
.gallery2 .frame {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3;
  position: relative; box-shadow: var(--shadow-soft);
}
.gallery2 .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery2 .frame:hover img { transform: scale(1.04); }
.gallery2 .frame.tall { aspect-ratio: 3/4; }

/* ===== Floating ribbon (parallax-ish) ===== */
.ribbon {
  position: relative; padding: 80px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow: hidden;
}
.ribbon-bg {
  position: absolute; inset: 0; pointer-events: none;
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(6rem, 16vw, 18rem);
  color: rgba(42,127,98,0.07); white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.04em; user-select: none;
  animation: drift-slow 24s linear infinite;
}
@keyframes drift-slow {
  0% { transform: translateX(-5%); }
  100% { transform: translateX(5%); }
}

/* ===== Numbered milestones ===== */
.timeline {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  margin-top: 32px;
  border-left: 1.5px solid var(--line);
}
.tl-item {
  padding: 22px 0 22px 32px; position: relative;
  border-bottom: 1px solid var(--line);
}
.tl-item::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--bg);
  position: absolute; left: -8px; top: 28px;
  box-shadow: 0 0 0 1.5px var(--green);
}
.tl-item .yr {
  display: block; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-deep);
  margin-bottom: 6px; font-weight: 500;
}
.tl-item h4 {
  font-family: var(--f-display); font-weight: 500; font-size: 1.2rem;
  color: var(--ink); margin-bottom: 6px;
}
.tl-item p { font-size: 14.5px; color: #44574E; }

/* ===== Hero image stack overlay (parallax-style, no JS) ===== */
.hero-img-wrap::before {
  content: ""; position: absolute; left: -10px; top: -10px; right: -10px; bottom: -10px;
  border: 1.5px solid rgba(200,162,74,0.45); border-radius: calc(var(--radius-lg) + 6px);
  pointer-events: none;
  animation: ring-pulse 4s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.01); }
}

/* ===== Metric badge group ===== */
.metric-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}
@media (min-width: 720px) { .metric-row { grid-template-columns: repeat(4, 1fr); } }
.metric-row .metric {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
  text-align: center;
}
.metric strong { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--ink); font-weight: 500; }
.metric span { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ===== Readability bump (v3) ===== */
html { font-size: 17px; }
body { font-size: 1.02rem; line-height: 1.7; }
p { font-size: 1.02rem; }
.hero-sub { font-size: 1.18rem; }
.card p, .quote-card p { font-size: 15.5px; line-height: 1.65; }
.cred-list li { font-size: 15.5px; }
.section-split .text p, .section-split ul li { font-size: 16px; line-height: 1.7; }
.tool p, .tool label { font-size: 14.5px; }
.faq-item summary { font-size: 1.15rem; }
.faq-item p { font-size: 16px; line-height: 1.7; }
.field input, .field select, .field textarea { font-size: 15.5px; }
.eyebrow { font-size: 13px; }
footer ul, footer p { font-size: 15px; }
.contact-row, .contact-info p { font-size: 15.5px; }
.tl-item h4 { font-size: 1.25rem; }
.tl-item p { font-size: 15px; }
.counter strong { font-size: clamp(2.6rem, 4.2vw, 3.6rem); }
.counter span { font-size: 12px; }
.metric strong { font-size: 1.85rem; }
.process-step p { font-size: 15px; }
.aside-card p { font-size: 15.5px; }
.crumbs { font-size: 13px; }


/* ============================================================
   DEMO BANNER — sticky 1-line link back to Medora
   ============================================================ */
.demo-banner {
  background: linear-gradient(90deg, #133029, #1B5944);
  color: #F8F4EC;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(248,244,236,0.12);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.demo-banner span { color: rgba(248,244,236,0.85); }
.demo-banner span strong { color: var(--gold); font-weight: 600; }
.demo-banner a {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid rgba(200,162,74,0.5);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.demo-banner a:hover { color: #F8F4EC; border-color: #F8F4EC; }

.nav { top: 0; }

/* ============================================================
   SAMPLE MOBILE — Single clean responsive pass (≤879px)
   Premium clinic feel, full content, equal rhythm.
   ============================================================ */
@media (max-width: 879px) {

  /* Container + section rhythm */
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 {
    font-size: clamp(1.55rem, 6vw, 2.2rem);
    line-height: 1.18;
  }
  .sec-head p { font-size: 0.98rem; line-height: 1.65; margin-top: 12px; }
  .eyebrow { font-size: 12px; }

  /* DEMO BANNER mobile: still 1 line, slightly smaller */
  .demo-banner {
    padding: 8px 14px;
    font-size: 11.5px;
    gap: 10px;
  }
  .demo-banner span, .demo-banner span strong, .demo-banner a {
    font-size: 11.5px;
  }

  /* NAV — clean compact 3-element row */
  .nav-inner {
    padding: 12px 0;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand {
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }
  .brand-mark {
    width: 36px; height: 36px;
    font-size: 14px;
    flex: 0 0 36px;
    border-width: 1px;
  }
  .brand-name {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
    font-size: 15px;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
  }
  .brand-name .brand-tag {
    margin-top: 1px;
    font-size: 8.5px;
    letter-spacing: 0.10em;
    line-height: 1.1;
  }
  .nav-cta {
    padding: 9px 14px;
    font-size: 12px;
    flex: 0 0 auto;
    line-height: 1;
    white-space: nowrap;
  }
  .menu-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    padding: 0;
    flex: 0 0 40px;
    background: rgba(19,48,41,0.04);
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
  }
  .menu-btn:hover { background: rgba(19,48,41,0.08); }
  .menu-btn.active { background: var(--ink); }
  .menu-btn.active span { background: var(--bg); }
  .menu-btn span {
    display: block;
    width: 18px; height: 1.6px;
    background: var(--ink);
    margin: 3px 0;
    transition: background .2s;
  }
  .nav-links { display: none; }
  .mobile-menu {
    background: var(--paper);
    border-bottom: 2px solid var(--green-deep);
    box-shadow: 0 8px 24px -10px rgba(19,48,41,0.18);
    padding: 16px 20px;
    z-index: 70;
  }
  .mobile-menu a {
    padding: 12px 0;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a:last-child { border-bottom: 0; }

  /* HERO — stacked, image visible, stats clean */
  .hero { padding: 40px 0 48px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.6rem);
    line-height: 1.12;
    margin: 14px 0 18px;
  }
  .hero-sub {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    width: 100%;
  }
  .hero-cta a {
    width: 100%;
    flex: 1 1 100%;
    padding: 14px 20px;
    font-size: 13px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    letter-spacing: 0.04em;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .hero-stats div { line-height: 1.2; }
  .hero-stats strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
  }
  .hero-stats span {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .hero-img-wrap {
    aspect-ratio: 4/5;
    max-height: 480px;
    width: 100%;
    margin-top: 8px;
  }
  .hero-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .hero-badge {
    left: 14px; bottom: 14px;
    padding: 10px 14px;
    font-size: 11px;
    gap: 10px;
  }

  /* MARQUEE */
  .marquee {
    padding: 14px 0;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  }

  /* CARDS (services, treatments) */
  .cards { gap: 16px; }
  .card { padding: 24px; }
  .card .icon {
    width: 44px; height: 44px;
    font-size: 18px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .card h3 { font-size: 1.05rem; margin-bottom: 8px; }
  .card p { font-size: 14px; line-height: 1.6; }
  .card a.more { font-size: 12.5px; margin-top: 14px; }

  /* PAGE HEAD (inner pages) */
  .page-head { padding: 50px 0 32px; }
  .page-head h1 {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    line-height: 1.15;
  }
  .page-head p { font-size: 0.98rem; line-height: 1.65; }

  /* TREATMENT HERO */
  .treat-hero { padding: 40px 0; }
  .treat-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .treat-hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    line-height: 1.16;
  }

  /* SECTION SPLIT */
  .section-split { grid-template-columns: 1fr; gap: 28px; }
  .section-split .text p, .section-split ul li {
    font-size: 14.5px;
    line-height: 1.7;
  }
  .section-split .text h3 { font-size: 1.15rem; margin-top: 22px; }

  /* TOOLS */
  .tool { padding: 24px; }
  .tool h3 { font-size: 1.1rem; }
  .tool p { font-size: 14px; line-height: 1.6; }
  .tool input[type=text], .tool input[type=number], .tool select, .tool textarea {
    padding: 11px 14px; font-size: 15px;
  }

  /* QUOTE CARD */
  .quote-card { padding: 24px; }
  .quote-card p { font-size: 1.05rem; line-height: 1.55; }
  .quote-card .who { gap: 12px; margin-top: 20px; padding-top: 16px; }

  /* FAQ */
  .faq-item { padding: 4px 20px; }
  .faq-item summary {
    font-size: 1rem;
    padding: 18px 0;
    line-height: 1.4;
  }
  .faq-item p {
    font-size: 14.5px;
    line-height: 1.65;
    padding-bottom: 18px;
  }

  /* CTA BANNER */
  .cta-banner { padding: 36px 22px; border-radius: 22px; }
  .cta-banner-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cta-banner h2 {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    line-height: 1.2;
  }
  .cta-banner p { font-size: 14px; margin-top: 10px; }
  .cta-banner-grid > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .cta-banner .btn-primary, .cta-banner .btn-ghost {
    width: 100%;
    padding: 13px 18px;
    font-size: 12.5px;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    line-height: 1;
    letter-spacing: 0.04em;
  }
  .cta-banner .btn-ghost {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* MAP */
  .map-card iframe { aspect-ratio: 4/3; }

  /* COUNTERS */
  .counters { grid-template-columns: 1fr 1fr; gap: 14px; }
  .counter { padding: 22px 18px; }
  .counter strong { font-size: clamp(1.85rem, 6vw, 2.4rem); }
  .counter span { font-size: 10.5px; margin-top: 8px; }

  /* CONDITIONS */
  .conditions { grid-template-columns: 1fr; }
  .conditions a { padding: 18px 4px; font-size: 1rem; }

  /* TIMELINE */
  .timeline { margin-top: 28px; }
  .tl-item { padding: 22px 0 22px 28px; }
  .tl-item h4 { font-size: 1.1rem; }
  .tl-item p { font-size: 14.5px; line-height: 1.6; }

  /* PULL / philosophy */
  .pull { font-size: clamp(1.4rem, 5.5vw, 2rem); line-height: 1.4; }

  /* GALLERY */
  .gallery2 { grid-template-columns: 1fr; gap: 16px; }

  /* FORM */
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 24px 20px; }
  .field input, .field select, .field textarea {
    padding: 12px 14px;
    font-size: 15px;
  }
  .field label { font-size: 11px; }
  .form-card button[type=submit] {
    padding: 14px;
    font-size: 12.5px;
  }

  /* FOOTER — centered, classy */
  footer { padding: 50px 0 90px; text-align: center; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid > div { display: flex; flex-direction: column; align-items: center; }
  footer .brand { justify-content: center; }
  footer h4 { font-size: 11px; margin-bottom: 14px; letter-spacing: 0.16em; }
  footer ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    list-style: none;
    padding: 0;
  }
  footer ul li { text-align: center; }
  footer p {
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 320px;
    margin: 12px auto 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 11.5px;
    text-align: center;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
  }

  /* FLOATING BOTTOM BAR — compact, classy */
  body { padding-bottom: 76px; }
  .float-side-sample { display: none; }
  .float-bottom-sample {
    padding: 8px 12px;
    gap: 8px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -8px 24px -10px rgba(19,48,41,0.18);
  }
  .float-bottom-sample a {
    flex: 1;
    padding: 12px 6px;
    font-size: 12px;
    border-radius: 12px;
    gap: 5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
  }
  .float-bottom-sample a span { line-height: 1; font-size: 12px; }
  .float-bottom-sample .wa-ic { width: 14px; height: 14px; }
  .float-bottom-sample .call { background: var(--green-soft); color: var(--green-deep); }
  .float-bottom-sample .wa { background: #25D366; color: white; }
  .float-bottom-sample .gold { background: var(--gold); color: var(--ink); }

  /* SAMPLE-specific layout fixes */
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-text blockquote { font-size: 1.15rem; line-height: 1.5; }
  .signature { font-size: 1.25rem; }

  /* aside-card on small screens not sticky */
  .aside-card { position: static; padding: 24px; }
}

/* Tiny phones */
@media (max-width: 380px) {
  .brand-name { font-size: 14px; }
  .brand-name .brand-tag { font-size: 8px; }
  .nav-cta { padding: 8px 12px; font-size: 11.5px; }
  .menu-btn { width: 36px; height: 36px; }
  .menu-btn span { width: 16px; }
}
