@charset "UTF-8";

/* ==========================================================================
   Clinique dentaire Dentovivo
   --------------------------------------------------------------------------
   One stylesheet, no framework, no build step. Ordered: fonts, tokens, reset,
   base, utilities, layout, components, then state.

   Colour: deep evergreen on warm ivory, with honey for emphasis and clay for
   emergencies. Chosen against the cyan-and-white that most dental sites
   default to — the warmth matters more here than the clinical signal, because
   people arrive at a dental site slightly on edge. Every text pairing below
   clears WCAG 2.1 AA (4.5:1); ratios are noted where they are close.

   Type: Fraunces for headings, Inter for everything else. Both are open-source
   (OFL) variable fonts, self-hosted from /assets/fonts — nothing is fetched
   from a third-party CDN, which is what keeps the privacy policy's claim true
   and the site out of the consent-banner question under Law 25.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   --------------------------------------------------------------------------
   Two subsets each. Latin carries everything French needs — the accented
   vowels, the œ ligature and the guillemets all sit inside U+0000-00FF plus
   U+0152-0153 — so latin-ext is only ever fetched if a page uses a character
   outside it. In practice visitors download the two latin files and nothing
   more, about 115 KB.

   font-display: swap so text is readable immediately in the fallback and
   reflows once the face arrives, rather than leaving the page blank.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* -- Brand: evergreen --------------------------------------------------- */
  --brand-900: #14302a;
  --brand-800: #1b4038;
  --brand-700: #235046;   /* 9.1:1 on white — headings and body links */
  --brand-600: #2e6657;   /* 6.7:1 on white — interactive text */
  --brand-500: #3c8270;
  --brand-300: #8fbfb0;
  --brand-200: #bcdbd1;
  --brand-100: #dcede7;
  --brand-50:  #f1f8f5;

  /* -- Accent: honey, for emphasis and badges ----------------------------- */
  --accent-700: #8a5a11;  /* 5.9:1 on white */
  --accent-600: #a96f1a;
  --accent-200: #f2dcb0;
  --accent-100: #fbf0dc;

  /* -- Warm neutrals ------------------------------------------------------ */
  --sand-50:  #fcfaf6;
  --sand-100: #f5f1e8;
  --sand-200: #e7e1d4;
  --sand-300: #d6cebc;

  /* -- Ink ---------------------------------------------------------------- */
  --ink-900: #16211d;
  --ink-700: #33423c;
  --ink-500: #5b6a63;     /* 5.7:1 on white — the lightest text permitted */
  --ink-300: #8a978f;     /* decorative only, never text */

  /* -- Alert: clay, for emergencies --------------------------------------- */
  --alert-700: #8c3a21;
  --alert-600: #a84a2b;   /* 5.7:1 in both directions against white */
  --alert-200: #f2cec0;
  --alert-100: #faeae3;

  --white: #ffffff;

  /* -- Type ---------------------------------------------------------------
     Fraunces is an optical-sizing design: font-optical-sizing lets the browser
     pick the right cut for the size, so large headings get the tighter, more
     characterful drawing and small text stays open and readable. */
  --font-display: 'Fraunces', ui-serif, Georgia, "Iowan Old Style", serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  /* The bottom of each clamp is the phone size. These were raised from the
     previous scale — the old minimums were comfortable on a desktop preview
     and cramped on an actual handset. */
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.94rem);
  --step-0:  clamp(1.0625rem, 1.03rem + 0.18vw, 1.15rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.42vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.78vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.53rem + 1.3vw, 2.5rem);
  --step-4:  clamp(2.15rem, 1.7rem + 2.2vw, 3.25rem);

  /* -- Space and shape ---------------------------------------------------- */
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 0.85rem + 1.9vw, 2.5rem);
  --section-y: clamp(2.75rem, 1.8rem + 4.8vw, 6rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgb(20 48 42 / 6%), 0 2px 8px rgb(20 48 42 / 5%);
  --shadow:    0 2px 4px rgb(20 48 42 / 6%), 0 10px 28px rgb(20 48 42 / 9%);

  --ring: 3px solid var(--brand-600);
  --ring-offset: 2px;

  /* Height of the fixed mobile call bar, so content can clear it. */
  --call-bar-h: 0px;
}

