/* =====================================================================
   Dallas Endoscopy Center: full-site components (Phase 2 redesign).
   Loads after dec.css (brand tokens + teaser components) and extends it
   with the page furniture the full site needs: utility bar, mobile nav,
   interior heroes, cards, accordions, policy typography, footer columns.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* Accessibility primitives                                            */
/* ------------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dec-navy);
  color: var(--dec-white);
  padding: 10px 18px;
  border-radius: 0 0 var(--dec-radius) 0;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--dec-blue);
  outline-offset: 2px;
}

/* Anchored sections land below the sticky header */
[id] { scroll-margin-top: 96px; }

/* ------------------------------------------------------------------ */
/* Utility bar                                                         */
/* ------------------------------------------------------------------ */

.utility-bar {
  background: var(--dec-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.utility-bar .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 38px;
  flex-wrap: wrap;
  padding-top: 4px;
  padding-bottom: 4px;
}

.util-spacer { flex: 1; }

.utility-bar a {
  color: var(--dec-white);
  text-decoration: none;
  font-weight: 600;
}

.utility-bar a:hover { text-decoration: underline; }

.util-phone { letter-spacing: 0.02em; }

@media (max-width: 720px) {
  .util-address, .util-hours { display: none; }
}

/* Belt and braces: nothing may force sideways scrolling.
   clip (not hidden) keeps the sticky header working. */
html { overflow-x: clip; }

/* ------------------------------------------------------------------ */
/* Header refinements + mobile nav                                     */
/* ------------------------------------------------------------------ */

.site-nav { gap: 20px; }

.site-nav a { font-size: 14.5px; white-space: nowrap; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius);
  color: var(--dec-navy);
  font-family: var(--dec-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-block; }

  .site-header .wrap { position: relative; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dec-white);
    border-bottom: 1px solid var(--dec-line);
    box-shadow: var(--dec-shadow);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    margin: 0;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px 24px;
    font-size: 16px;
  }

  .site-nav a.active {
    border-bottom: none;
    padding-bottom: 12px;
    background: var(--dec-sky);
  }
}

@media (max-width: 480px) {
  .site-header .wrap { gap: 12px; }
  .site-header .brand-name { font-size: 18px; }
  .site-header .wrap { height: 66px; }
}

/* ------------------------------------------------------------------ */
/* Interior page hero                                                  */
/* ------------------------------------------------------------------ */

.page-hero {
  background: linear-gradient(165deg, var(--dec-sky) 0%, #F6F8FD 55%, var(--dec-paper) 100%);
  padding: 52px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -170px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(33, 68, 156, 0.06) 0 1.5px,
      transparent 1.5px 48px);
  pointer-events: none;
}

.page-hero .wrap { position: relative; }

.page-hero h1 { font-size: 38px; max-width: 24ch; }

.page-hero .lede { margin-bottom: 6px; }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section { padding: 56px 0; }

.section.tint { background: var(--dec-sky); }

.section-head { max-width: 640px; margin-bottom: 32px; }

.section-head h2 { margin-bottom: 10px; }

.section-head p { color: var(--dec-slate); margin: 0; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ------------------------------------------------------------------ */
/* Card grid                                                           */
/* ------------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius);
  padding: 24px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
}

a.card:hover {
  box-shadow: var(--dec-shadow);
  transform: translateY(-2px);
  border-color: var(--dec-sky-deep);
}

.card h3 {
  font-family: var(--dec-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--dec-navy);
  margin: 0 0 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--dec-slate);
  margin: 0;
}

.card .card-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dec-blue);
}

/* Four-tile sections: fixed 2x2 so the row never breaks 3+1 on laptops,
   and the CTA sits on the same baseline in every tile. */
.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.two-up .card {
  display: flex;
  flex-direction: column;
}

.card-grid.two-up .card .card-cta {
  margin-top: auto;
  padding-top: 14px;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .card-grid.two-up { grid-template-columns: 1fr; }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--dec-sky);
  color: var(--dec-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ */
/* Step flow (visit journey, replaces the Flash floor plan)            */
/* ------------------------------------------------------------------ */

.step-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-flow li {
  counter-increment: step;
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius);
  padding: 20px;
  position: relative;
}

.step-flow li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dec-blue);
  color: var(--dec-white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.step-flow h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--dec-navy);
  margin: 0 0 6px;
  font-family: var(--dec-sans);
}

