/* ==========================================================================
   base.css - structure shared by all three design variants.
   Every colour, font and rule weight comes from a custom property that
   assets/theme-a.css, theme-b.css and theme-c.css define. Edit layout here;
   edit look-and-feel in the theme files.
   ========================================================================== */

:root {
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --sect-y: clamp(52px, 9vw, 104px);
  --header-h: 74px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: 1.05;
  letter-spacing: var(--head-tracking);
}

/* --accent clears 5.31:1 on the ground, well past the 3:1 a focus ring needs */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
/* A .section makes its space with top padding, so landing on its edge showed
   the tail of the previous section under the header and then a blank band.
   Land on the content instead: the padding scrolls up out of view. */
section[id].section { scroll-margin-top: calc(var(--header-h) + 12px - var(--sect-y)); }
/* The dark bands carry their own padding: land them flush under the header
   rather than leaving a strip of page ground above them. */
section[id].urgent, section[id].contact { scroll-margin-top: var(--header-h); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 8px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px;
}

/* --- shared type helpers --- */
.kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em;
  color: var(--accent);
}

/* ============================ header ============================ */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: var(--header-blur);
  border-bottom: var(--rule-w) solid var(--rule-color);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center;
  gap: clamp(14px, 3vw, 40px);
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
/* No pictorial mark in the header. The name came from the red awning over the
   door, and a 2px red rule above the wordmark says that in the same hard-rule
   language the rest of the page is built from. The awning itself is drawn in
   assets/img/awning-mark.svg, reserved for square slots (favicon, avatars). */
.brand-text {
  display: flex; flex-direction: column; line-height: 1.05;
  border-top: 2px solid var(--accent); padding-top: 6px;
}
.brand-name {
  font-family: var(--font-head); font-weight: var(--brand-weight);
  font-size: 16px; letter-spacing: 0.01em;
}
.brand-sub {
  margin-top: 3px; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.19em; color: var(--ink-60);
}

.nav {
  display: flex; align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  margin-left: auto;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
}
.nav-urgent { color: var(--accent); }
.nav [aria-current="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }

.nav-drop { position: relative; }
.nav-drop-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: inherit;
}
.nav-drop-toggle svg { display: block; }
.nav-drop-menu {
  position: absolute; top: 100%; right: 0;
  width: 296px; padding-top: 16px;
}
.nav-drop-menu-inner {
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-color);
  box-shadow: var(--menu-shadow);
}
.drop-item { display: block; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.drop-item:last-child { border-bottom: 0; }
.drop-item:hover { background: var(--drop-hover-bg); color: var(--drop-hover-fg); }
.drop-title {
  display: block; font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: 15px; letter-spacing: -0.02em;
}
.drop-note {
  display: block; margin-top: 3px;
  font-size: 11.5px; letter-spacing: 0; color: var(--ink-60);
}
.drop-item:hover .drop-note { color: inherit; opacity: 0.8; }
/* One red does both jobs now. The AAHA red carries --accent-on as small text
   at 5.31:1, so an accent surface no longer needs a separate deeper fill.
   The hover state drops to --accent-hover, which is the only reason a second
   step still exists. */
.drop-item-accent { background: var(--accent); color: var(--accent-on); }
.drop-item-accent .drop-note { color: var(--accent-on); opacity: 0.9; }
.drop-item-accent:hover { background: var(--accent-hover); color: var(--accent-on); }
.drop-item-accent:hover .drop-note { color: var(--accent-on); }

@media (hover: hover) {
  .nav-drop:hover .nav-drop-menu[hidden],
  .nav-drop:focus-within .nav-drop-menu[hidden] { display: block; }
}

.btn-call {
  flex-shrink: 0;
  padding: 13px 20px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-family: var(--btn-font); font-weight: var(--btn-weight);
  font-size: 12.5px; letter-spacing: 0.09em;
}
.btn-call:hover { background: var(--btn-primary-hover); color: var(--btn-primary-fg); }

.nav-toggle {
  display: none; margin-left: auto;
  padding: 11px 14px; cursor: pointer;
  background: none; color: inherit;
  border: var(--rule-w) solid var(--rule-color);
  font-family: var(--btn-font); font-weight: var(--btn-weight);
  font-size: 11.5px; letter-spacing: 0.14em;
}

/* ============================ buttons ============================ */

.btn {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 60px; padding: 0 26px;
  font-family: var(--btn-font); font-weight: var(--btn-weight);
  font-size: var(--btn-size); letter-spacing: var(--btn-tracking);
}
.btn svg { display: block; flex: none; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn-primary:hover { background: var(--btn-primary-hover); color: var(--btn-primary-fg); }
.btn-outline { border: var(--rule-w) solid var(--outline-color); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 13px; letter-spacing: 0.08em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 4vw, 40px); }
.btn-phone-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn-phone-label small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.8; }