/* ==========================================================================
   Reset and base
   ========================================================================== */

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

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

body {
  margin: 0;
  /* Clears the fixed call bar on phones; the variable is 0 everywhere else. */
  padding-bottom: var(--call-bar-h);
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  /* Inter sits slightly wide at body sizes; a touch negative settles it. */
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--brand-900);
  text-wrap: balance;
}

/* Fraunces tightens as it grows, so the largest sizes need the most negative
   tracking and the smallest need none at all. */
h1 { letter-spacing: -0.025em; }
h4 { letter-spacing: -0.005em; }

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl { margin: 0 0 1.15em; }
p { text-wrap: pretty; }
:is(p, li):last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-600); }

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }

strong, b { font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--sand-200);
  margin: 2.5rem 0;
}

address { font-style: normal; }

/* Focus. Visible, high-contrast, never removed. */
:focus-visible {
  outline: var(--ring);
  outline-offset: var(--ring-offset);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.wrap--narrow { width: min(46rem, 100% - (var(--gutter) * 2)); }

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 1.5rem; height: 1.5rem;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.icon--sm { width: 1.1rem; height: 1.1rem; }
.icon--lg { width: 2rem; height: 2rem; }

.skip-link {
  position: absolute;
  left: 50%;
  translate: -50% -150%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--brand-900);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: translate 150ms ease;
}
.skip-link:focus { translate: -50% 0; color: var(--white); }

/* ==========================================================================
   Utility bar — location, language, phone
   ========================================================================== */

.utility-bar {
  background: var(--brand-900);
  color: var(--brand-100);
  font-size: var(--step--1);
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  flex-wrap: wrap;
}

.utility-bar__place {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--brand-200);
}

.utility-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.utility-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--brand-100);
  text-decoration: none;
  font-weight: 550;
}
.utility-bar a:hover {
  background: rgb(255 255 255 / 10%);
  color: var(--white);
}
.utility-bar :focus-visible { outline-color: var(--brand-200); }

.utility-bar__phone { letter-spacing: 0.01em; }

@media (max-width: 30rem) {
  .u-hide-sm { display: none; }
}

/* ==========================================================================
   Header, wordmark, primary navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-800);
  text-decoration: none;
}
.wordmark__mark { width: 2.1rem; height: 2.1rem; flex: none; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.wordmark__kind {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--brand-800);
  cursor: pointer;
}
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.75rem);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-weight: 550;
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--brand-700); background: var(--brand-50); }
.site-nav__list a[aria-current="page"] {
  color: var(--brand-800);
  box-shadow: inset 0 -2px 0 var(--brand-600);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Below the breakpoint the nav collapses — but only once JS has confirmed it
   can reopen it. Without JS the list simply stays visible and stacked. */
@media (max-width: 60rem) {
  .js .nav-toggle { display: inline-flex; }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    order: 3;
    width: 100%;
    padding-bottom: 1rem;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }

  .site-header__inner { flex-wrap: wrap; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--sand-100);
  }
  .site-nav__list a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--brand-600);
    background: var(--brand-50);
  }
  .site-nav__emergency { margin-top: 0.75rem; justify-content: center; }
}