.step-flow p { font-size: 14px; color: var(--dec-slate); margin: 0; }

/* ------------------------------------------------------------------ */
/* Accordion (FAQ, condition groups)                                   */
/* ------------------------------------------------------------------ */

.accordion {
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius);
  background: var(--dec-white);
  margin-bottom: 12px;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  color: var(--dec-navy);
  font-size: 15.5px;
  position: relative;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--dec-blue);
  line-height: 1;
}

.accordion[open] summary::after { content: "\2212"; }

.accordion .accordion-body {
  padding: 0 22px 20px;
  color: var(--dec-ink);
  font-size: 15px;
}

.accordion .accordion-body p:first-child { margin-top: 0; }
.accordion .accordion-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Prose (policies, condition articles)                                */
/* ------------------------------------------------------------------ */

.prose { max-width: 76ch; }

.prose h2 {
  margin-top: 40px;
  font-size: 23px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--dec-serif);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--dec-navy);
  margin: 28px 0 10px;
}

.prose p { margin: 0 0 16px; }

.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }

.prose li { margin-bottom: 7px; }

.prose b, .prose strong { color: var(--dec-navy); }

.prose a { color: var(--dec-blue); }

/* Two-column layout: prose + sticky aside */
.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 56px;
  align-items: start;
}

.content-aside { position: sticky; top: 110px; }

@media (max-width: 900px) {
  .content-columns { grid-template-columns: 1fr; gap: 36px; }
  .content-aside { position: static; }
}

/* ------------------------------------------------------------------ */
/* In-page anchor nav                                                  */
/* ------------------------------------------------------------------ */

.toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.toc-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dec-blue);
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius-pill);
  padding: 7px 15px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.toc-nav a:hover { background: var(--dec-sky); border-color: var(--dec-sky-deep); }

/* Aside link list (on-this-page) */
.aside-nav {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-left: 2px solid var(--dec-sky-deep);
}

.aside-nav li { margin: 0; }

.aside-nav a {
  display: block;
  padding: 8px 0 8px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dec-slate);
  text-decoration: none;
}

.aside-nav a:hover { color: var(--dec-blue); }

/* ------------------------------------------------------------------ */
/* Callouts                                                            */
/* ------------------------------------------------------------------ */

.callout {
  background: var(--dec-sky);
  border-left: 4px solid var(--dec-blue);
  border-radius: 0 var(--dec-radius) var(--dec-radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
}

.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }

.callout .callout-title {
  font-weight: 700;
  color: var(--dec-navy);
  margin-bottom: 6px;
}

.callout.neutral {
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-left: 4px solid var(--dec-slate);
}

/* ------------------------------------------------------------------ */
/* Fee columns (included / not included)                               */
/* ------------------------------------------------------------------ */

.fee-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.fee-col {
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius);
  padding: 22px;
}

.fee-col h3 {
  font-family: var(--dec-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.fee-col.included h3 { color: var(--dec-blue); }
.fee-col.excluded h3 { color: var(--dec-slate); }

.fee-col ul { list-style: none; margin: 0; padding: 0; }

.fee-col li {
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--dec-line);
  font-size: 15px;
  position: relative;
}

.fee-col li:last-child { border-bottom: none; padding-bottom: 0; }

.fee-col.included li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--dec-blue);
  border-bottom: 2.5px solid var(--dec-blue);
  transform: rotate(-45deg);
}

.fee-col.excluded li::before {
  content: "\00d7";
  position: absolute;
  left: 4px;
  top: 7px;
  color: var(--dec-slate);
  font-size: 17px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Physician roster                                                    */
/* ------------------------------------------------------------------ */

.physician-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.owner-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dec-blue);
  background: var(--dec-sky);
  border-radius: var(--dec-radius-pill);
  padding: 4px 11px;
  margin-top: 8px;
}

.owner-badge.provider {
  color: var(--dec-slate);
  background: transparent;
  border: 1px solid var(--dec-line);
}

/* ------------------------------------------------------------------ */
/* Contact page                                                        */
/* ------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.contact-item .contact-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dec-blue);
  margin: 0 0 6px;
}

.contact-item p { margin: 0; font-size: 16px; }

.contact-item a { color: var(--dec-navy); text-decoration: none; font-weight: 600; }

.contact-item a:hover { color: var(--dec-blue); }

.map-frame {
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius);
  overflow: hidden;
  margin-top: 32px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* ------------------------------------------------------------------ */
