@charset "UTF-8";
/* ============================================================================
   Pearl Dental Clinic — design system
   Editorial teal & cream. Sharp corners, hairline rules, restrained motion.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Newsreader';
  src: url('../vendor/fonts/newsreader-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../vendor/fonts/newsreader-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../vendor/fonts/newsreader-300italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../vendor/fonts/jost-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../vendor/fonts/jost-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Teal — the brand dark. Deep teal for hero/clinics/footer/general dark
     sections; bright teal is a distinct, deliberate second dark used only for
     the stat band and the appointment/CTA band. */
  --teal-900: #0b3a45;
  --teal-800: #0e424e;
  --teal-700: #127c93;
  --teal-300: #7fc4d2;

  /* Ink — body text greys, sampled off the deep teal rather than pure black. */
  --ink-900: #24363b;
  --ink-700: #3c4e53;
  --ink-500: #5a6a6f;
  --ink-400: #6b7a7f;
  --ink-300: #8a9298;

  /* Pearl — warm off-whites and cream. */
  --pearl-50: #fdfcfa;
  --pearl-100: #f7f3ec;
  --pearl-200: #efeae1;
  --pearl-300: #e7e1d6;

  /* Semantic */
  --bg: var(--pearl-50);
  --fg: var(--ink-900);
  --fg-muted: var(--ink-500);
  --fg-subtle: var(--ink-400);
  --accent: var(--teal-700);
  --hairline: rgba(11, 58, 69, 0.12);
  --hairline-strong: rgba(11, 58, 69, 0.22);

  /* Type scale — clamped, fluid. Newsreader for headings/serif set, Jost for
     everything else. Tracking and leading are size-specific, set per class. */
  --t-display: clamp(2.6rem, 1.5rem + 4.1vw, 5.35rem);
  --t-h1: clamp(2.25rem, 1.3rem + 3.8vw, 4.25rem);
  --t-h2: clamp(1.75rem, 1.2rem + 2.3vw, 3rem);
  --t-h3: clamp(1.3rem, 1.05rem + 1.05vw, 1.85rem);
  --t-h4: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  --t-body-lg: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --t-body: 1rem;
  --t-sm: 0.9375rem;
  --t-xs: 0.8125rem;
  --t-eyebrow: 0.75rem;

  /* Space — a 4px-rooted scale in rem so it grows with the user's text size. */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.5rem;
  --s-8: 3rem;
  --s-9: 4rem;
  --s-10: 5rem;
  --s-11: 7rem;
  --s-12: 9rem;

  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3.5rem);
  --measure: 68ch;
  --max-w: 1320px;
  --max-w-narrow: 980px;

  /* Sharp corners throughout — one radius, used almost nowhere except
     buttons and inputs. Literal circles (avatars, dots) use 50% directly. */
  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 2px;
  --r-xl: 2px;
  --r-full: 999px;

  /* Shadows — kept for floating overlays only (nav popover, mobile sheet).
     Content surfaces use hairline borders instead, not shadow. */
  --sh-sm: 0 2px 8px rgba(11, 58, 69, 0.06);
  --sh-md: 0 8px 24px rgba(11, 58, 69, 0.1);
  --sh-lg: 0 16px 48px rgba(11, 58, 69, 0.14);
  --sh-xl: 0 24px 64px rgba(11, 58, 69, 0.16);

  /* Motion — CSS transitions are for non-gesture micro-feedback only.
     Anything a user can grab is driven by the JS spring engine. */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0.04, 0.78, 0.39); /* inverse of --ease-out */
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--teal-700);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: var(--teal-700);
  color: #fff;
}

/* --- Typography ----------------------------------------------------------- */
/* Newsreader carries the light editorial voice; weight is chosen per size,
   not applied uniformly — display/h1/h2 are light (300), h3/h4 read at 400
   since they sit next to body copy and need a touch more presence. */
.display {
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.015em;
}
.h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--t-h1);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.006em;
}
.h4 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: var(--t-h4);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.004em;
}
.lede {
  font-size: var(--t-body-lg);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.002em;
  color: var(--fg-muted);
  max-width: var(--measure);
}
.body {
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0;
  color: var(--fg-muted);
  max-width: var(--measure);
}
.small {
  font-size: var(--t-sm);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.002em;
  color: var(--fg-muted);
}
/* Small tracked labels — the mockup's signature wide eyebrow tracking. */
.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
}
.serif-italic {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 300;
}
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow {
  width: 100%;
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-bottom: var(--s-9);
  max-width: 62ch;
}
.stack {
  display: flex;
  flex-direction: column;
}
.grid {
  display: grid;
  gap: var(--s-5);
}
.center {
  text-align: center;
  margin-inline: auto;
}
.center .lede,
.center .body {
  margin-inline: auto;
}

