/* ============================================================
   Atchison Dental — Interior page system
   Depends on core.css (tokens, header, footer, buttons)
   ============================================================ */

/* Page hero banner ------------------------------------------ */
.page-hero {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-700) 65%, var(--teal-600));
  color: #eaf3f7; padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2.4rem, 5vw, 3.6rem); text-align: center;
}
.page-hero .crumb { font-size: .82rem; color: #a9d3e4; margin-bottom: .8rem; }
.page-hero .crumb a { color: #cfe6ef; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #cfe2ea; max-width: 60ch; margin: 0 auto; font-size: 1.08rem; }

/* Readable prose column ------------------------------------- */
.prose { width: min(92%, 820px); margin: clamp(2.5rem,5vw,4rem) auto; }
.prose h2 { margin-top: 2.2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--teal-100); }
.prose h3 { color: var(--teal-700); margin-top: 1.6rem; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 1.2rem; }
.prose .callout { background: var(--teal-50); border-left: 4px solid var(--teal-500); border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.prose .callout p { margin: 0; color: var(--teal-900); font-weight: 500; }
.prose .meta { color: var(--slate); font-size: .9rem; }
.prose address { font-style: normal; line-height: 1.9; }

/* About — doctors (full bio rows) --------------------------- */
.bio-row { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start;
  padding: clamp(1.6rem,3vw,2.4rem) 0; border-bottom: 1px solid var(--line); }
.bio-row:last-child { border-bottom: 0; }
.bio-row__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 1/1; background: var(--teal-50); position: sticky; top: 90px; }
.bio-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-row__photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; color: var(--teal-500); }
.bio-row__role { color: var(--teal-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .84rem; }
.bio-row h3 { font-size: 1.6rem; margin: .1rem 0 .4rem; }
.bio-row .quote { font-style: italic; color: var(--teal-700); border-left: 3px solid var(--heart); padding-left: 1rem; margin: 0 0 1rem; }
.bio-row__memberships { margin-top: .8rem; font-size: .92rem; }

/* About — team grid (with short bios) ----------------------- */
.team-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
.team-full__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.team-full__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-full__photo { aspect-ratio: 1/1; background: linear-gradient(160deg,var(--teal-100),var(--teal-50)); }
.team-full__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.team-full__photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 2.4rem; color: var(--teal-500); }
.team-full__body { padding: 1.1rem 1.3rem 1.4rem; }
.team-full__body h3 { font-family: var(--font-head); font-size: 1.12rem; color: var(--teal-900); margin: 0; }
.team-full__body .role { color: var(--teal-500); font-weight: 600; font-size: .82rem; }
.team-full__body p { font-size: .9rem; margin: .6rem 0 0; }

/* Services — category blocks -------------------------------- */
.svc-detail { display: grid; gap: 1.6rem; }
.svc-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1fr 1.4fr; }
.svc-block:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
.svc-block:nth-child(even) .svc-block__media { order: 2; }
.svc-block__media { min-height: 260px; background-size: cover; background-position: center; position: relative; }
.svc-block__media .tag { position: absolute; top: 1rem; left: 1rem; background: rgba(20,82,111,.9); color: #fff; font-family: var(--font-head); padding: .3rem .8rem; border-radius: 100px; font-size: .8rem; }
.svc-block__body { padding: clamp(1.6rem,3vw,2.4rem); }
.svc-block__body h2 { border: 0; margin-top: 0; }
.svc-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.svc-list li { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--ink); font-size: .95rem; }
.svc-list li::before { content: "✓"; color: var(--teal-500); font-weight: 700; }

/* Specialty — alternating feature split --------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem,4vw,3.5rem); align-items: center; padding: clamp(2rem,4vw,3.4rem) 0; }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }
/* height:auto is REQUIRED — a bare height="NNN" attribute otherwise beats aspect-ratio and blows the image up */
.feature__media .placeholder { border-radius: var(--radius-lg); aspect-ratio: 4/3; background: linear-gradient(160deg,var(--teal-100),var(--teal-50)); display: grid; place-items: center; font-size: 3rem; }
.feature ul { padding-left: 0; list-style: none; display: grid; gap: .55rem; margin: 1rem 0 1.4rem; }
.feature li { display: flex; gap: .6rem; align-items: flex-start; color: var(--slate); }
.feature li::before { content: "✦"; color: var(--heart); }