/* ==========================================================================
   Buttons and link affordances
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn--primary {
  background: var(--brand-700);
  color: var(--white);
}
.btn--primary:hover { background: var(--brand-800); color: var(--white); }

.btn--secondary {
  background: var(--white);
  color: var(--brand-700);
  border-color: var(--brand-200);
}
.btn--secondary:hover { background: var(--brand-50); border-color: var(--brand-300); }

.btn--emergency {
  background: var(--alert-600);
  color: var(--white);
  padding-inline: 1.1rem;
}
.btn--emergency:hover { background: var(--alert-700); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--brand-700);
  border-color: transparent;
  padding-inline: 0.5rem;
}
.btn--ghost:hover { background: var(--brand-50); }

.btn--lg { padding: 0.95rem 1.75rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: translate 140ms ease; }
.link-arrow:hover .icon { translate: 0.2rem 0; }

/* ==========================================================================
   Section rhythm
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section--tint { background: var(--sand-50); }
.section--brand { background: var(--brand-50); }

.section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-700);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  background:
    radial-gradient(60rem 30rem at 82% -10%, var(--brand-100), transparent 62%),
    var(--sand-50);
  border-bottom: 1px solid var(--sand-200);
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__title { margin-bottom: 0.4em; }
.hero__lede { max-width: 34rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-700);
}
.hero__reassure li { display: flex; align-items: center; gap: 0.4rem; }
.hero__reassure .icon { color: var(--brand-600); }

/* ==========================================================================
   Cards
   ========================================================================== */

/* 20rem rather than a narrower track on purpose: there are five service
   categories, and a narrower minimum fits four across, leaving the fifth
   stranded on its own row. Three-and-two reads as deliberate, and gives each
   card enough width for its treatment list to sit on single lines. */
.card-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, translate 160ms ease;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-700);
}
.card__title { font-size: var(--step-1); margin-bottom: 0.4em; }
.card__body { color: var(--ink-700); flex: 1 1 auto; }
.card__foot { margin-top: 1.25rem; }

/* The whole card is clickable, but only the heading link is in the tab order —
   a stretched pseudo-element keeps the pointer target large without adding a
   duplicate stop for keyboard and screen-reader users. */
.card--link { position: relative; }
.card--link:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
  translate: 0 -2px;
}
.card--link .card__title a { text-decoration: none; color: inherit; }
.card--link .card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card--link:has(a:focus-visible) {
  outline: var(--ring);
  outline-offset: var(--ring-offset);
}
.card--link .card__title a:focus-visible { outline: none; }

/* ==========================================================================
   Treatment lists
   ========================================================================== */

.tx-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.tx-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink-700);
}
.tx-list .icon {
  margin-top: 0.28em;
  color: var(--brand-600);
}

.tx-list--plain li { color: var(--ink-900); }

/* ==========================================================================
   Detail blocks — treatments on a category page
   ========================================================================== */

.detail {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--sand-200);
}
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-2);
}
.detail__title .icon { color: var(--brand-600); }
.detail__body { max-width: 44rem; color: var(--ink-700); }

.detail__meta {
  margin-top: 1.15rem;
  padding: 1rem 1.15rem;
  background: var(--sand-50);
  border-left: 3px solid var(--brand-300);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--step--1);
  color: var(--ink-700);
}

/* ==========================================================================
   Notices — emergency, medical warning, disclaimer, form status
   ========================================================================== */

.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  line-height: 1.55;
}
.notice .icon { flex: none; margin-top: 0.1em; }
.notice p:last-child { margin-bottom: 0; }

.notice--alert {
  background: var(--alert-100);
  border: 1px solid #f0cdbc;
  color: var(--alert-700);
}
.notice--alert .icon { color: var(--alert-600); }
.notice--alert a { color: var(--alert-700); }

.notice--info {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
}
.notice--info .icon { color: var(--brand-600); }

.notice--success {
  background: #edf7ef;
  border: 1px solid #c9e6ce;
  color: #1d5b2c;
}
.notice--success .icon { color: #2c7a41; }

.notice--lg { font-size: var(--step-0); padding: 1.35rem 1.5rem; }

/* ==========================================================================
   Emergency panel
   ========================================================================== */

.emergency-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--alert-100);
  border-radius: var(--radius-lg);
  border: 1px solid #f0cdbc;
}
@media (min-width: 48rem) {
  .emergency-panel { grid-template-columns: 1fr auto; align-items: center; }
}
.emergency-panel__title { color: var(--alert-700); margin-bottom: 0.35em; }
.emergency-panel__body { color: var(--alert-700); margin-bottom: 0; }

/* ==========================================================================
   Image slots
   --------------------------------------------------------------------------
   Deliberately empty. The clinic has not supplied photography, and stock
   images of models posing as patients are both dishonest and, under the ODQ
   advertising rules, a liability. Each slot states the shot and the exact
   pixel size required — see docs/photography-shot-list.md.
   ========================================================================== */