/* ============================ hero ============================ */

.hero { padding: clamp(40px, 7vw, 80px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 4vw, 48px); }
.hero h1 {
  margin-top: clamp(20px, 4vw, 32px);
  font-size: var(--h1); line-height: var(--h1-lh); letter-spacing: var(--h1-tracking);
  text-wrap: pretty;
}
.hero h1 em { font-style: var(--h1-em-style); color: var(--h1-em-color); }
.hero-rule { display: none; }
.hero .lede {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(16px, 3.4vw, 20px); line-height: 1.55;
  color: var(--ink-80); max-width: 32em; text-wrap: pretty;
}

.creds-label { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; color: var(--ink-60); }
.creds-list { margin-top: 14px; border-top: var(--rule-w) solid var(--rule-color); }
.creds-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.creds-list li:last-child { border-bottom: var(--rule-w) solid var(--rule-color); }
.creds-title { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 15.5px; }
.creds-note { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-65); }
.creds-foot { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--ink-75); }

/* ============================ urgent band ============================ */

.urgent { margin-top: clamp(34px, 7vw, 60px); background: var(--ink); color: var(--bg); }
.urgent-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(18px, 3vw, 32px); padding-block: clamp(24px, 4vw, 36px);
}
.urgent-copy { flex: 1 1 340px; }
.urgent-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; color: var(--accent-on-dark); }
.urgent p { margin-top: 9px; font-size: clamp(15px, 3vw, 17.5px); line-height: 1.55; max-width: 46em; opacity: 0.86; }
.urgent .btn-primary { background: var(--accent); color: var(--accent-on); }
.urgent .btn-primary:hover { background: var(--bg); color: var(--ink); }

/* ==================== section scaffolding ==================== */

.section { padding: var(--sect-y) 0 0; }
.section-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 3vw, 48px); align-items: end;
}
.section-head h2 { margin-top: 12px; font-size: var(--h2); }
.section-head h2:first-child { margin-top: 0; }
.section-note { font-size: 15px; line-height: 1.6; color: var(--ink-65); max-width: 30em; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.split-copy h2 { margin-top: 12px; font-size: var(--h2); }
.split-copy h2:first-child { margin-top: 0; }
.split-copy p { margin-top: 18px; font-size: 16px; line-height: 1.68; color: var(--ink-78); max-width: 36em; }

.numbered { margin-top: clamp(24px, 4vw, 34px); border-top: var(--rule-w) solid var(--rule-color); }
.numbered li {
  display: flex; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.5;
}
.numbered .n {
  flex: none; width: 2.2em;
  font-family: var(--font-head); font-weight: var(--head-weight);
  color: var(--accent);
}

/* --- image slots --- */
.media { margin: 0; position: relative; }
/* height: auto, or the height attribute the photos carry (so the page does not
   jump while they load) is taken literally and a 4:3 photo stands 1024px tall. */
.media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Photos show in colour, as tools/prep_photos.py writes them. */
.media.is-empty img { display: none; }
.media.is-empty::before {
  content: attr(data-placeholder);
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4 / 3; padding: 28px;
  border: 1px dashed var(--ink-40);
  color: var(--ink-55); font-size: 13px; line-height: 1.55;
}
.media figcaption { margin-top: 8px; font-size: 11.5px; color: var(--ink-55); }

/* --- doctor credentials --- */
.specs { margin-top: clamp(22px, 3vw, 30px); border-top: var(--rule-w) solid var(--rule-color); }
.specs li {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.5;
}
.specs .k {
  padding-top: 2px; font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: 12px; letter-spacing: 0.12em; color: var(--accent);
}
.certs { margin-top: 24px; }
.certs li {
  position: relative; margin-top: 10px; padding-left: 20px;
  font-size: 14px; line-height: 1.5; color: var(--ink-75);
}
.certs li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; background: var(--accent); }