/* Info cards (contact) -------------------------------------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.4rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.info-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto .8rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.info-card p, .info-card a { font-size: .95rem; color: var(--slate); margin: 0; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Forms ------------------------------------------------------ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.6rem,3vw,2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-field { margin-bottom: 1rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--teal-800); margin-bottom: .35rem; }
.form-field label .req { color: var(--heart-btn); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--field-line); border-radius: 10px; font-family: inherit;
  font-size: .97rem; color: var(--ink); background: #fff; transition: border-color .15s; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  border-color: var(--teal-500); outline: 3px solid var(--teal-300); outline-offset: 1px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal-500); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--slate); }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; font-size: .92rem; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f6ee; color: #1f7a4d; }
.form-status.err { background: #fdeceb; color: #c0392b; }
.hipaa-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--slate); background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 10px; padding: .9rem 1rem; margin: 1rem 0; }
.hipaa-consent input { margin-top: .2rem; }

/* Split layout for form pages ------------------------------- */
.form-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(1.6rem,4vw,3rem); align-items: start; }
.form-aside .info-card { text-align: left; margin-bottom: 1rem; display: flex; gap: .9rem; align-items: flex-start; }
.form-aside .info-card .ico { margin: 0; flex: none; }

@media (max-width: 860px) {
  .bio-row, .svc-block, .svc-block:nth-child(even), .feature, .form-layout { grid-template-columns: 1fr; }
  .bio-row__photo { position: static; max-width: 320px; }
  .svc-block__media, .feature__media { order: -1 !important; }
  .info-cards { grid-template-columns: 1fr; }
  .form-row, .svc-list { grid-template-columns: 1fr; }
}

/* FAQ accordion --------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--teal-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q:hover { background: var(--teal-50); }
.faq-q .chev { color: var(--teal-500); transition: transform .25s var(--ease); flex: none; font-size: .8em; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-a { max-height: 480px; }
.faq-a__in { padding: 0 1.3rem 1.2rem; color: var(--slate); font-size: .96rem; line-height: 1.7; }

/* v2: large SVG icon inside specialty feature panels (replaces emoji) */
.feature__media .placeholder { color: var(--teal-500); }
.feature__media .placeholder[data-icon] svg { width: 92px; height: 92px; stroke-width: 1.2; }
.info-card .ico svg { width: 26px; height: 26px; }