.img-slot {
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(-45deg,
      var(--sand-100) 0 10px,
      var(--sand-50) 10px 20px);
  border: 2px dashed var(--sand-200);
  border-radius: var(--radius-lg);
  color: var(--ink-500);
  font-size: var(--step--1);
}
.img-slot__label { font-weight: 650; color: var(--ink-700); }
.img-slot__dims {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}
.img-slot--hero { aspect-ratio: 4 / 3; }
.img-slot--wide { aspect-ratio: 16 / 9; }
.img-slot--portrait { aspect-ratio: 3 / 4; }
.img-slot--square { aspect-ratio: 1; }

/* ==========================================================================
   Team
   ========================================================================== */

/* --------------------------------------------------------------------------
   Avatar
   --------------------------------------------------------------------------
   Circular, and sized so it never has to be scaled up beyond its source. The
   one photograph currently supplied is 150 × 150; a portrait frame would have
   stretched it into mush, whereas a 6rem circle renders it close to native
   resolution on a 2× screen.

   With no photograph the avatar falls back to initials rather than a silhouette
   icon — it identifies the person instead of standing in for a missing asset.
   -------------------------------------------------------------------------- */

.avatar {
  --avatar-size: 6rem;
  width: var(--avatar-size);
  height: var(--avatar-size);
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);            /* 7.5:1 on brand-100 */
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: calc(var(--avatar-size) * 0.33);
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px var(--sand-200);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar--lg { --avatar-size: 7.5rem; }

/* --------------------------------------------------------------------------
   Badge
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--new {
  background: var(--accent-100);
  color: var(--accent-700);           /* 5.2:1 on accent-100 */
  border: 1px solid var(--accent-200);
}
.badge--welcome {
  background: var(--brand-100);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 54rem) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Avatar beside the name rather than above it: on a phone that saves roughly
   a screen-third per card, and three stacked cards is where the team page
   gets long. */
.team-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Three-up, the horizontal head leaves a name like "Dre Tiffany Nguyen" about
   220px to sit in, and it wraps. Stacking gives it the full card width. On a
   phone the row is kept, where saving vertical space matters more. */
@media (min-width: 54rem) {
  .team-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}
.team-card__ident { min-width: 0; }
.team-card__name {
  margin: 0 0 0.1em;
  font-size: var(--step-1);
  text-wrap: pretty;
}
/* Credentials, not a job title. Set in sentence case rather than the small
   caps a role label would take — "DMD, Université de Montréal" in all caps
   reads as shouting, and the mixed case keeps the institution legible. */
.team-card__cred {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand-600);
  text-wrap: pretty;
}
.team-card__meta {
  margin: 0;
  padding: 0.85rem 0;
  border-block: 1px solid var(--sand-100);
  display: grid;
  gap: 0.3rem;
  font-size: var(--step--1);
  color: var(--ink-700);
}
.team-card__meta p { margin: 0; }
.team-card__meta strong { color: var(--ink-900); font-weight: 600; }
.team-card__bio { color: var(--ink-700); font-size: var(--step--1); }
.team-card__badge { align-self: flex-start; }

/* A profile whose name has not arrived yet. */
.team-card--pending .team-card__name { color: var(--ink-300); }
.team-card--pending .team-card__bio { font-style: italic; }

/* --------------------------------------------------------------------------
   New patients, and the dentist joining the practice
   --------------------------------------------------------------------------
   These two sit together on purpose: a practice has room for new patients
   because it has gained a dentist, and saying both in one breath is more
   convincing than either alone.
   -------------------------------------------------------------------------- */

.new-patients {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 58rem) {
  .new-patients { grid-template-columns: 0.9fr 1.1fr; }
}
.new-patients__title { margin-top: 0.6rem; }
.new-patients__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.spotlight {
  display: grid;
  gap: clamp(1.15rem, 3vw, 1.75rem);
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 34rem) {
  .spotlight { grid-template-columns: auto 1fr; align-items: start; }
}
.spotlight__name {
  margin: 0.7rem 0 0.15em;
  font-size: var(--step-2);
}
.spotlight__cred {
  margin: 0 0 0.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand-600);
}
.spotlight__blurb { color: var(--ink-700); margin-bottom: 1.1rem; }

