:root {
  /* Al-Razzaq clinical system (clinic-custom.css + app layout) */
  --clinic-navy: #0b1c2d;
  --clinic-navy-dark: #102a43;
  --clinic-gold: #f5c518;
  --clinic-gold-dark: #e0b100;
  --clinic-gold-light: #fde68a;
  --clinic-gray-50: #f9fafb;
  --clinic-gray-100: #f3f4f6;
  --paper: #f3f4f6;
  --white: #ffffff;
  --ink: #1f2933;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  /* Legacy aliases → clinic palette */
  --teal: var(--clinic-navy);
  --teal-hover: var(--clinic-navy-dark);
  --teal-band: var(--clinic-navy);
  --teal-soft: #fffbeb;
  --radius: 8px;
  --max: 75rem;
  --font: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  --section-y: clamp(4rem, 8vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Never allow inline SVG icons to expand to full viewport */
svg {
  width: 1.25rem;
  height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex-shrink: 0;
}

a { color: var(--clinic-navy); }

.container {
  width: min(90vw, var(--max));
  margin-inline: auto;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Nav: clinic navy bar (matches app sidebar / chrome) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clinic-navy);
  border-bottom: 2px solid var(--clinic-gold);
  box-shadow: 0 2px 4px rgba(11, 28, 45, 0.2);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
  max-width: min(42vw, 14rem);
}

.brand-link:hover {
  color: var(--white);
  opacity: 0.95;
}

.header-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-action-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: var(--clinic-gold);
  border: none;
  box-shadow: none;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--clinic-navy);
  transition: background 0.15s ease;
}

.header-action-card:hover {
  color: var(--clinic-navy);
  background: var(--clinic-gold-dark);
}

.header-action-card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.brand-link img,
.brand-logo {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--clinic-gold);
}

.brand-text {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag { display: none; }

.nav-desktop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  z-index: 1;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-desktop a.is-active {
  color: var(--clinic-gold);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--clinic-gold);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-teal {
  background: var(--clinic-gold);
  color: var(--clinic-navy);
  font-weight: 600;
}

.btn-teal:hover {
  background: var(--clinic-gold-dark);
  color: var(--clinic-navy);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-white {
  background: var(--clinic-gold);
  color: var(--clinic-navy);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--clinic-gold-dark);
  color: var(--clinic-navy);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.25rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--clinic-navy-dark);
}

.nav-mobile.is-open { display: flex; }

.nav-mobile a {
  text-decoration: none;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
  transition: color 0.15s;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  color: var(--clinic-gold);
  font-weight: 600;
}

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .brand-link {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 9rem);
  }
  .brand-text {
    display: block;
    font-size: clamp(0.75rem, 3.4vw, 0.875rem);
  }
}

@media (min-width: 881px) and (max-width: 1100px) {
  .brand-link {
    max-width: 12rem;
    z-index: 3;
  }
  .brand-text {
    display: block;
    font-size: 0.8125rem;
  }
}

@media (min-width: 881px) and (max-width: 1024px) {
  .nav-desktop { gap: 1.15rem; }
  .nav-desktop a { font-size: 0.8125rem; }
}

@media (max-width: 480px) {
  .header-action-card {
    padding: 0.45rem 0.6rem;
    font-size: 0.6875rem;
    max-width: 5.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  .brand-link { max-width: calc(100% - 8rem); }
  .brand-text { font-size: 0.6875rem; }
}

/* —— Hero: centered editorial stack —— */
.hero-center {
  text-align: center;
  padding: var(--section-y) 0 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-center h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 auto 1.25rem;
  max-width: 18ch;
  color: var(--ink);
}

.hero-center .sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1.35rem;
}

.brand-mark {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  border: 2px solid var(--clinic-gold);
  display: grid;
  place-items: center;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--clinic-gold);
  flex-shrink: 0;
  line-height: 1;
}

/* —— Home: split hero + new brand art —— */
.hero-home {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-home-copy {
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.25rem, 2vw, 2rem) clamp(0.5rem, 2vw, 1.5rem) 0;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-home-copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

.hero-home-copy .sub {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34rem;
}

.hero-home-copy .hero-cta {
  justify-content: flex-start;
}

.hero-home-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  border: none;
  box-shadow: none;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.hero-home-visual img {
  width: min(92%, 28rem);
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.home-spotlight {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: var(--white);
}

.home-spotlight-frame {
  margin: 0 auto;
  background: var(--white);
  border: none;
  box-shadow: none;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem);
}

.home-spotlight-frame img {
  width: min(92%, 40rem);
  margin-inline: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.home-spotlight-caption {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem) 0;
  text-align: center;
}

.home-spotlight-caption p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.home-spotlight-caption strong {
  display: block;
  font-size: 1.05rem;
  color: var(--clinic-navy);
  margin-bottom: 0.35rem;
}

.home-visual-block {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.home-visual-block .home-visual-inner {
  background: var(--white);
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.home-visual-block img {
  width: min(92%, 40rem);
  margin: 0 auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.home-visual-block .home-visual-caption {
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  max-width: 36rem;
}

.home-visual-block .home-visual-caption h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--clinic-navy);
  letter-spacing: -0.02em;
}

.home-visual-block .home-visual-caption p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.trust-pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.85rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clinic-navy);
  line-height: 1.35;
}

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

  .hero-home-visual {
    order: -1;
  }

  .hero-home-copy .hero-cta {
    justify-content: center;
  }

  .hero-home-copy {
    text-align: center;
    padding: clamp(0.5rem, 2vw, 1.25rem) clamp(0.5rem, 3vw, 1.5rem);
  }

  .hero-home-copy .sub {
    margin-inline: auto;
  }

  .hero-home-visual {
    padding: clamp(0.75rem, 3vw, 1.5rem) clamp(0.75rem, 4vw, 2rem);
  }

  .trust-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .trust-pillars {
    grid-template-columns: 1fr;
  }
}

