/* ═══════════════════════════════════════════════════
   Central Sydney ENT — Premium Medical Specialist Design System
   Navy #081A58 / Sky Blue #67B8E3 / Playfair Display + Poppins
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ── CUSTOM PROPERTIES ──
   Brand palette matched to centralsydneyent.com.au
   Primary brand blue: #006fad ── */
:root {
  --navy: #006fad;
  --navy-dark: #00547f;
  --navy-light: #1583c1;
  --blue: #006fad;
  --sky: #67B8E3;
  --sky-light: #82CCF9;
  --sky-wash: #EBF5FC;
  --sky-pale: #f4f9fd;
  --text: #222222;
  --text-body: #313131;
  --text-light: #6B6C6A;
  --text-muted: #9ca3af;
  --border: #e2e5ea;
  --border-light: #f0f2f5;
  --bg-off: #f8f9fb;
  --white: #ffffff;
  --red: #b91c1c;
  --red-light: #fef2f2;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Raleway', 'Open Sans', Georgia, sans-serif;
  --radius: 50px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.09);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.11);
  --max-w: 1140px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  font-size: 15.5px;
  font-weight: 400;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.2;
}

p + p { margin-top: 16px; }


/* ── LAYOUT ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
}


/* ═══════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════ */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.50);
  font-size: 12px;
  font-weight: 400;
  padding: 8px 0;
  letter-spacing: 0.15px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.top-bar a {
  color: rgba(255,255,255,0.70);
  font-weight: 500;
}
.top-bar a:hover { color: #fff; }

@media (max-width: 700px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
}


/* ═══════════════════════════════════════════
   NAVIGATION — Sticky with frosted glass
   ═══════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.3px;
  line-height: 1.15;
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }

.logo-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.logo-name span { color: var(--blue); }

.logo-tagline {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  letter-spacing: 0.1px;
}

.nav-menu a:hover {
  color: var(--navy);
  background: var(--bg-off);
}

.nav-menu a.active {
  color: var(--navy);
  font-weight: 600;
}

/* Nav CTA pill button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  transition: all var(--transition) !important;
  letter-spacing: 0.2px !important;
}
.nav-cta:hover {
  background: var(--navy-light) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
}
.mobile-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 12px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
  }
  .nav-menu li:last-child a { border: none; }
  .mobile-toggle { display: block; }
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-light);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover {
  background: var(--bg-off);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.btn-sky {
  background: var(--sky);
  color: #fff;
}
.btn-sky:hover {
  background: var(--sky-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 16px 38px; font-size: 15px; }


/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.sec-white { background: var(--white); }
.sec-off   { background: var(--bg-off); }
.sec-navy  { background: var(--navy); color: rgba(255,255,255,0.85); }
.sec-sky   { background: var(--sky); color: #fff; }

/* Section heading system */
.sec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--sky);
  margin-bottom: 14px;
  display: block;
  font-family: var(--font-body);
}
.sec-navy .sec-label { color: var(--sky-light); }

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}
.sec-navy .sec-title { color: #fff; }

.sec-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 560px;
}
.sec-navy .sec-subtitle { color: rgba(255,255,255,0.50); }

.sec-head { margin-bottom: 56px; }

/* Intro section: give the heading breathing room above its paragraph
   (the global reset zeroes all margins, so h2 sat flush against the copy). */
.intro-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}
.sec-head-center { text-align: center; }
.sec-head-center .sec-subtitle { margin: 0 auto; }


/* ═══════════════════════════════════════════
   HERO (Homepage)
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.hero-content {
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--sky-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  display: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 600;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--sky-light);
}

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.hero-photo {
  position: relative;
  align-self: center;
  display: flex;
  justify-content: center;
}
.hero-photo img {
  width: 260px;
  height: 260px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 40px;
  }
  .hero-content { padding-bottom: 40px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-photo { display: none; }
}

@media (max-width: 600px) {
  .hero-inner { padding: 48px 20px; }
  .hero-stats { gap: 32px; }
}

/* ── VIDEO HERO ── */
.hero-inner-video {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-video-wrap {
  position: relative;
  align-self: center;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
}

.hero-video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--navy-dark);
}

