/* Mavericks Orthodontics: home page mockup, Untamed Web Design, 2026-09-30 */
:root {
  /* CONCEPT: the archwire. One clean curve that is at once an orthodontic wire and the face of a wave (their own
     "Surf On Into Your Best Smile"), and the four offices drawn as four brackets on a single arch, the way an
     orthodontist charts teeth from above, set west to east: Fig Garden, Fresno, Clovis, Reedley.
     Form from: the occlusal arch chart, the bracket and wire, the appointment card, their surf voice. */

  /* Colour: the brief's surf hints, checked against the hero photograph (chair vinyl, scrubs, window water). */
  --navy: #0B2A43;      /* scrubs and deep water: text, the one dark band */
  --ocean: #0E5A8A;     /* the chair vinyl / open water: buttons, links (7.4:1 on white) */
  --foam: #7FD1C7;      /* seafoam: the wire, brackets, accents on navy (8.1:1 against navy) */
  --sand: #E6D6BC;      /* the aligner photo's stone: one thin rule, the card's edge */
  --tide: #F1F7F8;      /* a sea-tinted white for quiet grounds (not cream, not grey) */
  --mist: #CFE3E8;      /* hairlines, the tooth outlines */
  --slate: #3C5568;     /* secondary text (7.8:1 on white) */
  --white: #FFFFFF;

  /* Type: Unbounded (wide, rounded terminals: a board decal or surf-shop sign that still reads clinical-clean,
     and its curves sit with the wire) + Red Hat Text (open apertures drawn for small sizes: parents reading
     insurance terms on a phone). */
  --display: "Unbounded", "Verdana", "Segoe UI", system-ui, sans-serif;
  --body: "Red Hat Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Scale: hero 34 to 56 px (Unbounded is wide: 56 here sets like 72 in a narrow face), heads 28 to 40, body 18. */
  --h1: clamp(1.9rem, 1.05rem + 3.4vw, 3.5rem);
  --h2: clamp(1.7rem, 1.15rem + 1.7vw, 2.5rem);
  --h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --lead: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem);
  --text: 1.125rem;
  --small: 0.95rem;

  --gutter: 16px;
  --max: 1200px;
  --space: clamp(64px, 6vw + 32px, 136px);
  --head-h: 60px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--h1); font-weight: 700; }
h2 { font-size: var(--h2); font-weight: 600; }
h3 { font-size: var(--h3); font-weight: 600; }
p { margin: 0; }
a { color: var(--ocean); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--foam); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 12px 18px; font-weight: 700;
}
.skip:focus { top: 8px; color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header (sticky on every width) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}
.site-header .bar {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--head-h);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  position: relative;
}
.mark {
  display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--navy);
  padding-block: 6px; min-height: 44px; justify-content: center;
}
.mark b { font-family: var(--display); font-weight: 700; font-size: 1.22rem; color: var(--ocean); letter-spacing: -0.02em; }
.mark span { font-size: 0.82rem; font-weight: 500; margin-top: 3px; padding-bottom: 3px; border-bottom: 2px solid var(--sand); align-self: flex-start; }

.menu-btn {
  display: none;
  margin-left: auto;
  align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  background: transparent; color: var(--navy);
  border: 0; font: 600 1rem var(--body); cursor: pointer;
}
.menu-btn .bars { width: 20px; height: 12px; position: relative; border-block: 2px solid currentColor; }
.menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.js .menu-btn { display: inline-flex; }

.hdr-call {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  background: var(--navy); color: var(--white);
  border-radius: 999px; text-decoration: none; font-weight: 700;
}
.hdr-call:hover { background: var(--ocean); color: var(--white); }
.hdr-call svg { width: 16px; height: 16px; }

@media (max-width: 379px) {
  .menu-btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { padding: 0 12px; min-width: 44px; justify-content: center; }
  .mark b { font-size: 1.05rem; }
  .hdr-call { padding: 0 14px; }
  .site-header .bar { gap: 8px; }
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ocean); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--ocean); text-decoration: underline; text-decoration-thickness: 2px; }