/* ======================= service pillars ======================= */

.pillar { padding-top: clamp(34px, 5vw, 58px); }
.pillar + .pillar { margin-top: clamp(34px, 5vw, 58px); border-top: var(--rule-w) solid var(--rule-color); }
.pillar-tag { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pillar-no { font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; color: var(--accent); }
.pillar-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.19em; color: var(--ink-45); }
.pillar-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(14px, 3vw, 56px); margin-top: 14px; align-items: end;
}
.pillar h3 { font-size: var(--h3); }
.pillar-lede {
  margin: 0; align-self: end; max-width: 24em; font-weight: 500;
  font-size: clamp(17px, 3.2vw, 22px); line-height: 1.38; color: var(--accent);
}
.feats {
  margin-top: clamp(28px, 4vw, 50px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 clamp(28px, 5vw, 64px);
  border-top: var(--rule-w) solid var(--rule-color);
}
.feat { padding: 21px 0; border-bottom: 1px solid var(--line); }
.feat-t { font-family: var(--feat-font); font-weight: var(--feat-weight); font-size: 15.5px; }
.feat-d { margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--ink-70); }
.pillar-cta { margin-top: 24px; }

/* ========================= first visit ========================= */

.steps-grid {
  margin-top: clamp(28px, 5vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.step-n {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-on);
  font-family: var(--font-head); font-weight: var(--head-weight); font-size: 19px;
}
.step h3 { margin-top: 18px; font-size: 20px; line-height: 1.25; }
.step p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-70); }

/* ============================ visit ============================ */

.visit-grid {
  margin-top: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 56px);
}
.hours { border-top: var(--rule-w) solid var(--rule-color); }
.hours li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.hours .d { color: var(--ink-70); }
.hours .t { font-family: var(--font-head); font-weight: var(--head-weight); }
.hours li.is-closed .t { color: var(--ink-45); }
.visit-note { margin-top: 22px; font-size: 15px; line-height: 1.65; color: var(--ink-72); max-width: 34em; }
.map { border: var(--rule-w) solid var(--rule-color); min-height: 360px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 356px; border: 0; filter: var(--map-filter); }

/* =========================== journal =========================== */

.posts {
  margin-top: clamp(24px, 4vw, 42px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 clamp(28px, 5vw, 56px);
  border-top: var(--rule-w) solid var(--rule-color);
}
.post { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; color: var(--accent); }
.post-title { margin-top: 10px; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 19px; line-height: 1.22; }
.post-note { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--ink-65); }

/* =========================== contact =========================== */

