/* ============================================================
   Southwest Endodontic Centre — Shared Stylesheet
   Premium specialist practice aesthetic (AEK Media-inspired)
   ============================================================ */

/* --- Lucide SVG Icon Utilities ----------------------------- */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; color: currentColor; }
.icon-inline { margin-right: 0.4rem; width: 16px; height: 16px; vertical-align: -0.15em; }
.icon-feature { display: block; width: 40px; height: 40px; color: var(--navy, #0F2260); margin-bottom: 1rem; }
.icon-section { width: 24px; height: 24px; color: var(--navy, #0F2260); }

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

:root {
  /* Logo tooth gradient — darkest to lightest */
  --navy:        #0F2260;   /* hero bg, footer, top bar, dark sections */
  --deep-blue:   #1A3F8A;   /* secondary dark sections, technology band */
  --royal-blue:  #2358A8;   /* PRIMARY CTA buttons, primary links */
  --mid-blue:    #3A80C4;   /* button hover, card accents, icons */
  --light-blue:  #5AABDA;   /* highlights in dark sections, badges */
  --sky-blue:    #7DCEE8;   /* decorative accents */

  /* Legacy aliases (map old names → new palette so existing rules still work) */
  --navy-dark:   #0A1642;
  --navy-deep:   #07102F;
  --teal:        #2358A8;   /* alias -> royal-blue */
  --teal-dark:   #1A3F8A;   /* alias -> deep-blue */
  --teal-light:  #5AABDA;   /* alias -> light-blue */

  /* Backgrounds */
  --pale-blue:   #E8F4FC;
  --white:       #FFFFFF;
  --bg-light:    #F4F7FB;
  --bg-card:     #FFFFFF;
  --grey-light:  #F4F7FB;

  /* Text */
  --text:        #1A3570;
  --text-navy:   #0F2260;
  --text-dark:   #1A3570;
  --text-muted:  #5A6B82;
  --text-white:  #FFFFFF;

  /* Borders */
  --border:      #D6E2F2;
  --border-light:#EBF1F9;

  /* Shadows tuned to navy */
  --shadow-sm:   0 1px 3px rgba(15, 34, 96, 0.06);
  --shadow:      0 4px 16px rgba(15, 34, 96, 0.07);
  --shadow-lg:   0 12px 40px rgba(15, 34, 96, 0.12);

  --radius:      8px;
  --radius-lg:   12px;
  --radius-pill: 999px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  --transition:  0.22s ease;
  --container:   1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--teal-dark);
}

ul {
  list-style: none;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }

/* --- Layout ------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--grey {
  background: var(--pale-blue);
}

.section--pale {
  background: var(--pale-blue);
}

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

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--deep-blue {
  background: var(--deep-blue);
  color: var(--white);
}
.section--deep-blue h1,
.section--deep-blue h2,
.section--deep-blue h3,
.section--deep-blue h4 { color: var(--white); }
.section--deep-blue p { color: rgba(255,255,255,0.82); }
.section--deep-blue .eyebrow { color: var(--light-blue); }

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255,255,255,0.78);
}

.section--teal {
  background: var(--teal);
  color: var(--white);
}
.section--teal h1,
.section--teal h2,
.section--teal h3,
.section--teal h4 { color: var(--white); }
.section--teal p { color: rgba(255,255,255,0.88); }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section--navy .eyebrow,
.section--teal .eyebrow {
  color: rgba(255,255,255,0.7);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-header p {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.section--navy .section-header p,
.section--teal .section-header p,
.section--deep-blue .section-header p,
.dentists-section .section-header p {
  color: rgba(255,255,255,0.85);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  font-family: var(--font);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(42, 125, 111, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary--white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary--white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-lg {
  padding: 18px 34px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* --- Top Phone Bar ---------------------------------------- */
.topbar {
  background: #0A1A4A;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  padding: 9px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar a {
  color: rgba(255,255,255,0.78);
  transition: color var(--transition);
}
.topbar a:hover { color: var(--white); }
.topbar strong { color: var(--white); font-weight: 600; }

/* --- Header ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  gap: 32px;
}

.site-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}
.site-logo img {
  height: 80px;
  width: auto;
  max-width: 340px;
  display: block;
}
.footer-brand .site-logo img {
  height: 96px;
}
.site-logo span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
}

.nav-link .chevron {
  font-size: 0.55rem;
  opacity: 0.55;
  transition: transform var(--transition);
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 12px;
  z-index: 100;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-dropdown a:hover {
  background: var(--bg-light);
  color: var(--teal);
}

.nav-dropdown a.external::after {
  content: " ↗";
  font-size: 0.75rem;
  opacity: 0.6;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 12px;
  margin-left: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-phone:hover { color: var(--teal); }

.nav-cta {
  margin-left: 6px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 20px 24px 28px;
  max-height: calc(100vh - 78px);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-size: 0.98rem;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a:hover { color: var(--teal); }

.mobile-nav .mobile-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-top: 20px;
  margin-bottom: 4px;
  padding-bottom: 4px;
}
.mobile-nav .btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* --- Mobile Sticky Bottom Bar ----------------------------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  z-index: 900;
  gap: 8px;
  box-shadow: 0 -4px 16px rgba(15,34,96,0.08);
}
.mobile-cta-bar .btn {
  flex: 1;
  justify-content: center;
  padding: 13px 10px;
  font-size: 0.88rem;
}

/* --- Hero -------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, #1A3F8A 0%, #1E4FA8 45%, #0F2260 100%);
  color: var(--white);
  padding: 120px 0 110px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(125,206,232,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  width: 100%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(125,206,232,0.1);
  border: 1.5px solid var(--sky-blue);
  color: var(--sky-blue);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  margin-bottom: 1.25rem;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

/* Hero-specific button override: white primary button on blue hero */
.hero .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.hero .btn-primary:hover {
  background: var(--light-blue);
  color: var(--navy);
  border-color: var(--light-blue);
  box-shadow: 0 6px 18px rgba(90,171,218,0.4);
}

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

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(125,206,232,0.1) 0%, transparent 55%);
}

.hero-visual-inner {
  position: relative;
  text-align: center;
  color: rgba(255,255,255,0.65);
}
.hero-visual-inner .icon-big {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.7;
}
.hero-visual-inner p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-style: italic;
}

