/* Vienna Family Dental: the register. Ivory paper, navy ink, the logo's blue reserved for booking. */
:root {
  /* color, by role */
  --paper: #f8f5ef;        /* base surface, matches the logo's paper */
  --stone: #efe9df;        /* second surface: grouping sections */
  --backdrop: #3a3634;     /* the team portraits' studio gray: the team wall only */
  --ink: #2a2420;          /* body text: the logo's "DENTAL" brown-black */
  --ink-soft: #5c534c;     /* secondary text (7:1 on paper) */
  --navy: #1b3150;         /* brand: headings, years, footer */
  --rule: #d8d0c3;         /* hairlines */
  --action: #1f5592;       /* the logo's blue: Book buttons only */
  --action-hover: #17406f;
  --on-dark: #f3efe8;
  --on-dark-soft: #cfc7bb;

  /* type */
  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --text: "Mulish", system-ui, sans-serif;
  --fs-small: 15px;
  --fs-body: 18px;
  --fs-lede: clamp(18px, 1.6vw, 21px);
  --fs-h3: clamp(21px, 1.8vw, 24px);
  --fs-h2: clamp(31px, 3.4vw, 46px);
  --fs-h1: clamp(38px, 4.6vw, 64px);

  /* space: multiples of 8 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --section: clamp(64px, 9vw, 128px);
  --width: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--action); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--navy); text-wrap: balance; margin: 0; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0 0 var(--s2); }
.wrap { max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.stone { background: var(--stone); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* small caps label with the logo's tapered rule */
.kicker { display: flex; align-items: center; gap: var(--s2); font: 400 13px/1 var(--display); letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 var(--s3); }


/* one button shape; the primary is the only filled one */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  background: var(--action); color: #fff; font: 700 17px/1 var(--text); text-decoration: none;
  border-radius: var(--radius); white-space: nowrap; }
.btn:hover { background: var(--action-hover); color: #fff; }
.tel { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--action); text-decoration: underline; }
.more { font-weight: 700; }
.more::after { content: " →"; }

/* placeholders the owner must fill: visible, never mistaken for real content */
.ph { display: inline-block; font-size: var(--fs-small); color: #6b4d00; background: #fff3cf; border: 1px dashed #c9a43b;
  padding: 2px 8px; border-radius: var(--radius); }

/* ---------- header ---------- */
.util { background: var(--stone); color: var(--ink); font-size: 14px; border-bottom: 1px solid var(--rule); }
.util .wrap { display: flex; justify-content: space-between; gap: var(--s3); padding-top: 8px; padding-bottom: 8px; }
.util a { color: inherit; }
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 88px; }
.site-header .btn { min-height: 48px; padding: 0 22px; font-size: 16px; }
.logo img { width: 212px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--action); text-decoration: underline; }
.site-header .tel { font-size: 17px; }

/* ---------- hero: the headline and the register ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s7); align-items: start;
  padding-top: var(--s6); padding-bottom: var(--s6); }
.hero h1 { font-size: var(--fs-h1); line-height: 1.07; margin-bottom: var(--s3); }
.lede { font-size: var(--fs-lede); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: var(--s4) 0 var(--s2); }
.reassure { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }
.rating { display: flex; align-items: center; gap: var(--s1); font-size: var(--fs-small); margin-top: var(--s3); color: var(--ink); }
.rating .stars { color: #b8862b; letter-spacing: 2px; }
.rating b { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--navy); }

.register { border-top: 2px solid var(--ink); }
.register-head { font: 400 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); padding: var(--s2) 0; }
.register ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); }
.register li { display: grid; line-height: 1.3; }
.register img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 18%; background: var(--backdrop); }
.register .yr { font: 400 40px/1 var(--display); color: var(--navy); margin: 12px 0 6px; }
.register b { font-size: 16px; }
.register .role { font-size: 14px; color: var(--ink-soft); }
.register .rest { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s3); padding-top: var(--s2);
  border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--ink-soft); gap: var(--s2); }

/* ---------- proof row ---------- */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: var(--s3) var(--s3); border-left: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 400 21px/1.2 var(--display); color: var(--navy); margin-bottom: 4px; }