.contact { margin-top: var(--sect-y); background: var(--ink); color: var(--bg); }
.contact-inner {
  padding-block: clamp(48px, 9vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
.contact-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; color: var(--accent-on-dark); }
.contact-num {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(40px, 8vw, 84px); line-height: 0.95; letter-spacing: -0.03em;
}
.contact-num:hover { color: var(--accent-on-dark); }
.contact p { margin-top: 18px; font-size: 16px; line-height: 1.6; opacity: 0.82; max-width: 26em; }
.contact-facts li { padding: 14px 0; border-bottom: 1px solid var(--rule-on-dark); font-size: 14.5px; line-height: 1.55; }
.contact-facts li:first-child { border-top: 1px solid var(--rule-on-dark); }
.contact-facts .k { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; opacity: 0.6; }
.contact a:hover { color: var(--accent-on-dark); }

/* Archivo carries no Hangul, so Korean text would fall back to whatever the
   browser picks. Name the fallback instead of leaving it to chance, and reset
   the tracking: Korean has no uppercase and does not take letter-spacing. This
   is why the Hangul only ever appears in normal-weight running text here, never
   inside one of the tracked uppercase labels. */
.ko {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic",
               "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
}

/* ============================== faq ============================== */

/* <details> rather than a scripted accordion: every answer stays in the DOM
   whether it is open or not, so a crawler - and an answer engine - reads all of
   them without running anything, and the section works with JavaScript off. */
.faq-list { margin-top: clamp(22px, 3.5vw, 34px); border-top: var(--rule-w) solid var(--rule-color); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 22px; gap: 18px; align-items: start;
  padding: 20px 0;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(16px, 2.1vw, 19px); line-height: 1.35; letter-spacing: -0.015em;
}
.faq-item > summary::-webkit-details-marker { display: none; }
/* Both marks occupy the same grid cell so they superimpose into a plus. Left
   to auto-placement they land in separate rows, which both breaks the glyph and
   makes every closed row twice as tall as it needs to be. */
.faq-item > summary::before,
.faq-item > summary::after {
  content: ""; grid-column: 2; grid-row: 1;
  justify-self: end; align-self: start; margin-top: 0.52em;
  width: 13px; height: var(--rule-w); background: var(--accent);
}
.faq-item > summary::before {
  transform: rotate(90deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.faq-item[open] > summary::before { transform: rotate(0deg); opacity: 0; }
.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.faq-item > p {
  margin: 0 0 22px; max-width: 46em;
  font-size: clamp(15px, 1.9vw, 16.5px); line-height: 1.65; color: var(--ink-72);
}
@media (prefers-reduced-motion: reduce) {
  .faq-item > summary::before, .faq-item > summary::after { transition: none; }
}

/* ======================== accreditations ======================== */

.trust {
  margin-top: var(--sect-y);
  padding-top: clamp(30px, 5vw, 46px);
  border-top: var(--rule-w) solid var(--rule-color);
}
.trust-h {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
}
.trust-note { margin: 12px 0 0; max-width: 34em; font-size: 15px; line-height: 1.6; color: var(--ink-65); }
/* Four marks: one row of four, two by two, or one column. Never auto-fit, which
   left the fourth alone on a second row at laptop widths. */
.trust-row {
  margin: clamp(24px, 4vw, 38px) 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 40px);
}
@media (min-width: 561px) { .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-item { display: flex; flex-direction: column; }
/* Third-party marks keep their own colours. They only work as trust signals if
   they look like the marks people already recognise, and the issuing bodies
   require it. A white plaque contains them so the AAHA crimson, the Cat
   Friendly teal-and-gold and the FelineVMA blue do not fight the page's one
   red - and it gives the two raster badges, both shot on white, a clean edge. */
.plaque {
  --plaque-img-h: 76px;               /* 104 - 2px border - 28px padding */
  background: #ffffff; border: 1px solid var(--ink-40);
  height: 104px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: center;
}
/* The cap is an absolute length, deliberately. The AAHA file is a viewBox-only
   SVG with no intrinsic size, so it takes whatever box it is given - and a
   percentage height does not give it one: on a grid item in an auto-sized row a
   percentage height is a cyclic dependency, so the browser resolves it to auto
   and the image grew to 648x644 inside a 104px plaque. An absolute max-height
   cannot fail to resolve, whatever the asset or the layout around it. */
.plaque img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: var(--plaque-img-h);
}
.trust-name {
  margin-top: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
}
.trust-body { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-70); }

/* =========================== footer =========================== */

.site-footer { padding: clamp(36px, 6vw, 64px) 0 clamp(40px, 6vw, 68px); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-awning { display: block; flex: none; }
.footer-h { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; color: var(--ink-55); }
.footer-body { margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--ink-72); }
.footer-links a { display: block; margin-top: 7px; }
.footer-legal {
  margin-top: clamp(28px, 4vw, 48px); padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12px; color: var(--ink-50);
}

/* ======================= mobile call bar ======================= */

/* Every call to action on this site is a phone call, so on a phone this bar is
   the most important element on the page. It runs on --ink rather than
   --surface: it is then the one persistently dark object on a light page and
   can never blend into whatever section is scrolled behind it. */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; grid-template-columns: 1.7fr 1fr 1fr;
  background: var(--ink);
  border-top: var(--rule-w) solid var(--rule-color);
  box-shadow: 0 -6px 22px rgba(32, 30, 29, 0.20);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px;
  color: var(--bg);
  font-family: var(--btn-font); font-weight: var(--btn-weight);
  font-size: 13.5px; letter-spacing: 0.08em;
  border-left: 1px solid var(--rule-on-dark);
}
.callbar a:first-child { border-left: 0; }
.callbar a:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: -5px; }
.callbar .primary {
  background: var(--accent); color: var(--accent-on);
  font-size: 15px; letter-spacing: 0.03em;
}
.callbar .primary:hover,
.callbar .primary:active { background: var(--accent-hover); color: var(--accent-on); }

