/* ============================================
   Daniel Jiang, MD — Orange County Urology
   Theme: precision / robotic technology
   ============================================ */

:root{
  /* Base surfaces */
  --bg: #F3F6F8;
  --bg-panel: #FFFFFF;
  --bg-panel-alt: #EBF0F3;

  /* Dark surfaces (header, hero, footer, CTA bands) */
  --navy: #0A1826;
  --navy-panel: #102135;
  --navy-line: #1F3549;

  /* Text */
  --ink: #0B1A26;
  --ink-soft: #4E606C;
  --on-dark: #E9F1F5;
  --on-dark-soft: #90A8B8;

  /* Lines */
  --line: #D8E0E5;

  /* Accent — robotic / surgical technology */
  --cyan: #21D8C4;
  --blue: #3E8EFF;
  --violet: #7C6CFF;

  --font-display: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --max-width: 1120px;
}

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

html{ scroll-behavior: smooth; }

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

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.08; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.18; }
h3{ font-size: 1.1rem; font-weight: 600; }

p{ margin: 0 0 1em 0; }

a{ color: inherit; text-decoration: none; }

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

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--on-dark);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--on-dark);
}
.brand-sub{
  font-size: 0.8rem;
  color: var(--on-dark-soft);
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

/* Dropdown menu (native <details>/<summary>, no JS required) */
.nav-menu{ position: relative; }
.nav-menu summary{
  list-style: none;
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--on-dark);
  padding: 9px 16px;
  border: 1px solid var(--navy-line);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: border-color 0.15s ease;
}
.nav-menu summary::-webkit-details-marker{ display: none; }
.nav-menu summary::after{
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.15s ease;
}
.nav-menu[open] summary::after{ transform: rotate(-135deg); margin-top: 3px; }
.nav-menu[open] summary{ border-color: var(--cyan); }

.nav-menu .menu-panel{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  border-top: 2px solid var(--cyan);
  min-width: 240px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(4, 10, 16, 0.4);
  z-index: 50;
}
.nav-menu .menu-panel a{
  padding: 13px 18px;
  font-size: 1rem;
  color: var(--on-dark-soft);
  border-bottom: 1px solid var(--navy-line);
}
.nav-menu .menu-panel a:last-child{ border-bottom: none; }
.nav-menu .menu-panel a:hover,
.nav-menu .menu-panel a:focus-visible{
  background: rgba(33, 216, 196, 0.08);
  color: var(--on-dark);
}
.nav-menu .menu-panel a.active{
  color: var(--cyan);
  font-weight: 600;
}

.call-pill{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  color: var(--navy);
  padding: 9px 18px;
  line-height: 1.25;
  white-space: nowrap;
  transition: filter 0.15s ease;
}
.call-pill:hover, .call-pill:focus-visible{ filter: brightness(1.08); }
.call-pill-label{ font-size: 0.76rem; letter-spacing: 0.04em; opacity: 0.85; font-weight: 600; }
.call-pill-number{ font-size: 1rem; font-weight: 700; font-family: var(--font-mono); }

/* ---------- Hero ---------- */

.hero{
  position: relative;
  padding: 84px 0 90px;
  background: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(10,24,38,0) 40%, var(--navy) 100%),
    radial-gradient(680px 420px at 82% 20%, rgba(62,142,255,0.20), transparent 60%),
    radial-gradient(520px 360px at 100% 90%, rgba(33,216,196,0.14), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 40px);
}

.hero-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-line{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 16px 0;
  letter-spacing: 0.01em;
  font-family: var(--font-mono);
}
.eyebrow-line::before{
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
}
.eyebrow-invert{ color: var(--cyan); }
.eyebrow-invert::before{ background: var(--cyan); }

.hero-name{
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 600;
  margin: 0 0 14px 0;
  color: var(--on-dark);
  background: linear-gradient(120deg, #FFFFFF 30%, var(--cyan) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 500;
  color: var(--on-dark-soft);
  margin: 0 0 20px 0;
}

.hero-lede{
  font-size: 1.12rem;
  color: var(--on-dark-soft);
  max-width: 48ch;
}

.tech-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}
.tech-badge{
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--on-dark);
  border: 1px solid rgba(33, 216, 196, 0.45);
  background: rgba(33, 216, 196, 0.1);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.tech-badge::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px 2px rgba(33,216,196,0.75);
}

