/* Larkbury Family Dental — soft mint, warm white, one deep teal. */

:root {
  --teal: #0b4a50;
  --teal-soft: #3a6468;
  --mint: #d6f0e3;
  --mint-deep: #b9e3cf;
  --mint-pale: #ecf8f2;
  --white: #fdfbf6;
  --cream: #f5efe1;
  --line: #7fa8a2;
  --head: "Fredoka", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-xl: 48px;
  --r-lg: 32px;
  --r-md: 20px;
  --pad: 20px;
}

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

html { scroll-behavior: auto; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--teal);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
svg { display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 10.5vw, 5rem); }
h2 { font-size: clamp(2.1rem, 7.4vw, 3.4rem); }
h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--teal); color: var(--white); padding: 14px 20px; border-radius: 14px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid var(--teal);
  font: 600 1.0625rem/1 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--solid { background: var(--teal); color: var(--white); }
.btn--solid:hover { background: #083a3f; border-color: #083a3f; }
.btn--line { background: var(--white); color: var(--teal); }
.btn--line:hover { background: var(--mint); }
.btn--big { min-height: 60px; padding: 0 32px; font-size: 1.125rem; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid rgba(11, 74, 80, 0.1); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; position: relative; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name { font: 600 1.25rem/1.12 var(--head); letter-spacing: -0.005em; display: flex; flex-direction: column; }
.brand__name > span { white-space: nowrap; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  background: var(--mint); color: var(--teal);
  border: 0; border-radius: 999px;
  font: 600 1.0625rem/1 var(--body); cursor: pointer;
}
.menu-btn__bars { width: 18px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }

.nav {
  display: none;
  position: absolute; top: 100%; left: 12px; right: 12px;
  flex-direction: column; gap: 4px;
  background: var(--white); border-radius: var(--r-lg);
  padding: 14px; box-shadow: 0 24px 60px rgba(11, 74, 80, 0.18);
}
.nav.is-open { display: flex; }
.nav a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 16px; text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { background: var(--mint-pale); }
.nav__phone { font-family: var(--head); font-size: 1.25rem; }
.nav__book { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { background: var(--white); overflow: hidden; }
.hero__in { display: grid; gap: 40px; padding-top: 28px; padding-bottom: 56px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mint); border-radius: 999px;
  padding: 9px 18px 9px 14px; margin-bottom: 20px;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.3;
}
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }

.lead { margin-top: 20px; font-size: 1.1875rem; line-height: 1.55; color: var(--teal-soft); max-width: 34em; }

.hero__cta { display: none; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.ticks { display: grid; gap: 10px; margin-top: -12px; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='m7.500 13.500 3.700 3.700 7.300-8' fill='none' stroke='%230b4a50' stroke-width='2.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero__art { position: relative; width: 100%; max-width: 440px; margin: 0 auto; padding: 0 8px; }
.art__arch {
  position: relative; aspect-ratio: 5 / 5.6;
  background: var(--mint);
  border-radius: 999px 999px var(--r-xl) var(--r-xl);
  display: grid; place-items: center;
}
.art__sun { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); left: -6%; top: 6%; }
.art__tooth { width: 52%; margin-top: 6%; }
.art__spark { position: absolute; }
.art__spark--a { width: 13%; right: 17%; top: 20%; }
.art__spark--b { width: 7%; left: 15%; top: 31%; }

.chip {
  position: absolute; display: grid; gap: 2px;
  background: var(--white); border-radius: 24px;
  padding: 16px 20px; min-width: 190px;
  box-shadow: 0 18px 44px rgba(11, 74, 80, 0.14);
}
.chip__label { font-size: 1.0625rem; font-weight: 600; color: var(--teal-soft); }
.chip__big { font: 600 1.75rem/1.1 var(--head); }
.chip__small { font-size: 1.0625rem; color: var(--teal-soft); }
.chip--hours { display: none; }
.chip--price { left: -4px; bottom: -22px; }
.chip--price .chip__big { font-size: 2.25rem; }

/* ---------- Sections ---------- */
.sec { padding: 72px 0; }
.sec--mint { background: var(--mint-pale); }
.sec--cream { background: var(--cream); }
.sec__head { max-width: 780px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 6px 16px;
  border: 2px solid var(--teal); border-radius: 999px;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.3;
}
.sec__intro { margin-top: 18px; font-size: 1.125rem; color: var(--teal-soft); max-width: 36em; }

/* ---------- What we do ---------- */
.bento { display: grid; gap: 16px; }
.card { border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card--mint { background: var(--mint); }
.card--cream { background: var(--cream); }
.card--teal { background: var(--teal); color: var(--white); }
.card__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; margin-bottom: 8px; }
.card--teal .card__icon { background: rgba(253, 251, 246, 0.14); }
.card__icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.625rem; }
.card p { font-size: 1.0625rem; }
.card__meta { margin-top: auto; padding-top: 12px; font-weight: 600; }
.card--teal a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--white); color: var(--teal); text-decoration: none; }
.card--teal a:hover { background: var(--mint); }
.card--teal a:focus-visible { outline-color: var(--white); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
.step { background: var(--white); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step__num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--mint); display: grid; place-items: center;
  font: 600 2.25rem/1 var(--head); margin-bottom: 8px;
}
.step p { font-size: 1.0625rem; color: var(--teal-soft); }
.step .step__time { margin-top: auto; padding-top: 10px; color: var(--teal); font-weight: 600; }

