/* Glendora Dental Arts redesign. Format: service grid (from the Yagasaki build). One container, equal-height cards.
   Icons only on things a visitor acts on or scans for. The appointment request is a 3-step dialog (.book). */
:root {
  --bg: #ffffff;
  --alt: #f6f3ef;
  --card: #ffffff;
  --line: #e6dfd7;
  --ink: #231f20;           /* the logo's script */
  --muted: #625a55;
  --accent: #6c5744;        /* the logo's "Dental Arts" bar */
  --accent-deep: #574535;
  --accent-tint: #f2ece5;
  --leaf: #5f6b1f;          /* the logo's leaves, darkened for text contrast */
  --night: #231f20;
  --r: 14px;
  --wrap: 1440px;
  --pad: 24px;
  --gap: 20px;
  --sec: 96px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "DM Serif Text", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
}
@media (max-width: 700px) { :root { --pad: 16px; --sec: 64px; --nav-h: 64px; --gap: 14px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); font-feature-settings: "kern" 1; }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
p { margin: 0 0 1em; text-wrap: pretty; }  /* no single word left alone on a last line */
button, input, textarea { font: inherit; color: inherit; }
button, a, summary, label { touch-action: manipulation; }
.btn, .nav__burger, summary, .seg span { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font: 500 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; background: var(--ink); color: #fff; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--light { background: #fff; color: var(--ink); }
.btn--line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #000; }
  .btn--accent:hover { background: var(--accent-deep); }
  .btn--line:hover, .btn--ghost:hover { background: var(--card); border-color: var(--ink); }
  .btn--light:hover { background: var(--alt); }
  .btn--line-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- icons: Gentleface at its native 16px in a 36px tinted tile, one size everywhere ---------- */
.ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-tint); color: var(--accent); flex: none; }
.ico svg { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.nav__logo { display: block; color: var(--ink); flex: none; }
.logo { display: block; width: 132px; height: auto; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); padding: 8px 0; transition: color .2s ease; }
.nav__links a[aria-current] { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__phone { font-variant-numeric: tabular-nums; }
.nav__actions .btn { min-height: 40px; padding: 8px 14px; gap: 8px; font-size: 15px; }  /* header buttons sit tighter than page buttons */
.nav__burger { display: none; align-items: center; gap: 8px; background: none; border: 0; min-height: 44px; padding: 0 4px; font-weight: 500; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }
@media (max-width: 1240px) { .nav__phone { display: none; } }  /* the number shows with its icon, or not at all */
@media (max-width: 1040px) {
  .nav__links, .nav__phone, .nav__actions .btn { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__burger { display: inline-flex; }
  .logo { width: 112px; }
}
.menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: #fff; padding: 16px 0 32px; overflow: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--serif); font-size: 30px; line-height: 1.2; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
body.menu-open { overflow: hidden; }

/* phone dock: call and book within thumb reach */
.dock { display: none; }
@media (max-width: 700px) {
  .dock { display: grid; grid-template-columns: auto 1fr; gap: 8px; position: fixed; inset: auto 0 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--line); }
  .dock { transition: transform .3s var(--ease); }
  .dock--wait, .dock.is-away { transform: translateY(110%); }      /* on the homepage it waits until the hero buttons leave the screen */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.menu-open .dock { display: none; }
}

/* ---------- sections and grid ---------- */
.sec { padding: var(--sec) 0; }
.sec--tight { padding: calc(var(--sec) * .6) 0; }
.sec--alt { background: var(--alt); }
.sec--info { padding: 0 0 var(--sec); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec__head h2 { font-size: clamp(32px, 3.2vw, 44px); }
.sec__head p { color: var(--muted); margin: 10px 0 0; max-width: 56ch; }
.sec__head .btn { flex: none; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); grid-auto-rows: 1fr; }  /* every card in a grid is as tall as the tallest, stacked or not */
.grid--2 { --cols: 2; }
.grid--3 { --cols: 3; }
.grid--4 { --cols: 4; }
.grid--5 { --cols: 5; }
.grid--even { grid-auto-rows: 1fr; }      /* every card in the grid has the same height */
@media (max-width: 1040px) { .grid--4, .grid--5 { --cols: 3; } .grid--4.grid--info { --cols: 4; } }  /* hero cards stay in one row so they stay above the fold */
@media (max-width: 860px) { .grid--3, .grid--4, .grid--5 { --cols: 2; } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4, .grid--4.grid--info { --cols: 1; } .grid--5 { --cols: 2; } }
@media (max-width: 700px) { .sec__head { flex-direction: column; align-items: flex-start; } }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; height: 100%; }
.card .ico { margin-bottom: 4px; }
.card__t { font-family: var(--sans); font-size: 19px; font-weight: 600; line-height: 1.3; }
.card__p { color: var(--muted); font-size: 16px; margin: 0; }
.card__more { text-decoration: none; margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.card__more svg { transition: transform .2s var(--ease); }
.card--link { transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease); }
.card--link:active { transform: scale(.99); }
.card--flush { padding: 0; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .card--link:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 10px 30px -18px rgba(29,27,31,.35); transform: translateY(-2px); }
  .card--link:hover .card__more svg { transform: translateX(3px); }
}
@media (max-width: 700px) { .card { padding: 22px; } }
.card--info .card__t.is-open { color: var(--leaf); }