/* Clickable variant: each hero badge is a <details> whose summary IS
   the badge itself, and whose description pops open as a small card
   below it — the hero-section counterpart to the .reveal popovers used
   on the Conditions/Procedures pages, restyled for the dark hero. */
.tech-badge-reveal{ position: relative; }
.tech-badge-reveal > summary.tech-badge{
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tech-badge-reveal > summary.tech-badge::-webkit-details-marker{ display: none; }
.tech-badge-reveal > summary.tech-badge:hover,
.tech-badge-reveal[open] > summary.tech-badge{
  border-color: var(--cyan);
  background: rgba(33, 216, 196, 0.18);
}
.tech-badge-reveal > p{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 260px;
  max-width: min(300px, 84vw);
  margin: 0;
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  border-top: 2px solid var(--cyan);
  box-shadow: 0 16px 32px rgba(4, 10, 16, 0.4);
  padding: 14px 16px;
  color: var(--on-dark-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-languages{
  margin: 18px 0 0 0;
  font-size: 1.03rem;
  color: var(--on-dark);
}
.hero-languages-label{
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--cyan);
  margin-right: 10px;
  letter-spacing: 0.02em;
}

.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary{
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  color: var(--navy);
}
.btn-primary:hover, .btn-primary:focus-visible{ filter: brightness(1.08); }

.btn-ghost{
  border: 1px solid var(--navy-line);
  color: var(--on-dark);
}
.btn-ghost:hover, .btn-ghost:focus-visible{
  border-color: var(--cyan);
  color: var(--cyan);
}

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

/* Photo frame — targeting-reticle corners instead of a plain border */
.photo-frame{
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  padding: 16px;
}
.photo-frame::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 220px at 50% 40%, rgba(62,142,255,0.22), transparent 70%);
  z-index: 0;
}
.photo-frame img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(1.02);
}
.photo-frame .corner{
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
}
.photo-frame .corner-tl{ top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.photo-frame .corner-tr{ top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.photo-frame .corner-bl{ bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.photo-frame .corner-br{ bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.photo-frame.photo-frame-small{ max-width: 220px; }

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

.section{ padding: 80px 0; }
.section-tint{ background: var(--bg-panel-alt); }

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

/* Simple page header used on interior pages */
.page-header{
  padding: 60px 0 44px;
  background: var(--navy);
  background-image:
    radial-gradient(600px 320px at 90% 0%, rgba(62,142,255,0.18), transparent 60%);
}
.page-header .eyebrow-line{ color: var(--cyan); }
.page-header .eyebrow-line::before{ background: var(--cyan); }
.page-header h1{ color: var(--on-dark); font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 26ch; }
.page-lede{ color: var(--on-dark-soft); max-width: 62ch; font-size: 1.12rem; }

/* ---------- Technology / cutting-edge section ---------- */

.tech-section{
  background: var(--navy);
  padding: 80px 0;
  position: relative;
}
/* Mirrors the hero grid (same column ratio and gap) with the photo on
   the left, so the two homepage photos alternate sides and match in size. */
.focus-intro{
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 44px;
}
.focus-intro .section-head{ margin-bottom: 0; }
.focus-photo{ margin: 0; order: -1; }
.focus-photo .photo-frame{ max-width: 320px; }
.focus-photo figcaption{
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--on-dark-soft);
}
.tech-columns{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy-line);
  border: 1px solid var(--navy-line);
  margin-top: 8px;
}
.tech-card{
  background: var(--navy-panel);
  padding: 30px 26px;
}
.tech-card .tech-index{
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 14px;
}
.tech-card h3{ color: var(--on-dark); margin-bottom: 10px; }
.tech-card p{ color: var(--on-dark-soft); font-size: 1.03rem; margin-bottom: 0; }

/* ---------- Specialized techniques section ----------
   A dark counterpart matching the hero's navy, distinguished from
   .tech-section by individual bordered cards with reticle-style corner
   marks (echoing the hero photo frame) instead of a seamless
   hairline-divided grid. */

.specialty-section{
  background: var(--navy);
  padding: 80px 0;
}
.specialty-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.specialty-card{
  position: relative;
  background: var(--navy-panel);
  padding: 26px 22px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  border: 1px solid var(--navy-line);
}
.specialty-card::before,
.specialty-card::after{
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.specialty-card::before{
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.specialty-card::after{
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}
.specialty-card:hover{
  border-color: var(--cyan);
}
.specialty-tag{
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 14px;
}
.specialty-card h3{ color: var(--on-dark); margin-bottom: 10px; }
.specialty-card p{ color: var(--on-dark-soft); font-size: 1.02rem; margin-bottom: 0; }

/* ---------- Homepage quick-links grid ---------- */

.quicklink-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.quicklink-card{
  background: var(--bg-panel);
  padding: 30px 26px;
  display: block;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quicklink-card:hover, .quicklink-card:focus-visible{
  background: var(--bg-panel-alt);
  border-left-color: var(--cyan);
}
.quicklink-card h3{
  color: var(--ink);
  margin-bottom: 8px;
}
.quicklink-card p{
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 0;
}
.quicklink-card .quicklink-arrow{
  display: inline-block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  color: var(--blue);
  font-weight: 600;
}

/* ---------- About page ---------- */

.about-columns{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.about-columns .about-body{ max-width: none; }
.about-body p{ color: var(--ink-soft); font-size: 1.02rem; }

.credentials{ margin-top: 44px; }
.credentials-heading{
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.credential-list{ border-top: 1px solid var(--line); }
.credential-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.credential-program{
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px 0;
  font-size: 1rem;
}
.credential-org{
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
}
.credential-years{
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 0.97rem;
  white-space: nowrap;
  margin: 0;
}

/* ---------- Conditions / Insurance (chip grid) ---------- */

.chip-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.chip-grid li{
  background: var(--bg-panel);
  padding: 18px 20px;
  font-size: 1rem;
  color: var(--ink);
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip-grid li:hover{
  border-left-color: var(--cyan);
  background: var(--bg-panel-alt);
}

.insurance-note{
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Flowing two-column list — balances naturally regardless of item count,
   so there's never a lone item stranded in an otherwise-empty row. */
.list-columns{
  columns: 2;
  column-gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.list-columns li{
  position: relative;
  break-inside: avoid;
  background: var(--bg-panel);
  padding: 16px 22px;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.list-columns li:hover{
  border-left-color: var(--cyan);
  background: var(--bg-panel-alt);
}
.list-columns-3{ columns: 3; }

/* Grid-based equivalent of .list-columns, used specifically where items
   contain an expandable popover (.reveal). CSS multi-column layout can
   fragment an absolutely positioned popover across the column boundary
   when it sits near the bottom of a column, making it appear split into
   two boxes — Grid has no such fragmentation, so it's used here instead. */
.detail-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.detail-grid li{
  position: relative;
  background: var(--bg-panel);
  padding: 16px 22px;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.detail-grid li:hover{
  border-left-color: var(--cyan);
  background: var(--bg-panel-alt);
}

/* Shared expand/collapse styling for tappable definitions
   (used on the Conditions and Procedures pages). The description opens
   as a floating card positioned over the page rather than pushing
   surrounding content down, so opening one item never reflows or
   re-columns the rest of the list. */
details.reveal{ position: relative; }
details.reveal > summary{
  list-style: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 1.02rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
  user-select: none;
}
details.reveal > summary::-webkit-details-marker{ display: none; }
details.reveal > summary::before{
  content: "+";
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 0.97rem;
  flex-shrink: 0;
  width: 12px;
}
details.reveal[open] > summary{ color: var(--ink); font-weight: 600; }
details.reveal[open] > summary::before{ content: "–"; }
details.reveal > summary:hover,
details.reveal > summary:focus-visible{ color: var(--ink); }

details.reveal p{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: 280px;
  max-width: min(320px, 84vw);
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  box-shadow: 0 16px 32px rgba(11, 26, 38, 0.16);
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.term-highlight{
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Procedures ---------- */

.procedure-hint{
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.procedure-columns{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.procedure-group h3{
  color: var(--ink);
  border-bottom: 2px solid var(--cyan);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.procedure-group ul li{
  border-bottom: 1px solid var(--line);
}
.procedure-group ul li:last-child{ border-bottom: none; }
.procedure-group details.reveal{
  padding: 9px 0;
}
.procedure-group details.reveal p{
  top: calc(100% + 2px);
}

/* ---------- Locations ---------- */

.location-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.location-card{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  padding: 28px 24px;
}
.location-card-upcoming{
  border-top-style: dashed;
  color: var(--ink-soft);
}
.location-kicker{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}
.location-detail{
  color: var(--ink-soft);
  font-size: 1rem;
}
.location-detail a{ color: var(--ink); font-weight: 600; }
.location-card h3 a{
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.location-card h3 a:hover,
.location-card h3 a:focus-visible{
  color: var(--blue);
  border-color: var(--blue);
}
.ocua-link{
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ocua-link:hover,
.ocua-link:focus-visible{
  color: var(--blue);
  border-color: var(--blue);
}
.location-note{
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Contact band ---------- */

.contact-band{
  background: var(--navy);
  background-image: radial-gradient(600px 320px at 10% 100%, rgba(33,216,196,0.16), transparent 60%);
  color: var(--on-dark);
}
.contact-band h2{ color: var(--on-dark); }
.contact-lede{ color: var(--on-dark-soft); max-width: 42ch; }

.inline-link,
.inline-link-dark{
  color: var(--cyan);
  border-bottom: 1px solid rgba(33, 216, 196, 0.4);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.inline-link:hover, .inline-link:focus-visible,
.inline-link-dark:hover, .inline-link-dark:focus-visible{
  color: var(--on-dark);
  border-color: var(--on-dark);
}

.contact-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.contact-cards{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--navy-line);
  border-left: 2px solid var(--cyan);
  padding: 20px 22px;
}
.contact-card-label{
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--on-dark-soft);
  margin-bottom: 6px;
}
.contact-card-number{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--on-dark);
}

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

.site-footer{
  background: var(--navy);
  color: var(--on-dark-soft);
  padding: 44px 0 26px;
  border-top: 1px solid var(--navy-line);
}
.footer-inner{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-name{
  font-family: var(--font-display);
  color: var(--on-dark);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.footer-org{ color: var(--on-dark-soft); font-size: 0.97rem; }
.footer-address p, .footer-contact p{ font-size: 0.97rem; margin: 0 0 4px 0; }
.footer-contact a:hover{ color: var(--cyan); }
.footer-copyright{
  padding-top: 18px;
  font-size: 0.86rem;
  color: #5A6E7A;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero h1{ max-width: none; }
  .hero-mark{ order: -1; max-width: 220px; margin: 0 auto; }
  .about-columns{ grid-template-columns: 1fr; }
  .about-columns .photo-frame{ max-width: 200px; }
  .credential-row{ flex-direction: column; align-items: flex-start; gap: 6px; }
  .chip-grid{ grid-template-columns: repeat(2, 1fr); }
  .list-columns{ columns: 1; }
  .list-columns-3{ columns: 2; }
  .detail-grid{ grid-template-columns: repeat(2, 1fr); }
  .procedure-columns{ grid-template-columns: 1fr; gap: 32px; }
  .tech-columns{ grid-template-columns: 1fr; }
  .focus-intro{ grid-template-columns: 1fr; gap: 32px; }
  .focus-photo .photo-frame{ max-width: 220px; }
  .specialty-grid{ grid-template-columns: repeat(2, 1fr); }
  .location-grid{ grid-template-columns: 1fr; }
  .quicklink-grid{ grid-template-columns: 1fr; }
  .contact-inner{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 520px){
  .chip-grid{ grid-template-columns: 1fr; }
  .list-columns-3{ columns: 1; }
  .detail-grid{ grid-template-columns: 1fr; }
  .specialty-grid{ grid-template-columns: 1fr; }
  .header-inner{ flex-wrap: wrap; }
  .call-pill{ align-items: flex-start; }
}

/* ---------- Mobile call bar ----------
   Hidden on desktop; on phones it stays pinned to the bottom of the
   screen so the scheduling number is always one tap away. */
.mobile-call-bar{ display: none; }

@media (max-width: 720px){
  .mobile-call-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(120deg, var(--blue), var(--cyan));
    color: var(--navy);
    box-shadow: 0 -8px 24px rgba(4, 10, 16, 0.35);
  }
  .mobile-call-label{
    font-weight: 700;
    font-size: 1rem;
  }
  .mobile-call-number{
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
  }
  /* keep the footer from sitting underneath the bar */
  body{ padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* the header call pill is redundant once the bar is showing */
  .call-pill{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}
