/* ============================================================
   TOUrology — Dr. Kamal Mattar, Urology
   Design system: Soft UI Evolution / medical teal (see design-system/tourology/MASTER.md)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink: #0c3641;
  --ink-soft: #41606c;
  --ink-faint: #5b7683; /* 4.9:1 on white — WCAG AA for small text */
  --teal-900: #0b4a5c;
  --teal-700: #0e7490;
  --teal-600: #0891b2;
  --teal-200: #a5d8e4;
  --teal-100: #d4ecf2;
  --teal-050: #ecf6f8;
  --green-700: #15803d;
  --green-800: #166534;
  --green-050: #edf7ef;
  --bg: #fbfdfd;
  --bg-tint: #f2f8f9;
  --card: #ffffff;
  --border: #dcebee;
  --border-strong: #c3dde2;
  --star: #b45309; /* darkened from #e8a53a to clear 4.5:1 on white cards */

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;

  /* Spacing (spacious density) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  /* Shape & shadow */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(12, 54, 65, 0.05), 0 2px 8px rgba(12, 54, 65, 0.05);
  --shadow-md: 0 2px 6px rgba(12, 54, 65, 0.05), 0 10px 28px rgba(12, 54, 65, 0.09);
  --shadow-lg: 0 4px 12px rgba(12, 54, 65, 0.07), 0 24px 56px rgba(12, 54, 65, 0.13);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-padding-top: 108px; } /* clears the sticky nav on anchor jumps */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--teal-700); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.icon    { width: 26px; height: 26px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }
.tick { color: var(--green-700); }
.tick-light { color: #7ee2a8; }

:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease),
              color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-900); box-shadow: var(--shadow-md); }

.btn-green {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-green:hover { background: var(--green-800); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-700); background: var(--teal-050); }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: #cfe3e9;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.topbar-right { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-contact {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.topbar-contact:hover { color: var(--teal-200); text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 253, 253, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  /* Tightened to offset the larger brand mark so the bar stays compact. */
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
/* Brand mark is black line art on transparent — it needs generous height to
   stay legible, since the wordmark sits under the head icon. */
.brand-logo {
  height: 72px;
  width: auto;
  transition: opacity 200ms var(--ease);
}
.brand:hover .brand-logo { opacity: 0.75; }
/* Footer sits on near-black — knock the mark out to white. */
.footer-logo {
  height: 78px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 180ms var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--teal-700); }
.nav-cta { margin-left: 0.4rem; }

/* ---------- Nav dropdown ---------- */
.has-dropdown { position: relative; }

.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms var(--ease);
}
.nav-drop-toggle:hover,
.has-dropdown.is-open .nav-drop-toggle { color: var(--teal-700); }

.nav-caret {
  width: 16px; height: 16px;
  transition: transform 200ms var(--ease);
}
.has-dropdown.is-open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  z-index: 60;
}
.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Bridge the gap so the pointer can travel from button to panel. */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}

.nav-links .nav-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 160ms var(--ease);
}
.nav-links .nav-dropdown a:hover { background: var(--teal-050); color: var(--ink); }
.nav-dropdown a svg { color: var(--teal-700); margin-top: 2px; }
.nav-links .nav-dropdown-all {
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: 0.15rem;
}
.nav-dropdown strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.nav-dropdown em {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: 1px;
  line-height: 1.35;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, var(--teal-100) 0%, transparent 60%),
    radial-gradient(700px 420px at -10% 110%, var(--teal-050) 0%, transparent 55%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8) 0 var(--space-7);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: var(--space-3);
}
.eyebrow-light { color: var(--teal-200); }

.hero-sub {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-top: var(--space-4);
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-5);
}
/* Call and Email carry equal weight — either is a valid way to reach the office. */
.hero-contact { display: flex; gap: 0.6rem; }

.hero-trust {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Hero visual */
.hero-visual { position: relative; min-height: 460px; }
.hero-panel {
  position: absolute;
  inset: 8% 4% 8% 10%;
  background: linear-gradient(150deg, var(--teal-600) 0%, var(--teal-900) 90%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* Art direction: stock photography is unified with a teal grade + scrim so the
   floating cards stay legible over any part of the image. */
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  filter: saturate(0.85) contrast(1.04);
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(8, 145, 178, 0.32) 0%, rgba(11, 74, 92, 0.55) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1.05rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 240px;
}
.float-card strong { color: var(--ink); font-size: 0.9375rem; }
.float-card sup { color: var(--ink-faint); }
.float-card em { font-style: normal; color: var(--ink-faint); }
.float-card-1 { top: 6%; left: 0; }
.float-card-2 { bottom: 4%; left: 6%; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.float-card-3 { top: 38%; right: 0; }

.float-icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--teal-050);
  color: var(--teal-700);
  border-radius: 12px;
}
.float-icon svg { width: 22px; height: 22px; }
.float-icon-green { background: var(--green-050); color: var(--green-700); }
.float-stars { color: var(--star); font-size: 0.9375rem; letter-spacing: 0.1em; }

/* ---------- Credibility strip ---------- */
.cred { border-block: 1px solid var(--border); background: var(--card); }
.cred-list {
  list-style: none;
  padding: var(--space-5) 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.cred-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-faint);
  line-height: 1.45;
}
.cred-list .icon { color: var(--teal-700); margin-top: 2px; }
.cred-list strong { color: var(--ink); font-size: 0.9375rem; }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section-tint { background: var(--bg-tint); }