/* Showcase card (single clinic photo) */
.showcase {
  padding: 0 0 var(--section-y);
  background: var(--white);
}

.showcase-frame {
  max-width: 56rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.showcase-frame img {
  width: 100%;
  max-height: min(22rem, 42vh);
  object-fit: cover;
  object-position: center;
}

.showcase-caption {
  padding: 0.85rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Trust strip */
.trust-strip {
  padding: 2rem 0;
  border-block: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.trust-strip p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.25rem;
}

.trust-stats div {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.trust-stats span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.trust-stats strong {
  display: block;
  font-size: 1.125rem;
  color: var(--ink);
  font-weight: 700;
}

/* Feature section */
.section {
  padding: var(--section-y) 0;
}

.section-paper { background: var(--paper); }

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.section-paper .feature-card { background: var(--white); }

.svc-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--clinic-navy);
  color: var(--clinic-gold);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

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

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.split p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.split-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.split-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* Contact band (clinical navy) */
.band-teal {
  background: linear-gradient(135deg, var(--clinic-navy) 0%, var(--clinic-navy-dark) 100%);
  color: var(--white);
  border-block: 2px solid var(--clinic-gold);
  text-align: center;
  padding: var(--section-y) 1.5rem;
}

.band-teal h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.band-teal p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  opacity: 0.92;
  font-size: 1.05rem;
}

.band-teal .hero-cta { margin-bottom: 0; }

/* Mission cards inline */
.mission-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mission-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
}

.mission-box h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.mission-box p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .mission-row { grid-template-columns: 1fr; }
}

/* Page hero inner */
.page-hero {
  padding: 3rem 0 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--teal);
  text-decoration: none;
}

/* Charter — centered document layout */
.charter-page {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.charter-layout {
  display: flex;
  justify-content: center;
}

.charter-document {
  width: min(100%, 42rem);
  margin-inline: auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 1px 3px rgba(11, 28, 45, 0.06);
}

.charter-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clinic-gold-dark);
}

.charter-document > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--clinic-navy);
  letter-spacing: -0.02em;
}

.charter-lead {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.charter-points {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  counter-reset: charter-item;
}

.charter-points li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.charter-points li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.charter-points li::before {
  content: counter(charter-item);
  counter-increment: charter-item;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--clinic-navy);
  color: var(--clinic-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.charter-footnote {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 34rem;
  margin-inline: auto;
}

.charter-footnote a {
  color: var(--clinic-navy);
  font-weight: 600;
  text-decoration: none;
}

.charter-footnote a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 52rem;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
}

.contact-panel h2 {
  font-size: 1.125rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.contact-line {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.contact-line:last-child { border-bottom: none; }

.contact-line span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-line a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.contact-line a:hover { color: var(--teal); }

.badge-24 {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.map-section {
  padding-top: 0;
}

.map-embed-wrap {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(11, 28, 45, 0.06);
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(16rem, 45vw, 22rem);
  border: 0;
}

.map-embed-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.map-embed-caption strong {
  color: var(--clinic-navy);
  font-weight: 600;
}

/* Staff portal gateway (public site → clinical system) */
.staff-portal-layout {
  display: flex;
  justify-content: center;
}

.staff-portal-card {
  width: min(100%, 40rem);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 1px 3px rgba(11, 28, 45, 0.06);
}

.staff-portal-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--clinic-navy);
}

.staff-portal-note {
  margin: 1.25rem auto 0;
  max-width: 32rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.staff-portal-note a {
  color: var(--clinic-navy);
  font-weight: 600;
}

.staff-portal-url {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.staff-portal-url strong {
  color: var(--clinic-navy);
}

/* Gallery & team */
.gallery-section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.gallery-section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--clinic-navy);
  letter-spacing: -0.02em;
}

.gallery-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--white);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 1rem 1.1rem 1.15rem;
  text-align: left;
}

.gallery-item figcaption strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.gallery-item figcaption span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem 1.25rem 1.5rem;
  text-align: center;
}

.team-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: min(12rem, 40%) 1fr;
  gap: 1.5rem;
  align-items: center;
  text-align: left;
  padding: 1.5rem;
}

.team-card-featured .team-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card-featured .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--clinic-navy);
  color: var(--clinic-gold);
  font-size: 0.875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--clinic-navy);
}

.team-role {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clinic-gold-dark);
}

.team-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card-featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .team-card-featured .team-photo { max-width: 16rem; margin-inline: auto; }
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

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

.footer-grid li { margin-bottom: 0.35rem; }

.footer-grid a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover { color: var(--clinic-gold-dark); }

.footer-bottom {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-quick-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--white);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.footer-icon-btn:hover {
  color: var(--clinic-navy);
  border-color: var(--clinic-navy);
  background: var(--clinic-gold-light);
}

.footer-icon-btn svg.footer-icon {
  width: 1.125rem;
  height: 1.125rem;
  max-width: 1.125rem;
  max-height: 1.125rem;
}

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

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

.text-link {
  font-weight: 600;
  color: var(--clinic-navy);
  text-decoration: none;
}

.text-link:hover {
  color: var(--clinic-gold-dark);
  text-decoration: underline;
}