/* --- Location Cards ---------------------------------------- */
.location-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition);
  position: relative;
}

.location-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.location-card--primary {
  border-top: 3px solid var(--teal);
}

.location-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.location-tag--navy {
  background: var(--navy);
}

.location-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text);
}

.location-detail .icon {
  flex-shrink: 0;
  width: 20px;
  color: var(--teal);
  margin-top: 2px;
  font-size: 1rem;
}

.location-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  transition: gap var(--transition);
}
.location-link:hover { gap: 12px; color: var(--teal-dark); }

/* --- Pillars (Why a Specialist) --------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  padding: 0;
  text-align: left;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  background: rgba(90,171,218,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: var(--teal);
}

.pillar h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.pillar p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Technology Cards ------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.tech-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.tech-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(90,171,218,0.5);
  transform: translateY(-4px);
}

.tech-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(90,171,218,0.18) 0%, rgba(90,171,218,0.08) 100%);
  border-color: rgba(90,171,218,0.4);
}

.tech-icon {
  width: 52px;
  height: 52px;
  background: rgba(90,171,218,0.18);
  color: var(--teal-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.3rem;
}

.tech-badge {
  display: inline-block;
  background: rgba(90,171,218,0.15);
  border: 1px solid rgba(90,171,218,0.35);
  color: #5AABDA;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.tech-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--white);
}

.tech-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  line-height: 1.65;
}

.tech-card ul {
  list-style: none;
  margin-top: 12px;
}
.tech-card ul li {
  font-size: 0.88rem;
  padding: 4px 0 4px 22px;
  position: relative;
  color: rgba(255,255,255,0.8);
}
.tech-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal-light);
  font-weight: 700;
}

.tech-card a.btn { margin-top: 20px; }

.tech-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-light);
  transition: gap var(--transition);
}
.tech-card-link:hover { gap: 10px; color: var(--white); }

/* --- Services Grid ---------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: none;
  box-shadow: 0 2px 10px rgba(15,34,96,0.05);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--royal-blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(90,171,218,0.1);
  color: var(--teal);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--transition);
}
.service-card:hover .service-card-link { gap: 8px; }

/* --- For Dentists ----------------------------------------- */
.dentists-section {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.dentists-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(90,171,218,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.dentists-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}

.feature-list {
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.96rem;
  color: rgba(255,255,255,0.88);
}
.feature-list li:last-child { border-bottom: none; }

.feature-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: rgba(90,171,218,0.25);
  border: 1px solid rgba(90,171,218,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--teal-light);
  margin-top: 1px;
  font-weight: 700;
}

