/* ==========================================================================
   Elara Dental Care: design system
   Palette and type follow the official Brand Guidelines v1.0.
   Navy leads, teal punctuates, white and soft tints carry the pages.
   ========================================================================== */

:root {
  /* Brand palette (from the guidelines) */
  --navy: #13395A;
  --ocean: #0a6595;
  --teal: #35beb7;
  --teal-muted: #29a2a8;
  --sage: #708d6e;
  --cream: #d3d1b6;
  --gray: #e0e0e0;
  --white: #ffffff;

  /* Soft tints derived from the palette, for large backgrounds */
  --cream-soft: #f5f4ed; /* Cream at ~30% on white */
  --teal-soft: #e9f6f5;  /* Bright Teal at ~12% on white */
  --teal-hover: #2eaaa4; /* Bright Teal, slightly deeper for hover (navy text keeps 4.5:1+) */

  /* Text */
  --ink: #23384b;        /* body text, navy-tinted neutral */
  --ink-muted: #4d6172;  /* secondary text, 6:1 on white */

  --font-heading: var(--font-poppins, "Poppins"), "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-nunito, "Nunito Sans"), "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 1px 2px rgba(19, 57, 90, 0.06), 0 10px 30px rgba(19, 57, 90, 0.1);

  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --header-h: 76px;

  /* Brand blob shape from the guidelines, used as an image mask */
  --blob: url("/brand/blob.png");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: var(--ocean); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
code { font-size: 0.85em; background: rgba(19, 57, 90, 0.07); padding: 1px 6px; border-radius: 6px; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

/* Type ------------------------------------------------------------------ */
.h1, .h2, h3 { font-family: var(--font-heading); color: var(--navy); font-weight: 600; }
.h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4rem); line-height: 1.08; letter-spacing: -0.025em; }
.h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.h2--inverse { color: #fff; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: 1.125rem; color: var(--ink-muted); max-width: 36rem; }
.prose-lg { font-size: 1.1875rem; line-height: 1.7; }
.muted-label { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 0.95rem; margin-top: 28px; margin-bottom: 8px; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-heading); font-weight: 500; font-size: 0.975rem; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 0.9rem; }
.btn--primary { background: var(--teal); color: var(--navy); }
.btn--primary:hover { background: var(--teal-hover); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--gray); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; flex-shrink: 0; }
.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: 10px 9px; font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none; border-radius: 999px; white-space: nowrap; }
.site-nav a:hover { color: var(--navy); background: var(--teal-soft); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__book { display: none; min-height: 46px; padding: 0 24px; }
.menu-toggle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gray); background: #fff; color: var(--navy); }
.menu-toggle:hover { border-color: var(--navy); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 65; background: #fff; padding: 12px var(--gutter) 40px; overflow-y: auto; }
.mobile-menu a:not(.btn) { display: block; padding: 16px 4px; font-family: var(--font-heading); font-weight: 500; font-size: 1.25rem; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gray); }
.mobile-menu__actions { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 720px) { .site-header__book { display: inline-flex; } }
@media (min-width: 1320px) {
  .site-nav { display: block; }
  .menu-toggle { display: none; }
}

