/* =========================================================
   Elnorte Family Dental — Design System
   Theme: "Sunlit Escondido" — warm sand, deep navy, lagoon teal,
   terracotta sun accent, arched mission-style frames.
   Fonts: Outfit (display) + Figtree (body), self-hosted in assets/vendor/fonts
   ========================================================= */

:root {
  --navy: #102a5c;
  --navy-deep: #0a1c40;
  --teal: #0f9f96;
  --teal-soft: #d8f1ee;
  --sun: #e9764f;
  --sun-soft: #fde6dc;
  --sand: #f5efe5;
  --cream: #fbf8f3;
  --ink: #12203a;
  --muted: #5d6779;
  --line: #e6ddcf;
  --white: #ffffff;

  --ff-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --arch: 999px 999px 28px 28px;
  --shadow-sm: 0 4px 14px rgba(16, 42, 92, .06);
  --shadow: 0 18px 50px -18px rgba(16, 42, 92, .28);
  --ease: cubic-bezier(.22, .9, .3, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 1.02rem;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, .display {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h1 em, h2 em, h3 em { font-style: normal; color: var(--teal); font-weight: inherit; }
.section-navy h2 em, .cta-arch h2 em { color: #7fe0d6; }
p { color: var(--muted); }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; }
::selection { background: var(--teal); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy-deep); color: #c9d3e6; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #b5c1d8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px;
}
.section-navy .eyebrow { color: #7fe0d6; }
.lead-text { font-size: 1.12rem; max-width: 640px; }

/* ---------- Buttons ---------- */
.btn-elx {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .95rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s, background .25s, color .25s;
  white-space: nowrap;
}
.btn-elx i { transition: transform .3s var(--ease); }
.btn-elx:hover i.bi-arrow-right, .btn-elx:hover i.bi-arrow-up-right { transform: translateX(4px); }
.btn-elx:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: #fff; box-shadow: 0 12px 26px -12px var(--sun); }
.btn-sun:hover { background: #d9623b; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-light-ghost:hover { background: #fff; color: var(--navy); }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Top bar + Header ---------- */
.topbar {
  background: var(--navy-deep); color: #cdd6e8; font-size: .84rem; padding: .5rem 0;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #7fe0d6; }
.topbar .sep { opacity: .35; margin: 0 .8rem; }
.topbar .pill-emergency {
  background: var(--sun); color: #fff; padding: .15rem .7rem; border-radius: 999px;
  font-weight: 700; font-size: .75rem; letter-spacing: .04em;
}

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, padding .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header .navbar { padding: 1rem 0; transition: padding .3s; }
.site-header.scrolled .navbar { padding: .55rem 0; }
.brand-logo { height: 54px; width: auto; transition: height .3s; }
.site-header.scrolled .brand-logo { height: 44px; }

.nav-main .nav-link {
  color: var(--ink); font-weight: 600; font-size: .94rem;
  padding: .5rem .9rem !important; border-radius: 999px; position: relative;
}
.nav-main .nav-link:hover, .nav-main .nav-link.active { color: var(--teal); }
.nav-main .nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px;
  background: var(--sun); border-radius: 50%; transform: translateX(-50%);
}
.nav-main .dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem;
  box-shadow: var(--shadow); min-width: 280px; background: var(--white);
}
.nav-main .dropdown-item {
  border-radius: 12px; padding: .6rem .8rem; font-weight: 600; font-size: .92rem;
  display: flex; align-items: center; gap: .7rem; color: var(--ink);
}
.nav-main .dropdown-item i {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal);
}
.nav-main .dropdown-item:hover { background: var(--sand); color: var(--navy); }
@media (min-width: 1200px) {
  .nav-main .dropdown:hover > .dropdown-menu,
  .nav-main .dropdown:focus-within > .dropdown-menu { display: block; margin-top: 0; }
}
.navbar-toggler { border: 0; padding: .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.burger { width: 28px; height: 18px; position: relative; display: inline-block; }
.burger span {
  position: absolute; left: 0; height: 2px; width: 100%; background: var(--navy);
  border-radius: 2px; transition: .3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; width: 70%; }
.burger span:nth-child(3) { top: 16px; }

.offcanvas.offcanvas-end { background: var(--cream); width: min(380px, 88vw); }
.offcanvas .mobile-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--ff-display); font-size: 1.3rem; color: var(--navy);
}
.offcanvas .mobile-nav .sub a { font-family: var(--ff-body); font-size: .98rem; padding: .55rem 0 .55rem 1rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 92% 10%, rgba(15,159,150,.12), transparent 60%),
    radial-gradient(700px 400px at -10% 90%, rgba(233,118,79,.10), transparent 60%),
    var(--cream);
}
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead-text { font-size: 1.18rem; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .45rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.hero-tag b { background: var(--teal); color: #fff; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.4rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero-proof .item { display: flex; align-items: center; gap: .7rem; }
.hero-proof .ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal); font-size: 1.25rem;
}
.hero-proof strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.2; }
.hero-proof small { color: var(--muted); font-size: .8rem; }