/* v3: full-bleed photo hero variant of .page-hero */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero.has-photo { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-bg); background-size: cover; background-position: var(--hero-pos, center 18%); transform: scale(1.02); }
.page-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,32,45,.92), rgba(10,44,62,.74) 55%, rgba(13,58,80,.52)); }
.page-hero.has-photo .crumb { color: #a9d3e4; }

/* v5: appointment request form — choice groups (days / time / patient status) + bot trap */
.choice-group { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.choice-group legend { font-weight: 600; font-size: .88rem; color: var(--teal-800); margin-bottom: .45rem; padding: 0; }
.choice-group .form-note { margin: .45rem 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1.5px solid var(--field-line); border-radius: 100px;
  font-size: .92rem; color: var(--ink); cursor: pointer; background: #fff; transition: border-color .15s var(--ease), background .15s var(--ease); }
.choice:hover { border-color: var(--teal-300); }
.choice:has(input:checked) { border-color: var(--teal-700); background: var(--teal-50); color: var(--teal-900); font-weight: 600; }
.choice:has(input:focus-visible) { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.choice input { margin: 0; accent-color: var(--teal-700); width: 16px; height: 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* v3b: info-card — flex column so buttons align at the bottom regardless of text length */
.info-card { display: flex; flex-direction: column; align-items: center; }
.info-card .btn { margin-top: auto; }
/* fix button text contrast inside cards (.info-card a color rule was flattening it) */
.info-card a.btn { color: #fff; }
.info-card a.btn--ghost { color: var(--teal-700); }
.info-card a.btn--ghost:hover { color: var(--teal-800); }
/* keep the contact/appointment aside cards as horizontal rows */
.form-aside .info-card { flex-direction: row; align-items: flex-start; }
.form-aside .info-card .btn { margin-top: .7rem; }

/* v3b: single-row quick-link cards (Patient Resources) */
.info-cards--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1080px) { .info-cards--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .info-cards--6 { grid-template-columns: 1fr; } }

/* v3c: shared card components (.diff / .value) reused on interior pages
   (About, New Patients) — were only defined in home.css, so their icon
   boxes had no size and the SVGs rendered huge. Define them here too. */
.diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.diff__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.diff__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.diff__ico { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin-bottom: .9rem; }
.diff__card h3 { margin-bottom: .35rem; font-size: 1.08rem; }
.diff__card p { margin: 0; font-size: .93rem; }
.value { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.value .ico { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.value h3 { font-size: 1rem; margin-bottom: .15rem; }
.value p { font-size: .9rem; margin: 0; }
@media (max-width: 620px) { .diff { grid-template-columns: 1fr; } }

/* v3d: keep team-card bios to a tidy preview (was running full-length down the page) */
.team-full__body p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
  overflow: hidden; margin-top: .5rem;
}

/* v3e: Doctors — premium 2-up feature cards (replaces sparse full-width rows) */
.doctors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.doc-feature { display: grid; grid-template-columns: 190px 1fr; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.doc-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doc-feature__photo { background: var(--teal-50); min-height: 240px; }
.doc-feature__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.doc-feature__photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; color: var(--teal-500); }
.doc-feature__body { padding: 1.5rem 1.7rem 1.7rem; align-self: center; }
.doc-feature__role { color: var(--teal-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.doc-feature__body h3 { font-size: 1.45rem; margin: .15rem 0 .6rem; }
.doc-feature__body p { color: var(--slate); margin: 0 0 .7rem; font-size: .96rem; }
.doc-feature__body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .doctors-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .doc-feature { grid-template-columns: 1fr; } .doc-feature__photo { aspect-ratio: 3/2; min-height: 0; } }

/* v3e: Team cards — tighter grid, 3-line bio, "Read more" affordance */
.team-full { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.team-full__body p { -webkit-line-clamp: 3; line-clamp: 3; }
.team-full__card.has-more { cursor: pointer; }
.team-more { margin-top: .6rem; background: none; border: 0; padding: 0; color: var(--teal-700); font-weight: 600; font-size: .88rem; font-family: inherit; cursor: pointer; }
.team-full__card.has-more:hover .team-more { color: var(--teal-900); text-decoration: underline; }

/* v3e: Member modal — elegant full-bio reveal */
.mm-back { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 1.2rem;
  background: rgba(9,38,53,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mm-back.show { display: grid; animation: mmFade .2s ease; }
.mm { position: relative; width: min(100%, 760px); height: min(86vh, 540px); background: #fff; border-radius: 20px;
  overflow: hidden; display: grid; grid-template-columns: 300px 1fr; box-shadow: var(--shadow-lg); animation: mmPop .28s var(--ease); }
.mm__close { position: absolute; top: .7rem; right: .8rem; z-index: 2; width: 38px; height: 38px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.92); color: var(--teal-800); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.mm__photo { height: 100%; background: var(--teal-50); }
.mm__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.mm__photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 3.4rem; color: var(--teal-500); }
.mm__body { min-height: 0; overflow-y: auto; padding: 2rem 2.1rem 2.2rem; }
.mm__role { color: var(--teal-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.mm__name { font-size: 1.7rem; margin: .2rem 0 1rem; }
.mm__bio p { color: var(--slate); margin: 0 0 1rem; }
.mm__bio p:last-child { margin-bottom: 0; }
@keyframes mmFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes mmPop { from { opacity: 0; transform: translateY(14px) scale(.98) } to { opacity: 1; transform: none } }
@media (max-width: 640px) { .mm { grid-template-columns: 1fr; grid-template-rows: 240px 1fr; height: min(88vh, 600px); } .mm__body { padding: 1.5rem 1.6rem 1.8rem; } }

/* v3f: compact team grid — whole team visible at a glance, no stretch white-space */
.team-full { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; align-items: start; }
.team-full__body { padding: .85rem 1rem 1.05rem; }
.team-full__body h3 { font-size: 1.02rem; }
.team-full__body .role { font-size: .78rem; }
.team-full__body p { -webkit-line-clamp: 2; line-clamp: 2; margin-top: .4rem; font-size: .85rem; }
.team-more { margin-top: .45rem; font-size: .83rem; }

/* v3g: uniform team card heights (robust for any roster size) + read-more pinned bottom */
.team-full { align-items: stretch; }
.team-full__card { display: flex; flex-direction: column; }
.team-full__photo { flex: 0 0 auto; }
.team-full__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.team-more { margin-top: auto; padding-top: .35rem; }

.team-full { grid-auto-rows: 1fr; }

/* v5: every team photo box is exactly square. A portrait image was able to push its
   aspect-ratio box taller (min-height:auto), so photo heights — and the names under
   them — didn't line up. Pinning the image absolutely makes the box ignore image size. */
.team-full__photo, .doc-feature__photo { position: relative; overflow: hidden; min-height: 0; }
.team-full__photo { aspect-ratio: 1 / 1; }
.team-full__photo img, .team-full__photo .ph,
.doc-feature__photo img, .doc-feature__photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.doc-feature__photo { min-height: 240px; }
@media (max-width: 460px) { .doc-feature__photo { min-height: 0; } }
.team-full__photo .ph-soon, .doc-feature__photo .ph-soon, .mm__photo .ph-soon { color: #fff; font-size: 1.6rem; }

/* v6: team = compact horizontal cards (photo left, bio right — same shape as the doctor
   cards), a fixed 4-up grid so 12 people land 4 / 4 / 4. 2-up on tablets, 1-up on phones. */
.team-full { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; grid-auto-rows: 1fr; }
.team-full__card { display: grid; grid-template-columns: 38% minmax(0, 1fr); flex-direction: initial; }
.team-full__photo { aspect-ratio: auto; height: 100%; min-height: 150px; }
.team-full__photo img { object-position: center 18%; }
.team-full__photo .ph-soon { font-size: 1.05rem; padding: 0 .4rem; }
.team-full__body { padding: .8rem .95rem .85rem; min-width: 0; }
.team-full__body h3 { font-size: 1rem; line-height: 1.2; }
.team-full__body .role { font-size: .74rem; line-height: 1.3; margin-top: .15rem;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.team-full__body p { font-size: .82rem; line-height: 1.45; margin-top: .4rem; -webkit-line-clamp: 3; line-clamp: 3; }
.team-more { font-size: .8rem; text-align: left; }
@media (max-width: 1100px) { .team-full { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-full__card { grid-template-columns: 34% minmax(0, 1fr); } }
@media (max-width: 620px) { .team-full { grid-template-columns: 1fr; } .team-full__card { grid-template-columns: 120px minmax(0, 1fr); } }

/* v4: Smile Assurance membership plans + savings tiers */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 1.8rem 1.6rem 1.9rem; text-align: center; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card__top { border-bottom: 1px solid var(--teal-100); padding-bottom: 1.1rem; margin-bottom: 1.2rem; }
.plan-card h3 { font-size: 1.55rem; margin: 0; }
.plan-card .plan-kicker { display: block; color: var(--teal-500); font-weight: 600; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }
.plan-card .plan-price { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.7rem;
  color: var(--teal-700); line-height: 1; margin-top: .7rem; }
.plan-card .plan-per { display: block; font-size: .84rem; color: var(--slate); margin-top: .4rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; text-align: left; }
.plan-list li { display: flex; gap: .55rem; align-items: flex-start; color: var(--slate); font-size: .96rem; }
.plan-list li::before { content: "✓"; color: var(--teal-500); font-weight: 700; }
.plan-card .btn { margin-top: auto; }

.save-head { text-align: center; margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.save-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.save-card { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.8rem; text-align: center; }
.save-card__pct { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--teal-700); line-height: 1;
  padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--teal-100); }
.save-card__pct span { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-500); margin-top: .4rem; }
/* header (number + "SAVINGS") centers; the list stays flush left in the card */
.save-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; text-align: left; }
.save-list li { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; color: var(--slate); }
.save-list li::before { content: "•"; color: var(--heart); font-weight: 700; }
.save-all { margin-top: 1.2rem; text-align: center; background: var(--teal-700); color: #fff;
  border-radius: var(--radius); padding: 1rem 1.2rem; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.plan-disclaimer { margin: 1.4rem auto 0; max-width: 88ch; text-align: center; font-size: .82rem;
  line-height: 1.75; color: var(--slate); }

/* v4b: Facial esthetics — service cards, injector card, before/after gallery, steps, lightbox */
.esth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.esth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 1.8rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.esth-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.esth-card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--teal-50); color: var(--teal-600);
  display: grid; place-items: center; margin-bottom: 1rem; }
.esth-card .ico svg { width: 28px; height: 28px; }
.esth-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.esth-card p { color: var(--slate); margin: 0; }
.esth-brands { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.esth-brands li { background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-700);
  border-radius: 100px; padding: .35rem .9rem; font-size: .88rem; font-weight: 600; }

.injector-card { background: linear-gradient(150deg, var(--teal-50), #fff 65%); border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  display: grid; grid-template-columns: minmax(240px, 340px) 1fr; align-items: stretch; }
.injector-card__photo { background: var(--teal-100); }
.injector-card__photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: center 15%; }
.injector-card__body { padding: clamp(1.7rem, 4vw, 2.8rem); }
@media (max-width: 820px) {
  .injector-card { grid-template-columns: 1fr; }
  .injector-card__photo img { min-height: 0; aspect-ratio: 4/3; object-position: center 18%; }
}
.injector-card h2 { margin-bottom: .5rem; }
.injector-card p { color: var(--slate); max-width: 66ch; }
.injector-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.injector-contact { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-weight: 600; }
.injector-contact .ico { color: var(--teal-600); display: inline-grid; place-items: center; }
.injector-contact .ico svg { width: 20px; height: 20px; }

.ba-carousel { position: relative; margin-top: 2rem; padding-inline: 3.4rem; }
.ba-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: .4rem .3rem .6rem; }
.ba-track::-webkit-scrollbar { display: none; }
.ba-track .ba-item { flex: 0 0 calc((100% - 2rem) / 3); scroll-snap-align: start; }
.ba-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--teal-100); background: #fff; color: var(--teal-700); font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease); }
.ba-arrow:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.ba-arrow[disabled] { opacity: .35; cursor: default; }
.ba-arrow[disabled]:hover { background: #fff; color: var(--teal-700); border-color: var(--teal-100); }
.ba-arrow--prev { left: 0; }
.ba-arrow--next { right: 0; }
@media (max-width: 900px) { .ba-track .ba-item { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 620px) {
  .ba-carousel { padding-inline: 0; }
  .ba-track .ba-item { flex-basis: 78%; }
  .ba-arrow { top: auto; bottom: -3.6rem; transform: none; }
  .ba-arrow--prev { left: calc(50% - 3.2rem); }
  .ba-arrow--next { right: calc(50% - 3.2rem); }
  .ba-note { margin-top: 4.6rem; }
}
.ba-item { padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); display: block; }
.ba-item:hover, .ba-item:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ba-item:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; }
.ba-item:focus-visible { border-color: var(--teal-500); }
.ba-item img { display: block; width: 100%; aspect-ratio: 1/1; height: auto; object-fit: cover; background: var(--teal-50); }
.ba-note { margin-top: 1.2rem; text-align: center; font-size: .86rem; color: var(--slate); }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.6rem; }
.step-card__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-700); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: .9rem; }
.step-card h3 { font-family: var(--font-head); font-size: 1.12rem; color: var(--teal-900); margin: 0 0 .4rem; }
.step-card p { color: var(--slate); font-size: .95rem; margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,32,44,.92);
  display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-md); background: #fff; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center; line-height: 1; transition: background .2s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.8rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 2rem); }
@media (max-width: 720px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; }
}
.feature__media--fit img { aspect-ratio: auto; object-fit: contain; background: #fff;
  max-height: 460px; height: auto; width: auto; max-width: 100%; margin-inline: auto; }
.feature--top { align-items: start; padding-top: .5rem; padding-bottom: 1rem; }
.feature--top h3:first-child { margin-top: 0; }

/* v4c: benefit checklists, sign lists, hero fact chips (lip-tongue-tie + solea) */
.benefit-grid { list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
/* Max 3 per row, and any short final row centers itself (grid can't center an incomplete row).
   The max-width subtracts (columns - 1) x gap, so it must be kept in step with the gap above. */
.benefit-grid li { flex: 1 1 300px; max-width: calc((100% - 2.4rem) / 3); }
@media (max-width: 900px) { .benefit-grid li { max-width: calc((100% - 1.2rem) / 2); } }
@media (max-width: 620px) { .benefit-grid li { max-width: 100%; } }
.benefit-grid li { display: flex; align-items: flex-start; gap: .7rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.35rem; box-shadow: var(--shadow-sm); font-weight: 500; color: var(--ink); }
.benefit-grid li::before { content: "✓"; color: var(--teal-500); font-weight: 700; flex: none; }
.section--mist .benefit-grid li { background: #fff; }
.sign-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.sign-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--slate); font-size: .96rem; }
.sign-list li::before { content: "•"; color: var(--heart); font-weight: 700; flex: none; }
/* max-width:none — .hero-facts is a <p>, so it inherits the hero paragraph's 56ch cap and the chips wrap */
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-start; margin-top: 1.1rem; max-width: none; }
.hero-facts span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff;
  border-radius: 100px; padding: .4rem 1rem; font-size: .9rem; font-weight: 500; }
.promise-note { max-width: 74ch; margin: 2rem auto 0; text-align: center; color: var(--slate); font-size: 1rem; line-height: 1.85; }

/* v4d: breadcrumb sits in the hero's bottom-right corner instead of above the H1 */
.page-hero .crumb { position: absolute; right: clamp(1rem, 3vw, 2.75rem); bottom: .7rem; left: auto;
  margin: 0; font-size: .78rem; text-align: right; z-index: 1; letter-spacing: .01em; }
@media (max-width: 620px) {
  .page-hero { padding-bottom: 2.8rem; }
  .page-hero.has-photo { padding-bottom: 3.4rem; }
}

/* v4e: Smile Assurance plan-enquiry modal */
.pm { position: fixed; inset: 0; z-index: 200; background: rgba(8,32,44,.75);
  display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 2.5rem); overflow-y: auto; }
.pm[hidden] { display: none; }
.pm__card { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 2.4rem); width: min(560px, 100%); max-height: 92vh; overflow-y: auto; }
.pm__card h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .6rem; }
.pm__close { position: absolute; top: .8rem; right: .9rem; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--teal-50); color: var(--teal-700); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer; transition: background .2s var(--ease); }
.pm__close:hover { background: var(--teal-100); }
.pm__badge { display: inline-block; background: var(--teal-700); color: #fff; font-family: var(--font-head);
  font-weight: 600; border-radius: 100px; padding: .4rem 1.1rem; font-size: .95rem; margin: 0 0 .9rem; }
