/* demos/dental/site.css
   ⚠️ NEW (Portfolio Demos)

   Alderbrook Dental — fictional independent practice, concept demo.

   WHY THIS FILE IS STANDALONE
   Shares no layout system with the other three demos. This is the only one
   of the four built on a light ground, and the only one that uses rounded
   geometry — used consistently as a calming device rather than sprinkled
   about, which is the difference between "soft" and "generic". Its
   signature: white/soft-grey section alternation, a geometric sans, a
   two-column hero with a floating hours chip, quiet bordered tiles, and a
   muted blue that never becomes corporate navy.

   It deliberately does NOT use: a dark hero, serif display type, hairline
   dividers on a dark ground, or uppercase headings — the devices that make
   the real-estate, restaurant and construction demos look like themselves.

   Contrast note: --blue (#31607d) on --paper and on --soft is the text
   pairing used for small labels; it was chosen dark enough to clear WCAG AA
   for normal-size text on both, since 'muted blue on white' is exactly
   where healthcare sites usually fail an audit.

   No inline <style> anywhere (D-003) — /demos/(.*) is a hash-free route.
*/

:root {
  --paper: #ffffff;
  --soft: #f2f6f8;
  --soft-deep: #e6eef3;
  --ink: #17242c;
  --ink-mid: #4a5c66;
  --blue: #31607d;
  --blue-deep: #21485f;
  --blue-wash: #dfeaf1;
  --line: #dbe4ea;
  --sand: #e8dbcd;

  --display: "Cabinet Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --apex-strip-bg: #17242c;
  --apex-strip-ink: #ffffff;
  --apex-strip-ink-dim: #a9bdc8;
  --apex-strip-line: rgba(255, 255, 255, 0.14);
  --apex-strip-accent: #7fb4d1;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
p { margin: 0; }
a { color: inherit; }

/* A18 (docs/website-quality-standard.md) -- every displayed phone number
   and email address is a real tel:/mailto: link, so a visitor on a phone
   places the call or opens a message with one tap instead of copying
   digits by hand. Deliberately identical to the surrounding text: these
   contact blocks were designed as data and this makes them actionable,
   not different. The underline appears on hover/focus so pointer and
   keyboard users still get an affordance. */
.ad-contactlink { color: inherit; text-decoration: none; }
.ad-contactlink:hover,
.ad-contactlink:focus-visible { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
}
h1 { font-size: clamp(36px, 5.4vw, 62px); }
h2 { font-size: clamp(27px, 3.4vw, 42px); }
h3 { font-size: clamp(18px, 1.8vw, 21px); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-deep); color: #fff;
  padding: 12px 20px; font-size: 14px; text-decoration: none;
}
.skip-link:focus { left: 0; }

.ad-wrap { width: min(1200px, 100% - clamp(28px, 8vw, 110px)); margin-inline: auto; }
.ad-wrap--narrow { width: min(820px, 100% - clamp(28px, 8vw, 110px)); }

.ad-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--blue);
}

.ad-lede, .ad-head__lede {
  margin-top: 18px;
  font-size: 17.5px;
  color: var(--ink-mid);
  max-width: 58ch;
}
.ad-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-mid);
  border-left: 3px solid var(--soft-deep);
  padding-left: 14px;
}

/* ---------- buttons ---------- */

.ad-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 10px;
  font-family: var(--text);
  font-size: 15.5px; font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.ad-btn--solid { background: var(--blue-deep); color: #fff; }
.ad-btn--solid:hover { background: var(--ink); }
.ad-btn--quiet { background: transparent; color: var(--blue-deep); border-color: var(--line); }
.ad-btn--quiet:hover { border-color: var(--blue); background: var(--soft); }

/* ---------- navigation ---------- */

.ad-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.ad-nav__inner {
  width: min(1200px, 100% - clamp(28px, 8vw, 110px));
  margin-inline: auto;
  display: flex; align-items: center; gap: 26px;
  min-height: 78px;
}

.ad-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.ad-logo__glyph { width: 30px; height: 30px; color: var(--blue); flex: none; }
.ad-logo__glyph svg { width: 100%; height: 100%; }
.ad-logo__text { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ad-logo__text em { font-style: normal; color: var(--blue); font-weight: 500; }

.ad-nav__links { display: flex; gap: 26px; }
.ad-nav__links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-mid); padding: 6px 0; }
.ad-nav__links a:hover { color: var(--blue-deep); }

.ad-nav__actions { display: flex; align-items: center; gap: 18px; }
/* Padded to a 44px tap target: on a practice site the header telephone
   number is the single most-tapped thing on a phone. */