.nervous { margin-top: 24px; display: grid; gap: 18px; background: var(--mint); border-radius: var(--r-xl); padding: 28px; }
.nervous svg { width: 64px; height: 64px; }
.nervous h3 { margin-bottom: 8px; }
.nervous p { max-width: 40em; }

/* ---------- Fees ---------- */
.fees { display: grid; gap: 40px; }
.plain { margin-top: 32px; display: grid; gap: 24px; }
.plain div { padding-left: 22px; border-left: 4px solid var(--mint-deep); }
.plain dt { font: 500 1.375rem/1.25 var(--head); margin-bottom: 6px; }
.plain dd { color: var(--teal-soft); max-width: 34em; }

.ticket { background: var(--mint); border-radius: var(--r-xl); padding: 28px; }
.ticket__label { font-weight: 600; }
.ticket__price { font: 600 clamp(4rem, 20vw, 6rem)/1 var(--head); letter-spacing: -0.02em; margin: 6px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ticket__price span { font: 600 1.0625rem/1.2 var(--body); letter-spacing: 0; background: var(--white); border-radius: 999px; padding: 6px 14px; }
.ticket__note { max-width: 26em; }
.prices__cap { margin-top: 28px; font-weight: 600; }
.prices { margin-top: 12px; background: var(--white); border-radius: var(--r-lg); padding: 6px 22px; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; }
.prices li + li { border-top: 1px solid rgba(11, 74, 80, 0.14); }
.prices strong { font-weight: 700; white-space: nowrap; }
.ticket__fine { margin-top: 16px; font-size: 1.0625rem; color: var(--teal-soft); }

/* ---------- Find us ---------- */
.find { display: grid; gap: 16px; }
.hours, .address { background: var(--white); border-radius: var(--r-xl); padding: 28px; }
.hours h3, .address h3 { margin-bottom: 14px; }
.hours table { width: 100%; border-collapse: collapse; }
.hours tr { border-top: 1px solid rgba(11, 74, 80, 0.14); }
.hours th, .hours td { padding: 11px 0; text-align: left; font-weight: 400; }
.hours th { font-weight: 600; padding-right: 12px; }
.hours td { text-align: right; white-space: nowrap; }
.hours__note { margin-top: 16px; font-size: 1.0625rem; color: var(--teal-soft); }
.map { border-radius: var(--r-xl); overflow: hidden; background: var(--mint); }
.map { aspect-ratio: 1 / 1; }
.map svg { width: 100%; height: 100%; font-family: var(--body); }
.map__t { font-size: 22px; font-weight: 600; fill: var(--teal); }
.map__t--soft { font-weight: 500; }
.address p + p { margin-top: 14px; }
.tel { font: 600 1.625rem/1.2 var(--head); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; border-bottom: 3px solid var(--mint-deep); }
.tel:hover { border-color: var(--teal); }
.tel--big { font-size: clamp(2rem, 8vw, 2.75rem); }
.ways { display: grid; gap: 14px; padding: 12px 8px 0; }
.ways li { padding-left: 30px; position: relative; max-width: 38em; }
.ways li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }

/* ---------- Book ---------- */
.book { background: var(--mint); border-radius: var(--r-xl); padding: 32px 20px 20px; display: grid; gap: 32px; margin: 0 -8px; }
.book__copy { padding: 0 8px; }
.book__copy > p:not(.eyebrow) { margin-top: 16px; max-width: 30em; }
.book__or { font-weight: 600; }
.book__urgent { font-size: 1.0625rem; background: var(--white); border-radius: 18px; padding: 12px 16px; display: inline-block; }

.form { background: var(--white); border-radius: var(--r-lg); padding: 24px 20px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-weight: 600; }
.opt { font-weight: 400; color: var(--teal-soft); font-size: 1.0625rem; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 16px;
  background: var(--white); color: var(--teal);
  font: 400 1.0625rem/1.4 var(--body);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%230b4a50' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: #5b7f82; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-color: var(--teal); border-radius: 16px; }
.choices { display: grid; gap: 10px; margin-top: 8px; }
.choice { position: relative; display: flex; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border: 2px solid var(--line); border-radius: 16px; font-weight: 500; }
.choice span::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--teal); flex: none; background: var(--white); }
.choice input:checked + span { border-color: var(--teal); background: var(--mint-pale); }
.choice input:checked + span::before { box-shadow: inset 0 0 0 4px var(--white); background: var(--teal); }
.choice input:hover + span { border-color: var(--teal); }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.form__end { gap: 12px; }
.form__end .btn { width: 100%; }
.form__fine { font-size: 1.0625rem; color: var(--teal-soft); }

