/* ==========================================================================
   Z Dental — Components — v2 "Two Voices"
   The primitive layer. Loads AFTER brand/colors_and_type.css and depends on
   its tokens. Page-specific section styles stay in the page's own <style>.

   WHAT LIVES HERE
   Page shell · utility bar · nav · footer · buttons (3 variants + on-navy
   inversions) · chip · ghost link · form field · the collision heading ·
   the photo bleed · rules, plates, dotted leaders · motion.

   THE LAWS THIS FILE ENFORCES
   · Ground is #FFFFFF. No cream, ivory, beige, off-white.
   · One saturated hue: the logomark blue ramp. No yellow/gold/amber/orange/
     red/coral/pink/maroon/brown, not even in error and status states.
   · #00ADFF is text only on navy; on white it is graphics only.
   · Radius 0-2px (4px ceiling). 999px is portraits and dots only.
   · No mono-uppercase eyebrows, no "§ 01", no italic accent words, no grain.
   · Structure comes from rules, not elevation. No hover lifts, no transforms.
   ========================================================================== */

/* ==========================================================================
   PAGE SHELL
   ========================================================================== */

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Full-bleed band that still aligns its contents to the page grid. */
.band > .wrap { max-width: var(--page-max); }

.plate-stone-pale { background: var(--z-stone-pale); }

/* Skip link — visible only on focus. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--z-deep); color: var(--z-white);
  font-family: var(--font-grotesk); font-size: var(--fs-ui); font-weight: 600;
  padding: 12px 20px; border-radius: var(--radius-sm); border-bottom: 0;
}
.skip-link:focus { left: var(--gutter); top: 8px; }

/* ==========================================================================
   UTILITY BAR — 42px, navy, quiet. Scrolls away under the sticky nav.
   ========================================================================== */

.utility-bar {
  height: 42px;
  background: var(--z-deep);
  color: rgba(255,255,255,0.74);
  font-family: var(--font-grotesk);
  font-size: var(--fs-mono);
  letter-spacing: 0;
  text-transform: none;          /* v1 shouted here in mono uppercase. It no longer does. */
}
.utility-bar .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
}
.utility-bar .u-right { display: flex; align-items: center; gap: 26px; }
.utility-bar a {
  color: rgba(255,255,255,0.74);
  border-bottom: 0;
  transition: color 120ms ease-out;
}
.utility-bar a:hover { color: var(--z-white); border-bottom: 0; }
.utility-bar .u-strong { color: rgba(255,255,255,0.92); }
/* The one spark on this bar. Text on navy — legal at 6.9:1. */
.utility-bar .u-cta,
.utility-bar a.u-cta { color: var(--z-blue-pop); font-weight: 600; }
.utility-bar a.u-cta:hover { color: var(--z-white); }

/* ==========================================================================
   NAV — 92px, white, one hairline. Sticky; gains no shadow, ever.
   ========================================================================== */

.site-nav {
  height: 92px;
  background: var(--z-white);
  border-bottom: 1px solid var(--ink-10);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

/* The logo is never a flex item that can be stretched. ~46% of the PNG's box
   is transparent padding, so 52px of box is ~28px of visible mark — that is
   calibrated against 15px nav links. Do not "fix" it smaller. */
.nav-mark { display: inline-block; line-height: 0; border-bottom: 0; flex: none; }
.nav-mark img { height: 52px; width: auto; display: block; flex: none; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  font-family: var(--font-grotesk);
  font-size: var(--fs-ui); font-weight: 500; letter-spacing: 0;
  color: var(--z-deep);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color 120ms ease-out;
}
/* Active/hover is a spark underline. Never a fill. */
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).is-active { border-bottom-color: var(--z-blue-pop); color: var(--z-deep); }

.nav-toggle { display: none; }

/* Mobile sheet — full-height white, items at 20px, CTA pinned to the bottom. */
.nav-sheet-open { overflow: hidden; }

/* ==========================================================================
   BUTTONS
   Primary — navy fill.        Secondary — navy ring.     Ghost — spark underline.
   On navy each inverts. Radius 2px. No transform, no lift, no scale.
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-grotesk);
  font-size: var(--fs-ui); font-weight: 600; letter-spacing: 0; line-height: 1.2;
  padding: 15px 26px;
  border: 0; border-bottom: 0; border-radius: var(--radius-sm);
  background: var(--z-deep); color: var(--z-white);
  text-decoration: none; cursor: pointer;
  transition: background 120ms ease-out, box-shadow 120ms ease-out, color 120ms ease-out;
}
.btn:hover {
  background: var(--z-deep-dark); color: var(--z-white);
  box-shadow: inset 0 -3px 0 var(--z-blue-pop);
  border-bottom: 0;
}
.btn:active { transform: none; }   /* v1 scaled on press. v2 does not move. */

