/* Vienna Family Dental: a storybook homepage */
:root {
  --blue: #2148a3;      /* picture-book blue: the one strong color */
  --blue-deep: #163680;
  --ink: #1d2333;
  --page: #fbfaf5;
  --sky: #dce7f1;
  --sage: #dde6d5;
  --blush: #f5e2da;
  --butter: #f2cf6b;
  --muted: #4a5163;
  --display: "Fraunces", Georgia, serif;
  --text: "Alegreya", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.25rem/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; box-shadow: 0 0 0 6px var(--blue); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.01em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }
p { margin: 0 0 0.9em; }
.wrap { width: min(1240px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem 1rem; }
.sec-head { max-width: 40rem; margin-bottom: 3rem; }
.sec-head p { font-size: 1.35rem; color: var(--muted); margin-top: 1rem; }
.center { text-align: center; }
.ph { font-family: ui-monospace, monospace; font-size: .72em; background: #fff3c4; color: #5a4300; padding: 0 .3em; border-radius: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .7rem 1.6rem; border-radius: .6rem; font: 700 1.15rem/1 var(--text); text-decoration: none; border: 0; cursor: pointer; }
.btn-book { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-deep); }
.btn-book:hover { background: var(--blue-deep); }
.btn-moon { background: var(--butter); color: var(--ink); box-shadow: 0 3px 0 #c9a443; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.8rem; }
.call { color: inherit; text-decoration: none; font-size: 1.15rem; }
.call strong { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* header */
.top { background: var(--page); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e4e1d8; }
.top-in { display: flex; align-items: center; gap: 1.5rem; padding: .55rem 1.5rem; max-width: 1440px; margin: 0 auto; }
.brand img { width: 170px; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.top nav a:hover { color: var(--blue); text-decoration: underline; }
.top-phone { display: flex; align-items: center; gap: .4rem; color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1.08rem; white-space: nowrap; }
.top-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; }
.top-book { min-height: 2.8rem; padding: .6rem 1.2rem; white-space: nowrap; }

/* hero: a picture-book spread */
.hero { position: relative; height: min(calc(100vh - 74px), 820px); min-height: 600px; overflow: hidden; background: #e9e6df; }
.hero-pic { margin: 0; position: absolute; inset: 0; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,243,237,.92) 0%, rgba(246,243,237,.78) 34%, rgba(246,243,237,0) 56%); pointer-events: none; }
.hero-text { position: relative; z-index: 2; max-width: 37rem; padding: clamp(3rem, 9vh, 6.5rem) 0 0 max(1.5rem, calc((100vw - 1240px) / 2)); }
.where { font-size: 1.15rem; font-style: italic; color: var(--muted); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(3.2rem, 6.2vw, 5.6rem); font-weight: 450; line-height: .98; color: var(--ink); }
.lede { font-size: 1.4rem; line-height: 1.45; margin-top: 1.4rem; max-width: 30rem; }
.proof { margin-top: 1.4rem; font-size: 1.08rem; }
.proof a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.stars { color: #d9a92a; letter-spacing: .05em; }
.balloon { position: absolute; z-index: 3; width: 120px; left: calc(50% + 218px); top: 96px; fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.balloon .b-fill { fill: var(--butter); stroke: none; transform: translate(4px, 4px); }

/* who comes: picture-book vignettes */
.who { padding: 7rem 0 6rem; }
.who-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3.5rem 2.5rem; align-items: start; }
.v h3 { margin: 1.2rem 0 .5rem; }
.v h3 a { color: var(--ink); text-decoration: none; }
.v h3 a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.v p { font-size: 1.15rem; color: var(--muted); max-width: 30rem; }
.plate { margin: 0; position: relative; isolation: isolate; }
.plate img { width: 100%; border-radius: 14px; object-fit: cover; }
.plate::after { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 2px solid var(--blue); border-radius: 14px; z-index: -1; opacity: .35; }
.who-left { grid-column: 1 / span 4; grid-row: 1 / span 2; display: grid; gap: 3rem; }
.v-tod { position: relative; }
.v-tod img { aspect-ratio: 3 / 4; }
.v-shoes { grid-column: 5 / span 8; }
.v-shoes img { aspect-ratio: 16 / 8; object-position: 50% 45%; }
.v-smile { grid-column: 5 / span 4; }
.v-couple { grid-column: 9 / span 4; }
.v-smile img, .v-couple img { aspect-ratio: 4 / 3; }
.v-smile img { object-position: 25% 30%; }
.v-ouch { display: grid; grid-template-columns: 7rem 1fr; gap: 0 1.2rem; align-items: start; background: var(--blush); border-radius: 14px; padding: 1.4rem 1.6rem 1.2rem; }
.v-ouch .spot { grid-row: 1 / span 3; }
.v-ouch h3 { margin-top: .3rem; }
.v-ouch p { margin-bottom: .4rem; }
.inline-call { font-weight: 700; font-size: 1.2rem; }
.spot { width: 7rem; height: 7rem; --ink: var(--blue); --shape: var(--butter); }
.spot-tod { position: absolute; width: 9rem; height: 9rem; right: -3.5rem; top: -3.2rem; --shape: rgba(242,207,107,.9); }

/* Dr. Paino's story */
.story { background: var(--sage); padding: 7rem 0; }
.story-in { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: center; }
.arch { margin: 0; }
.arch img { border-radius: 999px 999px 18px 18px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; outline: 2px solid var(--blue); outline-offset: 10px; }
.arch figcaption { font-style: italic; text-align: center; margin-top: 1.4rem; color: var(--muted); }
.said { margin: 2rem 0; padding: 0; }
.said p { font: italic 400 1.75rem/1.35 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--blue-deep); }
.drop::first-letter { float: left; font: 500 3.9em/.8 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--blue); margin: .08em .02em 0 -.02em; }
.small { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.8rem; }

/* night */
.night { position: relative; background: var(--blue); color: #fff; padding: 7rem 0; overflow: hidden; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .st { fill: var(--butter); }
.sky .dot { fill: #fff; opacity: .7; }
.night-in { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: 5rem; align-items: center; }
.night-pic { position: relative; }
.night-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid rgba(255,255,255,.12); }
.moon { position: absolute; width: 48%; height: auto; right: -10%; top: -14%; --ink: #fff; --shape: rgba(242,207,107,.85); }
.night h2 { color: #fff; }
.night p { font-size: 1.25rem; }
.night-text > p:first-of-type { margin-top: 1.5rem; }
.night .review { border-left: 3px solid var(--butter); }
.night .review footer { color: #d6e0f5; }
.night .call { color: #fff; }
.night .call strong { color: #fff; }
.review { margin: 2rem 0 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--blue); }
.review p { font: italic 400 1.3rem/1.4 var(--display); font-variation-settings: "SOFT" 100; margin-bottom: .4rem; }
.review footer { font-size: 1rem; color: var(--muted); }

/* cases */
.cases { padding: 7rem 0 6rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair figure { margin: 0; position: relative; overflow: hidden; }
.pair img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.pair figcaption { position: absolute; left: .6rem; bottom: .6rem; background: rgba(251,250,247,.92); color: var(--ink); font-size: .9rem; font-style: italic; padding: .1rem .55rem; border-radius: 4px; }
.pair figure:first-child img { border-radius: 12px 0 0 12px; }
.pair figure:last-child img { border-radius: 0 12px 12px 0; }
.lead-case { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center; margin-bottom: 4.5rem; }
.pair-face img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.lead-text h3 { font-size: 2.2rem; margin-bottom: 1rem; }
.small-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.small-cases h3 { margin: 1.1rem 0 .4rem; font-size: 1.45rem; }
.small-cases p { font-size: 1.1rem; color: var(--muted); }
.cases-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px dashed #c9cbd3; }
.cases-foot .review { margin: 0; }
.gallery-link { margin: 2.2rem 0 0; }

/* team: a cast of characters */
.team { background: var(--blush); padding: 7rem 0 6rem; }
.cast { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2.6rem 1.8rem; }
.cast li { width: calc((100% - 5 * 1.8rem) / 6); }
.cast li { text-align: center; }
.cast img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 50%; outline: 2px solid var(--blue); outline-offset: 5px; margin-bottom: 1rem; background: #8a8590; }
.cast b { display: block; white-space: nowrap; font: 500 1.15rem/1.15 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.cast i { display: block; font-size: 1rem; color: var(--muted); margin-top: .2rem; }
.team .center { margin: 3rem 0 0; }

/* first visit */
.first { background: var(--sky); padding: 7rem 0; }
.first-in { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
.first-pic img { aspect-ratio: 4 / 6.2; object-position: 40% 50%; }
.first-pic { position: sticky; top: 7rem; }
.steps { list-style: none; counter-reset: s; margin: 2.4rem 0 2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.steps li { counter-increment: s; position: relative; padding-top: 3.6rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font: 500 1.5rem/2.6rem var(--display); text-align: center; }
.steps h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.steps p { font-size: 1.1rem; color: var(--muted); }
.pay { background: rgba(255,255,255,.6); border-radius: 14px; padding: 1.4rem 1.6rem .6rem; font-size: 1.1rem; }

/* town */
.town { position: relative; min-height: 760px; color: var(--ink); overflow: hidden; }
.town-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.town-in { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; padding: 6rem 0; align-items: end; min-height: 760px; }
.town-card { background: var(--page); padding: 2.4rem 2.4rem 1.6rem; border-radius: 14px; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.town-card h2 { margin-bottom: 1rem; }
.town-card p { font-size: 1.15rem; }
.credit { font-size: .95rem !important; font-style: italic; color: var(--muted); margin: 0; }
.cards { display: flex; gap: 1.6rem; justify-content: flex-end; align-items: end; }
.pc { margin: 0; background: #fff; padding: .7rem .7rem .3rem; width: 300px; box-shadow: 0 10px 24px rgba(20,25,40,.28); }
.pc img { aspect-ratio: 4 / 3; object-fit: cover; }
.pc figcaption { font: italic 1rem/1.3 var(--text); padding: .5rem .2rem .3rem; }
.pc-1 { transform: rotate(-2.5deg); }
.pc-2 { transform: rotate(2deg) translateY(-1.5rem); }

/* visit and book */
.visit { background: var(--sage); padding: 7rem 0 0; position: relative; }
.visit-in { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; padding-bottom: 3rem; }
.addr { font-size: 1.45rem; margin-top: 1.6rem; }
.big-phone a { font: 500 2.4rem/1 var(--display); font-variation-settings: "SOFT" 100; color: var(--blue); text-decoration: none; }
.hours { border-collapse: collapse; margin-top: 1.6rem; font-size: 1.1rem; width: 100%; max-width: 28rem; }
.hours caption { text-align: left; font: 500 1.4rem var(--display); margin-bottom: .5rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px dashed #a9b6a0; font-weight: 400; }
.hours td { text-align: right; }
.visit-proof { margin-top: 2rem; }
.visit-more { font-size: 1.05rem; color: var(--muted); max-width: 28rem; }
.ask { background: var(--page); border-radius: 16px; padding: 2.2rem; box-shadow: 0 6px 0 rgba(33,72,163,.12); }
.ask h3 { font-size: 1.9rem; }
.note { font-size: 1.05rem; color: var(--muted); margin: .6rem 0 1.2rem; }
.ask label { display: block; font-weight: 700; font-size: 1.05rem; margin: 1rem 0 .3rem; }
.ask label span { font-weight: 400; color: var(--muted); }
.ask input, .ask textarea { width: 100%; font: inherit; font-size: 1.1rem; padding: .7rem .8rem; border: 1.5px solid #9aa3b5; border-radius: 8px; background: #fff; }
.ask .btn { margin-top: 1.4rem; width: 100%; }
.hp { position: absolute; left: -9999px; }
.street { display: block; width: 100%; height: 170px; }
.street .ln { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.street .tooth { fill: var(--butter); }

/* footer */
.foot { background: var(--ink); color: #dfe3ec; padding: 4.5rem 0 2rem; font-size: 1.05rem; }
.foot a { color: #fff; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; }
.foot-brand img { width: 240px; margin-bottom: 1.4rem; }
.foot h2 { font-size: 1.35rem; margin-bottom: .8rem; color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .3rem; }
.nw { white-space: nowrap; }
.areas { margin-top: 1rem; color: #b9c0cf; font-size: .98rem; }
.foot-base { border-top: 1px solid #3a4256; margin-top: 3rem; padding-top: 1.4rem; font-size: .9rem; color: #a9b0c0; display: flex; justify-content: space-between; gap: 2rem; }
.foot-base p { margin: 0; }
.foot-base p:last-child { max-width: 44rem; text-align: right; }

/* tablet */
@media (max-width: 1180px) {
  .top nav { display: none; }
  .top-phone { margin-left: auto; }
}
@media (max-width: 960px) {
  .who-grid { grid-template-columns: 1fr 1fr; gap: 3rem 1.6rem; }
  .who-left, .v-shoes, .v-smile, .v-couple { grid-column: auto; grid-row: auto; }
  .who-left { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
  .v-shoes { grid-column: 1 / -1; order: -1; }
  .story-in, .night-in, .lead-case, .first-in, .visit-in, .town-in { grid-template-columns: 1fr; gap: 3rem; }
  .cast li { width: calc((100% - 2 * 1.8rem) / 3); }
  .small-cases { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .first-pic { position: static; }
}

/* phone */
@media (max-width: 640px) {
  body { font-size: 1.15rem; }
  .wrap { width: calc(100% - 2.5rem); }
  .top-in { padding: .5rem 1rem; gap: .7rem; }
  .brand img { width: 118px; }
  .top-phone span { display: none; }
  .top-phone { width: 44px; height: 44px; justify-content: center; border: 1.5px solid var(--blue); border-radius: 50%; }
  .top-book { min-height: 2.75rem; padding: .5rem .9rem; font-size: 1rem; }
  .hero { height: auto; min-height: 0; overflow: visible; background: var(--page); }
  .hero::after { display: none; }
  .hero-pic { position: relative; height: 300px; }
  .hero-pic img { object-position: 82% 40%; }
  .balloon { width: 60px; left: 214px; top: 22px; }
  .hero-text { padding: 1.6rem 1.25rem 2.6rem; }
  .where { font-size: 1.02rem; margin-bottom: .6rem; }
  .hero h1 { font-size: 2.9rem; }
  .lede { font-size: 1.2rem; margin-top: 1rem; }
  .acts { margin-top: 1.3rem; }
  .acts .btn { width: 100%; }
  .acts .call { width: 100%; text-align: center; }
  h2 { font-size: 2.3rem; }
  .who, .cases { padding: 4.5rem 0; }
  .story, .night, .first, .team { padding: 4.5rem 0; }
  .who-grid { grid-template-columns: 1fr; }
  .who-left { grid-template-columns: 1fr; }
  .v-shoes { grid-column: auto; }
  .v-shoes img { aspect-ratio: 4 / 3; }
  .v-tod img { aspect-ratio: 4 / 4.4; }
  .spot-tod { width: 6rem; height: 6rem; right: -.6rem; top: -2.4rem; }
  .sec-head { margin-bottom: 2.2rem; }
  .sec-head p { font-size: 1.15rem; }
  .arch { max-width: 300px; margin: 0 auto; }
  .said p { font-size: 1.35rem; }
  .night-pic { max-width: 280px; margin: 0 auto; }
  .lead-text h3 { font-size: 1.8rem; }
  .cast { gap: 1.6rem .9rem; }
  .cast li { width: calc((100% - 1.8rem) / 3); }
  .cast li.doc { width: calc((100% - 3rem) / 2); padding: 0 1rem; }
  .cast li:not(.doc) b { font-size: 1rem; }
  .cast li:not(.doc) img { outline-offset: 3px; margin-bottom: .6rem; }
  .cast i { font-size: .85rem; }
  .cast li.doc b { white-space: normal; }
  .plate::after { display: none; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .first-pic img { aspect-ratio: 4 / 3; }
  .town, .town-in { min-height: 0; }
  .town-bg { position: relative; height: 300px; }
  .town-in { padding: 0 0 3rem; margin-top: -3rem; }
  .town { background: var(--sky); }
  .cards { justify-content: center; }
  .pc { width: 46%; padding: .45rem .45rem .2rem; }
  .pc figcaption { font-size: .88rem; }
  .pc-2 { transform: rotate(2deg) translateY(-.6rem); }
  .cases-foot { grid-template-columns: 1fr; gap: 2rem; }
  .visit { padding-top: 4.5rem; }
  .ask { padding: 1.5rem; }
  .street { height: 110px; }
  .v-ouch { grid-template-columns: 1fr; }
  .v-ouch .spot { grid-row: auto; width: 56px; height: 56px; }
  .inline-call { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-in { grid-template-columns: 1fr; gap: 2rem; }
  .foot-base { flex-direction: column; }
  .foot-base p:last-child { text-align: left; }
}