/* ========================== text dialog ========================== */
/* Opened by the TEXT links; see site.js. The urgent line sits on the accent
   band at the top so it is read before the message box. */

.text-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 18px 50px rgba(32, 30, 29, 0.35);
}
.text-dialog::backdrop { background: rgba(32, 30, 29, 0.55); }
.text-urgent {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  padding: 16px 22px;
  background: var(--accent); color: var(--accent-on);
  font-size: 15px; line-height: 1.4;
}
.text-urgent a {
  font-family: var(--btn-font); font-weight: var(--btn-weight);
  font-size: 17px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px;
}
.text-urgent a:hover { color: var(--accent-on); }
.text-form { padding: 22px 22px 24px; }
.text-form h2 { font-size: 28px; }
.text-lede { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-65); }
.text-form label { display: block; margin-top: 18px; font-size: 13px; font-weight: 600; }
.text-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink);
  background: #fff; border: 1px solid var(--ink-40); border-radius: 0; resize: vertical;
}
.text-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.text-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-65); }
.text-note strong { color: var(--ink); font-weight: 600; }
.text-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.text-actions [aria-disabled="true"] { opacity: 0.45; }

/* ========================== responsive ========================== */

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0;
    background: var(--surface);
    border-bottom: var(--rule-w) solid var(--rule-color);
    box-shadow: var(--menu-shadow);
    font-size: 13px;
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav-drop-toggle { padding: 15px var(--pad); }
  .nav-drop-menu { position: static; width: auto; padding-top: 0; }
  .nav-drop-menu-inner { border: 0; border-top: 1px solid var(--line); box-shadow: none; background: transparent; }
  .drop-item { padding-left: var(--pad); }
  .nav-toggle { display: inline-flex; }
  .btn-call { display: none; }
}

/* The call bar takes over at exactly the width where .btn-call leaves the
   header. Before this it appeared only under 760px, which left every viewport
   between 761 and 980px - unfolded foldables and small tablets among them -
   with no call action anywhere on screen. */
@media (max-width: 980px) {
  .callbar { display: grid; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 760px) {
  .contact-num { font-size: clamp(36px, 11vw, 56px); }
  .specs li { grid-template-columns: 76px 1fr; gap: 12px; }
}

/* --- phone: the page has to land in the first screenful ------------------- */
@media (max-width: 620px) {
  .hero { padding-top: clamp(28px, 6vw, 40px); }
  .hero .lede { margin-top: 18px; }

  /* Both actions go full width and stack, call first. A 62px target is
     comfortable for a thumb and keeps the two buttons from splitting a row. */
  .cta-row { gap: 8px; margin-top: 24px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; min-height: 62px; }

  /* The three accreditations are the fastest trust signal on a small screen,
     so the block gets the accent rule and reads as one unit. */
  .hero .creds { border-top: var(--rule-w) solid var(--accent); padding-top: 16px; }
  .creds-label { color: var(--accent); }
  .creds-list li { padding: 14px 0; }

  .trust-row { gap: 20px; }
  .plaque { height: 88px; padding: 12px 16px; --plaque-img-h: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