.hero-video-play-indicator {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.hero-video-container:hover .hero-video-play-indicator {
  opacity: 1;
}

.hero-video-play-indicator svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-refer-btn {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

@media (max-width: 860px) {
  .hero-inner-video {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 40px;
  }
  .hero-video-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-video-container { max-width: 100%; }
}

/* ── AFFILIATION LINKS ── */
a.affil-item {
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}
a.affil-item:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}


/* ═══════════════════════════════════════════
   PRINCIPAL DOCTOR FEATURE (Homepage)
   Large two-column layout for lead surgeon
   ═══════════════════════════════════════════ */
.principal-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 760px) {
  .principal-feature {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    text-align: center;
  }
}

.principal-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 280px;
  max-width: 100%;
}
.principal-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.principal-info .sec-label { margin-bottom: 12px; }

.principal-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 4px;
}

.principal-quals {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.principal-bio {
  font-size: 15.5px;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 28px;
}
.principal-bio p { margin-bottom: 14px; }

@media (max-width: 860px) {
  .principal-feature {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 40px;
  }
}


/* ═══════════════════════════════════════════
   DOCTOR TEAM GRID (Homepage cards)
   Dark cards with overlay — no emojis
   ═══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  gap: 16px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 240px)); max-width: 540px; }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: minmax(0, 280px); max-width: 320px; }
}

.team-card {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  display: block;
  text-decoration: none;
  border-radius: 16px;
}

.team-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
}

.team-card:hover .team-card-img img {
  transform: scale(1.03);
}

.team-card-overlay {
  position: relative;
  background: var(--navy-dark);
  padding: 18px 20px;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.team-card-quals {
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.team-card-spec {
  font-size: 10px;
  font-weight: 600;
  color: var(--sky-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.team-card-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}

.team-card:hover .team-card-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ═══════════════════════════════════════════
   DOCTOR PROFILE PAGE
   ═══════════════════════════════════════════ */
.profile-hero {
  background: var(--bg-off);
  padding: 64px 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

.profile-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.profile-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

.profile-info { padding-top: 8px; }

.profile-spec {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--sky);
  margin-bottom: 12px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 6px;
}

.profile-quals {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.profile-bio {
  font-size: 15.5px;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 28px;
}
.profile-bio p { margin-bottom: 16px; }

.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

@media (max-width: 520px) {
  .profile-details { grid-template-columns: 1fr; }
}

.profile-detail-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.profile-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

/* Profile body sections */
.profile-section { padding: 72px 0; }

.profile-section + .profile-section {
  border-top: 1px solid var(--border-light);
}

.profile-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}

.profile-section p {
  font-size: 15px;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 680px;
}

.profile-section ul {
  list-style: none;
  padding: 0;
}

.profile-section ul li {
  font-size: 14.5px;
  color: var(--text-body);
  font-weight: 400;
  padding: 9px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.profile-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}


/* ═══════════════════════════════════════════
   PROCEDURES GRID
   White cards, sky-blue top accent, no emojis
   ═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  display: block;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.service-card h3 {
  color: var(--navy-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.service-card-accent {
  display: none;
}
@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .proc-grid { grid-template-columns: 1fr; }
}

.proc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: block;
}

.proc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.proc-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.proc-card p {
  font-size: 14px;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
}

.proc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 16px;
  transition: gap var(--transition);
}
.proc-card:hover .proc-card-link { gap: 10px; }


/* ═══════════════════════════════════════════
   SERVICES / PROCEDURES (Alternating rows)
   ═══════════════════════════════════════════ */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 2px;
}