/* ==========================================================================
   Contact: info grid, map, hours
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.info-list { margin: 0; display: grid; gap: 1.35rem; }
.info-list__row { display: flex; gap: 0.85rem; }
.info-list__row .icon { color: var(--brand-600); margin-top: 0.15em; }
.info-list__term {
  margin: 0 0 0.15rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.info-list__def { margin: 0; color: var(--ink-900); }
.info-list__def a { font-weight: 600; }

.map-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-200);
  background: var(--sand-50);
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.hours { margin: 0; }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--sand-200);
}
.hours__row:last-child { border-bottom: 0; }
.hours__day { margin: 0; font-weight: 550; }
.hours__time { margin: 0; text-align: right; color: var(--ink-700); }
.hours__closed { color: var(--ink-500); }
.hours__note {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-500);
}
.hours--compact .hours__row { padding: 0.3rem 0; font-size: var(--step--1); }

.hours-notice {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--ink-700);
  font-size: var(--step--1);
}
.hours-notice .icon { color: var(--brand-600); flex: none; margin-top: 0.15em; }
.hours-notice__cta { margin: 0; }

/* ==========================================================================
   Form
   ========================================================================== */

/* --------------------------------------------------------------------------
   Callback form panel
   --------------------------------------------------------------------------
   The form sits beside the contact details rather than below them, so on a
   wide screen it competes with a column of addresses, hours and links. A
   tinted panel with a defined edge gives it the weight of something to be
   filled in, and the white fields inside that tint read as obviously
   interactive in a way white-on-white does not.
   -------------------------------------------------------------------------- */

.form-panel {
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
  background: var(--brand-50);
  /* brand-200 rather than the lighter brand-100: at one pixel, a tint this
     close to white needs a real edge or the panel dissolves into the page. */
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgb(20 48 42 / 7%), 0 14px 36px rgb(20 48 42 / 11%);
  /* Links elsewhere on the site jump to this panel by fragment. Without the
     offset the heading lands underneath the sticky header. */
  scroll-margin-top: 6rem;
}
.form-panel__title { margin-top: 0; }

.form { display: grid; gap: 1.15rem; }

.field { display: grid; gap: 0.35rem; }
.field__label { font-weight: 600; }
.field__req {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-500);
}
.field__hint { font-size: var(--step--1); color: var(--ink-500); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--brand-300);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { min-height: 7rem; resize: vertical; }

.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: var(--alert-600); }
.field__error {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--alert-700);
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}
.field--check input { margin-top: 0.3em; width: 1.1rem; height: 1.1rem; accent-color: var(--brand-700); }
.field--check label { font-size: var(--step--1); color: var(--ink-700); }

/* Honeypot. Hidden from people, reachable by scripted submitters.
   Kept out of the tab order and the accessibility tree. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
  padding-block: 1rem;
  font-size: var(--step--1);
  border-bottom: 1px solid var(--sand-100);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0; padding: 0;
  list-style: none;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-500); }
.breadcrumb li + li::before { content: "/"; color: var(--ink-300); }
.breadcrumb a { color: var(--ink-700); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink-900); font-weight: 550; }

/* ==========================================================================
   Prose — the legal pages
   ========================================================================== */

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.25em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.75em; font-size: var(--step-1); }
.prose :is(h2, h3):first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--brand-600); }
.prose dt { font-weight: 650; margin-top: 1em; }
.prose dd { margin: 0 0 0.75em; color: var(--ink-700); }
.prose__updated {
  font-size: var(--step--1);
  color: var(--ink-500);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--sand-200);
}

/* ==========================================================================
   Page header — every page below the homepage
   ========================================================================== */

