/* ==========================================================================
   LUMEN DENTAL — sections
   hero · assurances · treatments · about · team · experience · reviews ·
   faq · booking · final CTA · footer
   ========================================================================== */

/* Hero */
.hero { padding-block: clamp(20px, 3vw, 48px) clamp(48px, 6vw, 96px); }
.hero__grid { display: grid; gap: 28px; }
.hero__title { margin-top: 1.4rem; }
.hero__copy { margin-top: 1.3rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 26em; }
.hero__actions { display: grid; gap: 12px; margin-top: 1.8rem; }
.hero__photo { aspect-ratio: 5 / 4; border-radius: 28px; }
.hero__photo img { --pos: 62% 40%; animation: hero-in 1.8s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.06); opacity: 0.4; } }

.assure { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.assure li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; font-weight: 500; }
.assure .i { color: var(--sage-dk); }

@media (min-width: 640px) {
  .hero__actions { grid-auto-flow: column; grid-auto-columns: max-content; }
}

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
  .hero__photo { aspect-ratio: 4 / 4.4; border-radius: 999px 999px 32px 32px; }
  .hero__photo img { --pos: 64% 45%; }
}

/* Clinic strip */
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: var(--section-y); }
.strip__item { aspect-ratio: 4 / 4.4; }
.strip__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.strip__item img { transition: transform 1.6s var(--ease); }
.strip__item:hover img { transform: scale(1.04); }
@media (min-width: 720px) {
  .strip { grid-template-columns: 1.4fr 1fr 1fr; }
  .strip__item { aspect-ratio: 3 / 3.6; }
  .strip__item:first-child { grid-column: auto; aspect-ratio: auto; }
}

/* Treatments */
.tnav { display: flex; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: clamp(28px, 4vw, 48px); }
.tnav::-webkit-scrollbar { display: none; }
.tnav a { flex: none; padding: 0.6em 1.2em; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: 0.92rem; font-weight: 600; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.tnav a:hover { background: var(--beige); }
.tnav a.is-active { background: var(--char); border-color: var(--char); color: var(--warm); }

.treat { display: grid; gap: 22px; padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); }
.treat:last-child { border-bottom: 1px solid var(--line); }
.treat__media { aspect-ratio: 4 / 3; }
.treat__media img { transition: transform 1.8s var(--ease); }
.treat:hover .treat__media img { transform: scale(1.035); }
.treat__no { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--sage-dk); line-height: 1; }
.treat__name { margin-top: 0.7rem; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.treat__lede { margin-top: 1rem; font-size: 1.12rem; line-height: 1.6; max-width: 30em; }
.treat__body { margin-top: 0.9rem; color: var(--ink-2); max-width: 32em; }

.treat__list { margin-top: 1.4rem; display: grid; border-top: 1px solid var(--line); }
.treat__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.98rem; }
.treat__list .i { color: var(--sage-dk); margin-top: 0.22em; width: 1.1em; height: 1.1em; }

.treat__meta { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin-top: 1.4rem; }
.treat__meta div { display: grid; gap: 0.15rem; }
.treat__meta dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.treat__meta dd { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.treat__cta { margin-top: 1.4rem; }

@media (min-width: 900px) {
  .treat { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 120px); }
  .treat:nth-of-type(even) .treat__media { order: 2; }
  .treat__media { aspect-ratio: 4 / 4.2; }
  .treat--tall .treat__media { aspect-ratio: 4 / 5; }
}
.treat__media.photo--arch { aspect-ratio: 4 / 5; }
@media (max-width: 719px) { .treat__media.photo--arch { aspect-ratio: 1 / 1; border-radius: var(--r); } }

/* About */
.about__grid { display: grid; gap: 40px; }
.about__copy .h2 { margin-block: 1.2rem 1.6rem; }
.about__copy .body-text + .body-text { margin-top: 1.1em; }
.pillars { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.pillar { display: grid; grid-template-columns: 3rem 1fr; gap: 0 0.4rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.pillar__n { grid-row: 1 / span 2; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--sage-dk); line-height: 1.3; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.pillar p { margin-top: 0.25rem; color: var(--ink-2); font-size: 0.98rem; max-width: 30em; }
.about__media { display: grid; gap: 14px; }
.about__media .a1 { aspect-ratio: 4 / 5; }
.about__media .a2 { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
  .about__media { grid-template-columns: 1fr; }
}

/* Team */
.team__grid { display: grid; gap: 40px; }
.doc__photo { aspect-ratio: 4 / 4.6; }
.doc__photo img { transition: transform 1.6s var(--ease); }
.doc:hover .doc__photo img { transform: scale(1.04); }
.doc__name { margin-top: 1.2rem; font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.015em; }
.doc__spec { margin-top: 0.4rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-dk); }
.doc__bio { margin-top: 0.9rem; color: var(--ink-2); font-size: 1rem; max-width: 30em; }
.doc__facts { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--mute); line-height: 1.6; }
@media (min-width: 640px) and (max-width: 899px) {
  .doc { display: grid; grid-template-columns: 0.8fr 1fr; gap: 28px; align-items: center; }
  .doc__name { margin-top: 0; }
}
@media (min-width: 900px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
  .doc:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
}

