/* Tidewell Family Dental - demo by GL Tools. Tokens: harbor, porcelain, sky, smile yellow. */
@import url("fonts/fonts.css");
:root {
  --harbor: #0c3b52;
  --harbor-2: #0f4a66;
  --porcelain: #f4f8fa;
  --white: #ffffff;
  --sky: #0ea5e9;
  --sky-soft: #ddf0fa;
  --smile: #fbbf24;
  --ink: #0b2533;
  --ink-soft: #46606e;
  --line: #d3e2ea;
  --radius-xl: 36px;
  --radius-l: 24px;
  --radius-m: 16px;
  --shadow: 0 1px 2px rgba(12,59,82,.06), 0 24px 48px -28px rgba(12,59,82,.35);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Lora", Georgia, serif;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1200px, 100% - 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--smile); padding: 10px 16px; border-radius: 999px; z-index: 100; font-weight: 700; }
.skip:focus { top: 44px; }
.demo-strip { background: var(--harbor); color: #cfe3ee; font-size: .8125rem; text-align: center; padding: 8px 16px; line-height: 1.4; }
.demo-strip a { color: var(--smile); font-weight: 700; text-underline-offset: 3px; }

.head { position: sticky; top: 0; z-index: 40; padding: 12px 16px 0; pointer-events: none; }
.head__bar { pointer-events: auto; width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.head__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .95rem; }
.head__links a { display: inline-block; padding: 12px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); transition: background-color .3s var(--ease), color .3s var(--ease); }
.head__links a:hover { background: var(--sky-soft); color: var(--ink); }
.head__right { display: flex; align-items: center; gap: 8px; }
.lang { text-decoration: none; font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--ink-soft); font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; text-decoration: none; background: var(--harbor); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 8px 8px 8px 22px; min-height: 48px; transition: transform .5s var(--ease), background-color .3s var(--ease); }
.btn:hover { background: var(--harbor-2); }
.btn:active { transform: scale(.98); }
.btn__icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; transition: transform .5s var(--ease); }
.btn:hover .btn__icon { transform: translate(2px, -1px) scale(1.05); }
.btn--sos { background: var(--smile); color: var(--ink); padding: 8px 22px; gap: 10px; }
.btn--sos:hover { background: #f5b20b; }
.btn--line { background: transparent; color: var(--harbor); border: 1.5px solid var(--harbor); padding: 8px 22px; gap: 10px; }
.btn--line:hover { background: var(--sky-soft); }
.btn--small { min-height: 44px; padding: 5px 5px 5px 18px; font-size: .95rem; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sky-soft); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.menu-overlay { position: fixed; inset: 0; z-index: 35; background: rgba(244,248,250,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 96px 32px 48px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay ul { list-style: none; margin: 0; padding: 0; }
.menu-overlay li { overflow: hidden; }
.menu-overlay a { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 500; text-decoration: none; padding: 6px 0; transform: translateY(110%); transition: transform .7s var(--ease-out); }
.menu-overlay.is-open a { transform: none; }
.menu-overlay li:nth-child(2) a { transition-delay: .05s; } .menu-overlay li:nth-child(3) a { transition-delay: .1s; } .menu-overlay li:nth-child(4) a { transition-delay: .15s; } .menu-overlay li:nth-child(5) a { transition-delay: .2s; }
.lang-m { margin-top: 28px; color: var(--ink-soft); }

/* Hero */
.hero { padding: 64px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 24px; text-wrap: balance; }
.hero h1 em { color: var(--harbor-2); }
.hero__lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 40ch; margin: 0 0 32px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 36px 0 0; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--sky); flex: none; }
.hero__visual { position: relative; }
.hero__photo { border-radius: var(--radius-xl); overflow: hidden; background: var(--white); padding: 8px; box-shadow: var(--shadow); }
.hero__photo img { border-radius: calc(var(--radius-xl) - 8px); aspect-ratio: 5 / 4.4; object-fit: cover; width: 100%; }
.float { position: absolute; background: var(--white); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: 280px; }
.float b { display: block; font-size: .98rem; }
.float span { font-size: .88rem; color: var(--ink-soft); }
.float--slot { left: -28px; bottom: 36px; }
.float--slot i { width: 40px; height: 40px; border-radius: 12px; background: var(--sky-soft); display: grid; place-items: center; flex: none; color: var(--harbor); }
.float--plan { right: -18px; top: 28px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.18); flex: none; }
.rise { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease-out) forwards; }
.rise--2 { animation-delay: .1s; } .rise--3 { animation-delay: .2s; } .rise--4 { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.section { padding: 110px 0; }
.kicker { color: var(--harbor-2); font-weight: 700; margin: 0 0 10px; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; margin: 0; }
.sec-head { margin-bottom: 48px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--white); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sky-soft); color: var(--harbor); display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 0 0 8px; line-height: 1.2; }
.card p { margin: 0 0 16px; color: var(--ink-soft); flex: 1; }
.card__cost { font-weight: 700; font-size: .95rem; color: var(--harbor); background: var(--porcelain); border-radius: 12px; padding: 10px 14px; }
.card--photo { padding: 0; overflow: hidden; grid-row: span 2; }
.card--photo img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.card--sos { background: var(--harbor); color: #fff; }
.card--sos p { color: #cfe3ee; }
.card--sos .card__icon { background: var(--smile); color: var(--ink); }

/* Coverage checker */
.cover { background: var(--harbor); color: #fff; border-radius: var(--radius-xl); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cover .kicker { color: var(--smile); }
.cover .lead { color: #cfe3ee; }
.cover__opts { display: grid; gap: 10px; }
.copt { position: relative; }
.copt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.copt span { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.16); font-weight: 600; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.copt span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); flex: none; }
.copt input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.copt input:checked + span::before { border: 6px solid var(--harbor); }
.copt input:focus-visible + span { outline: 3px solid var(--smile); outline-offset: 2px; }
.cover__answer { margin-top: 16px; background: var(--smile); color: var(--ink); border-radius: 16px; padding: 18px 20px; font-weight: 600; min-height: 84px; }

/* New patients: a real sequence */
.np { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.np__img { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 4.4; }
.np__img img { width: 100%; height: 100%; object-fit: cover; }
.np ol { list-style: none; margin: 28px 0 0; padding: 0; }
.np li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.np li:last-child { border-bottom: 1px solid var(--line); }
.np li > span { width: 44px; height: 44px; border-radius: 50%; background: var(--sky-soft); color: var(--harbor); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.np h3 { margin: 0 0 4px; font-size: 1.1rem; }
.np p { margin: 0; color: var(--ink-soft); }

/* Booking */
.booking { background: var(--white); border-radius: var(--radius-xl); padding: 8px; box-shadow: var(--shadow); }
.booking__inner { border-radius: calc(var(--radius-xl) - 8px); background: linear-gradient(180deg, #f8fbfd, #fff); padding: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; }
fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; transition: border-color .3s var(--ease), background-color .3s var(--ease); white-space: nowrap; }
.chip small { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
.chip input:checked + span { border-color: var(--harbor); background: var(--sky-soft); }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.summary { background: var(--porcelain); border-radius: var(--radius-l); padding: 28px; align-self: start; position: sticky; top: 110px; }
.summary h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 14px; }
.summary dl { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
.confirm { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: #e3f4ec; color: #134a32; border: 1px solid #b4dcc8; }
.confirm[hidden] { display: none; }
.demo-note { font-size: .88rem; color: var(--ink-soft); margin: 14px 0 0; }

/* Team & practice */
.practice { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 14px; }
.practice figure { margin: 0; border-radius: var(--radius-l); overflow: hidden; position: relative; background: var(--sky-soft); }
.practice img { width: 100%; height: 100%; object-fit: cover; }
.practice figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }
.p1 { grid-column: span 7; grid-row: span 2; } .p2 { grid-column: span 5; grid-row: span 2; } .p3, .p4, .p5 { grid-column: span 4; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.person { background: var(--white); border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow); display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.mono { width: 64px; height: 64px; border-radius: 50%; background: var(--sky-soft); color: var(--harbor); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; }
.person h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.person .role { margin: 2px 0 8px; color: var(--harbor-2); font-weight: 700; font-size: .92rem; }
.person p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.team-note { color: var(--ink-soft); font-size: .9rem; margin-top: 14px; }

/* Reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.reviews-head .h2 { margin: 0; }
.rating { margin: 0; color: var(--ink-soft); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rating b { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); }
.example-tag { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; background: var(--white); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review__stars { color: #e3a008; display: flex; gap: 2px; }
.review blockquote { margin: 14px 0 18px; flex: 1; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.review blockquote p { margin: 0; }
.review figcaption { font-size: .9rem; color: var(--ink-soft); }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--harbor-2); font-weight: 800; }
.map { background: var(--white); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.map svg { display: block; width: 100%; height: auto; }
.map__body { padding: 24px 26px 26px; }
.map__body address { font-style: normal; font-size: 1.1rem; margin: 0 0 6px; font-weight: 600; }
.map__body p { margin: 0 0 16px; color: var(--ink-soft); }
.map__body .btn { margin: 0 8px 8px 0; }

.footer { background: var(--harbor); color: #cfe3ee; padding: 64px 0 36px; font-size: .95rem; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.footer h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.footer p { margin: 0 0 8px; }
.credits { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; line-height: 1.7; }
.credits .gl { color: var(--smile); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .head__links, .head__right > .btn { display: none; }
  .burger { display: block; }
  .hero__grid, .cover, .np, .booking__inner, .visit, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 40px 0 72px; }
  .float--slot { left: 10px; bottom: 10px; }
  .float--plan { display: none; }
  .services, .reviews-grid, .team { grid-template-columns: 1fr; }
  .card--photo { grid-row: auto; }
  .card--photo img { aspect-ratio: 16 / 10; min-height: 0; }
  .cover { padding: 32px 22px; }
  .booking__inner { padding: 28px 18px; }
  .summary { position: static; }
  .practice { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .p1 { grid-column: span 2; grid-row: span 2; } .p2 { grid-column: span 1; grid-row: span 2; } .p3, .p4 { grid-column: span 1; } .p5 { grid-column: span 2; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .row2 { grid-template-columns: 1fr; }
  .lang { display: none; }
  .person { grid-template-columns: 1fr; }
  .p2 { grid-row: span 2; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .hero__ctas .btn--sos { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}

.card--sos { grid-column: span 2; }
.card--sos .btn { margin-top: 4px; }
@media (max-width: 980px) { .card--sos { grid-column: auto; } }
.btn { white-space: nowrap; }
.summary .btn { width: 100%; justify-content: space-between; white-space: normal; text-align: left; }
.map__body .btn--line { padding: 8px 20px; }