/* Footer columns                                                      */
/* ------------------------------------------------------------------ */

.site-footer .wrap { display: block; }

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
}

.footer-col h3 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { margin-bottom: 9px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover { color: var(--dec-white); text-decoration: underline; }

.footer-brand-blurb {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 14px 0 0;
  max-width: 34ch;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.footer-bottom p { margin: 0 0 6px; }

/* ------------------------------------------------------------------ */
/* Condition index filter                                              */
/* ------------------------------------------------------------------ */

.filter-bar { margin-bottom: 28px; }

.filter-bar .search-box { width: 100%; max-width: 420px; }

/* ------------------------------------------------------------------ */
/* Print                                                               */
/* ------------------------------------------------------------------ */

@media print {
  .utility-bar, .nav-toggle, .toc-nav, .content-aside, .map-frame { display: none; }
  .content-columns { grid-template-columns: 1fr; }
  .accordion { border: none; }
  .accordion .accordion-body { display: block; }
}

/* ------------------------------------------------------------------ */
/* Hero rotation banner (home)                                         */
/* ------------------------------------------------------------------ */

.hero-rotator {
  position: relative;
  overflow: hidden;
  background: var(--dec-paper);
}

.hero-slide {
  min-height: clamp(360px, 46vh, 470px);
  display: none;
  align-items: center;
  padding: 34px 0 68px;
  position: relative;
  overflow: hidden;
}

/* No-JS fallback: the first slide renders as a static hero */
.hero-slide:first-child { display: flex; }

/* Enhanced mode: slides grid-stack in one cell, so the rotator sizes to its
   tallest slide, and the active slide dissolves in ON TOP of the outgoing one
   (z-index 2 over an opaque background), so slide content never blends
   mid-fade. */
.hero-rotator.enhanced {
  display: grid;
  min-height: clamp(440px, 58vh, 560px);
}

.hero-rotator.enhanced .hero-slide {
  display: flex;
  grid-area: 1 / 1;
  min-height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.hero-rotator.enhanced .hero-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* The outgoing slide's content exits fast, so the 900ms dissolve reads as
   background-to-background, never text blended over text. */
.hero-rotator.enhanced .hero-slide .hero-copy,
.hero-rotator.enhanced .hero-slide .hero-feature {
  transition: opacity 220ms ease;
}

.hero-rotator.enhanced .hero-slide:not(.active) .hero-copy,
.hero-rotator.enhanced .hero-slide:not(.active) .hero-feature {
  opacity: 0;
}

.hero-slide .wrap { position: relative; width: 100%; }

.hero-copy { max-width: 640px; }

.hero-title {
  font-family: var(--dec-serif);
  font-size: clamp(36px, 3.25vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--dec-navy);
  margin: 0 0 18px;
  max-width: 19ch;
}

/* Slide entrance: copy rises gently on activation */
.hero-rotator.enhanced .hero-slide.active .hero-copy,
.hero-rotator.enhanced .hero-slide.active .hero-feature {
  animation: heroRise 750ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-rotator.enhanced .hero-slide.active .hero-feature { animation-delay: 120ms; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator.enhanced .hero-slide { transition: none; }
  .hero-rotator.enhanced .hero-slide.active .hero-copy,
  .hero-rotator.enhanced .hero-slide.active .hero-feature { animation: none; }
}

/* Variant: light (brand) */
.hero-slide.light {
  background: linear-gradient(165deg, var(--dec-sky) 0%, #F6F8FD 55%, var(--dec-paper) 100%);
}

.hero-slide.light::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(33, 68, 156, 0.07) 0 1.5px,
      transparent 1.5px 56px);
  pointer-events: none;
}

/* Variant: dark (accreditation) */
.hero-slide.dark {
  background-color: var(--dec-navy);
  background-image:
    linear-gradient(90deg, rgba(17, 31, 78, 0.96) 0%, rgba(17, 31, 78, 0.88) 42%, rgba(17, 31, 78, 0.52) 72%, rgba(17, 31, 78, 0.40) 100%),
    url("../img/hero/dec-accreditation-hero.webp");
  background-position: center;
  background-size: cover;
}

.hero-slide.dark::before {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(255, 255, 255, 0.06) 0 1.5px,
      transparent 1.5px 44px);
  pointer-events: none;
}

.hero-slide.dark .eyebrow { color: #9FB4E8; }
.hero-slide.dark .hero-title { color: var(--dec-white); }
.hero-slide.dark .lede { color: rgba(255, 255, 255, 0.82); }

.hero-slide.dark .btn {
  background: var(--dec-white);
  color: var(--dec-navy);
}

.hero-slide.dark .btn:hover { background: var(--dec-sky); }

/* Variant: facility interior */
.hero-slide.facility {
  background-color: var(--dec-navy);
  background-image:
    linear-gradient(90deg, rgba(17, 31, 78, 0.94) 0%, rgba(17, 31, 78, 0.82) 36%, rgba(17, 31, 78, 0.28) 68%, rgba(17, 31, 78, 0.08) 100%),
    url("../img/hero/dec-lobby-hero.webp");
  background-position: center;
  background-size: cover;
}

.hero-slide.facility .hero-copy { max-width: 690px; }
.hero-slide.facility .eyebrow { color: #C8D7F4; }
.hero-slide.facility .hero-title { color: var(--dec-white); }
.hero-slide.facility .lede { color: rgba(255, 255, 255, 0.88); }
.hero-slide.facility .btn { background: var(--dec-white); color: var(--dec-navy); }
.hero-slide.facility .btn:hover { background: var(--dec-sky); }
.hero-slide.facility .btn-ghost {
  background: rgba(17, 31, 78, 0.28);
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--dec-white);
}
.hero-slide.facility .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* Variant: sky (physician spotlight) */
.hero-slide.sky {
  background: linear-gradient(160deg, var(--dec-sky-deep) 0%, var(--dec-sky) 60%, #F6F8FD 100%);
}

.hero-slide.sky::before {
  content: "";
  position: absolute;
  top: -140px;
  right: 8%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(33, 68, 156, 0.08) 0 1.5px,
      transparent 1.5px 48px);
  pointer-events: none;
}

/* Google reviews */
.card-grid.review-grid { align-items: start; }

.card .review-stars {
  color: #F2A900;
  font-size: 16px;
  letter-spacing: 3px;
  margin: 0 0 10px;
}

.review-card .review-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--dec-slate);
  margin-top: 14px;
}

/* Physician spotlight layout */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-feature { display: flex; justify-content: center; }

.feature-card {
  background: var(--dec-white);
  border: 1px solid var(--dec-line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(17, 31, 78, 0.16);
  padding: 20px 22px 18px;
  width: 100%;
  max-width: 290px;
  text-align: center;
}

.feature-card .portrait {
  width: 160px;
  height: 160px;
  margin: 0 auto 14px;
}

.feature-card .physician-name { font-size: 19px; }

.feature-card-link { margin: 8px 0 0; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 22px; }
  .hero-feature { justify-content: flex-start; }
  .hero-title { font-size: 34px; }
  .hero-slide { padding-bottom: 110px; }
  .hero-rotator.enhanced { min-height: 690px; }
}

/* Controls */
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 5;
}