.dentists-cta-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.dentists-cta-card h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.dentists-cta-card p {
  color: rgba(255,255,255,0.72);
  font-size: 0.96rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.dentists-cta-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

/* --- Doctors ---------------------------------------------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.doctor-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}

.doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border);
}

.doctor-avatar {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(90,171,218,0.12) 0%, rgba(90,171,218,0.04) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 24px;
  border: 2px solid rgba(90,171,218,0.2);
  color: var(--teal);
}

.doctor-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.doctor-title {
  font-size: 0.85rem;
  color: var(--mid-blue);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.doctor-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.doctor-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.qual-badge {
  background: var(--bg-light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

/* --- Fees Cards ------------------------------------------- */
.fees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 36px;
}

.fee-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.fee-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.fee-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 12px;
}

.fee-amount {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.fee-note {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.fee-pills {
  text-align: center;
  margin: 28px 0;
}
.fee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

/* --- Catchment ------------------------------------------- */
.catchment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.catchment-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.catchment-card h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.catchment-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.catchment-card ul li a {
  font-size: 0.92rem;
  color: var(--text);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.catchment-card ul li a:hover { color: var(--teal); }

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

.faq-item {
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  margin-bottom: 0;
  transition: background var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 8px 22px 8px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--teal); }

.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--teal);
  transition: all var(--transition);
  position: relative;
}
.faq-chevron::before {
  content: '+';
  line-height: 1;
  font-weight: 400;
  font-size: 1.25rem;
}
.faq-item.open .faq-chevron {
  background: var(--teal);
  color: var(--white);
}
.faq-item.open .faq-chevron::before {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 8px 22px 8px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.25s ease;
}

.faq-footer {
  text-align: center;
  margin-top: 48px;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 80px 0 0;
  border-top: 3px solid var(--royal-blue);
}

.site-footer a { color: var(--light-blue); }
.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
  display: block;
}
.footer-brand .site-logo span {
  color: rgba(255,255,255,0.55);
}

.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.footer-col ul li a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-location {
  margin-bottom: 24px;
}
.footer-location h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.footer-location p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.footer-location a {
  font-size: 0.88rem;
  color: var(--teal-light);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--white); }

/* --- Page Hero (service pages) ---------------------------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90,171,218,0.2) 0%, transparent 65%);
  pointer-events: none;
}

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

.page-hero h1 {
  color: var(--white);
  max-width: 780px;
  margin-bottom: 1.25rem;
}

.page-hero .hero-sub {
  max-width: 680px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.28); }

.page-content {
  padding: 80px 0;
}

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

.content-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-size: 1.65rem;
}
.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

.content-body ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.content-body ul li {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.content-body .highlight-box {
  background: rgba(90,171,218,0.06);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 2rem 0;
}
.content-body .highlight-box p {
  margin: 0;
  font-size: 0.98rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  transition: box-shadow var(--transition);
}
.sidebar-card:hover { box-shadow: var(--shadow); }

.sidebar-card h4 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 1rem;
}

.sidebar-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.sidebar-nav li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  color: var(--text);
}
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav li a {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.sidebar-nav li a:hover { color: var(--teal); }

.sidebar-card--dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.sidebar-card--dark h4 {
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}
.sidebar-card--dark p { color: rgba(255,255,255,0.8); }

/* --- AHPRA note ------------------------------------------- */
.ahpra-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* --- Utility ---------------------------------------------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1100px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-card--featured {
    grid-column: span 2;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    min-height: 280px;
    display: none;
  }
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  .nav-phone { display: none; }
}

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

  .main-nav { display: none; }
  .hamburger { display: flex; }

  .location-cards,
  .pillars,
  .dentists-inner,
  .catchment-grid,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .dentists-inner { gap: 40px; }

  .tech-grid,
  .services-grid,
  .fees-grid {
    grid-template-columns: 1fr;
  }

  .tech-card--featured { grid-column: span 1; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 72px 0 64px;
    min-height: 480px;
  }

  .section-header { margin-bottom: 48px; }

  .sidebar { position: static; }

  .mobile-cta-bar { display: flex; }

  body { padding-bottom: 72px; }

  .topbar-right { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .location-card,
  .doctor-card,
  .dentists-cta-card {
    padding: 28px 24px;
  }

  .section { padding: 56px 0; }
}

/* ============================================================= */
/* MOBILE NAV ACCORDION (Rule #3 — pre-launch upgrade, 2026-04)  */
/* ============================================================= */

.mobile-nav-group {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.3;
  min-height: 48px;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible,
.mobile-nav-toggle[aria-expanded="true"] {
  background: rgba(35, 88, 168, 0.06);
  color: var(--teal);
  outline: none;
}

.mobile-nav-toggle .chevron {
  transition: transform 0.3s ease;
  color: var(--teal);
  font-size: 0.9rem;
  line-height: 1;
  margin-left: 12px;
}

.mobile-nav-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(35, 88, 168, 0.04);
  margin: 0 -4px;
  padding: 0;
}