.service-row:nth-child(even) { direction: rtl; }
.service-row:nth-child(even) > * { direction: ltr; }

@media (max-width: 768px) {
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-row:nth-child(even) > * { direction: ltr; }
}

.service-visual {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  min-height: 280px;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-content p {
  font-size: 14.5px;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.service-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--sky-wash);
  padding: 5px 14px;
  border-radius: var(--radius);
}


/* ═══════════════════════════════════════════
   CONDITIONS CLOUD
   ═══════════════════════════════════════════ */
.conditions-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.condition-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.condition-pill:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}


/* ═══════════════════════════════════════════
   ALLIED HEALTH CARDS
   ═══════════════════════════════════════════ */
.allied-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .allied-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .allied-grid { grid-template-columns: 1fr; }
}

.allied-card {
  text-align: center;
  padding: 4px;
}

.allied-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--bg-off);
  border: 3px solid var(--border-light);
}

.allied-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.allied-card h3,
.allied-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.allied-card .allied-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.allied-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.6;
}

/* Partner organisations carry a wide wordmark, which is illegible inside the
   100px avatar circle. Give them a rounded plate of the same height instead:
   the row keeps its vertical rhythm, and people vs organisations read as a
   deliberate distinction rather than an accident. */
.allied-photo-logo {
  width: 176px;
  height: 100px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}
.allied-photo-logo img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 480px) {
  .allied-photo-logo { width: 100%; max-width: 220px; }
}

/* Cards that link out to the partner. Colour/shadow only on hover, never a
   transform, so nothing in the grid shifts. */
.allied-card-link {
  display: block;
  border-radius: 14px;
  transition: background var(--transition), box-shadow var(--transition);
}
.allied-card-link:hover {
  background: var(--bg-off);
  box-shadow: 0 6px 20px rgba(0, 111, 173, 0.08);
}
.allied-card-link:hover .allied-photo-logo {
  border-color: var(--sky);
}
.allied-card-link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.allied-card-link h3, .allied-card-link h4 { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .allied-card-link { transition: none; }
}


/* ═══════════════════════════════════════════
   AFFILIATIONS BAR / ROW
   ═══════════════════════════════════════════ */
.affil-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.affil-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.3px;
  transition: border-color var(--transition);
}
.affil-item:hover { border-color: var(--sky); }

/* Profile page affiliations */
.affil-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}

.affil-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-off);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius);
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all var(--transition);
}

a.affil-badge:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}


/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
  gap: 16px;
  -webkit-user-select: none;
  user-select: none;
}
.faq-q:hover { color: var(--sky); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  font-size: 16px;
  font-weight: 300;
  flex-shrink: 0;
  transition: all var(--transition);
}

.faq-a {
  font-size: 14.5px;
  color: var(--text-body);
  font-weight: 300;
  padding: 0 0 22px;
  line-height: 1.75;
  display: none;
}

.faq-item.open .faq-a { display: block; }

.faq-item.open .faq-icon {
  background: var(--navy);
  color: #fff;
  transform: rotate(45deg);
}


/* ═══════════════════════════════════════════
   GP REFERRAL FORM
   ═══════════════════════════════════════════ */
.ref-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .ref-layout { grid-template-columns: 1fr; }
}

.ref-sidebar h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.18;
}

.ref-sidebar p {
  font-size: 15px;
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 16px;
}