.hero-rotator.enhanced .hero-controls { display: flex; }

.hero-dots { display: flex; gap: 8px; }

.hero-dot {
  width: 30px;
  height: 5px;
  border-radius: 100px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(17, 31, 78, 0.22);
  transition: background 250ms ease;
}

.hero-dot.active { background: var(--dec-blue); }

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(17, 31, 78, 0.25);
  background: rgba(255, 255, 255, 0.65);
  color: var(--dec-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.hero-arrow:hover { background: var(--dec-white); }

.hero-arrow svg { width: 16px; height: 16px; }

/* Controls recolor on the dark slide */
.hero-rotator[data-variant="dark"] .hero-dot { background: rgba(255, 255, 255, 0.32); }
.hero-rotator[data-variant="dark"] .hero-dot.active { background: var(--dec-white); }
.hero-rotator[data-variant="dark"] .hero-arrow {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: var(--dec-white);
}
.hero-rotator[data-variant="dark"] .hero-arrow:hover { background: rgba(255, 255, 255, 0.24); }

@media (max-width: 720px) {
  .hero-arrow { display: none; }
  .hero-slide { height: 700px; min-height: 700px; padding: 28px 0 66px; }
  .hero-rotator.enhanced { height: 700px; min-height: 700px; }
  .hero-split { gap: 16px; }
  .hero-feature { justify-content: center; }
  .hero-slide.dark {
    background-image:
      linear-gradient(90deg, rgba(17, 31, 78, 0.96) 0%, rgba(17, 31, 78, 0.88) 66%, rgba(17, 31, 78, 0.62) 100%),
      url("../img/hero/dec-accreditation-hero.webp");
    background-position: 58% center;
  }
  .hero-slide.facility {
    background-image:
      linear-gradient(90deg, rgba(17, 31, 78, 0.94) 0%, rgba(17, 31, 78, 0.82) 60%, rgba(17, 31, 78, 0.48) 100%),
      url("../img/hero/dec-lobby-hero.webp");
    background-position: 62% center;
  }

  .feature-card { max-width: 238px; padding: 14px 16px 12px; }
  .feature-card .portrait { width: 126px; height: 126px; margin-bottom: 9px; }
  .feature-card .physician-name { font-size: 17px; }
  .feature-card .physician-cred { margin-bottom: 6px; }
  .feature-card-link { margin-top: 5px; }
}

/* Controls sit above the stacked slides */
.hero-controls { z-index: 5; }

/* Accreditation and professional affiliation band */
.accreditation-band {
  background: var(--dec-white);
  border-bottom: 1px solid var(--dec-line);
  padding: 40px 0 44px;
}

.accreditation-intro {
  align-items: end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.accreditation-intro .eyebrow { margin: 0; }
.accreditation-intro h2 {
  font-size: clamp(23px, 2vw, 30px);
  margin: 0;
  text-align: right;
}

.accreditation-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accreditation-card {
  align-items: center;
  background: linear-gradient(155deg, #FFFFFF 0%, #F7F9FD 100%);
  border: 1px solid var(--dec-line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 31, 78, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 188px;
  padding: 22px 24px 18px;
  text-align: center;
}

.accreditation-logo {
  align-items: center;
  display: flex;
  height: 94px;
  justify-content: center;
  margin-bottom: 12px;
  width: 100%;
}

.accreditation-logo img {
  display: block;
  max-height: 92px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.accreditation-card:nth-child(2) .accreditation-logo img { max-height: 82px; }
.accreditation-card p {
  color: var(--dec-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .accreditation-intro { align-items: flex-start; flex-direction: column; gap: 4px; }
  .accreditation-intro h2 { text-align: left; }
  .accreditation-grid { grid-template-columns: 1fr; }
  .accreditation-card { min-height: 160px; }
}

/* ------------------------------------------------------------------ */
/* Documents rendered as HTML (Bill of Rights, Advance Directives)     */
/* ------------------------------------------------------------------ */

/* English / Español switch with a secondary PDF download */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
}

.lang-switch a,
.lang-switch .lang-current {
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--dec-line);
  border-radius: var(--dec-radius-pill);
  padding: 6px 14px;
  text-decoration: none;
}

.prose .lang-switch a { color: var(--dec-blue); background: var(--dec-white); }
.prose .lang-switch a:hover { background: var(--dec-sky); border-color: var(--dec-sky-deep); }

.lang-switch .lang-current {
  color: var(--dec-white);
  background: var(--dec-blue);
  border-color: var(--dec-blue);
}

.prose .lang-switch .lang-pdf {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: var(--dec-slate);
  text-decoration: underline;
}

/* Source attribution in the hero and at the end of the document */
.doc-attribution { font-size: 14px; color: var(--dec-slate); margin: 4px 0 0; }
.doc-attribution a { color: var(--dec-blue); }

.doc-source {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--dec-line);
  font-size: 13.5px;
  color: var(--dec-slate);
}

/* "OR" between options, centered as in the source document */
.prose .doc-or { font-weight: 700; color: var(--dec-navy); text-align: center; max-width: 40ch; }

/* Lists whose items carry their own "(1)" numbering */
.prose ol.doc-numbered { list-style: none; padding-left: 0; }

/* Gray-bar instructions printed on the forms */
.form-note { font-size: 13.5px; color: var(--dec-slate); }
.form-block .callout-title { font-size: 16px; }

/* Secondary PDF links under the Forms grid */
.forms-pdf-links { margin: 18px 0 0; font-size: 14px; color: var(--dec-slate); }
.forms-pdf-links a { color: var(--dec-blue); }