.hero-visual { position: relative; max-width: 470px; margin-inline: auto; }
.arch-frame {
  border-radius: var(--arch); overflow: hidden; position: relative;
  background: linear-gradient(180deg, var(--teal-soft), var(--sand));
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.arch-outline {
  position: absolute; inset: -18px -18px 30px 30px; border: 2px solid var(--sun);
  border-radius: var(--arch); z-index: -1; opacity: .55;
}
.sun-disc {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb48f, var(--sun));
  top: -30px; right: -20px; z-index: -1; filter: blur(.3px);
  animation: float 7s ease-in-out infinite;
}
.float-card {
  position: absolute; background: var(--white); border-radius: 18px; padding: .85rem 1.1rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .75rem;
  font-size: .86rem; line-height: 1.3; animation: float 6s ease-in-out infinite;
}
.float-card .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem;
}
.float-card strong { display: block; color: var(--navy); }
.float-card.fc-1 { left: -40px; top: 22%; }
.float-card.fc-1 .ico { background: var(--teal-soft); color: var(--teal); }
.float-card.fc-2 { right: -34px; bottom: 16%; animation-delay: -3s; }
.float-card.fc-2 .ico { background: var(--sun-soft); color: var(--sun); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Info ticket strip under hero */
.ticket {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 1.6rem 2rem; margin-top: -3.2rem; position: relative; z-index: 3;
  box-shadow: var(--shadow);
}
.ticket .t-item { display: flex; gap: .9rem; align-items: flex-start; }
.ticket .t-item i { font-size: 1.4rem; color: #7fe0d6; margin-top: .1rem; }
.ticket .t-item small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: #9fb0cf; font-weight: 700; }
.ticket .t-item span, .ticket .t-item a { color: #fff; font-weight: 600; font-size: .96rem; }
.ticket .t-item a:hover { color: #7fe0d6; }
@media (min-width: 992px) {
  .ticket .col-lg + .col-lg { border-left: 1px dashed rgba(255,255,255,.18); }
}

/* ---------- Insurance marquee ---------- */
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.ins-chip {
  display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .8rem 1.4rem; font-weight: 700; color: var(--navy); font-size: .98rem;
}
.ins-chip i { color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Coupons / Offers ---------- */
.coupon {
  position: relative; background: var(--white); border-radius: var(--radius);
  display: grid; grid-template-columns: 150px 1fr; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.coupon:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.coupon .stub {
  background: var(--teal); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 1.5rem .6rem;
  position: relative;
}
.coupon.sun .stub { background: var(--sun); }
.coupon .stub::after {
  content: ""; position: absolute; right: -1px; top: 10px; bottom: 10px;
  border-right: 3px dotted var(--cream);
}
.coupon .stub .price { font-family: var(--ff-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.coupon .stub small { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; opacity: .9; margin-top: .4rem; }
.coupon .body { padding: 1.7rem 1.7rem 1.5rem; }
.coupon .body h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.coupon .body ul { padding: 0; margin: .8rem 0 1.1rem; list-style: none; }
.coupon .body li { font-size: .92rem; color: var(--muted); padding-left: 1.4rem; position: relative; margin-bottom: .25rem; }
.coupon .body li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--teal); }
.coupon .fine { font-size: .75rem; color: var(--muted); }
.coupon .notch {
  position: absolute; left: 138px; width: 24px; height: 24px; border-radius: 50%; background: var(--sand);
}
.coupon .notch.t { top: -12px; } .coupon .notch.b { bottom: -12px; }
@media (max-width: 575px) {
  .coupon { grid-template-columns: 1fr; }
  .coupon .stub { flex-direction: row; gap: .8rem; padding: 1.1rem; }
  .coupon .stub::after, .coupon .notch { display: none; }
}

/* ---------- About bento ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
.bento > div { border-radius: var(--radius); padding: 1.8rem; position: relative; overflow: hidden; }
.bento .b-main { grid-column: span 4; background: var(--white); border: 1px solid var(--line); }
.bento .b-teal { grid-column: span 2; background: var(--teal); color: #fff; }
.bento .b-teal p, .bento .b-teal h3 { color: #fff; }
.bento .b-sun { grid-column: span 2; background: var(--sun-soft); }
.bento .b-navy { grid-column: span 2; background: var(--navy); }
.bento .b-navy h3, .bento .b-navy p { color: #fff; }
.bento .b-navy p { opacity: .8; }
.bento .b-sand { grid-column: span 2; background: var(--white); border: 1px solid var(--line); }
.bento .big-ico { font-size: 2rem; margin-bottom: .8rem; display: inline-block; }
.bento .b-teal .big-ico { color: #c6fff8; }
.bento .b-sun .big-ico { color: var(--sun); }
.bento .b-navy .big-ico { color: #7fe0d6; }
.bento .b-sand .big-ico { color: var(--teal); }
.bento .watermark {
  position: absolute; right: -10px; bottom: -30px; font-family: var(--ff-display);
  font-size: 8rem; font-weight: 700; color: rgba(16,42,92,.04); line-height: 1; pointer-events: none;
}
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .65rem; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-size: 1.25rem; line-height: 1.4;
}
@media (max-width: 991px) {
  .bento .b-main { grid-column: span 6; }
  .bento .b-teal, .bento .b-sun, .bento .b-navy, .bento .b-sand { grid-column: span 3; }
}
@media (max-width: 575px) {
  .bento > div { grid-column: span 6 !important; }
}

/* ---------- Doctor feature ---------- */
.doctor-feature { position: relative; overflow: hidden; }
.doctor-feature::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  border: 1px solid rgba(127,224,214,.15); right: -200px; top: -200px;
}
.doc-portrait { position: relative; max-width: 420px; margin-inline: auto; }
.doc-portrait .arch-frame { aspect-ratio: 3 / 4; background: #2a3f66; }
.doc-portrait .name-plate {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
  background: var(--sun); color: #fff; border-radius: 999px; padding: .75rem 1.6rem;
  font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); font-size: .95rem;
}
.cred-timeline { position: relative; padding-left: 1.8rem; margin: 2rem 0; }
.cred-timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--teal), var(--sun));
}
.cred-timeline .step { position: relative; margin-bottom: 1.4rem; }
.cred-timeline .step::before {
  content: ""; position: absolute; left: -1.8rem; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--navy-deep); border: 3px solid var(--teal);
}
.cred-timeline .year { font-family: var(--ff-display); font-size: 1.5rem; color: #7fe0d6; font-weight: 600; line-height: 1; }
.section-sand .cred-timeline .year, .cred-timeline.light .year { color: var(--sun); }
.cred-timeline .step strong { display: block; color: #fff; font-size: 1.02rem; margin-top: .3rem; }
.cred-timeline.light .step strong { color: var(--navy); }
.cred-timeline.light .step::before { background: var(--cream); }
.cred-timeline .step span { font-size: .9rem; }
.interest-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.interest-tags span {
  border: 1px solid rgba(127,224,214,.4); color: #d6f6f2; border-radius: 999px;
  padding: .4rem 1rem; font-size: .85rem; font-weight: 600;
}
.interest-tags.dark span { border-color: var(--line); color: var(--navy); background: var(--white); }
.philosophy {
  font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #fff; border-left: 3px solid var(--sun); padding-left: 1.3rem; margin: 2rem 0; line-height: 1.45;
}
.philosophy.dark { color: var(--navy); }

/* ---------- Services editorial list ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.8rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink);
  position: relative; transition: background .35s var(--ease), padding .35s var(--ease);
  border-radius: 0;
}
.svc-row:hover { background: var(--white); padding-left: 1.6rem; color: var(--ink); border-radius: var(--radius-sm); }
.svc-row .num { font-family: var(--ff-display); font-size: 1.1rem; color: var(--sun); font-weight: 600; }
.svc-row h3 { margin: 0 0 .25rem; transition: color .3s; }
.svc-row:hover h3 { color: var(--teal); }
.svc-row p { margin: 0; font-size: .95rem; max-width: 620px; }
.svc-row .go {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.2rem; color: var(--navy);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.svc-row:hover .go { background: var(--sun); color: #fff; border-color: var(--sun); transform: rotate(-45deg); }
@media (max-width: 575px) {
  .svc-row { grid-template-columns: 1fr auto; }
  .svc-row .num { display: none; }
}

/* Service tiles (services page) */
.svc-tile {
  background: var(--white); border-radius: var(--radius); padding: 2rem; height: 100%;
  border: 1px solid var(--line); display: flex; flex-direction: column; color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.svc-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.svc-tile .ico {
  width: 62px; height: 62px; border-radius: 20px 20px 20px 6px; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--teal-soft); color: var(--teal); margin-bottom: 1.4rem;
  transition: background .3s, color .3s;
}
.svc-tile:hover .ico { background: var(--teal); color: #fff; }
.svc-tile p { flex: 1; font-size: .95rem; }
.mini-svc {
  display: flex; align-items: center; gap: .8rem; background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: .9rem 1.1rem; font-weight: 600; color: var(--navy); height: 100%;
}
.mini-svc i { color: var(--sun); font-size: 1.2rem; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.why-item { padding: 2.2rem 1.8rem; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); transition: background .35s; }
.why-item:hover { background: rgba(127,224,214,.07); }
.why-item .n { font-family: var(--ff-display); color: var(--sun); font-size: .95rem; font-weight: 600; }
.why-item i { display: block; font-size: 2rem; color: #7fe0d6; margin: .8rem 0 1rem; }
.why-item h3 { font-size: 1.2rem; color: #fff; }
.why-item p { font-size: .9rem; margin: 0; }
@media (max-width: 991px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Emergency band ---------- */
.emergency-band {
  background: linear-gradient(120deg, var(--sun), #f19a6c); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); color: #fff; position: relative; overflow: hidden;
}
.emergency-band h2 { color: #fff; }
.emergency-band p { color: rgba(255,255,255,.92); }
.emergency-band .pulse {
  width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--sun);
  display: grid; place-items: center; font-size: 2rem; position: relative; flex-shrink: 0;
}
.emergency-band .pulse::before, .emergency-band .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff;
  animation: ring 2.4s ease-out infinite;
}
.emergency-band .pulse::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.emergency-band .tooth-bg {
  position: absolute; right: -40px; bottom: -60px; font-size: 16rem; color: rgba(255,255,255,.1); line-height: 1;
}
.emergency-band .btn-elx.btn-white { background: #fff; color: var(--sun); }
.emergency-band .btn-elx.btn-white:hover { background: var(--navy); color: #fff; }
.notice-911 { font-size: .82rem; opacity: .95; margin-top: 1rem; }

/* ---------- Testimonials ---------- */
.review-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 1.2rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.5rem; scrollbar-width: none;
}
.review-rail::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start; background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  border: 1px solid var(--line); position: relative; display: flex; flex-direction: column;
}
.review-card .q { font-family: var(--ff-display); font-size: 4rem; line-height: .6; color: var(--teal-soft); position: absolute; right: 1.4rem; top: 1.6rem; }
.review-card .stars { color: #f5b301; letter-spacing: .15em; margin-bottom: .8rem; }
.review-card p { color: var(--ink); flex: 1; font-size: .97rem; }
.review-card .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.review-card .avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: var(--navy);
}
.review-card:nth-child(3n+2) .avatar { background: var(--teal); }
.review-card:nth-child(3n) .avatar { background: var(--sun); }
.review-card .who strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.2; }
.review-card .who small { color: var(--muted); font-size: .8rem; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--navy); font-size: 1.2rem; transition: .25s;
}
.rail-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.rating-badge {
  display: inline-flex; align-items: center; gap: .9rem; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: .8rem 1.2rem;
}
.rating-badge .g { font-size: 1.6rem; color: #4285f4; }
.sample-note { font-size: .78rem; color: var(--muted); font-style: italic; }

/* ---------- Blog ---------- */
.post-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  height: 100%; display: flex; flex-direction: column; color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.post-art {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden;
  font-size: 3.6rem; color: #fff;
}
.post-art.a1 { background: linear-gradient(135deg, var(--teal), #0b6f8a); }
.post-art.a2 { background: linear-gradient(135deg, var(--navy), #2c4f93); }
.post-art.a3 { background: linear-gradient(135deg, var(--sun), #f3a76f); }
.post-art::before, .post-art::after {
  content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.18);
}
.post-art::before { width: 220px; height: 220px; right: -60px; top: -80px; }
.post-art::after { width: 140px; height: 140px; left: -40px; bottom: -60px; }
.post-art i { position: relative; z-index: 1; transition: transform .5s var(--ease); }
.post-card:hover .post-art i { transform: scale(1.12) rotate(-6deg); }
.post-card .p-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 1rem; margin-bottom: .7rem; }
.post-meta .cat { color: var(--sun); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.post-card h3 { font-size: 1.3rem; }
.post-card p { font-size: .93rem; flex: 1; }
.post-card.featured { flex-direction: row; }
.post-card.featured .post-art { aspect-ratio: auto; flex: 0 0 45%; font-size: 5rem; }
@media (max-width: 767px) { .post-card.featured { flex-direction: column; } .post-card.featured .post-art { aspect-ratio: 16/9; } }

/* Article page */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: 1.75rem; margin-top: 2.4rem; margin-bottom: .9rem; }
.article p, .article li { color: #3b4559; font-size: 1.05rem; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: .4rem; }
.callout {
  background: var(--teal-soft); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin: 2rem 0;
  border-left: 4px solid var(--teal);
}
.callout p { margin: 0; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq .accordion-item {
  border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: .9rem;
  overflow: hidden; background: var(--white);
}
.faq .accordion-button {
  font-family: var(--ff-display); font-size: 1.12rem; font-weight: 600; color: var(--navy);
  padding: 1.3rem 1.5rem; background: var(--white); box-shadow: none !important;
}
.faq .accordion-button:not(.collapsed) { background: var(--white); color: var(--teal); }
.faq .accordion-button::after {
  background-image: none; content: "\F4FE"; font-family: "bootstrap-icons"; font-size: 1.1rem;
  width: 36px; height: 36px; border-radius: 50%; background: var(--sand); display: grid; place-items: center;
  color: var(--navy); transition: transform .3s, background .3s;
}
.faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: var(--sun); color: #fff; }
.faq .accordion-body { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.form-label { font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: .35rem; }
.form-control, .form-select {
  border-radius: 14px; border: 1.5px solid var(--line); padding: .8rem 1rem; background-color: var(--cream);
  font-size: .96rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,159,150,.14); background-color: #fff; }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.form-check-label { font-size: .86rem; color: var(--muted); }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer;
  font-weight: 600; font-size: .88rem; color: var(--navy); background: var(--cream); transition: .2s;
}
.seg input:checked + label { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg input:focus-visible + label { outline: 3px solid rgba(15,159,150,.4); }
.hp-field { position: absolute; left: -9999px; }
.form-note { font-size: .8rem; color: var(--muted); background: var(--sun-soft); border-radius: 12px; padding: .7rem 1rem; }
.form-success {
  display: none; text-align: center; padding: 2rem 1rem;
}
.form-success .ok { width: 80px; height: 80px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 1rem; }
.info-stack .info { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px dashed var(--line); }
.info-stack .info:last-child { border-bottom: 0; }
.info-stack .info .ico {
  width: 50px; height: 50px; border-radius: 16px; background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--sun); font-size: 1.25rem; flex-shrink: 0;
}
.info-stack small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--muted); font-weight: 700; }
.info-stack strong, .info-stack a.v { color: var(--navy); font-weight: 700; }
.hours-table { width: 100%; font-size: .92rem; }
.hours-table td { padding: .35rem 0; color: var(--ink); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.today td { color: var(--teal); }
.map-box {
  border-radius: var(--radius); overflow: hidden; position: relative; min-height: 300px;
  background:
    linear-gradient(rgba(16,42,92,.82), rgba(16,42,92,.82)),
    repeating-linear-gradient(45deg, #1b3a73 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, #1b3a73 0 2px, transparent 2px 22px), var(--navy);
  display: grid; place-items: center; text-align: center; color: #fff; padding: 2rem;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box .pin { font-size: 2.6rem; color: var(--sun); animation: float 3s ease-in-out infinite; }
.map-box p { color: #c3cee3; font-size: .85rem; max-width: 340px; margin-inline: auto; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(15,159,150,.14), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(233,118,79,.12), transparent 60%),
    var(--sand);
  overflow: hidden;
}
.page-hero .crumbs { font-size: .85rem; margin-bottom: 1rem; color: var(--muted); }
.page-hero .crumbs a { color: var(--navy); font-weight: 600; }
.page-hero .crumbs i { font-size: .7rem; margin: 0 .4rem; opacity: .6; }
.page-hero .arc {
  position: absolute; right: 6%; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(233,118,79,.12);
}

/* Service detail */
.detail-aside { position: sticky; top: 120px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.2rem; }
.aside-card h4 { font-size: 1.15rem; margin-bottom: 1rem; }
.aside-links a {
  display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; border-radius: 12px;
  color: var(--ink); font-weight: 600; font-size: .93rem;
}
.aside-links a:hover, .aside-links a.active { background: var(--sand); color: var(--teal); }
.aside-cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.8rem; }
.aside-cta h4 { color: #fff; }
.aside-cta p { color: #b8c4da; font-size: .92rem; }
.step-cards { counter-reset: step; }
.step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.6rem;
  position: relative; margin-bottom: 1rem;
}
.step-card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.4rem; top: 1.4rem; font-family: var(--ff-display); font-size: 1.6rem;
  color: var(--sun); font-weight: 600;
}
.step-card h4 { font-size: 1.12rem; margin-bottom: .3rem; }
.step-card p { margin: 0; font-size: .95rem; }
.benefit-pill {
  display: flex; gap: .8rem; align-items: flex-start; background: var(--teal-soft); border-radius: 18px; padding: 1.1rem 1.2rem; height: 100%;
}
.benefit-pill i { color: var(--teal); font-size: 1.3rem; }
.benefit-pill span { color: var(--navy); font-weight: 600; font-size: .94rem; }

/* Insurance page */
.ins-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem;
  display: flex; align-items: center; gap: .9rem; font-weight: 700; color: var(--navy); height: 100%;
}
.ins-card i { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal p, .legal li { color: #3b4559; }

/* ---------- CTA strip ---------- */
.cta-arch {
  background: var(--navy); border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden;
}
.cta-arch h2 { color: #fff; }
.cta-arch p { color: #b8c4da; max-width: 560px; margin: 0 auto 2rem; }
.cta-arch::before {
  content: ""; position: absolute; left: 50%; top: -160px; transform: translateX(-50%);
  width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(233,118,79,.45), transparent 65%);
}
@media (max-width: 575px) { .cta-arch { border-radius: 80px 80px var(--radius) var(--radius); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aab6cd; padding-top: 5rem; position: relative; overflow: hidden; }
.site-footer h5 { color: #fff; font-family: var(--ff-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; margin-bottom: 1.2rem; }
.site-footer a { color: #aab6cd; }
.site-footer a:hover { color: #7fe0d6; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .93rem; }
.footer-logo { background: #fff; border-radius: 18px; padding: .8rem 1.1rem; display: inline-block; }
.footer-logo img { height: 48px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: inline-grid;
  place-items: center; margin-right: .4rem; color: #fff; transition: .25s;
}
.footer-social a:hover { background: var(--sun); border-color: var(--sun); color: #fff; }
.footer-word {
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(3rem, 13vw, 11rem); line-height: .8;
  color: rgba(255,255,255,.04); text-align: center; letter-spacing: -.03em; margin-top: 3rem; user-select: none; white-space: nowrap;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; font-size: .85rem; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1040; display: none;
  background: var(--navy); border-radius: 20px; box-shadow: var(--shadow); padding: .4rem;
}
.mobile-bar a {
  flex: 1; text-align: center; color: #fff; font-size: .75rem; font-weight: 600; padding: .5rem 0; border-radius: 14px;
}
.mobile-bar a i { display: block; font-size: 1.2rem; margin-bottom: .1rem; }
.mobile-bar a.book { background: var(--sun); }
@media (max-width: 991px) { .mobile-bar { display: flex; } body { padding-bottom: 84px; } }

.to-top {
  position: fixed; right: 20px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--teal); color: #fff; border: 0; z-index: 1035; font-size: 1.2rem;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: .35s var(--ease); box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 991px) { .to-top { bottom: 100px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1199px) {
  .float-card.fc-1 { left: -10px; }
  .float-card.fc-2 { right: -6px; }
}
@media (max-width: 575px) {
  .float-card { font-size: .76rem; padding: .6rem .8rem; }
  .float-card .ico { width: 32px; height: 32px; font-size: 1rem; }
  .ticket { margin-top: -2rem; padding: 1.3rem; }
  .brand-logo { height: 44px; }
}

/* =========================================================
   RICH MEDIA LAYER
   ========================================================= */

/* Generic media wrappers */
.media { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sand); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media .cap {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--navy); border-radius: 999px;
  padding: .45rem 1rem; font-weight: 700; font-size: .82rem; display: inline-flex; align-items: center; gap: .45rem;
  box-shadow: var(--shadow-sm);
}
.media .cap i { color: var(--sun); }
.zoom img { transition: transform 1.2s var(--ease); }
.zoom:hover img { transform: scale(1.06); }

/* Hero collage */
.hero-collage { position: relative; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.02; }
.hc-main {
  position: absolute; left: 0; top: 0; width: 66%; height: 92%;
  border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow);
}
.hc-main img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
.hc-side {
  position: absolute; right: 0; top: 6%; width: 40%; height: 46%;
  border-radius: 26px; overflow: hidden; border: 6px solid var(--cream); box-shadow: var(--shadow);
}
.hc-circle {
  position: absolute; right: 4%; bottom: 0; width: 42%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 6px solid var(--cream); box-shadow: var(--shadow);
}
.hc-side img, .hc-circle img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .sun-disc { top: -24px; left: 52%; right: auto; width: 96px; height: 96px; }
.hero-collage .float-card.fc-1 { left: -28px; top: auto; bottom: 18%; }
.hero-collage .float-card.fc-2 { right: auto; left: 46%; bottom: auto; top: 52%; }
.hero-collage .ring-dash {
  position: absolute; right: -14px; bottom: -14px; width: 48%; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed var(--teal); opacity: .5; z-index: -1; animation: spin 40s linear infinite;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* Hero fits one screen on desktop: height-driven sizing */
@media (min-width: 992px) {
  .hero {
    /* leave ~30px so the info strip peeks in at the bottom edge */
    min-height: calc(100vh - var(--hdr, 132px) - 30px);
    min-height: calc(100svh - var(--hdr, 132px) - 30px);
    display: flex; align-items: center;
    padding: clamp(1.25rem, 3.5vh, 3rem) 0 clamp(3.6rem, 8vh, 5.5rem);
  }
  .hero > .container { width: 100%; }
  .hero h1 { font-size: clamp(2.3rem, min(4.4vw, 7.6vh), 4.3rem); margin-bottom: clamp(.7rem, 2vh, 1.4rem); }
  .hero .lead-text { font-size: clamp(1rem, 2.1vh, 1.15rem); line-height: 1.6; }
  .hero-tag { margin-bottom: clamp(.7rem, 2.2vh, 1.6rem); }
  .hero-cta { margin: clamp(1rem, 3vh, 2rem) 0 clamp(1.1rem, 3.2vh, 2.2rem); }
  .hero-collage { width: min(100%, calc((100svh - var(--hdr, 132px) - 110px) * .98)); max-width: 560px; }
}
@media (min-width: 992px) and (max-height: 760px) {
  .hero { padding-bottom: 3.4rem; }
  .hero-tag { display: none; }               /* same message is in the top bar */
  .hero h1 { font-size: clamp(2.2rem, min(4.2vw, 7.2vh), 3.6rem); }
  .hero-proof small { display: none; }
  .hero-proof .ico { width: 38px; height: 38px; font-size: 1.05rem; }
}

@media (max-width: 575px) {
  .hero-collage .float-card.fc-1 { left: -6px; }
  .hero-collage .float-card.fc-2 { left: 38%; }
}

/* Bento photo tiles */
.bento .b-photo { grid-column: span 2; grid-row: span 2; padding: 0; min-height: 340px; }
.bento .b-photo2 { grid-column: span 2; padding: 0; min-height: 220px; }
.bento .b-photo img, .bento .b-photo2 img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.bento .b-photo:hover img, .bento .b-photo2:hover img { transform: scale(1.05); }
@media (max-width: 991px) {
  .bento .b-photo { grid-column: span 6; grid-row: auto; min-height: 280px; }
  .bento .b-photo2 { grid-column: span 6; }
}

/* Service rows with thumbnails */
.svc-row { grid-template-columns: 54px 116px 1fr auto; }
.svc-row .thumb { width: 116px; height: 84px; border-radius: 18px; overflow: hidden; }
.svc-row .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-row:hover .thumb img { transform: scale(1.12); }
@media (max-width: 575px) {
  .svc-row { grid-template-columns: 76px 1fr auto; gap: 1rem; }
  .svc-row .thumb { width: 76px; height: 64px; border-radius: 14px; }
}

/* Image service cards */
.svc-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  height: 100%; display: flex; flex-direction: column; color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.svc-card .img { aspect-ratio: 16 / 10; position: relative; }
.svc-card .img .clip { position: absolute; inset: 0; overflow: hidden; }
.svc-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc-card:hover .img img { transform: scale(1.08); }
.svc-card .ico {
  position: absolute; left: 1.4rem; bottom: -26px; z-index: 2;
  width: 58px; height: 58px; border-radius: 18px 18px 18px 6px; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; box-shadow: var(--shadow-sm);
}
.svc-card .body { padding: 2.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.svc-card .body p { flex: 1; font-size: .95rem; }

/* Photo-backed sections */
.why-bg {
  background:
    linear-gradient(rgba(10,28,64,.92), rgba(10,28,64,.95)),
    url(../img/photos/dental-scan.jpg) center / cover;
}
.emergency-band {
  background:
    linear-gradient(115deg, rgba(233,118,79,.97) 0%, rgba(233,118,79,.9) 45%, rgba(241,154,108,.72) 100%),
    url(../img/photos/treatment.jpg) center / cover;
}
.cta-arch {
  background:
    linear-gradient(rgba(16,42,92,.88), rgba(10,28,64,.94)),
    url(../img/photos/family-beach.jpg) center 30% / cover;
}

/* Inner page hero image */
.page-hero-img {
  position: absolute; top: 0; right: 0; height: 100%; width: 50%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.page-hero.has-img .container { position: relative; z-index: 1; }
.page-hero.has-img .arc { display: none; }
@media (max-width: 991px) {
  .page-hero-img { width: 100%; opacity: .16; -webkit-mask-image: none; mask-image: none; }
}

/* Video tiles */
.media-grid { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 1rem; }
.media-grid .mg-main { grid-row: span 2; min-height: 460px; }
@media (max-width: 767px) {
  .media-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .media-grid .mg-main { grid-row: auto; min-height: 260px; }
  .media-grid > * { min-height: 220px; }
}
.video-tile video { position: absolute; inset: 0; }
.video-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10,28,64,.55));
}
.vid-toggle {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.94); color: var(--navy); font-size: 1.2rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .25s, background .25s;
}
.vid-toggle:hover { transform: scale(1.08); background: var(--sun); color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e74c3c; display: inline-block; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Figures in content */
.media-figure { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 2.2rem; position: relative; aspect-ratio: 16 / 9; }
.media-figure img, .media-figure video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.media-duo .media { aspect-ratio: 4 / 3; }
@media (max-width: 575px) { .media-duo { grid-template-columns: 1fr; } }
.article-figure { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 2.4rem; aspect-ratio: 16 / 8; }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Blog cards with photos */
.post-art { background: var(--sand); }
.post-art::before, .post-art::after { content: none; }
.post-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-art img { transform: scale(1.07); }
.post-art i, .post-card.featured .post-art i {
  position: absolute; left: 1rem; top: 1rem; z-index: 2; font-size: 1.25rem;
  width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--teal);
  display: grid; place-items: center;
}
.post-card:hover .post-art i { transform: none; }
.post-card.featured .post-art { min-height: 320px; }

/* =========================================================
   ACCESSIBILITY + REQUIRED NOTICES
   ========================================================= */

/* Clear keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .section-navy :focus-visible { outline-color: #7fe0d6; }

/* Footer notices strip */
.footer-notices { border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; font-size: .86rem; }
.notice-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: .8rem; }
.notice-links a { color: #dbe3f2; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.notice-links a i { color: #7fe0d6; }
.lang-line, .board-line { color: #93a1bb; font-size: .82rem; margin-top: .35rem; }
.lang-line i { color: #7fe0d6; margin-right: .3rem; }

/* Language taglines */
.lang-taglines { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; margin-top: 1rem; }
.lang-taglines p { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin: 0; font-size: .92rem; }
.lang-taglines p strong { display: block; color: var(--navy); margin-bottom: .2rem; }

/* Floating accessibility widget */
.a11y-widget { position: fixed; left: 20px; bottom: 24px; z-index: 1045; }
.a11y-toggle {
  width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff;
  background: var(--navy); color: #fff; font-size: 1.7rem; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), background .25s;
}
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: var(--teal); transform: scale(1.06); }
.a11y-panel {
  position: absolute; left: 0; bottom: 66px; width: min(330px, calc(100vw - 32px));
  background: #fff; color: #12203a; border-radius: 22px; box-shadow: 0 24px 60px -12px rgba(10,28,64,.4);
  border: 1px solid var(--line); padding: 1.1rem; font-family: var(--ff-body); font-size: 15px; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.a11y-head h2 { font-family: var(--ff-body); font-size: 17px; font-weight: 700; margin: 0; color: var(--navy); display: flex; gap: .45rem; align-items: center; }
.a11y-close { border: 0; background: var(--sand); width: 34px; height: 34px; border-radius: 50%; color: var(--navy); }
.a11y-size { display: flex; justify-content: space-between; align-items: center; background: var(--sand); border-radius: 14px; padding: .55rem .7rem; margin-bottom: .7rem; font-weight: 600; }
.a11y-stepper { display: flex; align-items: center; gap: .4rem; }
.a11y-stepper button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.a11y-size-val { min-width: 48px; text-align: center; font-weight: 700; color: var(--navy); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-grid button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .75rem .5rem;
  font-weight: 600; font-size: 13.5px; color: var(--navy); display: flex; flex-direction: column; align-items: center; gap: .3rem;
  transition: background .2s, border-color .2s, color .2s;
}
.a11y-grid button i { font-size: 1.3rem; color: var(--teal); }
.a11y-grid button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.a11y-grid button[aria-pressed="true"] i { color: #7fe0d6; }
.a11y-reset { width: 100%; margin-top: .7rem; border: 0; background: var(--sun-soft); color: #9a3412; font-weight: 700; border-radius: 12px; padding: .6rem; }
.a11y-statement { display: block; text-align: center; margin-top: .6rem; font-size: 13.5px; font-weight: 600; }
@media (max-width: 991px) { .a11y-widget { left: 14px; bottom: 98px; } .a11y-toggle { width: 48px; height: 48px; font-size: 1.5rem; } }

/* --- Modes (classes set on <html>) --- */
/* Text size: html font-size is set inline by JS (rem-based layout scales) */

/* High contrast */
html.a11y-contrast {
  --ink: #000; --muted: #1b1b1b; --navy: #001a4d; --teal: #00635c; --sun: #b23c12;
  --line: #6b6b6b; --cream: #fff; --sand: #fff; --teal-soft: #e6f4f2; --sun-soft: #fdeee7;
}
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .section-navy, html.a11y-contrast .site-footer, html.a11y-contrast .topbar,
html.a11y-contrast .ticket, html.a11y-contrast .aside-cta { background: #000 !important; }
html.a11y-contrast .section-navy p, html.a11y-contrast .site-footer, html.a11y-contrast .site-footer a,
html.a11y-contrast .lang-line, html.a11y-contrast .board-line, html.a11y-contrast .aside-cta p,
html.a11y-contrast .why-item p, html.a11y-contrast .section-navy .cred-timeline span { color: #fff !important; }
html.a11y-contrast .emergency-band, html.a11y-contrast .cta-arch { background: #000 !important; }
html.a11y-contrast .media .cap { background: #fff; color: #000; border: 2px solid #000; }
html.a11y-contrast a:not(.btn-elx) { text-decoration: underline; }

/* Highlight links */
html.a11y-links a:not(.btn-elx) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-links a { outline: 2px dashed var(--sun); outline-offset: 2px; }

/* Readable font */
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3,
html.a11y-readable h4, html.a11y-readable .display, html.a11y-readable button, html.a11y-readable input,
html.a11y-readable select, html.a11y-readable textarea {
  font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; letter-spacing: 0 !important;
}

/* Text spacing (WCAG 1.4.12 values) */
html.a11y-spacing body p, html.a11y-spacing body li, html.a11y-spacing body td, html.a11y-spacing body label {
  line-height: 1.9 !important; letter-spacing: .12em !important; word-spacing: .16em !important;
}
html.a11y-spacing body p { margin-bottom: 2em; }

/* Pause animations */
html.a11y-pause *, html.a11y-pause *::before, html.a11y-pause *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-pause .reveal { opacity: 1 !important; transform: none !important; }

/* Grayscale (applied to page content, not the toolbar) */
html.a11y-gray body > *:not(.a11y-widget) { filter: grayscale(1); }

/* =========================================================
   MEET THE DOCTOR: expertise + promise sections
   ========================================================= */
.skill-visual { position: relative; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 1; }
.sv-main { position: absolute; left: 0; top: 0; width: 78%; height: 88%; border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); }
.sv-round { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--sand); box-shadow: var(--shadow); }
.sv-main img, .sv-round img { width: 100%; height: 100%; object-fit: cover; }
.skill-visual .sv-card { left: auto; right: 6%; top: 10%; animation-delay: -2s; }
.skill-visual .sv-card .ico { background: var(--teal-soft); color: var(--teal); }

.skill-list { display: grid; gap: 1rem; }
.skill-row {
  display: flex; gap: 1.1rem; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.skill-row:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.skill-row h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.skill-row p { margin: 0; font-size: .95rem; }
.skill-row p a { font-weight: 700; text-decoration: underline; text-decoration-color: rgba(15,159,150,.35); text-underline-offset: 3px; }
.skill-ico {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px 16px 16px 5px;
  display: grid; place-items: center; font-size: 1.35rem; background: var(--teal-soft); color: var(--teal);
}
.skill-ico.sun { background: var(--sun-soft); color: var(--sun); }
.skill-ico.navy { background: var(--navy); color: #7fe0d6; }

.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  height: 100%; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vc-img { position: relative; aspect-ratio: 4 / 3; }
.vc-img img { width: 100%; height: 100%; object-fit: cover; }
.vc-ico {
  position: absolute; left: 1.4rem; bottom: -28px; width: 60px; height: 60px; border-radius: 18px 18px 18px 6px;
  background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 1.55rem;
  border: 4px solid var(--white); box-shadow: var(--shadow-sm);
}
.vc-ico.sun { background: var(--sun); }
.vc-ico.navy { background: var(--navy); }
.vc-body { padding: 2.5rem 1.6rem 1.2rem; flex: 1; }
.vc-body h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.vc-body p { font-size: .95rem; margin: 0; }
.vc-promise {
  display: flex; gap: .8rem; align-items: flex-start; margin: 0 1.2rem 1.2rem; padding: 1rem 1.1rem;
  background: var(--teal-soft); border-radius: 16px;
}
.vc-promise > i { font-size: 1.4rem; color: var(--teal); line-height: 1; margin-top: .1rem; }
.vc-promise strong { display: block; color: var(--navy); font-family: var(--ff-display); font-size: 1.05rem; }
.vc-promise span { font-size: .88rem; color: var(--muted); }

.clean-band {
  margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1.15fr; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--navy); color: #c9d3e6;
}
.cb-img { min-height: 320px; }
.cb-img img { width: 100%; height: 100%; object-fit: cover; }
.cb-body { padding: clamp(1.8rem, 4vw, 3rem); align-self: center; }
.cb-body .eyebrow { color: #7fe0d6; }
.cb-body h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .8rem; }
.cb-body p { color: #b8c4da; }
.cb-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.cb-points li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(127,224,214,.35); color: #e6f6f3; font-weight: 600; font-size: .88rem;
}
.cb-points i { color: #7fe0d6; }
@media (max-width: 767px) {
  .clean-band { grid-template-columns: 1fr; }
  .cb-img { min-height: 220px; }
}

/* Mini services with images */
.mini-svc.has-img { padding: .5rem 1rem .5rem .5rem; }
.mini-svc.has-img img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
