/* Travel2Doctor site styles. Shared across all generated pages.
   Design language carried over from the concierge widget (teal #0f766e) and
   the approved prototype: clinical paper, editorial serif headings, mono for
   verifiable data. Light + dark, both first-class. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper: #f4f5f2; --surface: #fff; --surface-sunk: #eef0ec;
  --ink: #14201e; --ink-muted: #566462; --ink-faint: #8a9693;
  --teal: #0f766e; --teal-deep: #0b5a54; --teal-wash: #e4efed; --teal-line: #bfd8d3;
  --ochre: #9a6b2e; --ochre-wash: #f2ead9; --ochre-line: #ddc9a3;
  --line: #dce1de; --line-soft: #e7ebe8;
  --shadow: 0 1px 2px rgb(20 32 30 / 6%), 0 8px 24px rgb(20 32 30 / 6%);
  --radius: 10px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --maxw: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1614; --surface: #16211f; --surface-sunk: #101a18;
    --ink: #e8ece9; --ink-muted: #9fb0ac; --ink-faint: #6d7d7a;
    --teal: #4fb3a6; --teal-deep: #7fcfc4; --teal-wash: #16302c; --teal-line: #245049;
    --ochre: #cf9d5a; --ochre-wash: #2c2416; --ochre-line: #4a3d22;
    --line: #263531; --line-soft: #1d2a27;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
  }
}
:root[data-theme="light"] {
  --paper: #f4f5f2; --surface: #fff; --surface-sunk: #eef0ec;
  --ink: #14201e; --ink-muted: #566462; --ink-faint: #8a9693;
  --teal: #0f766e; --teal-deep: #0b5a54; --teal-wash: #e4efed; --teal-line: #bfd8d3;
  --ochre: #9a6b2e; --ochre-wash: #f2ead9; --ochre-line: #ddc9a3;
  --line: #dce1de; --line-soft: #e7ebe8;
  --shadow: 0 1px 2px rgb(20 32 30 / 6%), 0 8px 24px rgb(20 32 30 / 6%);
}
:root[data-theme="dark"] {
  --paper: #0e1614; --surface: #16211f; --surface-sunk: #101a18;
  --ink: #e8ece9; --ink-muted: #9fb0ac; --ink-faint: #6d7d7a;
  --teal: #4fb3a6; --teal-deep: #7fcfc4; --teal-wash: #16302c; --teal-line: #245049;
  --ochre: #cf9d5a; --ochre-wash: #2c2416; --ochre-line: #4a3d22;
  --line: #263531; --line-soft: #1d2a27;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--teal-deep); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--teal-deep); }
.sample-tag { font-size: 0.72rem; color: var(--ochre); font-weight: 600; }

/* draft ribbon */
.draft-ribbon {
  background: var(--ochre-wash); color: var(--ochre); border-bottom: 1px solid var(--ochre-line);
  text-align: center; font-size: 0.8rem; padding: 0.4rem 1rem; font-weight: 600;
}

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; height: 60px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand .dot { color: var(--teal); }
.site-nav { display: flex; gap: 0.15rem; margin-left: auto; flex-wrap: wrap; align-items: center; }
.site-nav a { font-size: 0.88rem; font-weight: 500; color: var(--ink-muted); text-decoration: none; padding: 0.4rem 0.7rem; border-radius: 7px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-sunk); }
.site-nav a.cta { color: #fff; background: var(--teal); }
.site-nav a.cta:hover { background: var(--teal-deep); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; border-radius: 8px; padding: 0.65rem 1.15rem; border: 1px solid transparent; text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal-line); }
.btn-ghost:hover { background: var(--teal-wash); }

/* pill */
.pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.2rem 0.6rem; border-radius: 999px; }
.pill-verified { background: var(--teal-wash); color: var(--teal-deep); border: 1px solid var(--teal-line); }
.pill-unclaimed { background: var(--ochre-wash); color: var(--ochre); border: 1px solid var(--ochre-line); }