/* ---------- services: a two-column index ---------- */
.services .wrap { display: grid; grid-template-columns: 4fr 7fr; gap: var(--s7); }
.services .intro { padding-top: 20px; }
.services .intro p { color: var(--ink-soft); max-width: 26em; margin-top: var(--s3); }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); }
.svc li { border-top: 1px solid var(--rule); padding: 20px 0 var(--s3); }
.svc a { display: block; text-decoration: none; color: inherit; }
.svc a:hover h3 { color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.svc h3 { font-size: 22px; margin-bottom: 6px; }
.svc p { font-size: 17px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- gentle care: portrait beside the story ---------- */
.care .split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s7); align-items: stretch; }
.care figure { margin: 0; display: flex; flex-direction: column; }
.care figure img { width: 100%; flex: 1; min-height: 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.care figcaption { font-size: var(--fs-small); color: var(--ink-soft); padding-top: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.care h2 { margin-bottom: var(--s4); }
.care blockquote { margin: 0 0 var(--s4); padding-left: var(--s3); border-left: 2px solid var(--navy);
  font: 400 clamp(22px, 2vw, 27px)/1.4 var(--display); color: var(--navy); }
.care blockquote p { margin: 0; }
.care blockquote footer { font: 400 var(--fs-small)/1.4 var(--text); color: var(--ink-soft); margin-top: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); border-top: 1px solid var(--ink);
  padding-top: var(--s3); margin: var(--s5) 0 var(--s4); }
.three h3 { font: 700 17px/1.3 var(--text); color: var(--ink); margin-bottom: 6px; }
.three p { font-size: 16px; line-height: 1.5; margin: 0; color: var(--ink-soft); }
.patient { background: var(--stone); padding: var(--s3) var(--s4); font-size: 17px; }
.patient p { margin-bottom: 8px; }
.patient cite { font-style: normal; font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- smile cases ---------- */
.cases h2 { max-width: 16em; }
.cases .head { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); margin-bottom: var(--s5); }
.cases .head > p { max-width: 30em; margin: 0; color: var(--ink-soft); }
.lead { display: grid; grid-template-columns: 8fr 4fr; gap: var(--s6); align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.pair figure { margin: 0; position: relative; }
.pair img { width: 100%; object-fit: cover; }
.lead .pair img { aspect-ratio: 4 / 5; object-position: 50% 65%; }
.tag { position: absolute; left: 0; top: 0; background: var(--paper); color: var(--ink); font: 400 11px/1 var(--display);
  letter-spacing: .18em; text-transform: uppercase; padding: 7px 10px; }
.case-text h3 { margin-bottom: 12px; }
.case-text .kicker { margin-bottom: var(--s2); line-height: 1.5; }
.case-text .kicker::after { display: none; }
.review { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--rule); }
.review p { font-size: 17px; margin-bottom: 8px; }
.review cite { font-style: normal; font-size: var(--fs-small); color: var(--ink-soft); }
.small-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin-top: var(--s6); }
.small-cases .pair img { aspect-ratio: 5 / 3; }
.small-cases h3 { font-size: 20px; margin: var(--s2) 0 6px; }
.small-cases p { font-size: 16px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.cases .foot { margin-top: var(--s5); }

/* ---------- the signature: the team wall on the portraits' own backdrop ---------- */
.team { background: var(--backdrop); color: var(--on-dark); }
.team h2 { color: var(--on-dark); max-width: 14em; }
.trish { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s7); align-items: center; margin-bottom: var(--s7); }
.trish figure { margin: 0; position: relative; }
.trish img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.big-yr { position: absolute; left: 0; right: 0; bottom: -.12em; text-align: center; font: 400 clamp(96px, 13vw, 184px)/1 var(--display);
  color: var(--on-dark); letter-spacing: -.01em; }
.trish h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; margin-bottom: var(--s4); }
.trish p { color: var(--on-dark-soft); font-size: var(--fs-lede); max-width: 30em; }
.wall { list-style: none; margin: 0; padding: var(--s6) 0 0; border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4) var(--s2); }
.wall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.wall b { display: block; margin-top: 12px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.wall span { display: block; font-size: 15px; color: var(--on-dark-soft); line-height: 1.4; }
.team .foot { margin-top: var(--s5); display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.team .foot a { color: var(--on-dark); }

/* ---------- new patients: kids and paying, two columns ---------- */
.np h2 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: var(--s3); }
.np .cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); }
.np h3 { margin-bottom: var(--s2); }
.np ul { padding-left: 1.1em; margin: 0 0 var(--s3); }
.np li { margin-bottom: 8px; }
.np li::marker { color: var(--navy); }

/* ---------- reviews ---------- */
.reviews .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s7); align-items: start; }
.score { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.score .big { font: 400 clamp(88px, 10vw, 136px)/.9 var(--display); color: var(--navy); }
.score .stars { color: #b8862b; font-size: 22px; letter-spacing: 4px; margin: var(--s2) 0 6px; }
.score p { color: var(--ink-soft); }
.reviews blockquote { margin: 0; }
.reviews blockquote p { font: 400 clamp(23px, 2.3vw, 31px)/1.4 var(--display); color: var(--navy); margin-bottom: var(--s3); }
.reviews blockquote cite { font-style: normal; color: var(--ink-soft); font-size: var(--fs-small); }

/* ---------- articles ---------- */
.articles .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s7); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list a { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); padding: 20px 0; text-decoration: none; color: inherit; align-items: center; }
.list h3 { font-size: 22px; }
.list span { font-size: 22px; color: var(--navy); }
.list a:hover h3 { color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- book and visit ---------- */
.book .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s7); }
.book h2 { margin-bottom: var(--s2); }
.book .sub { color: var(--ink-soft); margin-bottom: var(--s4); max-width: 34em; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--s3); }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 16px; }
label small { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
input, select, textarea { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #a99f92; border-radius: var(--radius);
  background: #fffdf9; color: var(--ink); width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--action); outline-offset: 0; border-color: var(--action); }
form .send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
form .send p { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); max-width: 26em; }
.hp { position: absolute; left: -9999px; }
.visit { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.visit h3 { font: 400 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin: var(--s4) 0 12px; }
.visit h3:first-child { margin-top: 0; }
.visit .phone { font: 400 34px/1.1 var(--display); color: var(--navy); text-decoration: none; }
.visit .phone:hover { color: var(--action); }
.visit address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours td { text-align: right; }
.visit .area { font-size: 16px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-soft); font-size: var(--fs-small); padding: var(--s7) 0 var(--s4); }
.site-footer a { color: var(--on-dark); }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s5); }
.site-footer img { width: 240px; height: auto; margin-bottom: var(--s3); }
.site-footer h3 { font: 400 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; color: var(--on-dark); line-height: 1.7; }
.site-footer .bottom { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.15); display: flex;
  justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