.mobile-submenu.open {
  max-height: 900px;
}

.mobile-nav .mobile-submenu a {
  display: block;
  padding: 13px 4px 13px 24px;
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  min-height: 44px;
  line-height: 1.4;
  box-sizing: border-box;
}

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

.mobile-nav .mobile-submenu a:hover,
.mobile-nav .mobile-submenu a:active,
.mobile-nav .mobile-submenu a:focus-visible {
  color: var(--teal);
  background: rgba(35, 88, 168, 0.10);
  outline: none;
}

.mobile-nav .mobile-nav-link {
  display: block;
  padding: 16px 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  min-height: 48px;
  line-height: 1.3;
}

.mobile-nav .mobile-nav-link:hover,
.mobile-nav .mobile-nav-link:active,
.mobile-nav .mobile-nav-link:focus-visible {
  color: var(--teal);
  outline: none;
}

.mobile-nav .mobile-nav-phone {
  display: block;
  padding: 16px 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  min-height: 48px;
  line-height: 1.3;
}

.mobile-nav .mobile-nav-cta {
  display: block;
  margin: 20px 0 8px;
  padding: 14px 20px;
  text-align: center;
  width: 100%;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  min-height: 48px;
  box-sizing: border-box;
}

/* Lock body scroll while the mobile nav is open */
body.menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-submenu { transition: none; }
  .mobile-nav-toggle .chevron { transition: none; }
}

/* ============================================================= */
/* MOBILE DESIGN AUDIT — global fixes at 767px and below         */
/* ============================================================= */

@media (max-width: 767px) {
  /* Hide the top phone bar entirely on mobile.
     Eliminates the empty sliver above the logo. */
  .topbar { display: none; }

  /* Prevent any child from forcing horizontal scroll. */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Cap display headings so they don't overflow narrow screens. */
  h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.18; }
  h2 { font-size: clamp(1.375rem, 5vw, 1.75rem); line-height: 1.22; }
  h3 { font-size: clamp(1.125rem, 4vw, 1.375rem); line-height: 1.3; }

  /* Tighten container side padding on small screens. */
  .container { padding-left: 20px; padding-right: 20px; }

  /* Tighten generic section rhythm on mobile. */
  .section { padding: 48px 0; }

  /* Desktop-only nav affordances — confirm hidden on mobile. */
  .nav-phone { display: none; }

  /* Form controls: full width, 44px min-height, 16px font to avoid iOS zoom. */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="date"],
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
    box-sizing: border-box;
  }
  textarea { min-height: 120px; }

  /* Card grids collapse to single column below 767px. */
  .testimonials-grid,
  .team-grid,
  .doctors-grid,
  .pillars,
  .location-cards,
  .tech-grid,
  .services-grid,
  .catchment-grid,
  .fees-grid,
  .resource-grid,
  .faq-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer: stacked columns. */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Images in content must never overflow. */
  main img, article img, section img {
    max-width: 100%;
    height: auto;
  }

  /* Buttons: wrap long labels rather than overflow. */
  .btn { white-space: normal; }
}

@media (max-width: 480px) {
  /* Narrow phones: stack hero CTAs, ensure full width. */
  .hero-ctas,
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas > *,
  .hero-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ============================================================= */
/* PRACTICE IMAGERY COMPONENTS (Phase 1 — 2026-04)               */
/* Reusable: .practice-image (single inline) + .practice-gallery */
/* (3-image grid). Alt text + loading="lazy" enforced in markup. */
/* ============================================================= */

.practice-image {
  margin: 48px 0;
  max-width: 100%;
}

.practice-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(26, 43, 74, 0.08);
  display: block;
}

.practice-image figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--teal);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .practice-image { margin: 32px 0; }
  .practice-image img { max-height: 280px; border-radius: 12px; }
}

.practice-gallery {
  padding: 96px 0;
  background: #fff;
}

.practice-gallery__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.practice-gallery__intro .eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.practice-gallery__intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.practice-gallery__intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 16px 0 0;
}

.practice-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.practice-gallery__grid figure {
  margin: 0;
}

.practice-gallery__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 34, 96, 0.08);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-gallery__grid figure:hover img {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 34, 96, 0.12);
}

.practice-gallery__grid figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--navy);
  text-align: center;
  font-weight: 600;
}

@media (max-width: 767px) {
  .practice-gallery { padding: 64px 0; }
  .practice-gallery__grid { grid-template-columns: 1fr; gap: 16px; }
  .practice-gallery__grid img { aspect-ratio: 16 / 10; border-radius: 12px; }
}