.ad-nav__phone {
  font-size: 15px; font-weight: 600; text-decoration: none;
  color: var(--blue-deep); white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px;
}
.ad-nav__cta { min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* flex:none matters -- without it the burger is the flex item that gives
   way at 320px, and it was being squashed from 46px to 20px. */
.ad-burger {
  display: none; flex: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; place-items: center; gap: 4px;
}
.ad-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .22s ease, opacity .22s ease; }
.ad-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ad-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ad-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ad-mobile { background: var(--paper); border-top: 1px solid var(--line); }
.ad-mobile nav { display: flex; flex-direction: column; padding-bottom: 16px; }
.ad-mobile a {
  padding: 15px clamp(16px, 6vw, 40px);
  font-size: 16px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.ad-mobile__cta { color: var(--blue-deep); font-weight: 600; border-bottom: 0 !important; }

/* ---------- hero ---------- */

.ad-hero { background: linear-gradient(180deg, var(--soft) 0%, var(--paper) 100%); padding: clamp(52px, 7vw, 96px) 0 clamp(60px, 8vw, 104px); }
.ad-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 86px); align-items: center; }
.ad-hero h1 { margin-top: 16px; max-width: 14ch; }
.ad-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ad-hero__note { margin-top: 20px; font-size: 14.5px; color: var(--ink-mid); }

.ad-hero__art { position: relative; }
.ad-hero__art > svg { width: 100%; height: auto; border-radius: 20px; }

.ad-hours-chip {
  position: absolute;
  left: -18px;
  bottom: -22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px -26px rgba(23, 36, 44, 0.45);
}
.ad-hours-chip__label { font-size: 12px; font-weight: 600; color: var(--blue); }
.ad-hours-chip__value { font-family: var(--display); font-size: 19px; font-weight: 600; margin-top: 2px; }
.ad-hours-chip__sub { font-size: 13px; color: var(--ink-mid); margin-top: 2px; }

/* ---------- reassurance strip ---------- */

.ad-strip { background: var(--blue-deep); color: #fff; padding: 22px 0; }
.ad-strip__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 30px; }
.ad-strip__list li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; }
.ad-ico { flex: none; width: 22px; height: 22px; color: #9dc7de; }
.ad-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections ---------- */

.ad-sec { padding: clamp(64px, 8vw, 118px) 0; }
.ad-sec--soft { background: var(--soft); }

.ad-head { max-width: 60ch; margin-bottom: clamp(34px, 4vw, 54px); }
.ad-head h2 { margin-top: 14px; }
.ad-head--center { max-width: 46ch; margin-inline: auto; text-align: center; }

/* ---------- service tiles ---------- */

.ad-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ad-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px 30px;
  transition: border-color .22s ease, transform .22s ease;
}
.ad-tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.ad-tile__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-wash); color: var(--blue-deep);
  margin-bottom: 18px;
}
.ad-tile__ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ad-tile h3 { margin-bottom: 9px; }
.ad-tile p { color: var(--ink-mid); font-size: 15.5px; }

/* ---------- steps ---------- */

.ad-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ad-steps li {
  background: var(--paper);
  border-radius: 18px;
  padding: 28px 26px 30px;
}
.ad-steps__num {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-deep); color: #fff;
  font-family: var(--display); font-size: 16px; font-weight: 600;
  margin-bottom: 16px;
}
.ad-steps h3 { margin-bottom: 8px; }
.ad-steps p { color: var(--ink-mid); font-size: 15.5px; }

.ad-bring {
  margin-top: 22px;
  background: var(--paper);
  border-radius: 18px;
  border: 1px dashed var(--soft-deep);
  padding: 28px clamp(24px, 3vw, 34px) 30px;
}
.ad-bring h3 { margin-bottom: 16px; }
.ad-bring ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 34px; }
.ad-bring li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-mid); }
.ad-bring li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- philosophy ---------- */

.ad-philosophy { background: var(--blue-wash); padding: clamp(64px, 8vw, 112px) 0; }
.ad-philosophy__inner { max-width: 900px; }
.ad-philosophy h2 { margin-top: 16px; font-size: clamp(25px, 3.2vw, 40px); line-height: 1.24; }
.ad-philosophy__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 32px; }
.ad-philosophy__cols p { color: var(--blue-deep); font-size: 16.5px; }

/* ---------- team ---------- */

.ad-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ad-person__portrait { display: block; border-radius: 18px; overflow: hidden; background: var(--soft); }
.ad-person__portrait svg { width: 100%; height: auto; }
.ad-person h3 { margin-top: 20px; }
.ad-person__role { font-size: 13.5px; font-weight: 600; color: var(--blue); margin-top: 4px; }
.ad-person p:last-child { margin-top: 12px; color: var(--ink-mid); font-size: 15.5px; }

/* ---------- insurance ---------- */