/* phones and tablets: the nav is a panel under the bar */
@media (max-width: 1199px) {
  .site-header .bar { flex-wrap: wrap; }
  .nav { order: 5; flex-basis: 100%; padding-bottom: 8px; }
  .js .nav { display: none; }
  .js .nav.open {
    display: block;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: var(--white); border-bottom: 3px solid var(--foam);
    padding: 8px var(--gutter) 16px;
    box-shadow: 0 18px 30px rgba(11, 42, 67, 0.14);
  }
  .nav li + li a { border-top: 1px solid var(--mist); }
  .nav a { font-size: 1.1rem; }
  .js .hdr-call { margin-left: 0; }
  .hdr-call { margin-left: auto; }
}
@media (min-width: 1200px) {
  .js .menu-btn { display: none; }
  .nav { margin-left: auto; }
  .nav ul { display: flex; gap: 22px; }
  .nav a { font-size: 1rem; }
  .hdr-call { margin-left: 8px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  background: var(--ocean); color: var(--white);
  border-radius: 999px;
  font: 700 1.08rem var(--body); text-decoration: none;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* the four offices as call rows: never the same look as the primary button */
.calls { margin-top: 28px; }
.calls p { font-weight: 600; color: var(--slate); font-size: var(--small); }
.calls ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calls a {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 6px 12px;
  border: 2px solid var(--ocean); border-radius: 14px;
  text-decoration: none; color: var(--navy); line-height: 1.25;
}
.calls a span { font-weight: 700; font-size: 0.98rem; }
.calls a strong { font-weight: 500; color: var(--ocean); font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.calls a:hover { background: var(--tide); }

/* ---------- hero: the photograph, cut along the wire ---------- */
.hero { position: relative; }
.hero-photo { position: relative; }
.hero-photo picture { display: block; clip-path: url(#cut-bottom); }
.hero-photo img { width: 100%; height: clamp(300px, 82vw, 440px); object-fit: cover; object-position: 34% 30%; }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire path { fill: none; stroke: var(--foam); stroke-width: 4; stroke-linecap: round; }
.wire--side { display: none; }
.hero-copy { padding: 14px var(--gutter) 8px; max-width: 640px; animation: rise 0.7s ease-out both; }
.hero-copy h1 { color: var(--navy); }
.hero-copy .deck { margin-top: 16px; font-size: var(--lead); line-height: 1.5; color: var(--slate); }
.hero-copy .btn { margin-top: 24px; width: 100%; }

@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 56% 44%; min-height: min(86vh, 760px); }
  .hero-photo picture { clip-path: url(#cut-side); height: 100%; }
  .hero-photo img { height: 100%; min-height: 560px; object-position: 30% 35%; }
  .wire--bottom { display: none; }
  .wire--side { display: block; }
  .hero-copy { align-self: center; padding: 48px var(--gutter) 48px 40px; max-width: 560px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 0.4rem + 3.2vw, 3.5rem); }
  .hero-copy .btn { width: auto; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--space) 0; }
.intro { max-width: 36em; }
.intro p { margin-top: 16px; font-size: var(--lead); color: var(--slate); line-height: 1.55; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-weight: 700; }
figure { margin: 0; }
figcaption, .note { font-size: var(--small); color: var(--slate); margin-top: 10px; }

/* treatments: two photographs at two sizes, the second dropped below the first */
.treat-grid { display: grid; gap: 48px; margin-top: 40px; }
.treat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.treat h3 { margin-top: 20px; }
.treat p { margin-top: 8px; max-width: 30em; }
.treat--aligners img { object-position: 40% 60%; }
@media (min-width: 900px) {
  .treat-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
  .treat--aligners img { aspect-ratio: 3 / 2; }
  .treat--braces { margin-top: 140px; }
  .treat--braces img { aspect-ratio: 1 / 1; object-position: 55% 50%; }
}
.treat img { transition: transform 0.5s ease; }
.treat figure { overflow: hidden; border-radius: 22px; }
.treat figure:hover img { transform: scale(1.03); }

/* the place, then the arch */
.place img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; }
@media (min-width: 900px) { .place img { aspect-ratio: 21 / 8; object-position: 50% 60%; } }

.arch-head { display: grid; gap: 24px; margin-top: 48px; }
.arch-head blockquote { margin: 0; padding-left: 18px; border-left: 4px solid var(--foam); max-width: 26em; }
.arch-head blockquote p { font-size: var(--lead); line-height: 1.5; }
.arch-head cite { display: block; margin-top: 8px; font-style: normal; font-size: var(--small); color: var(--slate); }
@media (min-width: 900px) { .arch-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 56px; } }

.arch {
  display: grid; gap: 8px 24px; margin-top: 40px;
  grid-template-areas: "draw" "fig" "fresno" "clovis" "reedley";
}
.arch-draw { grid-area: draw; }
.arch-draw svg { width: 100%; height: auto; display: block; }
.office--fig { grid-area: fig; }
.office--fresno { grid-area: fresno; }
.office--clovis { grid-area: clovis; }
.office--reedley { grid-area: reedley; }
.office { padding: 20px 0; border-top: 1px solid var(--mist); }
.office h3 { display: flex; align-items: center; gap: 12px; }
.office h3::before {
  content: ""; flex: none; width: 22px; height: 18px; border-radius: 5px;
  background: var(--foam); box-shadow: inset 0 0 0 2px var(--navy);
  background-image: linear-gradient(var(--navy), var(--navy)); background-size: 100% 2px; background-position: center; background-repeat: no-repeat;
}
.office address { font-style: normal; margin-top: 8px; }
.office address a { color: var(--navy); }
.office .tel {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--tide); border: 2px solid var(--ocean);
  color: var(--navy); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums;
}
.office .tel:hover { background: var(--white); }
.office .tel svg { width: 16px; height: 16px; color: var(--ocean); }
.office .mail { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: var(--small); padding-block: 10px; }
.hours { margin-top: 24px; max-width: 44em; }
.ph { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--navy); background: var(--sand); padding: 1px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }

@media (min-width: 900px) {
  .arch {
    grid-template-columns: 1fr minmax(0, 1.55fr) 1fr;
    grid-template-areas: "fresno draw clovis" "fig draw reedley";
    align-items: start; gap: 0 32px;
  }
  .office { border-top: 0; padding: 0; }
  .office--fresno, .office--clovis { align-self: start; padding-top: 4px; }
  .office--fig, .office--reedley { align-self: end; padding-bottom: 8px; }
  .office--clovis, .office--reedley { text-align: right; }
  .office--clovis h3, .office--reedley h3 { flex-direction: row-reverse; }
}

/* first visit: the appointment card is the one object on the page */
.visit { display: grid; gap: 40px; }
.visit-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 40%; border-radius: 22px; }
.visit-copy h2 { max-width: 14em; }
.card {
  margin-top: 28px; max-width: 30rem;
  background: var(--white);
  border: 2px solid var(--navy); border-top: 12px solid var(--foam);
  border-radius: 16px; padding: 18px 22px 8px;
  box-shadow: 8px 8px 0 var(--sand);
}
.card-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.card-title strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.card-title span { font-size: var(--small); color: var(--slate); }
.card dl { margin: 0; }
.card .row { display: grid; grid-template-columns: minmax(6.5em, 38%) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--mist); }
.card .row:last-child { border-bottom: 0; }
.card dt { font-size: var(--small); color: var(--slate); font-weight: 600; }
.card dd { margin: 0; font-weight: 700; }
.pay { margin-top: 32px; display: grid; gap: 18px; max-width: 34em; }
.pay h3 { font-size: 1.15rem; }
.pay p { margin-top: 6px; }
@media (min-width: 900px) {
  .visit { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .visit-photo { position: sticky; top: calc(var(--head-h) + 24px); }
  .visit-photo img { aspect-ratio: 4 / 5; }
}

/* parents' words: the one dark band */
.dark { background: var(--navy); color: var(--white); margin-top: var(--space); padding-block: var(--space); }
.dark a { color: var(--foam); }
.dark a:hover { color: var(--white); }
.words { display: grid; gap: 36px; }
.words-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 20% 50%; border-radius: 22px; }
.words h2 { color: var(--foam); }
.big-quote { margin: 24px 0 0; }
.big-quote p { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.45; font-weight: 500; }
.big-quote p mark { background: none; color: var(--foam); }
.words cite, .small-quote cite { display: block; margin-top: 12px; font-style: normal; color: #C4D8E2; font-size: var(--small); }
.small-quote { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(127, 209, 199, 0.4); max-width: 30em; }
.small-quote p { font-size: 1.12rem; }
@media (min-width: 900px) {
  .words { grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
  .words-photo { order: 2; }
  .words-photo img { aspect-ratio: 1 / 1; object-position: 12% 50%; }
}

/* the doctors */
.operatory img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; }
@media (min-width: 900px) { .operatory img { aspect-ratio: 21 / 9; object-position: 50% 60%; } }
.docs { display: grid; gap: 40px; margin-top: 48px; }
.docs blockquote { margin: 20px 0 0; font-size: var(--lead); line-height: 1.5; max-width: 26em; }
.docs blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: var(--small); color: var(--slate); }
.doc-row { display: flex; gap: 20px; }
.doc { flex: 1 1 0; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  background: var(--tide); border: 2px dashed var(--ocean);
  display: grid; place-items: end center;
}
.portrait::before { content: ""; position: absolute; top: 22%; left: 50%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--mist); }
.portrait::after { content: ""; position: absolute; bottom: -12%; left: 50%; width: 76%; height: 42%; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: var(--mist); }
.portrait span { position: relative; z-index: 1; margin-bottom: 14px; background: var(--white); color: var(--navy); font-size: 0.85rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.doc h3 { margin-top: 14px; font-size: 1.1rem; }
@media (min-width: 900px) {
  .docs { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .doc:last-child { margin-top: 56px; }
}

/* closing */
.close { display: grid; gap: 28px; padding-block: 48px 0; border-top: 4px solid var(--foam); }
.close .small-quote { border-top: 0; padding-top: 0; margin: 0; }
.close .small-quote p { font-size: var(--lead); }
.close .small-quote cite { color: var(--slate); }
.close p.after { margin-top: 14px; color: var(--slate); }
.close p.go { margin-top: 24px; }
@media (min-width: 900px) { .close { grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; } }

/* ---------- stub pages ---------- */
.stub { padding-block: 56px var(--space); max-width: 760px; }
.stub p.lead { margin-top: 18px; font-size: var(--lead); color: var(--slate); max-width: 34em; }
.stub .btn { margin-top: 28px; }
.stub .calls { max-width: 520px; }

/* ---------- footer ---------- */
.site-footer { background: var(--tide); margin-top: var(--space); padding-block: 56px 32px; border-top: 1px solid var(--mist); }
.foot { display: grid; gap: 36px; }
.foot h2 { font-size: 1.05rem; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--navy); }
.foot li a:hover { color: var(--ocean); }
.foot .offices li { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: center; }
.foot .offices li b { min-width: 6.5em; }
.mockup { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--mist); font-size: 0.85rem; color: var(--slate); }
@media (min-width: 900px) { .foot { grid-template-columns: 1.2fr 1.3fr 1fr; gap: 56px; } }

/* ---------- motion, respectfully ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