/* cards / layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }

main { padding: 3rem 0 4rem; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); letter-spacing: -0.02em; }
.hero .lede { margin-top: 1.1rem; font-size: 1.18rem; color: var(--ink-muted); max-width: 34ch; }
.hero-cta { display: flex; gap: 0.75rem; margin-top: 1.7rem; flex-wrap: wrap; }
.trust-panel { padding: 1.5rem; }
.trust-panel .big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.trust-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line-soft); }
.trust-row:first-of-type { border-top: 0; }
.trust-row .label { color: var(--ink-muted); font-size: 0.92rem; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 2rem; } }

/* feature cards */
.feature { padding: 1.3rem 1.4rem; }
.feature .ic { font-size: 1.3rem; }
.feature h3 { font-size: 1.08rem; margin: 0.6rem 0 0.35rem; }
.feature p { color: var(--ink-muted); font-size: 0.94rem; }

/* section head */
.sec-head { margin-bottom: 1.4rem; }
.sec-head h2 { font-size: 1.7rem; margin-top: 0.4rem; }

/* article */
.article { max-width: 42rem; margin: 0 auto; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.015em; margin: 0.5rem 0 0.5rem; }
.article .byline { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 2rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.article p { margin: 0 0 1.15rem; font-size: 1.06rem; }
.article h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
.article ul { margin: 0 0 1.15rem; padding-left: 1.2rem; }
.article li { margin: 0.3rem 0; font-size: 1.02rem; }
.article blockquote { border-left: 3px solid var(--teal); background: var(--teal-wash); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.6rem 0; font-size: 0.98rem; }
.article blockquote p:last-child { margin-bottom: 0; }
.article blockquote strong { color: var(--teal-deep); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.source-note { font-size: 0.82rem; color: var(--ink-faint); }
.source-note h2 { font-size: 1rem; color: var(--ink-muted); }

/* guide index cards */
.guide-card { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; color: inherit; }
.guide-card:hover { border-color: var(--teal-line); }
.guide-card h3 { font-size: 1.15rem; }
.guide-card p { color: var(--ink-muted); font-size: 0.94rem; }
.guide-card .more { color: var(--teal-deep); font-weight: 600; font-size: 0.9rem; margin-top: auto; }

/* route + price */
.breadcrumb { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 1rem; }
.route-grid { display: grid; grid-template-columns: 1fr 20rem; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .route-grid { grid-template-columns: 1fr; } }
.price-block { padding: 1.4rem; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.7rem 0; border-top: 1px solid var(--line-soft); }
.price-row:first-of-type { border-top: 0; }
.price-now { font-family: var(--mono); font-weight: 600; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.price-was { font-family: var(--mono); color: var(--ink-faint); text-decoration: line-through; font-size: 0.9rem; }
.methodology { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--surface-sunk); border-radius: 8px; font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; }
.methodology .mono { color: var(--ink); }

/* clinic cards */
.clinic-list { display: flex; flex-direction: column; gap: 1rem; }
.clinic { position: relative; overflow: hidden; padding: 1.25rem 1.35rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: start; }
.clinic.verified { border-color: var(--teal-line); }
.clinic.verified::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal); }
.clinic.unclaimed { background: var(--surface-sunk); border-style: dashed; box-shadow: none; }
.clinic h4 { font-size: 1.1rem; }
.clinic.unclaimed h4 { color: var(--ink-muted); }
.clinic .meta { color: var(--ink-muted); font-size: 0.9rem; margin-top: 0.3rem; }
.clinic .side { text-align: right; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.unclaimed-note { font-size: 0.8rem; color: var(--ochre); max-width: 22ch; text-align: right; line-height: 1.4; }
@media (max-width: 620px) { .clinic { grid-template-columns: 1fr; } .clinic .side, .unclaimed-note { text-align: left; align-items: flex-start; } }

/* enquiry form */
.enquiry { padding: 1.75rem; }
.enquiry h2 { font-size: 1.35rem; }
.enquiry p.sub { color: var(--ink-muted); font-size: 0.95rem; margin-top: 0.35rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); width: 100%;
}
.field textarea { min-height: 5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.75rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--ink-faint); font-size: 0.88rem; }
.site-footer a { color: var(--ink-muted); }
.site-footer .cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.site-footer .disclaimer { margin-top: 1.5rem; max-width: 60ch; line-height: 1.5; }