.page-head {
  padding-block: clamp(2rem, 1.2rem + 3.5vw, 3.75rem);
  background: var(--sand-50);
  border-bottom: 1px solid var(--sand-200);
}
.page-head__inner { max-width: 46rem; }
.page-head__title { margin-bottom: 0.35em; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  background: var(--brand-900);
  color: var(--brand-100);
  font-size: var(--step--1);
}
.site-footer a { color: var(--brand-100); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--brand-200); }

.site-footer h2 { color: var(--white); }

.rebrand-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding: 0.85rem 1.15rem;
  background: rgb(255 255 255 / 7%);
  border-radius: var(--radius);
  color: var(--brand-200);
}
.rebrand-note .icon { color: var(--brand-300); }

.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.site-footer__brand .wordmark { color: var(--white); }
.site-footer__brand .wordmark__kind { color: var(--brand-300); }
.site-footer__tagline { margin-top: 1rem; color: var(--brand-200); max-width: 22rem; }

.site-footer__heading {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }

.nap { display: grid; gap: 0.3rem; color: var(--brand-200); }
.nap__name { color: var(--white); font-weight: 600; }
.nap__phone, .nap__email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  width: fit-content;
}

.site-footer .hours__row { border-bottom-color: rgb(255 255 255 / 10%); }
.site-footer .hours__time { color: var(--brand-200); }
.site-footer .hours__closed,
.site-footer .hours__note { color: var(--brand-300); }
.site-footer .hours-notice { color: var(--brand-200); }
.site-footer .hours-notice .icon { color: var(--brand-300); }

.disclaimer {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: var(--brand-200);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 62rem;
}
.disclaimer__title { color: var(--brand-100); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: var(--brand-300);
}
.site-footer__copyright { margin: 0; }
.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0; padding: 0;
  list-style: none;
}

/* ==========================================================================
   Mobile
   --------------------------------------------------------------------------
   Everything above is written mobile-first. This section is for what a phone
   needs that a desktop actively should not have.
   ========================================================================== */

/* A fixed call bar. Most dental enquiries arrive as phone calls, so on a
   handset the number should never be more than a thumb-reach away, however
   far down the page the visitor has scrolled. Hidden on larger screens, where
   the header already keeps the number in view. */
.call-bar { display: none; }

@media (max-width: 47.99rem) {
  :root {
    --call-bar-h: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .call-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.5rem;
    padding: 0.65rem var(--gutter);
    /* Clears the home indicator on a notched iPhone. */
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgb(252 250 246 / 95%);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--sand-200);
  }
  .call-bar .btn {
    min-height: 3rem;
    padding-inline: 0.75rem;
    font-size: var(--step-0);
  }

  /* Full-width stacked actions. Two half-width buttons wrap unpredictably
     once the French labels are in place — they run noticeably longer than
     their English counterparts. */
  .hero__actions .btn,
  .new-patients__actions .btn,
  .emergency-panel .btn,
  .form-panel button[type="submit"] { width: 100%; }

  /* 44px is the floor for a tap a thumb lands on first time. */
  .site-nav__list a,
  .utility-bar a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Footer links get a smaller floor deliberately: at 44px apiece the footer
     navigation alone runs to most of a screen. */
  .site-footer__list a,
  .site-footer__legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
  }

  .utility-bar__inner { min-height: 3rem; }
  .site-header__inner { min-height: 4rem; }

  .hours__row { gap: 0.75rem; }
  .hours__day,
  .hours__time { font-size: var(--step--1); }

  /* Long addresses and treatment names should never push the page sideways. */
  .nap, .info-list__def { overflow-wrap: anywhere; }
}

/* Narrowest handsets: the location label is decoration, so it goes first. */
@media (max-width: 24rem) {
  .utility-bar__place { display: none; }
  .utility-bar__inner { justify-content: flex-end; }
}

/* ==========================================================================
   Motion and print
   ========================================================================== */

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

@media print {
  .utility-bar, .site-nav, .nav-toggle, .skip-link, .map-frame, .img-slot,
  .call-bar { display: none; }
  .site-header { position: static; }
  body { font-size: 11pt; color: #000; padding-bottom: 0; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