/* Experience timeline */
.journey { position: relative; display: grid; gap: 0; --p: 0; }
.journey__rail { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line-inv); }
.journey__rail::after { content: ""; position: absolute; inset: 0; background: #b9cbb1; transform-origin: top; transform: scaleY(var(--p)); }
.stepx { position: relative; padding: 0 0 clamp(34px, 7vw, 52px) 62px; }
.stepx:last-child { padding-bottom: 0; }
.stepx__dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-inv); background: var(--char); font-family: var(--serif); font-size: 1.15rem; color: #d5d3c9; transition: background-color 0.5s, color 0.5s, border-color 0.5s; }
.stepx.is-lit .stepx__dot { background: #b9cbb1; border-color: #b9cbb1; color: var(--char); }
.stepx__time { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #b9cbb1; padding-top: 0.5rem; }
.stepx h3 { margin-top: 0.4rem; font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; }
.stepx p { margin-top: 0.7rem; max-width: 28em; color: #cbc9be; }
.stepx ul { margin-top: 0.9rem; display: grid; gap: 0.35rem; font-size: 0.92rem; color: #d5d3c9; }
.stepx li { display: flex; gap: 0.7em; align-items: baseline; }
.stepx li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b9cbb1; flex: none; transform: translateY(-0.15em); }
@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
  .journey__rail { left: 0; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; }
  .journey__rail::after { transform-origin: left; transform: scaleX(var(--p)); }
  .stepx { padding: 76px 0 0; }
}

/* Reviews */
.reviews__grid { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.review { display: flex; flex-direction: column; gap: 1.2rem; padding-block: clamp(28px, 4.4vw, 44px); border-bottom: 1px solid var(--line); }
.review__mark { font-family: var(--serif); font-style: italic; font-size: 3.6rem; line-height: 0.5; height: 1.4rem; color: var(--sage); }
.review blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.review figcaption { display: grid; gap: 0.15rem; margin-top: auto; padding-top: 0.6rem; }
.review__name { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; }
.review__meta { font-size: 0.86rem; color: var(--mute); }
.reviews__note { margin-top: 1.6rem; font-size: 0.9rem; color: var(--mute); }
@media (min-width: 900px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 72px); border-top: 0; }
  .review { border-top: 1px solid var(--line-strong); border-bottom: 0; padding-top: 2rem; }
  .review:nth-child(2) { margin-top: clamp(24px, 5vw, 72px); }
}

/* FAQ */
.faq__grid { display: grid; gap: 32px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 68px; padding: 1.1rem 0; text-align: left; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; font-weight: 400; transition: color 0.25s; }
.qa__q:hover { color: var(--sage-dk); }
.qa__ic { position: relative; flex: none; width: 34px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 50%; transition: background-color 0.3s, border-color 0.3s; }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--char); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease), background-color 0.3s; }
.qa__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa__q[aria-expanded="true"] .qa__ic { background: var(--char); border-color: var(--char); }
.qa__q[aria-expanded="true"] .qa__ic::before, .qa__q[aria-expanded="true"] .qa__ic::after { background: var(--warm); }
.qa__q[aria-expanded="true"] .qa__ic::after { transform: translate(-50%, -50%) rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a p { padding: 0 3rem 1.4rem 0; color: var(--ink-2); max-width: 40em; }
.faq__aside { padding: clamp(22px, 3vw, 34px); background: var(--beige); border-radius: var(--r); align-self: start; }
.faq__aside h3 { font-family: var(--serif); font-weight: 300; font-size: 1.8rem; line-height: 1.1; }
.faq__aside p { margin: 0.6rem 0 1.2rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 1.6fr 0.8fr; gap: clamp(40px, 6vw, 96px); }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (prefers-reduced-motion: reduce) { .qa__a { transition: none; } }

/* Booking */
.book { background: var(--beige); }
.book__grid { display: grid; gap: 36px; }
.book__copy .h2 { margin-block: 1.2rem 1.2rem; }
.hours { margin-top: 1.8rem; border-top: 1px solid var(--line-strong); }
.hours__head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line-strong); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-dk); }
.status { display: inline-flex; align-items: center; gap: 0.6em; color: var(--char); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stone-dk); }
.status[data-state="open"]::before { background: #5a9a63; }
.hours div.row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.hours .row.is-today { color: var(--char); font-weight: 600; }
.hours .row dd { font-variant-numeric: tabular-nums; }
.book__direct { display: grid; gap: 10px; margin-top: 1.6rem; }

.formcard { padding: clamp(22px, 3.4vw, 44px); background: var(--warm); border-radius: 28px; box-shadow: 0 24px 60px rgba(60, 50, 30, 0.08); }
.formcard__title { font-family: var(--serif); font-weight: 300; font-size: 2rem; line-height: 1.1; letter-spacing: -0.015em; }
.formcard__sub { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.98rem; }
.form { display: grid; gap: 6px; margin-top: 1.6rem; }
.form__row { display: grid; gap: 6px; }
.field { display: grid; gap: 6px; min-width: 0; padding-bottom: 8px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--mute); }
.input { width: 100%; min-height: 54px; padding: 0.75em 1em; background: var(--warm); color: var(--char); border: 1.5px solid var(--stone-dk); border-radius: 14px; font: inherit; font-size: 1rem; appearance: none; -webkit-appearance: none; transition: border-color 0.25s, box-shadow 0.25s; }
textarea.input { min-height: 112px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 2.6em; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%234d6047' stroke-width='1.8'/></svg>"); background-repeat: no-repeat; background-position: right 1em center; }
.input::placeholder { color: #9b9888; }
.input:hover { border-color: var(--mute); }
.input:focus { outline: none; border-color: var(--sage-dk); box-shadow: 0 0 0 4px rgba(77, 96, 71, 0.16); }
.input[aria-invalid="true"] { border-color: #b3452c; }
.field__err { min-height: 1.1em; font-size: 0.84rem; font-weight: 500; color: #a63c25; }
.form__fine { font-size: 0.84rem; line-height: 1.55; color: var(--mute); margin-top: 0.6rem; }
.done { display: grid; gap: 14px; animation: done-in 0.6s var(--ease) both; }
.done[hidden] { display: none; }
@keyframes done-in { from { opacity: 0; transform: translateY(10px); } }
.done__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sage-lt); color: var(--sage-dk); }
.done__ic .i { width: 28px; height: 28px; }
.done h3 { font-family: var(--serif); font-weight: 300; font-size: 2rem; line-height: 1.1; }
.done__list { display: grid; border-top: 1px solid var(--line); }
.done__list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.done__list dt { color: var(--mute); }
.done__list dd { text-align: right; font-weight: 500; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; column-gap: 16px; } }
@media (min-width: 940px) { .book__grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; } }