.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-sub { color: var(--ink-soft); font-size: 1.125rem; margin-top: var(--space-3); }

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 110% 0%, rgba(8, 145, 178, 0.25) 0%, transparent 55%),
    linear-gradient(160deg, #0d3d4d 0%, #092b37 100%);
  color: #d8e9ee;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: #a7c7d1; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}
.service-card p { font-size: 0.9375rem; color: var(--ink-soft); }
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--teal-050);
  color: var(--teal-700);
  border-radius: 14px;
  margin-bottom: 0.4rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-link {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--teal-700);
}
a.service-card:hover .service-link { text-decoration: underline; }

/* ---------- Office-based procedures ---------- */
.procedures {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #d8e9ee;
  background:
    linear-gradient(155deg, rgba(13, 61, 77, 0.94) 0%, rgba(9, 43, 55, 0.97) 100%),
    url("../img/procedure.jpg") center / cover no-repeat;
  background-blend-mode: normal;
}
.procedures h2 { color: #fff; }
.procedures-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: var(--space-7);
  align-items: center;
}
.procedures-copy > p {
  color: #b9d2da;
  margin-top: var(--space-3);
  max-width: 34rem;
}
.procedures-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.procedures-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9688rem;
  color: #cfe3e9;
}
.procedures-list .tick { margin-top: 3px; }
.procedures-list strong { color: #fff; font-weight: 600; }

.procedures-media { position: relative; padding-bottom: 2.5rem; }
.proc-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.proc-shot img { width: 100%; height: auto; display: block; }
.proc-shot-main img { filter: saturate(0.9); }
.proc-shot-inset {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 46%;
  background: #fff;
}
.proc-shot-inset figcaption {
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 0.6rem;
}

/* Decorative anatomy render, bled into the dark section's top-right corner. */
.section-accent {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 380px;
  height: auto;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}

/* ---------- Stepper (circumcision education) ---------- */
.stepper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stepper-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.stepper-tab {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #9dbfca;
  text-align: left;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.stepper-tab:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.stepper-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-bottom-color: var(--teal-600);
}
.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-200);
}
.step-label { font-weight: 600; font-size: 0.9375rem; }

.stepper-panels { padding: var(--space-6) var(--space-5); }
.stepper-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-5);
  align-items: center;
}
.stepper-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .stepper-panel { animation: panelIn 320ms var(--ease); }
  @keyframes panelIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

.panel-art {
  width: 180px; height: 180px;
  display: grid; place-items: center;
  color: var(--teal-200);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.panel-art svg { width: 110px; height: 110px; }
.panel-art-green { color: #7ee2a8; }

.panel-copy h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.panel-copy p { color: #b9d2da; max-width: 34rem; }
.panel-copy .btn { margin-top: var(--space-4); }
.panel-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-4);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--teal-200);
  text-decoration: none;
}
.panel-link:hover { color: #fff; text-decoration: underline; }

.feature-points {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.feature-points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #cfe3e9;
}

/* ---------- About ---------- */
/* Text-only section — centred and capped to a ~70ch measure so it reads as an
   intentional editorial block rather than a column orphaned by a missing image. */
.about-grid { max-width: 37rem; }
.about-grid .about-copy > .btn { margin-top: var(--space-2); }

.about-copy .creds {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-700);
  vertical-align: middle;
  margin-left: 0.35rem;
  transform: translateY(-0.15em);
}
.about-copy .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: var(--space-4) 0;
}
.about-copy p:not(.lead):not(.eyebrow) { color: var(--ink-soft); margin-bottom: var(--space-3); }
.about-points {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.9688rem;
}

/* ---------- Steps ---------- */
.steps-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.step-badge {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}
.step-card p { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 0.5rem; }

