/* Vienna Family Dental: rebuilt on Ace Hotel's layout system (see refs/blueprint.md) */
:root {
  --paper: #e9ebe8;
  --paper-2: #dfe2df;
  --white: #fbfbfa;
  --ink: #1a1e21;
  --ink-2: #4a5056;
  --blue: #1d5b98;       /* the logo's deep blue */
  --blue-lt: #4a9ad6;    /* the logo's highlight */
  --char: #222527;
  --sun: #f5b335;        /* the one loud button */
  --m: 40px;             /* side margin */
  --g: 30px;             /* gutter */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .3 0 0 0 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-lt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .22 0 0 0 -.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 "Archivo", system-ui, sans-serif; font-stretch: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-lt); outline-offset: 3px; }
.ph { background: #fff2c8; color: #6b4b00; padding: 0 .3em; font-size: .9em; }

/* display type: Archivo at its narrowest width, heavy, in caps */
.d, h1, h2, .card h3, .book-block, .m-tile span, .btn {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: 0;
}

/* ---------- header (Ace: logo box, booking cells, a solid block button; nav row below) ---------- */
.site-header { background: var(--white); position: relative; z-index: 5; }
.bar { display: flex; align-items: stretch; height: 64px; border-bottom: 1px solid #d4d7d4; }
.brand { display: flex; align-items: center; padding: 0 26px; background: var(--blue) linear-gradient(180deg, #3f8acb, #1d5b98); }
.brand img { width: 178px; }
.cell { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; border-right: 1px solid #d4d7d4; min-width: 0; }
.cell-hours { margin-left: auto; border-left: 1px solid #d4d7d4; }
.cell .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cell .v { font-size: 15px; text-decoration: none; white-space: nowrap; }
.cell a.v:hover { text-decoration: underline; }
.cell-phone .v { font-weight: 700; }
.book-block { display: flex; align-items: center; justify-content: center; padding: 0 34px; background: var(--sun); color: var(--ink); text-decoration: none; font-size: 30px; line-height: 1; }
.book-block:hover { background: #ffc552; }
.nav { display: flex; gap: 26px; align-items: center; padding: 9px 24px 10px; border-bottom: 1px solid #d4d7d4; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-note { margin-left: auto; font-size: 13px; color: var(--ink-2); }

/* ---------- hero (Ace: full-bleed photo, giant centred caps) ---------- */
.hero { position: relative; height: calc(100vh - 107px); min-height: 620px; max-height: 980px; overflow: hidden; background: #34495a; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 22, 32, .82) 0%, rgba(12, 22, 32, .55) 34%, rgba(12, 22, 32, 0) 62%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 1; text-align: center; padding: 0 var(--m); }
.hero h1 { text-wrap: balance; font-size: clamp(54px, 7vw, 104px); line-height: .9; }
.hero h1 span { display: block; }
.lede { max-width: 640px; margin: 20px auto 0; font-size: 19px; line-height: 1.5; }
.actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.proof { margin-top: 16px; font-size: 15px; }
.proof .stars { color: var(--sun); letter-spacing: 2px; margin-right: 4px; }

.btn { font-family: inherit; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-size: 24px; line-height: 1; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-book { background: var(--sun); color: var(--ink); }
.btn-book:hover { background: #ffc552; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue); }

/* ---------- intro (Ace: centred paragraph on white) ---------- */
.intro { padding: 92px var(--m) 96px; text-align: center; }
.intro p { max-width: 720px; margin: 0 auto; font-size: 20px; line-height: 1.6; }
.intro .intro-end { margin-top: 14px; font-size: 16px; color: var(--ink-2); }

/* ---------- title row (Ace: huge caps title, a sentence on its baseline, a link far right) ---------- */
.title-row { display: flex; align-items: baseline; gap: 40px; padding: 0 var(--m); margin-bottom: 34px; }
.title-row h2 { font-size: 78px; line-height: .9; flex: none; }
.title-row p { font-size: 16px; max-width: 420px; }
.title-row .more { margin-left: auto; flex: none; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.title-row .more:hover { text-decoration: underline; }

/* ---------- card rows (Ace: rows of photo cards that run off the right edge) ---------- */
.row-section { position: relative; padding: 92px 0 96px; }
.cards { position: relative; display: flex; gap: var(--g); overflow-x: auto; padding: 0 var(--m) 6px; scroll-snap-type: x mandatory; scroll-padding: var(--m); scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 316px; scroll-snap-align: start; }
.card > img { width: 100%; height: 430px; object-fit: cover; }
.card h3 { font-size: 32px; line-height: .95; margin: 18px 12px 10px; }
.card p { margin: 0 12px; font-size: 15px; line-height: 1.5; }
.card .meta { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.u { display: inline-block; margin: 14px 12px 0; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.u:hover { border-bottom-width: 2px; }

/* services: textured band behind the titles and the top half of the photos */
.services { background: var(--white); }
.services::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 430px; background: var(--paper) var(--grain); }
.services .title-row { position: relative; }
.card-wide { flex-basis: 548px; }
.cards-svc .card > img { height: 430px; }

/* smile gallery: before/after inside each image slot */
.gallery { background: var(--paper) var(--grain); }
.cards-case .card { flex-basis: 452px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 300px; background: var(--paper); }
.ba figure { position: relative; margin: 0; overflow: hidden; }
.ba img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.ba-land img { object-position: 50% 50%; transform: scale(1.35); }
.ba figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(26, 30, 33, .82); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; }
.gallery-foot { display: flex; align-items: center; gap: 60px; margin: 54px var(--m) 0; padding-top: 36px; border-top: 1px solid #c5c9c5; }
.gallery-foot blockquote { margin: 0; flex: 1; }
.gallery-foot blockquote p { font-size: 28px; line-height: 1.3; font-weight: 500; }
.gallery-foot cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--ink-2); }
.gallery-actions { flex: 0 0 380px; }
.gallery-actions .note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* insurance: the one colour band */
.band { padding: 74px 0 70px; }
.band-blue { background: var(--blue) var(--grain-lt); color: #fff; }
.band .title-row { margin-bottom: 40px; }
.band .title-row p { font-size: 20px; max-width: 560px; }
.ins-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); padding: 0 var(--m); }
.ins-cols > div { border-top: 2px solid rgba(255, 255, 255, .6); padding-top: 16px; }
.ins-cols h3 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.ins-cols p { font-size: 18px; line-height: 1.5; max-width: 400px; }
.band-actions { display: flex; align-items: center; gap: 30px; padding: 0 var(--m); margin-top: 40px; }
.u-light { color: #fff; margin: 0; }

/* nervous patients: the dark band */
.dark { background: var(--char) var(--grain-lt); color: #fff; }
.dark .card > img { height: 392px; }
.dark .card .meta { color: #b8bec3; }
.card-quote { flex-basis: 380px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--blue); padding: 34px 26px 30px; }
.card-quote .q { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 500; }
.card-quote .meta { margin: 16px 0 0; color: #cfe2f3 !important; }
.card-quote .u { margin: 18px 0 0; align-self: flex-start; }

/* team: the Mini Rodini mosaic, edge to edge */
.team { padding: 92px 0 0; background: var(--white); }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: calc(100vw / 6 * 1.25); }
.mosaic figure { position: relative; margin: 0; overflow: hidden; background: #6d6a6c; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); color: #fff; font-size: 13px; line-height: 1.35; }
.mosaic figcaption b { display: block; font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; margin-bottom: 4px; }
.m-paino { grid-column: 1 / 3; grid-row: 1 / 3; }
.m-paino figcaption b { font-size: 40px; }
.m-quote { grid-column: 3 / 5; grid-row: 1 / 2; background: var(--blue) var(--grain-lt); color: #fff; padding: 30px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.m-quote p:first-child { font-size: clamp(15px, 1.32vw, 20px); line-height: 1.38; font-weight: 500; }
.m-quote .cred { font-size: 12.5px; line-height: 1.45; color: #d2e4f4; }
.m-tile { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 16px; background: var(--sun); color: var(--ink); text-decoration: none; }
.m-tile span { font-size: 46px; line-height: .9; }
.m-tile small { font-size: 13px; margin-top: 8px; }
.m-tile:hover { background: #ffc552; }

/* reviews */
.reviews { padding: 96px 0 92px; background: var(--white); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; padding: 0 var(--m); }
.quotes blockquote { margin: 0; border-top: 2px solid var(--ink); padding-top: 22px; }
.quotes p { font-size: 20px; line-height: 1.5; }
.quotes cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.quotes blockquote::before { content: "★★★★★"; display: block; color: var(--sun); letter-spacing: 3px; margin-bottom: 12px; }

/* kids + articles: Ace Reader's ragged heights */
.reader { background: var(--paper) var(--grain); }
.cards-reader { align-items: flex-start; }
.cards-reader .card { flex-basis: 316px; }
.cards-reader .r-lead { flex-basis: 470px; }
.r-lead > img { height: 520px; }
.r-short > img { height: 238px; }
.r-mid > img { height: 214px; }
.r-tall:not(.r-lead) > img { height: 392px; }
.cards-reader .meta { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.cards-reader .card h3 { margin-top: 6px; }

/* book */
.book { display: grid; grid-template-columns: 42% 1fr; background: var(--white); }
.book-photo img { width: 100%; height: 100%; object-fit: cover; }
.book-body { padding: 84px var(--m) 80px 60px; }
.book .title-row { padding: 0; flex-wrap: wrap; gap: 8px 40px; }
.book .title-row p { max-width: none; flex: 1 1 260px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--g); }
.f label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.f .opt { font-weight: 400; color: var(--ink-2); }
.f input, .f select { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid #8b9196; background: #fff; font: inherit; color: inherit; border-radius: 0; }
.f input:focus, .f select:focus { outline: 3px solid var(--blue-lt); outline-offset: 0; border-color: var(--blue); }
.f-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.f-submit p { font-size: 14px; color: var(--ink-2); max-width: 380px; }
.f-submit a { color: var(--ink); font-weight: 700; }
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin-top: 52px; padding-top: 28px; border-top: 1px solid #cdd1cd; }
.visit h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-2); }
.visit p { font-size: 15px; }
.visit .u { margin: 10px 0 0; }

/* footer */
.site-footer { background: var(--char) var(--grain-lt); color: #e7e9ea; padding: 60px var(--m) 30px; }
.f-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 36px; border-bottom: 1px solid #44494d; }
.f-top img { width: 260px; }
.f-phone { font-stretch: 62%; font-weight: 800; font-size: 56px; line-height: 1; text-decoration: none; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); padding: 36px 0; }
.f-cols h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9aa2a8; margin-bottom: 10px; }
.f-cols p { font-size: 15px; line-height: 1.75; }
.f-cols a { text-decoration: none; }
.f-cols a:hover { text-decoration: underline; }
.f-bottom { display: flex; gap: 24px; padding-top: 22px; border-top: 1px solid #44494d; font-size: 13px; color: #9aa2a8; }
.mobile-book { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .cell-addr { display: none; }
  .title-row h2 { font-size: 64px; }
  .gallery-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .gallery-actions { flex-basis: auto; }
  .book { grid-template-columns: 1fr; }
  .book-photo img { height: 420px; }
  .book-body { padding: 70px var(--m); }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --m: 20px; --g: 14px; }
  body { font-size: 16px; }
  .bar { height: 56px; }
  .brand { padding: 0 14px; }
  .brand img { width: 128px; }
  .cell-hours, .cell-addr { display: none; }
  .cell-phone { margin-left: auto; border-left: 1px solid #d4d7d4; border-right: 0; padding: 0 14px; }
  .cell-phone .k { display: none; }
  .cell-phone .v { font-size: 14px; }
  .site-header { position: sticky; top: -46px; }
  .book-block { font-size: 24px; padding: 0 18px; }
  .book-block span { display: none; }
  .nav { gap: 20px; overflow-x: auto; white-space: nowrap; padding: 10px 20px; font-size: 15px; scrollbar-width: none; }
  .nav-note { display: none; }
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: auto; }
  .hero picture { position: absolute; inset: 0; }
  .hero img { object-position: 50% 0%; }
  .hero::after { background: linear-gradient(to top, rgba(12, 22, 32, .9) 0%, rgba(12, 22, 32, .7) 42%, rgba(12, 22, 32, 0) 70%); }
  .hero-text { position: relative; bottom: auto; padding: 250px var(--m) 28px; }
  .hero h1 { font-size: 46px; }
  .lede { font-size: 17px; margin-top: 14px; }
  .actions { margin-top: 20px; gap: 10px; }
  .actions .btn { flex: 1 1 100%; }
  .btn { font-size: 22px; min-height: 50px; }
  .intro { padding: 60px var(--m) 64px; text-align: left; }
  .intro p { font-size: 18px; }
  .title-row { flex-wrap: wrap; gap: 10px 20px; margin-bottom: 24px; }
  .title-row h2 { font-size: 50px; flex-basis: 100%; }
  .title-row .more { margin-left: 0; }
  .row-section { padding: 60px 0 64px; }
  .card { flex-basis: 78vw; }
  .card-wide, .cards-case .card, .cards-reader .r-lead { flex-basis: 86vw; }
  .card > img, .cards-svc .card > img { height: 380px; }
  .services::before { height: 330px; }
  .ba { height: 250px; }
  .gallery-foot blockquote p { font-size: 22px; }
  .band { padding: 60px 0; }
  .band .title-row p { font-size: 18px; }
  .ins-cols { grid-template-columns: 1fr; gap: 24px; }
  .band-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .btn-outline-light { font-size: 20px; }
  .card-quote { flex-basis: 86vw; }
  .dark .card > img { height: 360px; }
  .team { padding-top: 60px; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .m-paino { grid-column: 1 / 4; grid-row: auto; }
  .m-quote { grid-column: 1 / 4; grid-row: auto; padding: 28px 20px; }
  .m-quote p:first-child { font-size: 18px; }
  .mosaic { grid-auto-rows: auto; }
  .mosaic figure { aspect-ratio: 4 / 5; }
  .m-tile { aspect-ratio: 4 / 5; }
  .mosaic figcaption b { font-size: 17px; }
  .mosaic figcaption { font-size: 11px; padding: 24px 8px 8px; }
  .m-paino figcaption b { font-size: 30px; }
  .m-paino figcaption { font-size: 13px; padding: 30px 16px 14px; }
  .m-tile span { font-size: 28px; }
  .m-tile small { font-size: 11px; }
  .reviews { padding: 64px 0; }
  .quotes { grid-template-columns: 1fr; gap: 34px; }
  .quotes p { font-size: 18px; }
  .r-lead > img { height: 420px; }
  .book-photo img { height: 300px; }
  .book-body { padding: 56px var(--m) 60px; }
  .form { grid-template-columns: 1fr; }
  .f-submit { flex-direction: column; align-items: stretch; }
  .visit { grid-template-columns: 1fr; gap: 22px; }
  .f-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .f-top img { width: 220px; }
  .f-phone { font-size: 46px; }
  .f-cols { grid-template-columns: 1fr; gap: 24px; }
  .f-bottom { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