/* ---------- hero: text left, Dr. Lee's portrait right, as tall as the first screen allows ---------- */
.hero { background: var(--alt); }
.hero__inner { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(24px, 4vh, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero__text { max-width: 640px; }
.hero h1 { font-size: clamp(48px, min(6.2vw, 10vh), 104px); line-height: .98; letter-spacing: -0.015em; }
.hero .lede { font-size: clamp(18px, 2.4vh, 22px); color: var(--muted); margin-top: clamp(14px, 2.2vh, 24px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.6vh, 36px); }
/* 3:4 portrait, height = the first screen minus the hero padding, never wider than the 600px source */
.hero__photo { position: relative; margin: 0 0 0 auto; height: min(calc(100svh - var(--nav-h) - 2 * clamp(24px, 4vh, 48px)), 800px); aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--r); overflow: hidden; background: #ececec; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
@media (max-width: 860px) {
  .hero__inner { min-height: 0; padding-top: 16px; padding-bottom: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__photo { order: -1; width: 100%; height: auto; margin: 0; aspect-ratio: 1; }
  .hero__photo img { object-position: 50% 8%; }
  .hero h1 { font-size: 44px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- office details bar under the hero: one ruled panel, not separate cards like the services ---------- */
.infobar { background: var(--bg); padding: 40px 0; }
.infobar__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.infobar__cell { display: flex; gap: 14px; align-items: flex-start; padding: 24px 24px 24px 0; }
.infobar__cell + .infobar__cell { padding-left: 24px; border-left: 1px solid var(--line); }
.infobar__cell > div { display: flex; flex-direction: column; gap: 4px; min-height: 100%; }
.infobar .ico { border-radius: 999px; }
.infobar .card__t { font-size: 17px; }
.infobar .card__p { font-size: 15px; }
.infobar .card__more { padding-top: 6px; margin-top: auto; }
.infobar .card__t.is-open { color: var(--leaf); }
@media (max-width: 1040px) { .infobar__in { grid-template-columns: 1fr 1fr; } .infobar__cell:nth-child(3) { border-left: 0; padding-left: 0; } .infobar__cell:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .infobar { padding: 8px 0 32px; } .infobar__in { grid-template-columns: 1fr; } .infobar__cell, .infobar__cell + .infobar__cell { padding: 20px 0; border-left: 0; } .infobar__cell + .infobar__cell { border-top: 1px solid var(--line); } }

/* ---------- treatments as ruled lists ---------- */
.tcols { columns: 3; column-gap: 48px; }
.tcol { break-inside: avoid; margin-bottom: 36px; }
.tcol__h { font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows a { display: grid; grid-template-columns: 1fr 16px; gap: 2px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rows__name { font-weight: 600; }
.rows__text { grid-column: 1; color: var(--muted); font-size: 15px; }
.rows svg { grid-row: 1 / 3; grid-column: 2; color: var(--muted); transition: transform .2s var(--ease), color .2s ease; }
.sec .wrap > .rows { columns: 2; column-gap: 48px; }
.sec .wrap > .rows li { break-inside: avoid; }
@media (hover: hover) and (pointer: fine) { .rows a:hover .rows__name { color: var(--accent); } .rows a:hover svg { transform: translateX(3px); color: var(--accent); } }
@media (max-width: 1040px) { .tcols { columns: 2; } }
@media (max-width: 700px) { .tcols { columns: 1; } .sec .wrap > .rows { columns: 1; } }

/* ---------- office features: photo beside four items ---------- */
.split2 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: center; }
.photo { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--alt); aspect-ratio: 3 / 2; }
.photo { isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }  /* corners hold even while the card fades in */
.photo--tall { aspect-ratio: 4 / 5; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.feat { display: flex; flex-direction: column; gap: 8px; }
.feat .ico { margin-bottom: 4px; }
.feat .card__p .link { font-size: 15px; }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; gap: 32px; } .photo--tall { aspect-ratio: 3 / 2; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- dentists ---------- */
.person { padding: 0; overflow: hidden; gap: 4px; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.person .card__t, .person .card__p { padding: 0 20px; }
.person .card__p { padding-bottom: 20px; font-size: 15px; }
.person .card__t { font-size: 17px; }

/* ---------- reviews: equal-height cards ---------- */
.quote { margin: 0; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faqgrid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.faqgrid__side { height: auto; }
.faqgrid__side .btn { align-self: flex-start; margin-top: 8px; }
.faqgrid__list { padding: 4px 28px; height: auto; display: block; }
.qa + .qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; font-weight: 600; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.qa[open] summary svg { transform: rotate(180deg); }
.qa { interpolate-size: allow-keywords; }
.qa::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
.qa[open]::details-content { height: auto; }
.qa__a { color: var(--muted); padding-bottom: 20px; }
.qa__a p:last-child { margin: 0; }
@media (max-width: 860px) { .faqgrid { grid-template-columns: 1fr; } .faqgrid__list { padding: 4px 20px; } }

/* ---------- call to action ---------- */
.ctacard { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; border-radius: 20px; background: var(--accent); color: #fff; }
.ctacard h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 10px; }
.ctacard p { margin: 0; max-width: 52ch; color: rgba(255,255,255,.85); }
.ctacard__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
@media (max-width: 860px) { .ctacard { flex-direction: column; align-items: flex-start; padding: 32px 24px; } .ctacard__actions { width: 100%; } .ctacard__actions .btn { flex: 1 1 100%; } }

/* ---------- inner pages ---------- */
.phead { background: var(--alt); padding: 32px 0 48px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.phead h1 { font-size: clamp(38px, 4.4vw, 60px); }
.phead .lede { margin-top: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.aside { display: grid; gap: var(--gap); position: sticky; top: calc(var(--nav-h) + 24px); }
.aside .card { height: auto; }
.aside .btn { margin-top: 4px; }
.aside .link { margin-top: 4px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .aside { position: static; } }
.prose { max-width: 68ch; }
.prose.narrow { max-width: 760px; height: auto; display: block; }
.sub { font-family: var(--sans); font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.main > .sub:first-child, .prose > .sub:first-child { margin-top: 0; }
.ticks { padding-left: 1.2em; }
.products { color: var(--muted); font-size: 15px; margin-top: 24px; }
.products strong { color: var(--ink); font-weight: 600; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-radius: var(--r); overflow: hidden; margin: 32px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; }
.steps .card { padding: 22px; gap: 12px; }
.steps__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-weight: 600; font-size: 15px; }
.layout .steps.grid--4 { --cols: 2; }
@media (max-width: 560px) { .steps { --cols: 1 !important; } }
.hours { list-style: none; padding: 0; margin: 0 0 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.hours li + li { border-top: 1px solid var(--line); }
.hours li span:first-child { color: var(--muted); }
.stack { display: grid; gap: var(--gap); }
.bio { flex-direction: row; gap: 32px; height: auto; }
.bio img { width: 200px; height: 200px; object-fit: cover; border-radius: 12px; flex: none; }
.bio .card__t { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.role { color: var(--accent); font-weight: 600; margin: 6px 0 16px; }
@media (max-width: 700px) { .bio { flex-direction: column; gap: 20px; } .bio img { width: 140px; height: 140px; } .bio .card__t { font-size: 26px; } }
.plans { list-style: none; padding: 0; margin: 0; columns: 4 180px; column-gap: 32px; }
.plans li { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 500; }
.map { aspect-ratio: 4 / 3; height: auto; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* forms */
.form { gap: 20px; height: auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field__label { font-weight: 600; font-size: 15px; }
.field label span, .field__label span { color: var(--muted); font-weight: 400; }
.field__hint { color: var(--muted); font-size: 14px; }
.field input, .field textarea { width: 100%; font-size: 17px; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field__err { color: var(--accent); font-size: 14px; }
.field__err:empty { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--alt); border: 1.5px solid var(--line); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__done { display: flex; flex-direction: column; gap: 6px; }
.form__done[hidden] { display: none; }
.form.is-sent > :not(.form__done) { display: none; }

/* recap page */
.compare .compare__fig { margin: 0; align-items: center; background: var(--alt); }
.compare__fig img { width: min(300px, 100%); border-radius: 24px; box-shadow: 0 0 0 8px var(--ink); margin: 12px 0 16px; }
.compare__fig figcaption { color: var(--muted); font-size: 15px; }
.rtable { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.rtable th, .rtable td { text-align: left; vertical-align: top; padding: 16px 20px; border-top: 1px solid var(--line); }
.rtable thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 14px; background: var(--alt); }
.rtable tbody th { font-weight: 600; width: 20%; }
.rtable:not(.rtable--two) td:nth-child(2) { color: var(--muted); width: 38%; }
.recap__by { margin-top: 32px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .rtable, .rtable tbody, .rtable tr, .rtable th, .rtable td { display: block; width: auto !important; }
  .rtable thead { display: none; }
  .rtable tr { border-top: 1px solid var(--line); padding: 14px 18px; }
  .rtable tr:first-child { border-top: 0; }
  .rtable th, .rtable td { border: 0; padding: 3px 0; }
  .rtable:not(.rtable--two) td:nth-child(2)::before { content: "Current site: "; color: var(--ink); font-weight: 600; }
  .rtable:not(.rtable--two) td:nth-child(3)::before { content: "New site: "; font-weight: 600; }
}

/* ---------- footer ---------- */
.foot { background: var(--night); color: #c4bcb5; padding: 64px 0 24px; font-size: 15px; }
.foot a { color: #fff; text-decoration: none; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.foot__brand { color: #fff; }
.foot__brand p { color: #bdb7b1; margin-top: 16px; max-width: 30ch; }
.logo--foot { width: 200px; }
.logo--foot [data-part="black"] { fill: #fff; }
.logo--foot [data-part="brown"] { fill: #8c7660; }
.logo--foot [data-part="green"] { fill: #a9b55a; }
.foot__h { color: #fff; font-weight: 600; margin-bottom: 12px; }
.foot__hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.foot__hours li { display: flex; justify-content: space-between; gap: 12px; max-width: 260px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.foot__legal a { color: #bdb7b1; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; } }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- entrance: cards fade up once, only when JS runs ---------- */
.js [data-in] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-in].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-in] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- treatment cards with group filter ---------- */
.chips { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.has-js .chips { display: flex; }
.chips button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 500; font-size: 15px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease); }
.chips button:active { transform: scale(.97); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chips button:hover:not([aria-pressed="true"]) { border-color: var(--ink); } }
.tcard { gap: 8px; padding: 24px; }
.tcard .card__t { font-size: 18px; }
.tcard .card__p { font-size: 15px; }
.tcard[hidden] { display: none; }
@media (max-width: 700px) { .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 20px; padding: 2px var(--pad); scrollbar-width: none; } .chips button { flex: none; } }

/* ---------- Glendora additions ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.split2--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
@media (max-width: 860px) { .split2--rev { grid-template-columns: minmax(0, 1fr); } .map, .map--big { min-height: 0; aspect-ratio: 4 / 3; } }
.layout > *, .split2 > * { min-width: 0; }
.leegrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.leegrid .pull { font-size: clamp(28px, 2.8vw, 40px); }
@media (max-width: 860px) { .leegrid { grid-template-columns: 1fr; gap: 24px; } }
.leebox { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pull { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; color: var(--ink); text-wrap: pretty; }
.prose .pull { font-size: clamp(24px, 2vw, 30px); margin-bottom: 28px; }
.pull__by { color: var(--muted); font-weight: 600; margin: 8px 0 20px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; width: 100%; }
.facts li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }
.visit { display: grid; gap: var(--gap); grid-template-rows: auto 1fr; }
.visit .photo { aspect-ratio: 14 / 11; max-height: 340px; width: 100%; }
@media (min-width: 861px) { .map { min-height: 420px; } }
.map--big { aspect-ratio: 4 / 3; }
.layout--bio { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.layout--bio .photo { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 960px) { .layout--bio .photo { position: static; max-width: 420px; } }
.ico--lg { width: 52px; height: 52px; border-radius: 14px; }
.ico--lg svg { width: 32px; height: 32px; }
.qa[hidden] { display: none; }
.qa__a .sub { font-size: 17px; margin: 16px 0 6px; }
.qa__a .ticks { margin: 0 0 1em; }
.prose h3.sub { font-size: 18px; }

/* ---------- appointment request: dialog on desktop, full-height sheet on phones ---------- */
.book { --side: 300px; padding: 0; border: 0; border-radius: 20px; background: var(--card); color: var(--ink); width: min(980px, calc(100% - 48px)); height: min(700px, calc(100dvh - 48px)); max-width: none; max-height: none; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(35,31,32,.45); }
.book[open] { display: block; }
.book::backdrop { background: rgba(35,31,32,.55); }
.book--page { width: 100%; height: auto; min-height: 640px; border: 1px solid var(--line); box-shadow: none; }
.book__form { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: 100%; }
/* open and close: fade and a small rise; the sheet slides up on phones */
.book[open] { animation: bookIn .28s var(--ease); }
.book[open]::backdrop { animation: fadeIn .28s ease; }
.book.is-closing { animation: bookOut .18s ease-in forwards; }
.book.is-closing::backdrop { animation: fadeOut .18s ease-in forwards; }
@keyframes bookIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes bookOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
body.book-open { overflow: hidden; }

.book__side { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--accent); color: #fff; overflow: auto; }
.book__title { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 0; }
.book__intro { color: rgba(255,255,255,.82); font-size: 15px; margin: 0; }
.book__sum { margin: 8px 0 0; display: grid; gap: 0; }
.book__sum div { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.book__sum dt { font-size: 13px; color: rgba(255,255,255,.7); }
.book__sum dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; transition: opacity .2s ease; }
.book__sum dd.is-empty { font-weight: 400; color: rgba(255,255,255,.55); }
.book__call { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; color: rgba(255,255,255,.8); }
.book__call p { margin: 0; }
.book__call a { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px; color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

.book__main { display: flex; flex-direction: column; min-height: 0; }
.book__top { display: flex; align-items: center; gap: 16px; padding: 20px 28px 0; }
.book__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0; flex: 1; }
.book__steps li { position: relative; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.book__steps li::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: var(--line); }
.book__steps li::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.book__steps li.is-done::after, .book__steps li[aria-current]::after { transform: scaleX(1); }
.book__steps li[aria-current] { color: var(--ink); }
.book__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; flex: none; transition: border-color .2s ease, transform .16s var(--ease); }
.book__close:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .book__close:hover { border-color: var(--ink); } }

.book__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 24px 28px 8px; }
.book__step { display: grid; gap: 20px; align-content: start; }
.has-js .book__step:not(.is-on) { display: none; }
.book__step.is-on { animation: stepIn .26s var(--ease); }
.book__step.is-on.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-20px); } }
.book__h { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; outline: none; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.group__l { padding: 0; font-weight: 600; font-size: 15px; }
.group__l span { color: var(--muted); font-weight: 400; }
.group__err { margin: 0; color: #a3341f; font-size: 14px; font-weight: 500; }
.group__err:empty { display: none; }

/* choice tiles: radio cards, one tap each */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile, .pick { position: relative; display: block; cursor: pointer; }
.tile input, .pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile span { display: flex; align-items: center; min-height: 56px; height: 100%; padding: 12px 16px 12px 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 500; line-height: 1.3; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease); }
.tile span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 999px; border: 1.5px solid #b9afa6; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.tile input:checked + span { border-color: var(--accent); background: var(--accent-tint); }
.tile input:checked + span::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--accent); }
.tile--sm span { min-height: 52px; font-size: 15px; padding-left: 42px; }
.tile--sm span::before { left: 14px; }
.tile:active span, .pick:active span { transform: scale(.98); }
.tile input:focus-visible + span, .pick input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .tile:hover span, .pick:hover input:not(:disabled) + span { border-color: #b9afa6; } .tile:hover input:checked + span { border-color: var(--accent); } }

/* day and time picks: up to 2, numbered in the order chosen */
.picks { display: grid; gap: 8px; }
.picks--days { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.picks--times { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pick span { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 64px; height: 100%; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s ease, background-color .15s ease, opacity .15s ease, transform .16s var(--ease); }
.pick b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.pick small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pick i { position: absolute; top: -9px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 12px/1 var(--sans); opacity: 0; transform: scale(.8); transition: opacity .15s ease, transform .2s var(--ease); }
.pick input:checked + span { border-color: var(--accent); background: var(--accent-tint); }
.pick input:checked + span i { opacity: 1; transform: none; }
.pick input:disabled { cursor: not-allowed; }
.pick input:disabled + span { opacity: .45; }

.pain { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #fbf3e8; border: 1px solid #ecd9bf; }
.pain[hidden] { display: none; }
.pain p { margin: 0; font-size: 15px; }
.pain a { color: var(--accent-deep); font-weight: 600; }
.book .seg { max-width: 360px; }
.book .form__row { gap: 16px; }
.book .field input, .book .field textarea { font-size: 17px; }

.book__foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 28px 20px; border-top: 1px solid var(--line); background: var(--card); }
.book__foot [data-back][hidden] { display: inline-flex; visibility: hidden; }
.book__foot .btn--accent { min-width: 180px; }
.book.is-done .book__foot [data-back] { visibility: hidden; }

.book__done { display: grid; gap: 14px; justify-items: start; }
.book__done[hidden] { display: none; }
.book__done .ico--lg { background: #eef0e2; color: var(--leaf); }
.book__done p { margin: 0; }
.book__sum--done { width: 100%; margin: 4px 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.book__sum--done div { border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.book__sum--done div:first-child { border-top: 0; }
.book__sum--done dt { color: var(--muted); font-size: 14px; }
.book__sum--done dd { margin: 0; font-size: 15px; }
.book__note { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .book { --side: 0px; }
  .book__side { display: none; }
  .book__form { grid-template-columns: 1fr; }
  .picks--days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picks--times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .book:not(.book--page) { width: 100%; height: calc(100dvh - 12px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .book[open]:not(.book--page) { animation: sheetIn .34s var(--ease-drawer, cubic-bezier(.32,.72,0,1)); }
  .book.is-closing:not(.book--page) { animation: sheetOut .22s ease-in forwards; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
  .book__top { padding: 16px 16px 0; }
  .book__body { padding: 20px 16px 8px; }
  .book__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .book__foot .btn { flex: 1; min-width: 0; }
  .book__foot [data-back][hidden] { display: none; }
  .tiles { grid-template-columns: 1fr; gap: 8px; }
  .tiles--4 { grid-template-columns: 1fr 1fr; }
  .tile span { min-height: 52px; }
  .book--page { min-height: 0; }
  .book__sum--done div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .book[open], .book[open]:not(.book--page), .book.is-closing, .book__step.is-on { animation: fadeIn .15s ease; }
  .book.is-closing, .book.is-closing:not(.book--page) { animation: fadeOut .12s ease forwards; }
}
.book.is-done .book__foot [data-back] { display: none; }
.book.is-done .book__foot [data-next] { margin-left: auto; }
@media (min-width: 701px) { .book__sum--done { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } .book__sum--done div:nth-child(2) { border-top: 0; } .book__sum--done div { grid-template-columns: 110px 1fr; } }

.dock.dock--off { display: none; }
@media (max-width: 700px) { body:has(.dock--off) { padding-bottom: 0; } }