/* ---------- Testimonials ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.quote-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quote-stars { color: var(--star); letter-spacing: 0.12em; font-size: 0.9375rem; }
.quote-card blockquote {
  font-size: 0.9688rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.quote-card figcaption {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-faint);
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.faq-item[open] { border-color: var(--teal-200); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  transition: color 180ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal-700); }
.faq-chevron {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 250ms var(--ease);
}
.faq-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--teal-700);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 1.4rem 1.3rem; }
.faq-body p { color: var(--ink-soft); font-size: 0.9688rem; }

/* ---------- Booking ---------- */
.section-book {
  background:
    radial-gradient(700px 460px at -5% 105%, rgba(8, 145, 178, 0.28) 0%, transparent 55%),
    linear-gradient(155deg, #0d4453 0%, #092b37 100%);
  color: #d8e9ee;
}
.section-book h2 { color: #fff; }
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-7);
  align-items: start;
}
.book-copy > p { color: #b9d2da; margin-top: var(--space-3); max-width: 30rem; }
.book-direct {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-4);
}
.book-phone, .book-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  width: fit-content;
  transition: color 180ms var(--ease);
}
.book-phone { font-size: 1.75rem; }
.book-email { font-size: 1.25rem; word-break: break-all; }
.book-phone:hover, .book-email:hover { color: var(--teal-200); }
.book-points {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.book-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: #cfe3e9;
}

.book-form {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6) var(--space-5);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-weight: 600; font-size: 0.875rem; }
.label-opt { font-weight: 400; color: var(--ink-faint); }

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  width: 100%;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.18);
}
.form-field.has-error input,
.form-field.has-error select { border-color: #dc2626; }
.field-error {
  color: #b91c1c;
  font-size: 0.8125rem;
  font-weight: 500;
}
.form-contact-error { margin-top: -0.6rem; }

.form-radios { border: 0; padding: 0; }
.form-radios legend { font-weight: 600; font-size: 0.875rem; padding: 0; margin-bottom: 0.5rem; }
.radio-row { display: flex; gap: 0.6rem; }
.radio-pill {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
.radio-pill:hover { border-color: var(--teal-600); }
.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.radio-pill:has(input:checked) {
  background: var(--teal-050);
  border-color: var(--teal-700);
  color: var(--teal-900);
}
.radio-pill:has(input:focus-visible) {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
}

.form-check {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}
.form-check input {
  width: 18px; height: 18px;
  accent-color: var(--teal-700);
}
.form-check label { font-weight: 500; font-size: 0.9375rem; }

/* Honeypot: pulled off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  background: #fdecea;
  border: 1px solid #f2b8b5;
  color: #8c1d18;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.form-note { font-size: 0.8125rem; color: var(--ink-faint); }
/* Must out-specify the display rule below: an author `display` declaration
   beats the UA stylesheet's [hidden] rule, which would leave the confirmation
   message on screen permanently. */
.form-success[hidden] { display: none; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--green-050);
  border: 1px solid #bbe3c8;
  color: var(--green-800);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-weight: 500;
  font-size: 0.9375rem;
}
.form-success .icon { color: var(--green-700); }

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: center;
}
.visit-address {
  font-style: normal;
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin: var(--space-3) 0 var(--space-4);
  line-height: 1.5;
}
.visit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.visit-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.visit-list .icon { color: var(--teal-700); margin-top: 2px; }
.visit-list strong { color: var(--ink); }
.visit-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
}
.visit-detail { background: var(--card); }
.visit-detail summary { font-size: 0.9375rem; padding: 0.95rem 1.15rem; }
.visit-detail .faq-body { padding: 0 1.15rem 1.1rem; }
.visit-detail .faq-body ul {
  margin: 0 0 var(--space-3);
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.visit-detail .faq-body li { margin-bottom: 0.35rem; }
.visit-detail .faq-body li::marker { color: var(--teal-600); }

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.visit-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------- Procedure / service detail pages ---------- */
.proc-hero {
  background:
    radial-gradient(900px 460px at 88% -20%, var(--teal-100) 0%, transparent 62%),
    var(--bg);
  padding: var(--space-7) 0 var(--space-6);
}
.proc-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-6);
  align-items: center;
}
.proc-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  margin-top: var(--space-2);
}
.proc-tagline {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  margin-top: var(--space-3);
  max-width: 34rem;
}
.proc-hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--teal-700); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.proc-hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.proc-hero-figure img { width: 100%; height: auto; display: block; }

/* Topics with no photograph get a branded emblem panel rather than filler stock. */
.proc-hero-emblem {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--teal-600) 0%, var(--teal-900) 92%);
  box-shadow: var(--shadow-lg);
  color: rgba(255, 255, 255, 0.9);
}
.proc-emblem-icon { width: 42%; height: auto; }

/* At-a-glance facts */
.proc-glance {
  background: var(--card);
  border-block: 1px solid var(--border);
}
.glance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-5) 0;
}
.glance-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 0.35rem;
}
.glance-item dd {
  margin: 0;
  font-size: 0.9688rem;
  font-weight: 500;
  color: var(--ink);
}