/* Final CTA */
.cta { position: relative; background: var(--char); color: var(--warm); overflow: hidden; }
.cta__grid { display: grid; gap: 32px; align-items: center; }
.cta__title { margin-top: 1.2rem; font-size: clamp(3rem, 9vw, 7.2rem); line-height: 0.98; }
.cta__copy { margin-top: 1.4rem; color: #d5d3c9; max-width: 26em; font-size: 1.12rem; }
.cta__actions { display: grid; gap: 12px; margin-top: 1.8rem; }
.cta__photo { aspect-ratio: 4 / 4; max-width: 460px; }
.cta__photo img { --pos: 50% 30%; }
@media (min-width: 640px) { .cta__actions { grid-auto-flow: column; grid-auto-columns: max-content; } }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1.3fr 0.7fr; gap: clamp(40px, 6vw, 96px); } .cta__photo { aspect-ratio: 4 / 5; justify-self: end; width: 100%; } }
.cta .photo--arch { border-radius: 999px 999px var(--r) var(--r); }

/* Footer */
.footer { background: #1b1b17; color: #cfcdc2; padding-top: clamp(52px, 7vw, 96px); }
.footer__grid { display: grid; gap: 36px 32px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; max-width: 26em; }
.footer .logo__name { color: var(--warm); }
.footer .logo__sub { color: #b9cbb1; }
.footer__brand p { margin-top: 1.2rem; color: #a9a79b; font-size: 0.98rem; }
.footer__title { margin-bottom: 1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #b9cbb1; }
.footer__list { display: grid; gap: 0.3rem; font-size: 1rem; }
.footer__list a { display: inline-flex; align-items: center; gap: 0.6em; min-height: 40px; color: var(--warm); font-weight: 500; }
.footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__list .i { color: #b9cbb1; }
.footer__hours div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.3rem; border-bottom: 1px solid var(--line-inv); }
.footer__hours dd { color: var(--warm); font-variant-numeric: tabular-nums; }
.footer__bar { display: grid; gap: 8px; margin-top: 44px; padding-block: 22px; border-top: 1px solid var(--line-inv); font-size: 0.86rem; color: #8f8d82; }
.footer__demo { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.74rem; color: #e3d8ad; }
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 999px) { .footer { padding-bottom: 76px; } }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; }
  .footer__brand { grid-column: auto; }
  .footer__bar { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer__demo { text-align: center; }
  .footer__credit { text-align: right; }
}
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* grid children may shrink below their intrinsic width (date inputs, long words) */
.book__grid > *, .faq__grid > *, .about__grid > *, .cta__grid > *, .hero__grid > * { min-width: 0; }
.input[type="date"] { min-width: 0; max-width: 100%; }