/* Mobile action bar ----------------------------------------------------- */
.action-bar { display: none; }
@media (max-width: 819px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--gray); box-shadow: 0 -8px 24px rgba(19, 57, 90, 0.08);
  }
  .action-bar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 54px; border-radius: var(--radius-md); color: var(--navy); text-decoration: none;
    font-family: var(--font-heading); font-weight: 500; font-size: 0.75rem; line-height: 1.1; text-align: center;
  }
  .action-bar__item--primary { background: var(--teal); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Photographs ----------------------------------------------------------- */
.photo { position: relative; width: 100%; overflow: hidden; }
.photo--rounded { border-radius: var(--radius-xl); }
.photo--arch { border-radius: 999px 999px var(--radius-xl) var(--radius-xl); max-width: 460px; justify-self: end; }
.photo--blob {
  -webkit-mask: var(--blob) center / contain no-repeat;
  mask: var(--blob) center / contain no-repeat;
}
.photo__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 14%; text-align: center; background: var(--teal-soft); color: var(--ocean); font-weight: 600; font-size: 0.95rem; line-height: 1.4;
}
.photo--rounded .photo__empty, .photo--arch .photo__empty { outline: 2px dashed rgba(10, 101, 149, 0.28); outline-offset: -14px; border-radius: inherit; }
.section--teal .photo__empty { background: #fff; }
.section--cream .photo__empty { background: #fff; }

/* Sections -------------------------------------------------------------- */
.section { padding-block: clamp(60px, 8vw, 112px); }
.section--cream { background: var(--cream-soft); }
.section--teal { background: var(--teal-soft); }

.section-head { display: grid; gap: 20px 64px; margin-bottom: clamp(32px, 5vw, 56px); align-items: end; }
.section-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }

.split { display: grid; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__text > * + * { margin-top: 20px; }
.split__text .h2 { margin-bottom: 4px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.9fr 1.1fr; }
}

.pillars { margin-top: 28px !important; margin-bottom: 8px; }
.pillars > div { display: grid; gap: 4px 20px; padding: 16px 0; border-top: 1px solid rgba(19, 57, 90, 0.14); }
.pillars > div:last-child { border-bottom: 1px solid rgba(19, 57, 90, 0.14); }
.pillars dt { font-family: var(--font-heading); font-weight: 600; color: var(--navy); }
.pillars dd { color: var(--ink-muted); }
@media (min-width: 560px) { .pillars > div { grid-template-columns: 10rem 1fr; } }
.pillars + .btn { margin-top: 28px; }

.ticks li { position: relative; padding: 5px 0 5px 30px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 11px; border: solid var(--teal-muted); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.ticks + .btn { margin-top: 24px; }

.placeholder-note { display: block; font-size: 0.85rem; line-height: 1.5; color: var(--ink-muted); border: 1px dashed var(--sage); border-radius: 10px; padding: 6px 10px; margin-top: 6px; }

/* Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; } }
.hero__lead { margin-top: 24px; max-width: 33rem; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); line-height: 1.7; color: var(--ink-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 36px; }
.trust li { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.trust svg { background: var(--teal-soft); color: var(--navy); border-radius: 50%; padding: 4px; box-sizing: content-box; width: 18px; height: 18px; }

.hero__media { position: relative; width: min(100%, 560px); justify-self: center; }
.hero__blob-back {
  position: absolute; inset: 0; background: var(--cream); opacity: 0.55; transform: translate(-7%, 6%) rotate(-16deg) scale(0.94);
  -webkit-mask: var(--blob) center / contain no-repeat; mask: var(--blob) center / contain no-repeat;
}
.hero__media .photo { position: relative; }
.hero__card {
  position: absolute; left: -2%; bottom: 7%; display: grid; gap: 8px; padding: 14px 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-soft);
}
.hero__card-loc { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 500; font-size: 0.9rem; color: var(--navy); }
.hero__card-loc svg, .hero__card-link svg { color: var(--teal-muted); }
.hero__card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--ocean); text-decoration: none; }
.hero__card-link:hover { text-decoration: underline; }
@media (max-width: 559px) { .hero__card { left: 0; bottom: 2%; } }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__media .photo { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__card { animation: rise 0.7s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.dentist__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.5rem; color: var(--navy); margin-top: 8px !important; }
.dentist__role { color: var(--ocean); font-weight: 700; margin-top: 0 !important; }

/* Treatments grid ------------------------------------------------------- */
.tgrid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--gray); border: 1px solid var(--gray); border-radius: var(--radius-xl); overflow: hidden; }
@media (min-width: 640px) { .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tgrid { grid-template-columns: repeat(4, 1fr); } }
.tcell { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 290px; padding: 32px 28px 28px; background: #fff; transition: background-color 0.18s ease; }
.tcell:hover, .tcell:focus-within { background: var(--teal-soft); }
.tcell:focus-within { outline: 3px solid var(--ocean); outline-offset: -3px; }
.tcell__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--teal-soft); margin-bottom: 14px; transition: background-color 0.18s ease; }
.tcell:hover .tcell__icon, .tcell:focus-within .tcell__icon { background: #fff; }
.tcell p { flex: 1; color: var(--ink-muted); font-size: 0.975rem; line-height: 1.6; }
.tcell__link { font-weight: 700; font-size: 0.95rem; color: var(--ocean); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; margin-top: 8px; width: fit-content; }
.tcell__link::after { content: ""; position: absolute; inset: 0; }
.tcell__link:focus-visible { outline: none; }
.tcell--all, .tcell--all:hover { background: var(--navy); justify-content: flex-end; }
.tcell--all h3 { color: #fff; font-size: 1.35rem; }
.tcell--all p { flex: 0; color: rgba(255, 255, 255, 0.82); margin-bottom: 12px; }
.tcell--all .btn { align-self: flex-start; }

/* Why Elara ------------------------------------------------------------- */
.why { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why__card { background: var(--cream-soft); border-radius: var(--radius-lg); padding: 30px 28px 32px; }
.why__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--sage); margin-bottom: 20px; }
.why__card h3 { margin-bottom: 8px; }
.why__card p { color: var(--ink-muted); font-size: 0.975rem; }

/* First visit ----------------------------------------------------------- */
.steps { position: relative; display: grid; gap: 36px; grid-template-columns: 1fr; }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--teal); color: var(--navy); font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; box-shadow: 0 0 0 8px var(--cream-soft); margin-bottom: 20px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-muted); font-size: 0.975rem; max-width: 22rem; }
@media (max-width: 899px) {
  .steps::before { content: ""; position: absolute; left: 26px; top: 30px; bottom: 30px; width: 2px; background: rgba(112, 141, 110, 0.5); }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 22px; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps::before { content: ""; position: absolute; top: 26px; left: 27px; right: 27px; height: 2px; background: rgba(112, 141, 110, 0.5); }
}