.ref-contact-box {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
}
.ref-contact-box p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin-bottom: 6px;
}
.ref-contact-box strong { color: #fff; }
.ref-contact-box a { color: var(--sky-light); font-weight: 500; }

.urgent-panel {
  background: var(--red-light);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 24px;
}
.urgent-panel h2,
.urgent-panel h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.urgent-panel li {
  font-size: 13px;
  color: #7f1d1d;
  padding: 3px 0;
  list-style: none;
  padding-left: 14px;
  position: relative;
}
.urgent-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

/* Referral instructions card (replaced the demo form, 14 Oct 2026) */
.ref-card-lead { font-size: 15px; color: var(--text); margin-bottom: 22px; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ref-actions .btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.ref-fax { font-size: 14px; color: var(--text-light); margin-bottom: 26px; }
.ref-fax strong { color: var(--navy); }
.ref-form-card h4,
.ref-form-card .rf-sub {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.ref-checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.ref-checklist li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.ref-checklist li:last-child { border-bottom: none; }
.ref-checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--sky);
  border-bottom: 2px solid var(--sky);
  transform: rotate(-45deg);
}
.ref-note { font-size: 13px; color: var(--text-light); background: var(--bg-off); border-radius: var(--radius-sm); padding: 12px 14px; }
@media (max-width: 540px) {
  .ref-form-card { padding: 28px 22px; }
  .ref-actions .btn { width: 100%; justify-content: center; }
}

/* Form card */
.ref-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.ref-form-card h3,
.ref-form-card .rf-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-row.single { grid-template-columns: 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(103,184,227,0.10);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--transition);
  letter-spacing: 0.3px;
}
.form-submit:hover { background: var(--navy-light); }


/* ═══════════════════════════════════════════
   LOCATIONS / CONTACT
   ═══════════════════════════════════════════ */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .loc-grid { grid-template-columns: 1fr; }
}

.loc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xs);
}

.loc-card h2,
.loc-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.loc-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-body);
  font-weight: 300;
}
.loc-row strong {
  color: var(--text);
  font-weight: 600;
  min-width: 70px;
  flex-shrink: 0;
}

.loc-list { margin-top: 28px; }

.loc-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.loc-list-item span {
  color: var(--text-body);
  font-weight: 400;
}
.loc-list-item a {
  font-weight: 600;
  color: var(--blue);
  font-size: 13px;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}


/* ═══════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════ */
.cta-band {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(103,184,227,0.06);
}

.cta-band::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(103,184,227,0.04);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-band p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 48px;
}

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

.foot-col h2,
.foot-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.foot-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  font-weight: 300;
  line-height: 1.7;
}

.foot-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  font-weight: 400;
  display: block;
  padding: 4px 0;
  transition: color 0.15s;
}
.foot-col a:hover { color: #fff; }

/* Doctify partner badge (footer) */
.foot-badges {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 26px;
}
.foot-badges a {
  display: inline-block;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}
.foot-badges a:hover { opacity: 1; }
.foot-badges img {
  display: block;
  width: 118px;
  height: auto;
}
@media (max-width: 480px) {
  .foot-badges { justify-content: center; padding-bottom: 22px; }
}

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.22);
  flex-wrap: wrap;
  gap: 8px;
}
.foot-bottom a { color: rgba(255,255,255,0.35); }
.foot-bottom a:hover { color: #fff; }


/* ═══════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════ */
.breadcrumb {
  padding: 14px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 400;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span {
  margin: 0 6px;
  color: var(--border);
}


/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-navy  { color: var(--navy); }
.text-sky   { color: var(--sky); }
.text-white { color: #fff; }

.border-t {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ══════ BLOG CARDS ══════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card-accent {
  height: 3px;
  background: var(--sky);
}
.blog-card-body {
  padding: 28px 24px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.blog-card-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.blog-card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sky);
  background: var(--sky-wash);
  padding: 3px 10px;
  border-radius: var(--radius);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 12px;
}
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card h3 a:hover {
  color: var(--sky);
}
.blog-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
}
.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.blog-card-link:hover {
  color: var(--navy);
}

/* Responsive hide/show */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}


/* ═══════════════════════════════════════════
   LOCATIONS & MAP
   ═══════════════════════════════════════════ */
.locations-section { padding: 80px 0 100px; }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 48px auto 56px;
  max-width: 1140px;
}

@media (max-width: 1100px) {
  .locations-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .locations-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 460px) {
  .locations-grid { grid-template-columns: 1fr; }
}

