/* Virtual Veterinary — shared styles */
:root {
  --bg: #fbf8f3;
  --bg-2: #f3efe7;
  --surface: #ffffff;
  --ink: #14211f;
  --ink-2: #3c4a47;
  --muted: #66736f;
  --line: #e6e1d8;
  --brand: #0e6b63;
  --brand-ink: #0a4f49;
  --brand-soft: #e2f1ee;
  --accent: #e9805a;
  --accent-soft: #fbe9e1;
  --on-brand: #ffffff;
  --warn-bg: #fff3e2;
  --warn-line: #f0c27e;
  --warn-ink: #6b3d00;
  --ok-bg: #e5f4ef;
  --ok-ink: #0a4f49;
  --err-bg: #fde6e2;
  --err-ink: #a12a1b;
  --shadow-sm: 0 1px 2px rgba(20,33,31,.06);
  --shadow: 0 2px 4px rgba(20,33,31,.04), 0 18px 40px -12px rgba(20,33,31,.16);
  --radius: 18px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1413; --bg-2: #131c1a; --surface: #172220; --ink: #edf2f0; --ink-2: #c5d0cd; --muted: #98a6a2;
    --line: #26332f; --brand: #45c3b5; --brand-ink: #7fd9ce; --brand-soft: #16332f; --accent: #f29a78; --accent-soft: #3a2219;
    --on-brand: #06201d; --warn-bg: #2a1f10; --warn-line: #7d5520; --warn-ink: #f6d6a6;
    --ok-bg: #15302c; --ok-ink: #9fe3d9; --err-bg: #3a1714; --err-ink: #f4a69c;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -12px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1413; --bg-2: #131c1a; --surface: #172220; --ink: #edf2f0; --ink-2: #c5d0cd; --muted: #98a6a2;
  --line: #26332f; --brand: #45c3b5; --brand-ink: #7fd9ce; --brand-soft: #16332f; --accent: #f29a78; --accent-soft: #3a2219;
  --on-brand: #06201d; --warn-bg: #2a1f10; --warn-line: #7d5520; --warn-ink: #f6d6a6;
  --ok-bg: #15302c; --ok-ink: #9fe3d9; --err-bg: #3a1714; --err-ink: #f4a69c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -12px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0 0 14px; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
section { padding: 84px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }
.section-head { max-width: 680px; margin-bottom: 40px; }

/* Setup banner (only shown while config.js is incomplete) */
.setup-bar { display: none; background: #7a1d12; color: #fff; font-size: .85rem; padding: 8px 16px; text-align: center; }
.setup-bar.show { display: block; }

/* Emergency strip */
.er { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: var(--warn-ink); font-size: .92rem; }
.er .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.er svg { flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.08rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--on-brand); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
.lbl-short { display: none; }
@media (max-width: 480px) {
  .lbl-full { display: none; } .lbl-short { display: inline; }
  .site-header .wrap { gap: 12px; }
  .logo { font-size: 1rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-ink); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hero-grid > div:first-child { padding-top: 56px; }
@media (max-width: 960px) { .hero-grid > div:first-child { padding-top: 0; } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 em { font-style: italic; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-2); font-weight: 500; }
.chips svg { color: var(--brand); flex: none; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: 28px; }
@media (max-width: 520px) { .form-card { padding: 22px 18px; } }
.form-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

/* Forms */
form { display: grid; gap: 14px; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type=email], input[type=text], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 0; border-color: var(--brand); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .row-2 { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin: 0; }
.seg legend { padding: 0; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; font-weight: 600; cursor: pointer; background: var(--bg); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--brand-ink); }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.seg label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.form-note { display: none; padding: 14px 16px; border-radius: 12px; font-size: .95rem; line-height: 1.5; }
.form-note.show { display: block; }
.form-note.ok { background: var(--ok-bg); color: var(--ok-ink); }
.form-note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.form-note.err { background: var(--err-bg); color: var(--err-ink); }
.fine { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--brand); opacity: .9; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }

/* Bands */
.band { background: var(--bg-2); }
.band-dark { background: var(--brand-ink); color: #eaf6f4; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted, .band-dark p { color: #cfe7e3; }
:root[data-theme="dark"] .band-dark { background: #0b2a27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band-dark { background: #0b2a27; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Quote / stat */
.stat-line { display: flex; gap: 22px; align-items: flex-start; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat-line .big { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); white-space: nowrap; }
.stat-line p { margin: 0; color: var(--ink-2); }
.stat-line cite { display: block; margin-top: 6px; font-style: normal; font-size: .82rem; color: var(--muted); }

/* Mock request card (illustrative) */
.mock { padding: 22px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.mock dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 16px; font-size: .95rem; }
.mock dt { color: var(--muted); }
.mock dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.timeline li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.timeline .dot.on { background: var(--brand); color: var(--on-brand); }

/* Who we work with */
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.pills li { padding: 9px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, #fff 25%, transparent); font-weight: 600; font-size: .95rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 28px 26px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.25rem; }
.plan .price { font-family: var(--serif); font-size: 1.7rem; color: var(--brand); margin: 2px 0 10px; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }

/* FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 20px 2px; font-weight: 650; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
details > div { padding: 0 2px 20px; color: var(--ink-2); max-width: 720px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 26px; }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { margin: 0 0 12px; color: var(--ink); font-size: .9rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.legal { border-top: 1px solid var(--line); padding-top: 22px; font-size: .82rem; line-height: 1.6; }
.legal p { margin: 0 0 8px; max-width: 900px; }

/* Long-form legal pages */
.doc { max-width: 780px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.doc h2 { font-family: var(--sans); font-size: 1.2rem; letter-spacing: 0; margin-top: 34px; }
.doc p, .doc li { color: var(--ink-2); }

/* ---------- Photo hero (slow drift; still for reduced motion) ---------- */
.hero.photo { background: #0b2a27; }
.hero.photo::before, .hero.photo::after { display: none; }
.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-photo::before { content: ""; position: absolute; inset: -3%; background: url("img/hero-vet.jpg") 68% 38% / cover no-repeat; animation: hero-drift 30s ease-in-out infinite alternate; will-change: transform; }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero-photo::before { background-image: image-set(url("img/hero-vet.webp") type("image/webp"), url("img/hero-vet.jpg") type("image/jpeg")); }
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,32,29,.94) 0%, rgba(7,32,29,.84) 36%, rgba(7,32,29,.42) 68%, rgba(7,32,29,.30) 100%); }
@keyframes hero-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-2%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-photo::before { animation: none; } }
.hero.photo h1 { color: #fff; }
.hero.photo h1 em { color: #9fe3d9; }
.hero.photo .lead { color: #d9e9e5; }
.hero.photo .eyebrow { color: #9fe3d9; }
.hero.photo .chips li { color: #eef6f4; }
.hero.photo .chips svg { color: #9fe3d9; }
.hero.photo .hero-note { color: #c9dcd8; }
.hero.photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero.photo .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 960px) {
  .hero-photo { bottom: auto; height: 640px; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .hero-photo::before { background-position: 74% 30%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(7,32,29,.80) 0%, rgba(7,32,29,.78) 55%, #0b2a27 100%); }
}

/* Four-option and two-option segmented choices */
.seg.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg.seg-2 { grid-template-columns: repeat(2, 1fr); }

/* Checklist card (video visits) */
.checklist { list-style: none; margin: 0; padding: 28px 30px; display: grid; gap: 18px; }
.checklist li { position: relative; padding-left: 36px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6b63' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checklist b { color: var(--ink); }
:root[data-theme="dark"] .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd9ce' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd9ce' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); } }

[hidden] { display: none !important; }

/* Wordmark: serif name with the brand-colored italic "Veterinary" */
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.01em; color: var(--ink); }
.wordmark em { color: var(--brand); font-weight: 700; }
.site-footer .wordmark { font-size: 1.2rem; }
@media (max-width: 400px) { .wordmark { font-size: 1.16rem; } .logo { gap: 8px; } .logo svg { width: 30px; height: 30px; } }