/* Before / after slider ------------------------------------------------- */
.ba-figure figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--ink-muted); }
.ba { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-xl); overflow: hidden; background: var(--gray); user-select: none; touch-action: pan-y; --pos: 50%; }
.ba__pane { position: absolute; inset: 0; font-family: var(--font-heading); font-weight: 500; }
.ba__ph { position: absolute; top: 50%; width: 50%; transform: translateY(-50%); text-align: center; padding-inline: 10px; font-size: clamp(0.8rem, 2.8vw, 1rem); }
.ba__pane--before .ba__ph { left: 0; }
.ba__pane--after .ba__ph { right: 0; }
.ba__pane--after { background: var(--teal-soft); color: var(--ocean); }
.ba__pane--before { background: var(--cream-soft); color: var(--ink-muted); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: 16px; left: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--navy); font-family: var(--font-heading); font-weight: 500; font-size: 0.8rem; }
.ba__tag--right { left: auto; right: 16px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(19, 57, 90, 0.1); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid var(--navy); border-width: 0 0 2.5px 2.5px; }
.ba__handle span::before { left: 12px; transform: rotate(45deg); }
.ba__handle span::after { right: 12px; transform: rotate(-135deg); }
.ba__range:focus-visible ~ .ba__handle span { outline: 3px solid var(--ocean); outline-offset: 3px; }

/* Reviews --------------------------------------------------------------- */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review { background: #fff; border-radius: var(--radius-lg); padding: 28px; }
.review__by { margin-top: 14px; font-weight: 700; color: var(--navy); }
.reviews-empty { display: grid; gap: 20px 28px; align-items: center; background: #fff; border: 1.5px dashed rgba(19, 57, 90, 0.25); border-radius: var(--radius-xl); padding: 28px 32px; }
.reviews-empty h3 { font-size: 1.2rem; margin-bottom: 4px; }
.reviews-empty p { color: var(--ink-muted); }
.reviews-empty .placeholder-note { max-width: 20rem; margin: 0; }
.reviews-empty__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-muted); }
@media (min-width: 900px) { .reviews-empty { grid-template-columns: auto 1fr auto; } }