.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 74px); align-items: start; }
.ad-checks { display: flex; flex-direction: column; }
.ad-checks li {
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 16px;
}
.ad-checks li:first-child { border-top: 1px solid var(--line); }
.ad-checks li::before {
  content: "";
  position: absolute; left: 0; top: 24px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- comfort ---------- */

.ad-comfort { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ad-comfort li { background: var(--paper); padding: 30px clamp(24px, 3vw, 36px) 34px; }
.ad-comfort h3 { margin-bottom: 10px; }
.ad-comfort p { color: var(--ink-mid); font-size: 15.5px; }

/* ---------- faq ---------- */

.ad-faq { border-top: 1px solid var(--line); }
.ad-faq__item { border-bottom: 1px solid var(--line); }
.ad-faq h3 { margin: 0; font-size: inherit; }
.ad-faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.ad-faq__q:hover { color: var(--blue-deep); }
.ad-faq__sign { position: relative; flex: none; width: 16px; height: 16px; }
.ad-faq__sign::before,
.ad-faq__sign::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.ad-faq__sign::before { width: 16px; height: 2px; }
.ad-faq__sign::after { width: 2px; height: 16px; }
.ad-faq__q[aria-expanded="true"] .ad-faq__sign::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.ad-faq__a { padding: 0 4px 24px; max-width: 68ch; }
.ad-faq__a p { color: var(--ink-mid); font-size: 16px; }

/* ---------- book ---------- */

.ad-book { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 118px) 0; }
.ad-book__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.ad-book h2 { margin: 14px 0 18px; }
.ad-book__copy > p { color: #b9c8d0; font-size: 16.5px; max-width: 44ch; }
.ad-book__copy strong { color: #fff; }

.ad-details { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.ad-details dt { font-size: 12.5px; font-weight: 600; color: #7fb4d1; }
.ad-details dd { margin-top: 4px; font-size: 15.5px; color: #dbe6eb; }

.ad-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 18px;
}
.ad-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ad-field { display: flex; flex-direction: column; gap: 7px; }
.ad-field label { font-size: 13px; font-weight: 600; color: #b9c8d0; }
.ad-field input,
.ad-field select,
.ad-field textarea {
  font-family: var(--text);
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}
.ad-field textarea { resize: vertical; min-height: 84px; }
.ad-field select { appearance: none; cursor: pointer; }
.ad-field input::placeholder, .ad-field textarea::placeholder { color: #8fa3ad; }
.ad-field input:focus, .ad-field select:focus, .ad-field textarea:focus { border-color: #7fb4d1; background: rgba(255, 255, 255, 0.1); }

.ad-form__go { background: #fff; color: var(--ink); margin-top: 4px; }
.ad-form__go:hover { background: #d7e6ee; }
.ad-form__status { font-size: 13.5px; color: #9dafb8; }
.ad-form__status.is-done { color: #9dc7de; }

/* ---------- footer ---------- */

.ad-footer { background: var(--soft); padding: clamp(50px, 6vw, 78px) 0 38px; border-top: 1px solid var(--line); }
.ad-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 38px; }
.ad-footer__mark { font-size: 22px; }
.ad-footer__line { margin-top: 12px; color: var(--ink-mid); font-size: 15px; max-width: 34ch; }
.ad-footer__head { font-family: var(--text); font-size: 13px; font-weight: 600; color: var(--blue); }
.ad-footer__list { margin-top: 10px; display: flex; flex-direction: column; gap: 0; font-size: 15px; color: var(--ink-mid); }
.ad-footer__list li { padding: 6px 0; }
.ad-footer__list a { text-decoration: none; display: inline-block; padding: 3px 0; }
.ad-footer__list a:hover { color: var(--blue-deep); }

.ad-footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--ink-mid);
  max-width: 92ch;
}
.ad-footer__legal strong { color: var(--ink); }
.ad-footer__legal a { color: var(--blue-deep); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .ad-nav__links { display: none; }
  .ad-burger { display: grid; }
  .ad-nav__cta { display: none; }

  .ad-tiles, .ad-team, .ad-steps { grid-template-columns: repeat(2, 1fr); }
  .ad-strip__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .ad-hero__inner { grid-template-columns: 1fr; }
  .ad-hero h1 { max-width: 18ch; }
  .ad-hero__art { order: -1; }
  .ad-hours-chip { left: auto; right: 12px; bottom: -18px; padding: 13px 18px; }

  .ad-philosophy__cols { grid-template-columns: 1fr; gap: 18px; }
  .ad-two { grid-template-columns: 1fr; }
  .ad-comfort { grid-template-columns: 1fr; }
  .ad-book__inner { grid-template-columns: 1fr; }
  .ad-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .ad-tiles, .ad-team, .ad-steps { grid-template-columns: 1fr; }
  .ad-strip__list { grid-template-columns: 1fr; gap: 12px; }
  .ad-bring ul { grid-template-columns: 1fr; }
  .ad-details, .ad-field-row { grid-template-columns: 1fr; }
  .ad-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .ad-hero__actions .ad-btn { width: 100%; }
  .ad-hours-chip { position: static; margin-top: 14px; box-shadow: none; }
}

/* At 320px (the narrowest phone still in real use) the header row --
   wordmark, telephone number, burger -- does not fit at full size. Rather
   than dropping the telephone number, which is the most valuable thing in
   a practice header, the whole row is tightened so all three survive. */
@media (max-width: 430px) {
  .ad-nav__inner { gap: 10px; min-height: 68px; }
  .ad-logo { gap: 8px; }
  .ad-logo__glyph { width: 25px; height: 25px; }
  .ad-logo__text { font-size: 16.5px; }
  .ad-nav__phone { font-size: 13.5px; }
}

/* =========================================================
   MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