/* Deep-teal sections — punctuation between cream sections. */
.on-ink {
  background: var(--teal-900);
  color: var(--pearl-100);
  --fg: var(--pearl-50);
  --fg-muted: rgba(247, 243, 236, 0.72);
  --fg-subtle: rgba(247, 243, 236, 0.55);
  --accent: var(--teal-300);
  --hairline: rgba(247, 243, 236, 0.14);
  --hairline-strong: rgba(247, 243, 236, 0.26);
}
.on-ink .lede,
.on-ink .body,
.on-ink .small {
  color: var(--fg-muted);
}

/* Bright-teal sections — the stat band and the appointment/CTA band use the
   lighter accent teal as their own background, distinct from --teal-900. */
.on-accent {
  background: var(--teal-700);
  color: var(--pearl-100);
  --fg: #fff;
  --fg-muted: rgba(247, 243, 236, 0.82);
  --fg-subtle: rgba(247, 243, 236, 0.62);
  --accent: var(--pearl-100);
  --hairline: rgba(247, 243, 236, 0.22);
  --hairline-strong: rgba(247, 243, 236, 0.35);
}
.on-accent .lede,
.on-accent .body,
.on-accent .small {
  color: var(--fg-muted);
}

/* --- Buttons -------------------------------------------------------------- */
/* Rectangular, uppercase, tracked. Feedback lives in a plain color swap, not
   a bounce — restraint matches the flatter visual language. */
.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 1rem 2rem;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  transition:
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:hover {
  --btn-bg: var(--teal-900);
}
.btn:active {
  opacity: 0.82;
  transition-duration: var(--dur-fast);
}
/* Inline SVGs carry no intrinsic size — give every icon an explicit box. */
.btn-ico {
  width: 15px;
  height: 15px;
  flex: none;
}
.btn .btn-ico {
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .btn-ico {
  transform: translateX(3px);
}
.btn-accent {
  --btn-bg: var(--teal-700);
  --btn-fg: #fff;
}
.btn-accent:hover {
  --btn-bg: var(--teal-900);
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.btn-ghost:hover {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  box-shadow: inset 0 0 0 1px currentColor;
}
.on-ink .btn-primary,
.on-accent .btn-primary {
  --btn-bg: var(--pearl-100);
  --btn-fg: var(--teal-900);
}
.on-ink .btn-primary:hover,
.on-accent .btn-primary:hover {
  --btn-bg: var(--teal-300);
  --btn-fg: var(--teal-900);
}
.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: var(--t-sm);
}

/* Text link with an underline that grows from the side it's read from. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 400;
  font-size: var(--t-sm);
  color: var(--fg);
  position: relative;
  padding-bottom: 2px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}
.link:hover::after {
  transform: scaleX(1);
}
.link .btn-ico {
  transition: transform var(--dur-base) var(--ease-out);
}
.link:hover .btn-ico {
  transform: translateX(3px);
}

/* --- Materials ------------------------------------------------------------ */
/* Translucent layers, content scrolling underneath. */
.material {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--hairline);
}
.material-ink {
  background: rgba(11, 58, 69, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Cards ---------------------------------------------------------------- */
/* Flat by default — hairline border stands in for shadow. */
.card {
  position: relative;
  border-radius: var(--r-sm);
  background: var(--pearl-50);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color var(--dur-slow) var(--ease-soft);
}
.card:hover {
  border-color: var(--hairline-strong);
}
.card-media {
  position: relative;
  overflow: hidden;
  background: var(--pearl-200);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-soft);
  filter: saturate(0.94);
}
.card:hover .card-media img {
  transform: scale(1.035);
}
.card-body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.on-ink .card,
.on-accent .card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--hairline);
}

/* Hairline rule with a teal seed — a small mark of craft. */
.rule {
  height: 1px;
  background: var(--hairline);
  position: relative;
  border: 0;
}
.rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 1px;
  background: var(--accent);
}

/* --- Reveal on scroll ----------------------------------------------------- */
/* Non-interactive entrance only. Short travel, no overshoot. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 700ms var(--ease-soft),
    transform 700ms var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-still {
  opacity: 0;
  transition: opacity 600ms var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-still.is-in {
  opacity: 1;
}

/* Per-line masked reveal for display headings. */
.line-mask {
  display: block;
  overflow: hidden;
}
.line-mask > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 900ms var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.is-in .line-mask > span,
.line-mask.is-in > span {
  transform: none;
}

/* --- Accessibility -------------------------------------------------------- */
/* Reduced motion isn't "no feedback" — it's a gentler, non-vestibular
   equivalent. Keep opacity changes that aid comprehension; drop travel. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    transform: none !important;
  }
  .line-mask > span {
    transform: none !important;
  }
  .card:hover .card-media img {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .material {
    background: var(--pearl-50);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .material-ink {
    background: var(--teal-900);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --fg-muted: var(--ink-700);
    --fg-subtle: var(--ink-500);
    --hairline: rgba(11, 58, 69, 0.4);
    --hairline-strong: rgba(11, 58, 69, 0.55);
    --accent: #0e5c6d;
  }
  .material {
    background: #fff;
    backdrop-filter: none;
    border-color: var(--hairline-strong);
  }
  .card {
    border: 1px solid var(--hairline-strong);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--teal-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--t-sm);
  font-weight: 400;
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}