/* Body + sidebar */
.proc-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-6);
  align-items: start;
}
.proc-content { max-width: 40rem; }
.proc-content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.proc-content h2:first-child { margin-top: 0; }
.proc-content h3 {
  font-size: 1.0625rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--teal-900);
}
.proc-content p { color: var(--ink-soft); margin-bottom: var(--space-3); }
.proc-content ul, .proc-content ol {
  color: var(--ink-soft);
  margin: 0 0 var(--space-4);
  padding-left: 1.15rem;
}
.proc-content li { margin-bottom: 0.5rem; }
.proc-content li::marker { color: var(--teal-600); }
.proc-content strong { color: var(--ink); }
.proc-content a { color: var(--teal-700); }
.proc-content img {
  border-radius: var(--radius);
  margin: var(--space-4) 0;
  height: auto;
}

/* Sticky booking card */
.proc-aside { position: sticky; top: 120px; }
.proc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5) var(--space-4);
}
.proc-card h2 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; }
.proc-card p { font-size: 0.9375rem; color: var(--ink-soft); margin: var(--space-3) 0 var(--space-4); }
.proc-card-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.proc-card-list li { display: flex; align-items: flex-start; gap: 0.55rem; }
.proc-card-list svg { color: var(--teal-700); margin-top: 2px; flex: none; }
.proc-card-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.proc-card-list a:hover { color: var(--teal-700); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #9dbfca;
  padding: var(--space-6) 0 var(--space-4);
  font-size: 0.875rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand p { margin-top: var(--space-2); line-height: 1.5; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a, .footer-contact a {
  color: #cfe3e9;
  text-decoration: none;
}
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-legal { padding-top: var(--space-4); font-size: 0.8125rem; color: #8aa6b0; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem calc(1rem + env(safe-area-inset-left)) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(12, 54, 65, 0.96);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 300ms var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; padding: 0.85rem 0.6rem; font-size: 0.9375rem; }
.mobile-cta-book { flex: 1.3 !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 550ms var(--ease), transform 550ms var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Safety net ----------
   Anything marked [hidden] must stay hidden. Author-level `display` rules
   otherwise override the browser default and leak hidden content onto the
   page. Placed last so it wins on source order. */
[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .hero-inner { gap: var(--space-5); }
  .float-card-2 { left: 0; }
  /* Tablet: ease the brand mark and link spacing so the bar doesn't crowd
     before the mobile menu kicks in at 860px. */
  .brand-logo { height: 60px; }
  .nav-links { gap: 1.05rem; }
}

@media (max-width: 860px) {
  .section { padding: var(--space-7) 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: var(--space-6) 0;
  }
  .hero-visual { min-height: 380px; margin-top: var(--space-3); }

  .book-grid, .visit-grid, .procedures-grid, .proc-hero-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .proc-body-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .proc-aside { position: static; max-width: 480px; }
  .proc-content { max-width: none; }
  .proc-hero-media { max-width: 460px; }

  /* Dropdown becomes a plain expandable list inside the mobile menu. */
  .has-dropdown { width: 100%; }
  .nav-drop-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
  }
  .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
    background: var(--bg-tint);
    border-radius: var(--radius-sm);
    padding: 0.35rem;
    margin: 0.4rem 0 0.6rem;
    display: none;
  }
  .has-dropdown.is-open .nav-dropdown { display: flex; transform: none; }
  .nav-dropdown::before { display: none; }
  .procedures-media { max-width: 460px; }
  .section-accent { width: 240px; top: -20px; right: -50px; opacity: 0.13; }
  .brand-logo { height: 56px; }
  .steps-grid, .quotes-grid { grid-template-columns: 1fr; }

  .stepper-tabs { grid-template-columns: repeat(2, 1fr); }
  .stepper-tab { border-bottom: 1px solid rgba(255,255,255,0.08); border-left: 3px solid transparent; }
  .stepper-tab.is-active { border-bottom-color: rgba(255,255,255,0.08); border-left-color: var(--teal-600); }
  .stepper-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .panel-copy p { margin-inline: auto; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
  }
  .nav-cta { margin: 1rem 0 0; justify-content: center; }

  .mobile-cta { display: flex; }
  .footer { padding-bottom: 6.5rem; } /* keep content clear of sticky CTA */
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-4); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .cred-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-contact { width: 100%; }
  .hero-contact .btn { flex: 1; }
  .topbar-inner { justify-content: center; gap: 0.5rem 1rem; }
  .topbar-inner > .topbar-item { display: none; } /* address drops; phone + email stay */
  .topbar-right { gap: 0.5rem 1rem; justify-content: center; }
  .book-email { font-size: 1.05rem; }
  .proc-shot-inset { width: 52%; right: 0; }
  .hero-visual { min-height: 420px; }
  .float-card { max-width: 200px; }
  .stepper-panels { padding: var(--space-5) var(--space-4); }
  .book-form { padding: var(--space-5) var(--space-4); }
}