/* phone bar: call and book under the thumb */
.thumb { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .site-header .tel { margin-left: auto; }
}
@media (max-width: 1100px) {
  .wall { grid-template-columns: repeat(4, 1fr); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .services .wrap, .care .split, .lead, .trish, .np .cols, .reviews .wrap, .articles .wrap, .book .wrap {
    grid-template-columns: 1fr; gap: var(--s5); }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li { border-top: 1px solid var(--rule); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .small-cases { grid-template-columns: 1fr; gap: var(--s5); }
  .cases .head { display: block; }
  .cases .head p { margin-top: var(--s2); }
}
@media (max-width: 600px) {
  body { font-size: 17px; padding-bottom: 72px; }
  .util .addr { display: none; }
  .util .wrap { justify-content: center; }
  .site-header .wrap { min-height: 68px; gap: var(--s2); }
  .logo img { width: 168px; }
  .site-header .btn { display: none; }
  .site-header .tel { margin-left: auto; font-size: 16px; }
  .hero .wrap { padding-top: var(--s5); padding-bottom: var(--s6); }
  .actions .btn { width: 100%; }
  .actions > span { display: none; }
  .actions { margin: var(--s3) 0 var(--s2); }
  .hero .wrap { padding-top: var(--s4); gap: var(--s4); }
  .hero h1 { margin-bottom: var(--s2); }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li:nth-child(-n+2) { border-left: 0; padding: var(--s2) 0; border-top: 1px solid var(--rule); }
  .facts li:first-child { border-top: 0; }
  .care figure img { aspect-ratio: 4 / 5; flex: none; }
  .register ol { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .register img { aspect-ratio: 4 / 5; }
  .register .yr { font-size: 24px; margin: 8px 0 2px; }
  .register b { font-size: 13px; }
  .register .role { display: none; }
  .svc { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; gap: var(--s3); }
  .wall { grid-template-columns: repeat(3, 1fr); gap: var(--s3) 10px; }
  .wall b { font-size: 14px; }
  .wall span { font-size: 13px; }
  .small-cases { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  form .send .btn { width: 100%; }
  .site-footer .top { grid-template-columns: 1fr; }
  .thumb { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
  .thumb .tel { display: flex; align-items: center; justify-content: center; border: 1px solid var(--navy); border-radius: var(--radius);
    color: var(--navy); min-height: 52px; }
  .thumb .btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* the phone bar slides in once the hero's own buttons have scrolled away (CSS scroll timeline, no JS) */
@supports (animation-timeline: scroll()) {
  @media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
    .thumb { animation: thumb-in linear both; animation-timeline: scroll(root); animation-range: 380px 480px; }
    @keyframes thumb-in { from { transform: translateY(110%); } to { transform: translateY(0); } }
  }
}

/* small-screen menu: a details element, no script */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 14px; border: 1px solid var(--navy); border-radius: var(--radius); color: var(--navy); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; background: var(--paper); border: 1px solid var(--rule);
  min-width: 240px; padding: 8px 0; box-shadow: 0 12px 32px rgba(27,49,80,.14); }
.menu nav a { display: block; padding: 10px 20px; color: var(--ink); text-decoration: none; }
.menu nav a:hover { background: var(--stone); }
@media (max-width: 1240px) { .menu { display: block; } }
@media (max-width: 860px) { .small-cases { grid-template-columns: 1fr 1fr; } .wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .small-cases { grid-template-columns: 1fr; } .wall { grid-template-columns: repeat(3, 1fr); } .menu summary { padding: 8px 12px; } }
.wall .tile a { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; padding: var(--s3);
  border: 1px solid rgba(255,255,255,.3); color: var(--on-dark); text-decoration: none; font: 400 24px/1.15 var(--display); }
.wall .tile a span { font: 400 14px/1.4 var(--text); color: var(--on-dark-soft); margin-top: 8px; }
.wall .tile a:hover { border-color: var(--on-dark); }
@media (max-width: 600px) { .wall .tile a { font-size: 17px; padding: 12px; } .wall .tile a span { display: none; } }
@media (max-width: 600px) {
  .register-head .wide { display: none; }
  .hero h1 { font-size: 35px; }
  .lede { font-size: 17px; margin-bottom: 0; }
  .rating { margin-top: var(--s2); }
}