/* --- Primary. `.btn-primary` and `.btn-deep` are v1 names kept as aliases so
       the existing pages resolve to the one real primary. ------------------ */
.btn-primary, .btn-deep { background: var(--z-deep); color: var(--z-white); }
.btn-primary:hover, .btn-deep:hover {
  background: var(--z-deep-dark); color: var(--z-white);
  box-shadow: inset 0 -3px 0 var(--z-blue-pop);
}

/* --- Secondary — the ring. `.btn-ghost` was v1's outlined button; it maps
       here, NOT to the v2 ghost link (that is `.link-ghost`). ------------- */
.btn-secondary, .btn-ghost {
  background: transparent; color: var(--z-deep);
  box-shadow: inset 0 0 0 1.5px var(--z-deep);
}
.btn-secondary:hover, .btn-ghost:hover {
  background: transparent; color: var(--z-deep);
  box-shadow: inset 0 0 0 1.5px var(--z-blue-pop);
}

/* --- On navy: primary inverts to white fill, secondary ring goes translucent. */
.on-deep .btn, .btn-light,
.on-deep .btn-primary, .on-deep .btn-deep {
  background: var(--z-white); color: var(--z-deep);
}
.on-deep .btn:hover, .btn-light:hover,
.on-deep .btn-primary:hover, .on-deep .btn-deep:hover {
  background: var(--z-white); color: var(--z-deep);
  box-shadow: inset 0 -3px 0 var(--z-blue-pop);
}
.on-deep .btn-secondary, .on-deep .btn-ghost, .btn-outline-light {
  background: transparent; color: var(--z-white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}
.on-deep .btn-secondary:hover, .on-deep .btn-ghost:hover, .btn-outline-light:hover {
  background: transparent; color: var(--z-white);
  box-shadow: inset 0 0 0 1.5px var(--z-blue-pop);
}

.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 13px 22px; font-size: 14.5px; }

/* --- Ghost link — text over a 2px spark rule. No padding box.
       The underline is a GRAPHIC, so spark is legal here on white; the text
       itself is --z-blue (4.6:1). On hover the text goes navy. ------------- */
.link-ghost {
  display: inline-block;
  font-family: var(--font-grotesk);
  font-size: var(--fs-ui); font-weight: 600; letter-spacing: 0;
  color: var(--z-blue);
  background: transparent; padding: 0 0 3px;
  border: 0; border-bottom: 2px solid var(--z-blue-pop); border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: color 120ms ease-out, border-color 120ms ease-out;
}
.link-ghost:hover { color: var(--z-deep); border-bottom-color: var(--z-deep); }

.on-deep .link-ghost, .link-ghost--on-deep {
  color: var(--z-white); border-bottom-color: var(--z-blue-pop);
}
.on-deep .link-ghost:hover, .link-ghost--on-deep:hover {
  color: var(--z-white); border-bottom-color: var(--z-white);
}

/* ==========================================================================
   CHIP — mono on the softest blue tint. Squared, never a pill.
   ========================================================================== */

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm); font-weight: 400;
  letter-spacing: var(--tracking-mono);
  line-height: 1.2; text-transform: none;
  color: var(--z-deep); background: var(--z-blue-tint);
  padding: 8px 12px; border: 0; border-radius: var(--radius-sm);
}
.chip--quiet { background: var(--z-stone-pale); color: var(--ink-60); }
.on-deep .chip, .chip--on-deep {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.82);
}
.on-deep .chip.is-active, .chip--on-deep.is-active {
  background: rgba(0,173,255,0.16); color: var(--z-white);
  box-shadow: inset 0 0 0 1px var(--z-blue-pop);
}

/* ==========================================================================
   FORM FIELD — no red anywhere. A failure is navy plus a mono message.
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field > label {
  font-family: var(--font-grotesk);
  font-size: var(--fs-caption); font-weight: 500; letter-spacing: 0;
  color: var(--ink-60); text-transform: none;
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  font-family: var(--font-grotesk);
  font-size: var(--fs-ui); line-height: 1.5; color: var(--z-deep);
  background: var(--z-white);
  border: 1px solid var(--ink-20); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
  transition: border-color 120ms ease-out;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-40); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--z-stone-deep); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--z-blue-pop); outline-offset: 2px; border-color: var(--z-deep);
}

/* Error: navy text, a 2px navy left rule, a mono message. Never red — the hue
   is banned and in this category it reads as blood. */
.field.is-error input, .field.is-error select, .field.is-error textarea {
  border-color: var(--z-deep); border-left: 2px solid var(--z-deep);
}
.field .field-error {
  font-family: var(--font-mono); font-size: var(--fs-mono-sm);
  letter-spacing: var(--tracking-mono); color: var(--z-deep);
}
.field .field-hint {
  font-family: var(--font-mono); font-size: var(--fs-mono-sm);
  letter-spacing: var(--tracking-mono); color: var(--ink-60);
}