.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  position: relative;
  transition: all var(--transition);
}
.location-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.location-card-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.location-card-primary h3,
.location-card-primary .location-addr,
.location-card-primary .location-meta { color: #fff; }
.location-card-primary .location-meta a { color: var(--sky-light); }

.location-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.location-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
.location-addr {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 8px;
}
.location-meta {
  font-size: 12.5px;
  color: var(--text-light);
  margin-top: 4px;
}
.location-meta a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.location-meta a:hover { text-decoration: underline; }

/* Map block */
.map-block {
  max-width: 1140px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.map-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 4px;
}
.map-header p {
  font-size: 13.5px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0;
}
.map-toggle {
  display: inline-flex;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  flex-shrink: 0;
}
.map-toggle-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.map-toggle-btn.is-active {
  background: var(--navy);
  color: #fff;
}

.map-frames {
  position: relative;
  width: 100%;
  height: 480px;
}
.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.map-frame.is-active {
  opacity: 1;
  pointer-events: auto;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 22px 28px;
  background: var(--bg-off);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 600px) {
  .map-header { padding: 18px 20px; }
  .map-frames { height: 360px; }
}


/* ═══════════════════════════════════════════
   MaxConnex accessibility pass, 14 Oct 2026
   WCAG AA text contrast (4.5:1), 11px floor on functional text.
   Rollback: snapshot-pre-a11y-2026-10-14/styles.css
   ═══════════════════════════════════════════ */
:root { --text-muted: #646a73; --sky-text: #1a6a98; }

.sec-label { color: var(--sky-text); }
.sec-navy { color: rgba(255,255,255,0.92); }
.sec-navy .sec-label,
.sec-navy .sec-subtitle { color: rgba(255,255,255,0.92); }

/* Sky sections: white on #67b8e3 is 2.2:1, so text goes dark */
.sec-sky { color: #0b2a3d; }
.sec-sky .sec-title,
.sec-sky .sec-label { color: #00334f; }
.sec-sky .sec-subtitle { color: #1f2f3a; }

.hero-eyebrow { text-transform: none; letter-spacing: 0.4px; font-size: 13px; color: rgba(255,255,255,0.95); }
.hero-desc { color: rgba(255,255,255,0.9); }
.hero-stat-label { color: rgba(255,255,255,0.9); }
.top-bar { color: rgba(255,255,255,0.78); }

.team-card-quals { font-size: 12px; color: rgba(255,255,255,0.82); }
.team-card-spec { font-size: 11.5px; }
.allied-card .allied-role { color: var(--sky-text); }
.blog-card-cat { color: var(--sky-text); }

.foot-col h2,
.foot-col h4,
.foot-col p { color: rgba(255,255,255,0.75); }
.foot-col a { color: rgba(255,255,255,0.78); }
.foot-bottom { color: rgba(255,255,255,0.72); }
.foot-bottom a { color: rgba(255,255,255,0.78); }

/* Burwood card: .location-card h3 (navy) was overriding the primary card's white */
.location-card.location-card-primary h3 { color: #fff; }
.location-tag { font-size: 11.5px; background: var(--navy-dark); }

/* .btn-primary was used on CTAs but never defined */
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Navy CTA bands and pale links on navy */
.cta-band p { color: rgba(255,255,255,0.92); }
.location-card-primary .location-meta a,
.ref-contact-box a { color: #eef7fd; text-decoration: underline; text-underline-offset: 2px; }

/* Surgeon profiles */
.profile-spec { color: var(--sky-text); }
.profile-detail-label { font-size: 11.5px; }

/* Readable line length (about 80 characters) */
.intro-text p,
.principal-content p,
.profile-bio p,
section.conditions-hero p,
.wrap[style*="max-width: 780px"] > p { max-width: 38em; }
section.conditions-hero p { margin-left: auto; margin-right: auto; }