/* ---------- Footer ---------- */
.foot { background: var(--teal); color: var(--white); padding: 56px 0 128px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.foot__in { display: grid; gap: 28px; }
.foot__name { font: 600 1.75rem/1.15 var(--head); margin-bottom: 6px; }
.foot h2 { font: 600 1.0625rem/1.3 var(--body); letter-spacing: 0.02em; color: var(--mint); margin-bottom: 8px; }
.foot p { line-height: 1.9; }
.foot .foot__name { line-height: 1.15; }
.foot a { display: inline-block; padding: 3px 0; }
.foot a { text-underline-offset: 4px; }
.foot a:hover { color: var(--mint); }
.foot a:focus-visible { outline-color: var(--white); }
.foot__fine { font-size: 1.0625rem; line-height: 1.6 !important; opacity: 0.85; padding-top: 24px; border-top: 1px solid rgba(253, 251, 246, 0.25); max-width: 56em; }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; z-index: 40; left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px;
  background: var(--white); border-radius: 999px; padding: 8px;
  box-shadow: 0 10px 40px rgba(11, 74, 80, 0.28), 0 0 0 1px rgba(11, 74, 80, 0.08);
}
.dock .btn { min-height: 54px; padding: 0 14px; }
.dock .btn--line { background: var(--mint); border-color: var(--mint); }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  :root { --pad: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 28px 24px; }
  .nervous { grid-template-columns: auto 1fr; align-items: center; padding: 32px 36px; gap: 28px; }
  .find { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; }
  .map__t { font-size: 18px; }
  .chip--hours { display: grid; right: -4px; bottom: 30%; }
  .ways { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr 1fr; padding: 32px; }
  .field--full { grid-column: 1 / -1; }
  .choices { grid-template-columns: 1fr 1fr; }
  .form__end { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .form__end .btn { width: auto; }
  .book { padding: 44px 36px 36px; margin: 0; }
  .book__copy { padding: 0; }
  .foot__in { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot__fine { grid-column: 1 / -1; }
  .ticket { padding: 40px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  body { font-size: 19px; }
  html { scroll-padding-top: 104px; }
  .dock, .menu-btn { display: none; }

  .top__in { min-height: 88px; }
  .brand__mark { width: 48px; height: 48px; }
  .brand__name { font-size: 1.3125rem; flex-direction: row; align-items: baseline; gap: 6px; }
  .nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 4px;
    background: none; box-shadow: none; padding: 0; border-radius: 0;
  }
  .nav a:not(.btn) { min-height: 48px; padding: 0 14px; font-size: 1.0625rem; border-radius: 999px; }
  .nav__phone { margin-left: 12px; font-size: 1.25rem !important; }
  .nav__book { margin: 0 0 0 8px; }

  .hero__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 44px 56px; padding-top: 52px; padding-bottom: 72px; }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__art { grid-column: 2; grid-row: 1; }
  .hero__cta { display: flex; }
  .lead { font-size: 1.3125rem; margin-top: 24px; }
  .pill { margin-bottom: 24px; }
  .ticks { grid-column: 1 / -1; grid-row: 2; margin-top: 0; display: flex; justify-content: space-between; gap: 24px; background: var(--mint-pale); border-radius: 999px; padding: 20px 44px; font-size: 1.125rem; }
  .hero__art { max-width: 500px; margin: 0 24px 0 auto; padding: 0; }
  .chip--hours { right: -44px; bottom: 40%; }
  .art__tooth { margin-right: 14%; }
  .chip--price { left: -56px; bottom: 36px; }

  .sec { padding: 120px 0; }
  .sec__head { margin-bottom: 56px; }

  .bento { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .card { padding: 36px; }
  .card--wide, .card--wide:first-child { grid-column: span 3; }
  .card:not(.card--wide) { grid-column: span 2; }
  .card--wide { min-height: 340px; }
  .card--wide p:not(.card__meta) { max-width: 26em; }

  .steps { gap: 20px; align-items: start; }
  .step { padding: 36px; min-height: 360px; }
  .step:nth-child(2) { margin-top: 40px; }
  .step:nth-child(3) { margin-top: 80px; }
  .nervous { margin-top: 40px; max-width: 860px; }

  .fees { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 72px; align-items: start; }
  .ticket { padding: 48px; }

  .find { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; }
  .hours { grid-column: 1; grid-row: 1 / span 2; padding: 36px; }
  .map { grid-column: 2; grid-row: 1; aspect-ratio: auto; min-height: 380px; }
  .address { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 36px; }
  .address h3 { display: none; }
  .address p + p { margin-top: 0; }
  .ways { grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 28px; }

  .book { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; padding: 64px; border-radius: 64px; align-items: start; }
  .form { padding: 36px; border-radius: 40px; }

  .foot { padding: 80px 0 48px; border-radius: 64px 64px 0 0; }
  .foot__in { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}