/* ==========================================================================
   THE COLLISION — a serif promise and a grotesk fact at the SAME size,
   stacked flush with 6px between, reading as one breath.
   The size parity is the one rule that survives every breakpoint.
   ========================================================================== */

.collision { display: block; }
.collision .promise,
.collision .answer-xl { font-size: var(--fs-collision); display: block; }
.collision .promise { line-height: var(--lh-collision); }
.collision .answer-xl { line-height: var(--lh-answer); margin-top: 6px; }

/* On navy the promise softens, the fact stays full white. */
.on-deep .collision .promise { color: rgba(255,255,255,0.92); }
.on-deep .collision .answer-xl { color: var(--z-white); }
.on-deep .promise, .on-deep .quote { color: rgba(255,255,255,0.92); }
.on-deep .lede-serif { color: rgba(255,255,255,0.80); }

/* A mono note in the margin — the data voice as a caption beside the air,
   never as a label above a headline. */
.margin-note {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono); line-height: 1.5; color: var(--ink-60);
  border-top: 1px solid var(--z-stone-line); padding-top: 14px;
}

/* An accent phrase must never break across lines. */
.nobr { white-space: nowrap; }

/* Section opener — either voice, 52px. */
.section-open {
  font-size: var(--fs-section); line-height: var(--lh-heading);
  letter-spacing: var(--tracking-serif); color: var(--z-deep);
  font-family: var(--font-serif); font-weight: 400; margin: 0;
  text-wrap: pretty;
}
.section-open--grotesk {
  font-family: var(--font-grotesk); font-weight: 700;
  letter-spacing: var(--tracking-grotesk);
}
.on-deep .section-open { color: var(--z-white); }

/* ==========================================================================
   MARKS — exactly three, and no more. Maximum one per screen, and only
   where the handshake voice is speaking. Not an illustration system.
   ========================================================================== */

.mark-portrait {
  border-radius: var(--radius-round);
  object-fit: cover; object-position: 50% 22%;
  flex: none;
}
.mark-underline {
  display: block; height: 3px; width: 268px;
  background: var(--z-blue-pop); border: 0; border-radius: 3px;
  transform: rotate(-0.5deg);
}
.mark-underline--sm { height: 2px; width: 148px; transform: rotate(-0.6deg); }
.mark-stamp {
  display: inline-block;
  font-family: var(--font-mono); font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em; color: var(--z-deep);
  border: 2px solid var(--z-deep); border-radius: 0;
  padding: 9px 14px; transform: rotate(-1.6deg);
}

/* ==========================================================================
   THE SIGNATURE MOVE — a photo rising out of the bottom of a section.
   The container is SHORTER than the image; the image keeps its natural
   ratio and the section edge does the cropping. Never a stretched flex item.
   ========================================================================== */

.photo-bleed { height: var(--photo-bleed); overflow: hidden; display: block; }
.photo-bleed > img {
  width: 100%; height: auto; display: block;
  flex: none; align-self: flex-start;
}

/* ==========================================================================
   RULES, PLATES, LEADERS — structure without elevation
   ========================================================================== */

.rule-structural { height: 1px; background: var(--z-deep); border: 0; margin: 0; }
.rule-hairline   { height: 1px; background: var(--ink-20); border: 0; margin: 0; }
.rule-subtle     { height: 1px; background: var(--ink-10); border: 0; margin: 0; }
.on-deep .rule-structural { background: rgba(255,255,255,0.5); }
.on-deep .rule-hairline   { background: rgba(255,255,255,0.18); }

/* A dotted leader row: mono label, dotted rule, value. Receipts and specs. */
.leader-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px dotted var(--ink-20);
}
.leader-row .l-key {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono); color: var(--ink-60);
}
.leader-row .l-val {
  font-family: var(--font-grotesk); font-size: 17px; font-weight: 600;
  color: var(--z-deep); text-align: right;
}

/* Card — a 1px border, no shadow. Hover darkens the border and nothing else. */
.card {
  background: var(--z-white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-sm);
  transition: border-color 120ms ease-out;
}
a.card { text-decoration: none; color: inherit; border-bottom: 1px solid var(--ink-10); }
.card:hover, a.card:hover { border-color: var(--z-deep); }