.pm__intro { color: var(--slate); font-size: .96rem; margin-bottom: 1.3rem; }
.pm .form-note { margin-top: .9rem; text-align: center; }

/* v4f: .promise was defined ONLY in home.css — but the pages that actually use it
   (new-patients, patient-resources) load core+pages, not home. Without this the
   two columns stacked and the photo ballooned to ~750px tall. */
.promise { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.promise__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 5/4; object-fit: cover; width: 100%; height: auto; }
@media (max-width: 860px) {
  .promise { grid-template-columns: 1fr; }
  .promise__media { order: -1; }
}

/* v4g: page heroes read bottom-left (like the home video hero) instead of centred
   over the middle of the photo — where the group shots put everyone's faces. */
.page-hero { text-align: left; display: flex; align-items: flex-end; }
/* full-bleed gutter that lines the hero words up with the header logo, not the centred .wrap */
.page-hero .wrap { width: 100%; max-width: none; padding-inline: clamp(1rem, 3vw, 2.75rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { margin: 0; max-width: 56ch; }
/* .hero-facts is a <p>, so it needs to out-specify the 56ch cap above or the chips wrap */
.page-hero p.hero-facts { max-width: none; }
.page-hero.has-photo { min-height: min(58vh, 460px); padding: clamp(3rem, 7vw, 5rem) 0 clamp(1rem, 2vw, 1.5rem); }
.page-hero:not(.has-photo) { padding-bottom: clamp(1.2rem, 2.4vw, 1.9rem); }
/* scrim re-aimed: heaviest at the bottom-left where the words now sit */
.page-hero.has-photo::after {
  background:
    linear-gradient(to top, rgba(6,28,40,.92) 0%, rgba(7,32,45,.55) 42%, rgba(9,40,56,.22) 78%),
    linear-gradient(105deg, rgba(8,32,45,.72), rgba(10,44,62,.36) 55%, rgba(13,58,80,.12));
}
@media (max-width: 620px) {
  .page-hero h1 { max-width: none; }
  .page-hero.has-photo { min-height: min(56vh, 400px); }
}

/* v4h: buttons inside the resource cards must never outgrow their card */
.info-card .btn { max-width: 100%; white-space: normal; padding-inline: .9rem; }

/* v3h: mobile — inline repeat(3,1fr) grids didn't collapse (inline beats media queries) */
@media (max-width: 820px) { .diff, .values { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .diff, .values { grid-template-columns: 1fr !important; } }
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 820px) { .tri-grid { grid-template-columns: 1fr; } }