/* Articles -------------------------------------------------------------- */
.articles { display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .articles { grid-template-columns: repeat(3, 1fr); } }
.article { position: relative; }
.article__cat { margin-top: 18px; font-weight: 700; font-size: 0.875rem; color: var(--ocean); }
.article h3 { font-size: 1.25rem; margin: 6px 0 10px; }
.article h3 a { color: var(--navy); text-decoration: none; }
.article h3 a::after { content: ""; position: absolute; inset: 0; }
.article h3 a:hover { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.article > p:last-child { color: var(--ink-muted); font-size: 0.975rem; }

/* Appointment CTA ------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: clamp(64px, 9vw, 120px); }
.cta__blob {
  position: absolute; right: 3%; top: 50%; width: min(480px, 64vw); aspect-ratio: 1100 / 991; background: rgba(255, 255, 255, 0.07); transform: translateY(-50%) rotate(14deg);
  -webkit-mask: var(--blob) center / contain no-repeat; mask: var(--blob) center / contain no-repeat;
}
.cta__inner { position: relative; }
.cta__inner .h2 { max-width: 20ch; }
.cta__inner > p { margin-top: 20px; max-width: 34rem; font-size: 1.15rem; color: rgba(255, 255, 255, 0.84); }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Location -------------------------------------------------------------- */
.contact-list { display: grid; gap: 18px; margin: 28px 0 !important; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.contact-list svg { color: var(--teal-muted); margin-top: 2px; }
.contact-list span { display: block; }
.contact-list a { color: var(--ink); font-weight: 600; }
.map { border-radius: var(--radius-xl); overflow: hidden; min-height: 380px; background: var(--cream-soft); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map__empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 380px; height: 100%; padding: 32px; text-align: center; color: var(--navy);
  background-color: var(--cream-soft);
  background-image: linear-gradient(rgba(19, 57, 90, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 57, 90, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.map__empty > svg { color: var(--teal-muted); }
.map__empty p:first-of-type { font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; }
.map__empty .placeholder-note { background: rgba(255, 255, 255, 0.85); max-width: 22rem; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.84); padding-top: clamp(56px, 7vw, 88px); padding-bottom: 32px; font-size: 0.975rem; }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul li + li { margin-top: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.84); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--teal); }
.site-footer__brand p { margin-top: 20px; max-width: 26rem; }
.site-footer__contact li { overflow-wrap: anywhere; }
.site-footer__base { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); display: grid; gap: 16px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__base ul li + li { margin-top: 0; }

/* ===== Inner pages ===== */
.page-hero { background: linear-gradient(180deg, var(--teal-soft) 0%, #fff 100%); padding-block: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 64px); }
.page-hero__grid { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 900px) { .page-hero__grid:has(.page-hero__aside) { grid-template-columns: 1.3fr 0.7fr; } }
.h1--page { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: 22ch; }
.page-hero__lead { margin-top: 18px; max-width: 40rem; font-size: 1.15rem; color: var(--ink-muted); line-height: 1.7; }
.page-hero .btn-row { margin-top: 26px; }
.page-hero__aside .photo--arch { max-width: 340px; justify-self: center; }
.hero-glyph { display: grid; place-items: center; width: min(260px, 60vw); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.875rem; margin-bottom: 14px; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--gray); }
.crumbs a { color: var(--ocean); }
.byline { margin-top: 16px; color: var(--ink-muted); font-size: 0.95rem; }

.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.prose-block { max-width: 52rem; }
.prose-block > * + * { margin-top: 16px; }
.prose-block p { color: var(--ink); }
.h2--sm { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); margin-bottom: 4px; }
.h3-lg { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 1.3rem; line-height: 1.3; margin-bottom: 8px; }
.h3-sm { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-bottom: 10px; }
.muted { color: var(--ink-muted); font-size: 0.95rem; }
.pull { font-family: var(--font-heading); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: var(--navy); font-weight: 500; }
.legal h2 { margin-top: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.numlist { display: grid; gap: 14px; }
.numlist li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.numlist span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--navy); font-family: var(--font-heading); font-weight: 600; }
.numlist p { padding-top: 6px; }

.notice { border-radius: var(--radius-lg); background: #fff; border: 1.5px solid var(--teal); padding: 18px 22px; margin-block: 20px; }
.notice strong { display: block; font-family: var(--font-heading); color: var(--navy); margin-bottom: 4px; }
.section--teal .notice, .section--cream .notice { background: #fff; }

.two-up { display: grid; gap: 20px; }
@media (min-width: 800px) { .two-up { grid-template-columns: 1fr 1fr; } }
.card-soft { background: var(--cream-soft); border-radius: var(--radius-lg); padding: 28px; }
.card-soft--do { background: var(--teal-soft); }
.crosses li { position: relative; padding: 5px 0 5px 30px; }
.crosses li::before { content: "✕"; position: absolute; left: 4px; top: 5px; color: var(--navy); font-weight: 700; font-size: 0.9rem; }
.pillars + .btn { margin-top: 28px; }

.facts { display: grid; gap: 1px; background: var(--gray); border: 1px solid var(--gray); border-radius: var(--radius-md); overflow: hidden; margin-top: 20px; }
.facts > div { display: grid; gap: 4px 20px; padding: 14px 18px; background: #fff; }
@media (min-width: 600px) { .facts > div { grid-template-columns: 14rem 1fr; } }
.facts dt { font-weight: 700; color: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips a, .chips li:not(:has(a)), .chip { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--gray); color: var(--navy); font-weight: 600; font-size: 0.925rem; text-decoration: none; }
.chips a:hover { border-color: var(--teal); background: var(--teal-soft); }
.chips--plain li { background: var(--cream-soft); border-color: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { cursor: pointer; font-family: var(--font-body); }
.chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }

.tcards { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .tcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tcards { grid-template-columns: repeat(3, 1fr); } }
.tcard { position: relative; background: #fff; border: 1.5px solid var(--gray); border-radius: var(--radius-lg); padding: 24px; transition: border-color .18s, box-shadow .18s; }
.tcard:hover, .tcard:focus-within { border-color: var(--teal); box-shadow: var(--shadow-soft); }
.tcard h3 { margin: 10px 0 6px; }
.tcard h3 a { color: var(--navy); text-decoration: none; }
.tcard h3 a::after { content: ""; position: absolute; inset: 0; }
.tcard p { color: var(--ink-muted); font-size: 0.975rem; }
.related-reading { margin-top: 24px; color: var(--ink-muted); }

.detail-grid { display: grid; gap: 18px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
.detail-card { background: #fff; border-radius: var(--radius-lg); padding: 24px 26px; border: 1px solid var(--gray); }
.detail-card h3 { margin-bottom: 8px; }
.detail-card p + p, .detail-card p + .ticks { margin-top: 8px; }
.urgent-line { margin-top: 12px; font-size: 0.925rem; color: var(--navy); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq__item { background: #fff; border: 1.5px solid var(--gray); border-radius: var(--radius-md); padding: 0 20px; }
.faq__item[open] { border-color: var(--teal); }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; color: var(--navy); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal-muted); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding-bottom: 16px; color: var(--ink); }
.faq__search input { width: 100%; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--gray); font: inherit; }
.faq__none { margin-top: 12px; color: var(--ink-muted); }
[hidden] { display: none !important; }

/* Cover art */
.cover { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--radius-xl); overflow: hidden; }
.cover--teal { background: var(--teal-soft); } .cover--cream { background: var(--cream-soft); }
.cover__blob { position: absolute; inset: 8% 14%; background: rgba(53,190,183,.16); -webkit-mask: var(--blob) center / contain no-repeat; mask: var(--blob) center / contain no-repeat; }
.cover--cream .cover__blob { background: rgba(211,209,182,.55); }
.cover svg { position: relative; }
.photo__brand { position: absolute; inset: 0; display: grid; place-items: center; background: var(--teal-soft); }
.photo__brand img { width: 34%; height: auto; opacity: .9; }
.articles--grid { grid-template-columns: 1fr; display: grid; gap: 40px 28px; }
@media (min-width: 700px) { .articles--grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .articles--grid { grid-template-columns: repeat(3, 1fr); } }
.article-body section + section { margin-top: 28px; }
.article-body .faq { max-width: none; margin-top: 12px; }

/* Gallery */
.cases { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cases { grid-template-columns: repeat(2, 1fr); } }
.case h3 { margin-top: 14px; }
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 20px; }

/* Forms and contact */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.form-card, .side-card { background: #fff; border: 1.5px solid var(--gray); border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-soft); }
.side-card { background: var(--cream-soft); box-shadow: none; border-color: transparent; }
.side-card hr { border: 0; border-top: 1px solid rgba(19,57,90,.15); margin-block: 24px; }
.contact-list--big { margin-top: 0 !important; }
.contact-list--big li { grid-template-columns: 28px 1fr; }
.contact-list--big strong { display: block; color: var(--navy); }
.form__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c9d3d8; border-radius: var(--radius-md); font: inherit; color: var(--ink); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(10,101,149,.35); border-color: var(--ocean); }
.field.has-err input, .field.has-err select { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: 0.875rem; margin-top: 4px; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-top: 20px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--navy); }
.field--check label { font-weight: 400; font-size: 0.925rem; color: var(--ink); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: 22px; width: 100%; }
.form__submit[disabled] { opacity: .65; cursor: progress; }
.form__status { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--navy); font-weight: 600; }
.form__status.is-error { background: #fdecea; color: #7a1812; }
.form__status a { color: inherit; }
.form__fine { margin-top: 14px; font-size: 0.875rem; color: var(--ink-muted); }
.map--wide { min-height: 360px; }

.cta--band { padding-block: clamp(44px, 6vw, 84px); }
.h2--inverse.h2--sm { color: #fff; }

/* Print: aftercare sheets */
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .action-bar, .no-print, .cta, .crumbs { display: none !important; }
  .print-only { display: block; }
  body { font-size: 11pt; } .page-hero, .section--cream, .section--teal, .card-soft { background: #fff !important; }
  .section, .section--tight { padding-block: 10px; } a { color: inherit; text-decoration: none; }
}

/* Layout safety */
.site-header__bar { max-width: 1400px; }
.contact-grid > *, .split > *, .page-hero__grid > *, .two-up > * { min-width: 0; }
.contact-list li > div { min-width: 0; }
.contact-list a, .contact-list span, .contact-list strong { overflow-wrap: anywhere; }
.prose-block:has(.detail-grid) { max-width: none; }
.hero__card { bottom: -4%; }

/* Brand guidelines v1.0: Poppins headings, Nunito Sans body, Elara navy and teal. */
:root {
 --navy:#13395A; --ocean:#0A6595; --teal:#35BEB7; --teal-muted:#29A2A8;
 --sage:#708D6E; --cream:#D3D1B6;
}
body {font-family:"Nunito Sans",Nunito,Arial,sans-serif;}
h1,h2,h3,h4,.h1,.h2,.h3 {font-family:Poppins,Arial,sans-serif;letter-spacing:-.025em;}
.elara-curated-photo {display:block;width:100%;height:auto;max-height:520px;object-fit:cover;object-position:center;border-radius:8px;}
.elara-treatment-photo {max-width:1080px;margin:30px auto 38px;padding:0 22px;}
.elara-treatment-photo img {display:block;width:100%;max-height:330px;object-fit:cover;border-radius:8px;}
/* Editorial restraint: fewer ornamental effects, more breathing room. */
.section {padding-top:clamp(54px,7vw,92px);padding-bottom:clamp(54px,7vw,92px);}

/* Elara treatment education framework */
.treatment-education{margin:2.5rem 0 0;padding:2rem;border:1px solid rgba(19,57,90,.12);border-radius:24px;background:linear-gradient(135deg,#fffdf8,#f3faf8)}
.treatment-education__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:1.25rem;align-items:stretch}
.treatment-education__visual{display:flex;min-height:220px;align-items:center;justify-content:center;border-radius:18px;background:radial-gradient(circle at 50% 35%,#ffffff 0,#eef7f4 58%,#dcefeb 100%);color:#13395A;text-align:center;padding:1.5rem}
.treatment-education__visual strong{display:block;font-family:Poppins,sans-serif;font-size:1.15rem}
.treatment-education__visual span{display:block;margin-top:.5rem;color:#496879;font-size:.92rem}
.treatment-education__steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1rem 0 0;padding:0;list-style:none}
.treatment-education__steps li{padding:1rem;border-radius:14px;background:#fff;border:1px solid rgba(19,57,90,.1)}
.treatment-education__steps b{display:block;color:#13395A;margin-bottom:.25rem}
.treatment-education__links{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.25rem}
.smile-gallery-framework{margin-top:2rem;padding:1.5rem;border-radius:22px;background:#f3faf8;border:1px solid rgba(19,57,90,.12)}
.smile-gallery-filters{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}
.smile-gallery-filter{border:1px solid rgba(19,57,90,.2);border-radius:999px;background:#fff;color:#13395A;padding:.55rem .85rem;cursor:pointer}
.smile-gallery-filter[aria-pressed="true"]{background:#13395A;color:#fff}
.smile-gallery-empty{padding:1.25rem;border-radius:16px;background:#fff;color:#496879}
@media(max-width:760px){.treatment-education__grid{grid-template-columns:1fr}.treatment-education__steps{grid-template-columns:1fr}.treatment-education{padding:1.15rem}}

/* Approved treatment illustration integration */
.treatment-illustration{padding-block:clamp(36px,6vw,72px);background:var(--cream-soft)}
.treatment-illustration__inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,72px);align-items:center}
.treatment-illustration__media{min-height:260px;border-radius:var(--radius-xl);background:var(--cream);overflow:hidden;display:grid;place-items:center}
.treatment-illustration__media img{display:block;width:100%;height:100%;max-height:420px;object-fit:contain;object-position:center}
.treatment-illustration__copy h2{margin-top:8px}
.treatment-illustration__copy p{color:var(--ink-muted)}
.tcell__icon--image{padding:0;overflow:hidden}
.tcell__icon--image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:760px){.treatment-illustration__inner{grid-template-columns:1fr}.treatment-illustration__media{min-height:210px}.tcell__icon--image{width:88px;height:72px}}

/* Homepage treatment card visual layout correction */
.tcell{display:flex;flex-direction:column;align-items:stretch;min-height:100%;}
.tcell__icon--image{position:relative;inset:auto;flex:0 0 auto;width:100%;height:190px;margin:0 0 1.1rem;padding:.75rem;overflow:hidden;border-radius:18px;background:var(--cream,#f7f5ef);display:flex;align-items:center;justify-content:center;}
.tcell__icon--image img{position:static;display:block;width:100%;height:100%;object-fit:contain;object-position:center;}
.tcell h3,.tcell p,.tcell .tcell__link{position:relative;z-index:1;}
@media(max-width:760px){.tcell__icon--image{width:100%;height:120px;margin-bottom:.85rem;padding:.5rem;}}
/* Treatment hero artwork alignment correction */
.page-hero__aside {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glyph.hero-illustration {
  width: min(100%, 340px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin-inline: auto;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.hero-glyph.hero-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
  object-position: initial;
}
@media (max-width: 899px) {
  .page-hero__aside {
    order: 2;
    width: 100%;
  }
  .hero-glyph.hero-illustration {
    width: min(100%, 420px);
  }
}
/* Related treatment thumbnails */
.tcards .tcell__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-soft);
}
.tcards .tcell__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 899px) {
  .tcards {
    min-width: 0;
  }
  .tcards .tcard {
    min-width: 0;
  }
}
/* Final shared treatment hero frame */
.page-hero__aside {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glyph.hero-illustration {
  width: min(100%, 340px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.hero-glyph.hero-illustration img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: initial;
  object-position: initial;
}
@media (max-width: 899px) {
  .page-hero__aside {
    order: 2;
    width: 100%;
  }
  .hero-glyph.hero-illustration {
    width: min(100%, 420px);
  }
}
/* Final related-treatment thumbnail sizing */
.tcell__icon.tcell__thumb {
  display: block;
  width: min(100%, 144px);
  height: auto;
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-soft);
}
.tcell__icon.tcell__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 899px) {
  .tcell__icon.tcell__thumb {
    width: min(100%, 144px);
    max-width: 100%;
  }
}