/* Stat band — numerals in the spark on navy, mono captions beneath. */
.stat-band { background: var(--z-deep); color: var(--z-white); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-band .stat { padding: 34px 26px 38px; border-right: 1px solid rgba(255,255,255,0.14); }
.stat-band .stat:first-child { padding-left: 0; }
.stat-band .stat:last-child { border-right: 0; padding-right: 0; }
.stat-band .s-n {
  font-family: var(--font-grotesk); font-weight: 700;
  font-size: var(--fs-numeral); line-height: 1;
  letter-spacing: var(--tracking-numeral); color: var(--z-blue-pop);
}
.stat-band .s-l {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.45;
  letter-spacing: var(--tracking-mono); color: rgba(255,255,255,0.66);
  margin-top: 9px;
}

/* Product stage — striped stone until real photography lands. */
.product-stage-placeholder {
  background: var(--placeholder-stripe);
  box-shadow: inset 0 -18px 24px -20px rgba(9,51,69,0.28);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.product-stage-placeholder .ps-cap {
  font-family: var(--font-mono); font-size: var(--fs-mono-sm);
  letter-spacing: var(--tracking-mono); color: var(--ink-60); line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: var(--z-deep-dark); color: var(--z-white); }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-7);
  padding: 72px 0 var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.site-footer .col-brand .mark { display: inline-block; line-height: 0; border-bottom: 0; }
.site-footer .col-brand .mark img { height: 46px; width: auto; display: block; flex: none; }
.site-footer .col-brand .f-line {
  font-family: var(--font-serif); font-size: 19px; line-height: 1.48;
  color: rgba(255,255,255,0.86); margin-top: 20px; max-width: 34ch;
}
.site-footer .col-brand .f-addr {
  font-family: var(--font-grotesk); font-size: 14.5px; line-height: 1.7;
  color: rgba(255,255,255,0.66); margin-top: 20px;
}
.site-footer .col h4 {
  font-family: var(--font-mono); font-size: var(--fs-mono-sm); font-weight: 400;
  letter-spacing: var(--tracking-mono-wide); text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 18px;
}
.site-footer .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.site-footer a {
  font-family: var(--font-grotesk); font-size: var(--fs-ui);
  color: rgba(255,255,255,0.86); border-bottom: 0;
  transition: color 120ms ease-out;
}
.site-footer a:hover { color: var(--z-white); border-bottom: 0; }
.site-footer a.f-spark { color: var(--z-blue-pop); }   /* legal: text on navy */
.site-footer a.f-spark:hover { color: var(--z-white); }
.site-footer .footer-bottom {
  padding: 22px 0 var(--sp-7);
  display: flex; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--fs-mono-sm);
  letter-spacing: var(--tracking-mono); color: rgba(255,255,255,0.5);
  text-transform: none;
}

/* ==========================================================================
   MOTION — confident, not playful. Fades and 120-300ms colour only.
   No bounce, no stagger, no parallax, no scroll-jacking.
   ========================================================================== */

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

/* ==========================================================================
   RESPONSIVE — the collision never splits into two different sizes.
   ========================================================================== */

/* 1024-1279 — gutters tighten, the margin column narrows. */
@media (max-width: 1279px) {
  :root { --gutter: 40px; --photo-bleed: 380px; }
}

/* 768-1023 — margin columns drop below, stat band goes 2x2, and the nav
   hands off to the sheet: five items plus a CTA collide with the logo here,
   not at 768. */
@media (max-width: 1023px) {
  :root { --photo-bleed: 300px; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent; border: 1px solid var(--ink-20);
    border-radius: var(--radius-sm); cursor: pointer;
    font-family: var(--font-grotesk); font-size: 15px; font-weight: 600;
    color: var(--z-deep);
  }
  .nav-links {
    position: fixed; inset: 0; z-index: 60;
    background: var(--z-white);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: var(--sp-5);
    padding: 96px var(--gutter) var(--sp-7);
    overflow-y: auto;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { font-size: 20px; font-weight: 500; }
  .nav-links .btn { margin-top: auto; width: 100%; justify-content: center; }
  .stat-band .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat-band .stat { padding: 28px 24px 30px; }
  .stat-band .stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stat-band .stat:nth-child(2n+1) { padding-left: 0; }
  .stat-band .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.14); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}

/* <768 — hamburger, tight gutters, the collision drops to ~40-44px but the
   two voices stay the SAME size as each other. */
@media (max-width: 767px) {
  :root { --gutter: 24px; --photo-bleed: 220px; }

  .site-nav { height: 76px; }
  .nav-mark img { height: 44px; }

  .utility-bar { height: auto; padding: 8px 0; font-size: var(--fs-mono-sm); }
  .utility-bar .wrap { flex-wrap: wrap; gap: 6px 16px; }
  .utility-bar .u-right { gap: 16px; flex-wrap: wrap; }

  .stat-band .wrap { grid-template-columns: 1fr; }
  .stat-band .stat {
    padding: 22px 0; border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .stat-band .stat:last-child { border-bottom: 0; }

  .site-footer .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .mark-underline { width: 180px; }
}
