/*
Theme Name: Coalhurst Dental - Enfold Child
Theme URI: https://coalhurstdental.ca/
Description: Modern child theme for Coalhurst Dental. Uses Enfold as the parent theme and preserves customizations across Enfold updates.
Author: Coalhurst Dental
Template: enfold
Version: 2.3.1
Text Domain: coalhurst-enfold-child
*/

:root {
  --cd-ink: #182126;
  --cd-ink-soft: #44525a;
  --cd-teal: #247984;
  --cd-teal-dark: #17616b;
  --cd-teal-pale: #eaf5f4;
  --cd-sand: #f6f3ed;
  --cd-white: #ffffff;
  --cd-line: #dfe7e8;
  --cd-shadow: 0 18px 60px rgba(24, 33, 38, 0.10);
  --cd-radius-lg: 26px;
  --cd-radius-md: 18px;
  --cd-radius-sm: 12px;
  --cd-content: 1180px;
}

/* Global refinement for the Enfold shell */
html { scroll-behavior: smooth; }
body {
  color: var(--cd-ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#header,
#header_main,
.header_bg {
  background: rgba(255,255,255,.97) !important;
}
#header_main { border-bottom: 1px solid rgba(24,33,38,.08) !important; }
#header .container { max-width: var(--cd-content); }
#header .logo img { max-height: 72px; width: auto; }
.av-main-nav > li > a {
  color: var(--cd-ink) !important;
  font-weight: 650 !important;
  letter-spacing: .01em;
}
.av-main-nav > li > a:hover,
.av-main-nav > li.current-menu-item > a { color: var(--cd-teal) !important; }

#top a:focus-visible,
#top button:focus-visible,
#top input:focus-visible,
#top textarea:focus-visible,
#top select:focus-visible {
  outline: 3px solid rgba(36,121,132,.35) !important;
  outline-offset: 3px;
}

/* Coalhurst v2 site system */
.cd-home { background: var(--cd-white); overflow: hidden; }
.cd-shell { width: min(var(--cd-content), calc(100% - 48px)); margin: 0 auto; }
.cd-section { padding: 96px 0; }
.cd-section--soft { background: var(--cd-sand); }
.cd-section--teal { background: var(--cd-teal-pale); }
.cd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--cd-teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cd-kicker::before { content: ""; width: 30px; height: 2px; background: var(--cd-teal); }
.cd-heading {
  margin: 0 0 18px;
  color: var(--cd-ink);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 760;
}
.cd-heading--section { font-size: clamp(32px, 4vw, 48px); max-width: 760px; }
.cd-lead {
  max-width: 680px;
  margin: 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
  color: var(--cd-ink-soft);
}
.cd-copy { font-size: 17px; line-height: 1.75; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.cd-btn:hover { transform: translateY(-2px); }
.cd-btn--primary { background: var(--cd-teal); color: var(--cd-white) !important; box-shadow: 0 10px 28px rgba(36,121,132,.23); }
.cd-btn--primary:hover { background: var(--cd-teal-dark); }
.cd-btn--ghost { background: rgba(255,255,255,.8); color: var(--cd-ink) !important; border-color: var(--cd-line); }
.cd-btn--ghost:hover { border-color: var(--cd-teal); color: var(--cd-teal-dark) !important; }

.cd-hero {
  position: relative;
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at 88% 16%, rgba(36,121,132,.18), transparent 32%),
    radial-gradient(circle at 8% 100%, rgba(36,121,132,.10), transparent 28%),
    linear-gradient(135deg, #fbfcfb 0%, #f5f8f7 58%, #edf5f4 100%);
}
.cd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 70px; align-items: center; }
.cd-hero .cd-heading { max-width: 760px; }
.cd-hero-proof { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.cd-hero-proof li { position: relative; padding-left: 26px; color: var(--cd-ink); font-weight: 650; }
.cd-hero-proof li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cd-teal);
  font-weight: 900;
}
.cd-hero-card {
  position: relative;
  min-height: 430px;
  padding: 44px;
  border-radius: 34px;
  background: var(--cd-ink);
  box-shadow: var(--cd-shadow);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.cd-hero-card::before,
.cd-hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.cd-hero-card::before { width: 320px; height: 320px; right: -120px; top: -80px; background: rgba(74,166,174,.34); }
.cd-hero-card::after { width: 220px; height: 220px; left: -90px; bottom: -70px; border: 48px solid rgba(255,255,255,.06); }
.cd-hero-mark { font-size: 70px; line-height: 1; margin-bottom: auto; opacity: .95; }
.cd-hero-card h2 { color: #fff !important; font-size: 31px; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 12px; }
.cd-hero-card p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.65; margin: 0; }

.cd-trust { background: var(--cd-white); border-top: 1px solid var(--cd-line); border-bottom: 1px solid var(--cd-line); }
.cd-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cd-trust-item { padding: 28px 24px; border-right: 1px solid var(--cd-line); text-align: center; }
.cd-trust-item:last-child { border-right: 0; }
.cd-trust-item strong { display: block; color: var(--cd-ink); font-size: 16px; }
.cd-trust-item span { display: block; margin-top: 4px; color: #6e7a80; font-size: 13px; }

.cd-section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.cd-section-head .cd-copy { max-width: 440px; margin: 0; }
.cd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cd-card {
  display: block;
  padding: 30px;
  min-height: 245px;
  border: 1px solid var(--cd-line);
  border-radius: var(--cd-radius-md);
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 8px 30px rgba(24,33,38,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cd-card:hover { transform: translateY(-4px); border-color: rgba(36,121,132,.45); box-shadow: 0 18px 42px rgba(24,33,38,.09); }
.cd-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 42px;
  background: var(--cd-teal-pale);
  color: var(--cd-teal-dark);
  font-size: 22px;
  font-weight: 800;
}
.cd-card h3 { margin: 0 0 10px !important; color: var(--cd-ink) !important; font-size: 22px; letter-spacing: -.02em; }
.cd-card p { margin: 0; color: var(--cd-ink-soft); font-size: 15.5px; line-height: 1.65; }

.cd-split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.cd-feature-panel { padding: 44px; border-radius: var(--cd-radius-lg); background: var(--cd-ink); color: #fff; box-shadow: var(--cd-shadow); }
.cd-feature-panel h3 { color: #fff !important; font-size: 30px; margin-top: 0; }
.cd-feature-list { margin: 26px 0 0; padding: 0; list-style: none; }
.cd-feature-list li { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.cd-feature-list strong { display: block; color: #fff; }
.cd-feature-list span { display: block; color: rgba(255,255,255,.7); margin-top: 4px; }
.cd-num { color: #84c8ce; font-weight: 800; }

.cd-doctors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cd-doctor { padding: 30px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius-md); background: #fff; display: grid; grid-template-columns: 74px 1fr; gap: 22px; align-items: center; }
.cd-avatar { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--cd-ink); color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.cd-doctor h3 { margin: 0 0 6px !important; color: var(--cd-ink) !important; font-size: 22px; }
.cd-doctor p { margin: 0; line-height: 1.6; }

.cd-reassurance { padding: 54px; border-radius: var(--cd-radius-lg); background: var(--cd-teal-pale); display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.cd-reassurance blockquote { margin: 0; padding: 0; border: 0; color: var(--cd-ink); font-size: clamp(27px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; }

.cd-location { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.cd-location-card { padding: 38px; border-radius: var(--cd-radius-lg); background: var(--cd-ink); color: #fff; }
.cd-location-card h2 { color: #fff !important; font-size: 38px; letter-spacing: -.035em; margin: 0 0 22px; }
.cd-location-card a { color: #fff !important; }
.cd-location-row { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.13); }
.cd-location-row strong { display: block; color: #8ed0d5; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.cd-map { min-height: 460px; overflow: hidden; border-radius: var(--cd-radius-lg); border: 1px solid var(--cd-line); box-shadow: 0 12px 35px rgba(24,33,38,.07); }
.cd-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

.cd-final { text-align: center; background: var(--cd-ink); color: #fff; }
.cd-final .cd-kicker { color: #98d4d9; }
.cd-final .cd-kicker::before { background: #98d4d9; }
.cd-final .cd-heading { color: #fff !important; margin-inline: auto; max-width: 900px; }
.cd-final .cd-lead { color: rgba(255,255,255,.73); margin-inline: auto; }
.cd-final .cd-actions { justify-content: center; }
.cd-final .cd-btn--ghost { background: transparent; border-color: rgba(255,255,255,.25); color: #fff !important; }

/* Footer polish - stays compatible with existing Enfold widgets. */
#footer { background: #121a1f !important; border-top: 0 !important; }
#footer .widgettitle { color: #fff !important; font-size: 15px; letter-spacing: .04em; text-transform: none; }
#footer, #footer p, #footer li, #footer a { color: rgba(255,255,255,.72) !important; }
#footer a:hover { color: #fff !important; }
#socket { background: #0b1115 !important; }

@media (max-width: 989px) {
  .cd-shell { width: min(var(--cd-content), calc(100% - 36px)); }
  .cd-section { padding: 76px 0; }
  .cd-hero { padding: 68px 0 60px; }
  .cd-hero-grid,
  .cd-split,
  .cd-location,
  .cd-reassurance { grid-template-columns: 1fr; gap: 38px; }
  .cd-hero-card { min-height: 360px; }
  .cd-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cd-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-trust-item:nth-child(2) { border-right: 0; }
  .cd-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--cd-line); }
  .cd-section-head { display: block; }
  .cd-section-head .cd-copy { margin-top: 18px; }
}

@media (max-width: 767px) {
  .cd-shell { width: min(100% - 28px, var(--cd-content)); }
  .cd-section { padding: 62px 0; }
  .cd-hero { padding: 54px 0 46px; }
  .cd-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cd-heading { font-size: clamp(38px, 11vw, 52px); }
  .cd-heading--section { font-size: clamp(31px, 9vw, 42px); }
  .cd-actions { flex-direction: column; }
  .cd-btn { width: 100%; }
  .cd-hero-proof { display: grid; gap: 12px; }
  .cd-hero-card { min-height: 330px; padding: 30px; border-radius: 24px; }
  .cd-trust-grid,
  .cd-grid-3,
  .cd-doctors { grid-template-columns: 1fr; }
  .cd-trust-item { border-right: 0; border-bottom: 1px solid var(--cd-line); }
  .cd-trust-item:last-child { border-bottom: 0; }
  .cd-card { min-height: auto; }
  .cd-icon { margin-bottom: 28px; }
  .cd-feature-panel,
  .cd-reassurance,
  .cd-location-card { padding: 30px; border-radius: 22px; }
  .cd-doctor { grid-template-columns: 60px 1fr; padding: 24px; }
  .cd-avatar { width: 60px; height: 60px; }
  .cd-map, .cd-map iframe { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================
   COALHURST DENTAL V2.0 — COMPLETE SITE
   ========================================================== */

:root {
  --cd-navy: #182126;
  --cd-navy-2: #223036;
  --cd-teal-2: #2b8a94;
  --cd-teal-bright: #5bb7bd;
  --cd-mist: #f1f7f6;
  --cd-warm: #faf8f4;
  --cd-max: 1180px;
}

body.coalhurst-v2-site {
  background: #fff;
  color: var(--cd-ink-soft);
}

body.coalhurst-v2-site #wrap_all,
body.coalhurst-v2-site #main {
  background: #fff;
}

body.coalhurst-v2-site .container_wrap_first,
body.coalhurst-v2-page .container_wrap_first {
  border-top: 0;
}

.cd-v2-main { overflow: hidden; background: #fff; }
.cd-v2-main *, .cd-footer *, .cd-mobile-actions * { box-sizing: border-box; }
.cd-v2-main svg, .cd-footer svg, .cd-mobile-actions svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Enfold header: keep the robust shell, modernize the presentation ---------- */
body.coalhurst-v2-site #header,
body.coalhurst-v2-site #header_main,
body.coalhurst-v2-site .header_bg {
  background: rgba(255,255,255,.97) !important;
}
body.coalhurst-v2-site #header_main {
  border-bottom: 1px solid rgba(24,33,38,.08) !important;
  box-shadow: 0 7px 30px rgba(24,33,38,.035);
}
body.coalhurst-v2-site #header .container {
  width: min(var(--cd-max), calc(100% - 48px));
  max-width: var(--cd-max);
}
body.coalhurst-v2-site #header .logo img {
  max-height: 66px;
  width: auto;
}
body.coalhurst-v2-site .av-main-nav > li > a {
  color: var(--cd-ink) !important;
  font-weight: 650 !important;
  font-size: 14px !important;
  letter-spacing: -.005em;
  padding: 0 14px !important;
}
body.coalhurst-v2-site .av-main-nav > li > a:hover,
body.coalhurst-v2-site .av-main-nav > li.current-menu-item > a,
body.coalhurst-v2-site .av-main-nav > li.current-menu-ancestor > a {
  color: var(--cd-teal) !important;
}
body.coalhurst-v2-site .av-main-nav > li.cd-menu-cta > a {
  margin-left: 10px;
  padding: 0 20px !important;
  color: #fff !important;
}
body.coalhurst-v2-site .av-main-nav > li.cd-menu-cta > a .avia-menu-text {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cd-teal);
  box-shadow: 0 9px 24px rgba(36,121,132,.2);
}
body.coalhurst-v2-site .av-main-nav > li.cd-menu-cta > a:hover .avia-menu-text {
  background: var(--cd-teal-dark);
}
body.coalhurst-v2-site #menu-item-search { display: none !important; }
body.coalhurst-v2-site .av-main-nav ul {
  border-radius: 12px;
  padding: 8px !important;
  border: 1px solid var(--cd-line) !important;
  box-shadow: 0 18px 50px rgba(24,33,38,.12) !important;
  background: #fff !important;
}
body.coalhurst-v2-site .av-main-nav ul a {
  border: 0 !important;
  border-radius: 8px;
  color: var(--cd-ink) !important;
  font-size: 14px !important;
}
body.coalhurst-v2-site .av-main-nav ul a:hover { background: var(--cd-teal-pale) !important; }

/* Hide the legacy Enfold widget footer/socket only after the one-pass builder is run. */
body.coalhurst-v2-site #footer,
body.coalhurst-v2-site #socket { display: none !important; }

/* ---------- Type / shared layout ---------- */
.cd-v2-main h1,
.cd-v2-main h2,
.cd-v2-main h3,
.cd-footer h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cd-v2-main h1, .cd-v2-main h2, .cd-v2-main h3 { color: var(--cd-ink); }
.cd-v2-main p { color: var(--cd-ink-soft); }
.cd-shell { width: min(var(--cd-max), calc(100% - 48px)); }
.cd-section { padding: 94px 0; }
.cd-section--soft { background: var(--cd-warm); }
.cd-section--teal { background: var(--cd-mist); }
.cd-section-head { align-items: flex-end; }
.cd-section-copy { max-width: 450px; }
.cd-section-copy p { font-size: 16.5px; line-height: 1.72; }
.cd-prose p { font-size: 18px; line-height: 1.75; margin: 0 0 22px; }
.cd-overline {
  margin: 0 0 8px !important;
  color: var(--cd-teal-dark) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}
.cd-note { font-size: 13px; color: #6e7a80; }
.cd-note--center { text-align: center; margin-top: 25px; }
.cd-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cd-teal-dark) !important;
  font-weight: 750;
  text-decoration: none !important;
  margin-top: 12px;
}
.cd-text-link svg { width: 18px; height: 18px; transition: transform .18s ease; }
.cd-text-link:hover svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.cd-btn { gap: 9px; }
.cd-btn-icon { font-size: 18px; }
.cd-btn--secondary { background: var(--cd-ink); color: #fff !important; box-shadow: 0 10px 28px rgba(24,33,38,.15); }
.cd-btn--secondary:hover { background: #29383e; }
.cd-btn--light { background: #fff; color: var(--cd-ink) !important; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.cd-btn--light:hover { background: var(--cd-teal-pale); }
.cd-btn--outline-light { border-color: rgba(255,255,255,.38); color: #fff !important; background: transparent; }
.cd-btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.cd-actions--right { justify-content: flex-end; }

/* ---------- Complete home hero ---------- */
.cd-hero--complete { padding: 88px 0 80px; }
.cd-hero-copy { position: relative; z-index: 2; }
.cd-hero-panel {
  min-height: 475px;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 102% -5%, rgba(91,183,189,.35), transparent 38%),
    linear-gradient(145deg, #1a252a 0%, #10191d 100%);
  color: #fff;
  box-shadow: 0 28px 70px rgba(24,33,38,.22);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cd-hero-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 50px solid rgba(255,255,255,.035);
  border-radius: 50%;
  left: -110px;
  bottom: -125px;
}
.cd-hero-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}
.cd-hero-emblem {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: #8bd0d4;
  font-size: 29px;
}
.cd-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.cd-status-dot i { width: 7px; height: 7px; border-radius: 50%; background: #7bd1b0; box-shadow: 0 0 0 5px rgba(123,209,176,.09); }
.cd-hero-panel__body { position: relative; z-index: 2; margin-top: auto; padding-top: 40px; }
.cd-hero-panel__body .cd-overline { color: #8bd0d4 !important; }
.cd-hero-panel__body h2 { color: #fff !important; font-size: 35px; line-height: 1.08; letter-spacing: -.035em; margin: 0 0 14px; }
.cd-hero-panel__body p:last-child { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; margin: 0; max-width: 90%; }
.cd-hero-panel__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 32px -34px -34px; background: rgba(255,255,255,.10); position: relative; z-index: 2; }
.cd-hero-panel__facts div { padding: 20px 18px 22px; background: rgba(14,24,28,.92); }
.cd-hero-panel__facts strong { display: block; color: #8bd0d4; font-size: 11px; margin-bottom: 5px; }
.cd-hero-panel__facts span { color: rgba(255,255,255,.76); font-size: 11.5px; line-height: 1.4; }

/* ---------- Trust strip ---------- */
.cd-trust-item { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; }
.cd-trust-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; background: var(--cd-teal-pale); color: var(--cd-teal-dark); font-size: 20px; }

/* ---------- Service cards ---------- */
.cd-service-card { position: relative; min-height: 320px; overflow: hidden; }
.cd-service-card__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--cd-teal-pale); color: var(--cd-teal-dark); font-size: 25px; margin-bottom: 40px; }
.cd-service-card__number { position: absolute; right: 26px; top: 30px; color: #a8b3b7; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.cd-service-card h2, .cd-service-card h3 { margin: 0 0 12px !important; color: var(--cd-ink) !important; font-size: 23px !important; line-height: 1.2; letter-spacing: -.025em; }
.cd-service-card p:not(.cd-overline) { font-size: 15px; line-height: 1.65; color: var(--cd-ink-soft); }
.cd-card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--cd-teal-dark); font-size: 13px; font-weight: 750; margin-top: 18px; }
.cd-card-link svg { width: 16px; height: 16px; }
.cd-service-grid--hub .cd-service-card { min-height: 360px; }

/* ---------- Process / first visit ---------- */
.cd-split--visit { grid-template-columns: .9fr 1.1fr; }
.cd-steps-panel { border-radius: 28px; background: var(--cd-ink); padding: 24px 38px; box-shadow: var(--cd-shadow); }
.cd-step { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.cd-step:last-child { border-bottom: 0; }
.cd-step > span { color: #86ced3; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.cd-step h3 { color: #fff !important; margin: 0 0 7px !important; font-size: 21px; }
.cd-step p { color: rgba(255,255,255,.68); margin: 0; line-height: 1.6; font-size: 14px; }

/* ---------- Doctors ---------- */
.cd-doctors--large { gap: 26px; }
.cd-doctor-card { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--cd-line); border-radius: 24px; background: #fff; overflow: hidden; min-height: 265px; box-shadow: 0 10px 34px rgba(24,33,38,.045); }
.cd-doctor-card__visual { display: grid; place-items: center; background: linear-gradient(145deg, var(--cd-ink), #2a3d42); position: relative; overflow: hidden; }
.cd-doctor-card__visual::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 36px solid rgba(91,183,189,.12); left: -70px; bottom: -65px; }
.cd-doctor-card__visual span { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 28px; font-weight: 800; position: relative; z-index: 2; }
.cd-doctor-card__body { padding: 34px 32px; }
.cd-doctor-card__body h3 { margin: 0 0 12px !important; font-size: 27px; letter-spacing: -.025em; }
.cd-doctor-card__body p:not(.cd-overline) { font-size: 15.5px; line-height: 1.65; margin-bottom: 12px; }

/* ---------- Reassurance ---------- */
.cd-reassurance { background: transparent; padding: 10px 0; border-radius: 0; }
.cd-reassurance blockquote { font-size: clamp(34px, 4.2vw, 55px); }

/* ---------- FAQ ---------- */
.cd-section--faq-preview { background: #fff; }
.cd-faq-preview { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: start; }
.cd-faq-mini-list, .cd-faq-list { border-top: 1px solid var(--cd-line); }
.cd-faq-mini-list details, .cd-faq-list details { border-bottom: 1px solid var(--cd-line); }
.cd-faq-mini-list summary, .cd-faq-list summary { list-style: none; cursor: pointer; color: var(--cd-ink); font-weight: 700; font-size: 17px; padding: 22px 44px 22px 0; position: relative; }
.cd-faq-mini-list summary::-webkit-details-marker, .cd-faq-list summary::-webkit-details-marker { display: none; }
.cd-faq-mini-list summary::after, .cd-faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--cd-teal-pale); color: var(--cd-teal-dark); font-size: 18px; font-weight: 500; }
.cd-faq-mini-list details[open] summary::after, .cd-faq-list details[open] summary::after { content: "–"; }
.cd-faq-mini-list details p, .cd-faq-list details p { margin: -4px 50px 22px 0; line-height: 1.7; font-size: 15px; }
.cd-faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.cd-faq-layout--full { grid-template-columns: .65fr 1.35fr; }
.cd-faq-sidebar { position: sticky; top: 135px; }
.cd-faq-list--large summary { font-size: 19px; padding-top: 25px; padding-bottom: 25px; }
.cd-faq-list--large details p { font-size: 16px; }

/* ---------- Page hero ---------- */
.cd-page-hero {
  padding: 82px 0 78px;
  background:
    radial-gradient(circle at 86% 12%, rgba(36,121,132,.16), transparent 28%),
    linear-gradient(135deg, #fbfcfb, #f1f7f6);
  border-bottom: 1px solid var(--cd-line);
}
.cd-page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .7fr); gap: 70px; align-items: center; }
.cd-page-hero__content .cd-heading { max-width: 800px; }
.cd-page-hero__aside { min-height: 330px; padding: 34px; border-radius: 28px; background: var(--cd-ink); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 24px 58px rgba(24,33,38,.18); position: relative; overflow: hidden; }
.cd-page-hero__aside::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(43,138,148,.34); right: -100px; top: -100px; }
.cd-page-hero__aside .cd-hero-emblem { margin-bottom: auto; position: relative; z-index: 2; }
.cd-page-hero__aside .cd-overline { color: #8bd0d4 !important; position: relative; z-index: 2; }
.cd-aside-big { color: #fff !important; font-size: 27px !important; line-height: 1.18 !important; font-weight: 740; letter-spacing: -.025em; margin: 5px 0 18px !important; position: relative; z-index: 2; }
.cd-aside-rule { height: 1px; background: rgba(255,255,255,.14); margin-bottom: 16px; position: relative; z-index: 2; }
.cd-aside-facts { display: flex; flex-wrap: wrap; gap: 8px 15px; position: relative; z-index: 2; }
.cd-aside-facts span { color: rgba(255,255,255,.66); font-size: 11.5px; }

/* ---------- Values / about ---------- */
.cd-split--about { align-items: start; }
.cd-values-grid { gap: 24px; }
.cd-value-card { border: 1px solid var(--cd-line); border-radius: 22px; padding: 34px; background: #fff; min-height: 265px; }
.cd-value-card > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--cd-teal-pale); color: var(--cd-teal-dark); font-size: 25px; margin-bottom: 42px; }
.cd-value-card h3 { font-size: 22px; margin: 0 0 10px !important; }
.cd-value-card p { font-size: 15px; line-height: 1.65; }
.cd-community-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }

/* ---------- Lists / feature panels ---------- */
.cd-feature-panel--light { background: #fff; color: var(--cd-ink); border: 1px solid var(--cd-line); box-shadow: 0 18px 48px rgba(24,33,38,.06); }
.cd-feature-panel--light h3 { color: var(--cd-ink) !important; }
.cd-check-list { list-style: none; margin: 0; padding: 0; }
.cd-check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 11px; align-items: start; padding: 10px 0; color: var(--cd-ink-soft); }
.cd-check-list li > svg { width: 21px; height: 21px; color: var(--cd-teal); margin-top: 2px; }
.cd-check-list strong { color: var(--cd-ink); }
.cd-check-list small { display: block; font-size: 13px; line-height: 1.55; color: #6e7a80; margin-top: 4px; }
.cd-check-list--large li { padding: 15px 0; }
.cd-check-list--large li > svg { width: 25px; height: 25px; }
.cd-disclaimer-card { border: 1px solid var(--cd-line); border-radius: 24px; padding: 34px 38px; display: grid; grid-template-columns: 58px 1fr; gap: 22px; align-items: start; background: var(--cd-warm); }
.cd-disclaimer-card__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--cd-teal-pale); color: var(--cd-teal-dark); font-size: 28px; }
.cd-disclaimer-card h2 { margin: 0 0 8px !important; font-size: 24px; }
.cd-disclaimer-card p { margin: 0; line-height: 1.7; }

/* ---------- Service detail ---------- */
.cd-service-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.cd-service-list-card { padding: 36px; border-radius: 24px; border: 1px solid var(--cd-line); background: #fff; box-shadow: 0 12px 38px rgba(24,33,38,.05); }
.cd-process-grid { gap: 24px; }
.cd-process-card { border-radius: 22px; padding: 34px; background: #fff; border: 1px solid var(--cd-line); min-height: 260px; }
.cd-process-card > span { display: inline-block; color: var(--cd-teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .1em; margin-bottom: 58px; }
.cd-process-card h3 { font-size: 22px; margin: 0 0 10px !important; }
.cd-process-card p { font-size: 15px; line-height: 1.65; margin: 0; }
.cd-related-services { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.cd-related-links { border-top: 1px solid rgba(24,33,38,.12); }
.cd-related-links a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(24,33,38,.12); color: var(--cd-ink) !important; text-decoration: none !important; font-weight: 700; }
.cd-related-links a svg { width: 19px; height: 19px; color: var(--cd-teal-dark); }

/* ---------- New patients ---------- */
.cd-new-patient-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.cd-benefits-card { background: var(--cd-ink); border-radius: 28px; padding: 40px; color: #fff; box-shadow: var(--cd-shadow); }
.cd-benefits-card__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.08); color: #8bd0d4; font-size: 30px; margin-bottom: 54px; }
.cd-benefits-card .cd-overline { color: #8bd0d4 !important; }
.cd-benefits-card h3 { color: #fff !important; font-size: 29px; margin: 0 0 14px !important; }
.cd-benefits-card p { color: rgba(255,255,255,.72); line-height: 1.7; }
.cd-new-patient-callout { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }

/* ---------- Contact ---------- */
.cd-contact-overview { padding-top: 64px; padding-bottom: 64px; }
.cd-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cd-contact-card { border: 1px solid var(--cd-line); border-radius: 22px; padding: 28px; display: grid; grid-template-columns: 46px 1fr; gap: 16px; text-decoration: none !important; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cd-contact-card:hover { transform: translateY(-3px); border-color: rgba(36,121,132,.4); box-shadow: 0 15px 38px rgba(24,33,38,.07); }
.cd-contact-card > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--cd-teal-pale); color: var(--cd-teal-dark); font-size: 22px; }
.cd-contact-card small { display: block; color: #758187; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.cd-contact-card strong { display: block; color: var(--cd-ink); font-size: 17px; line-height: 1.35; }
.cd-contact-card p { font-size: 13px; line-height: 1.55; margin: 8px 0 0; }
.cd-appointment-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.cd-appointment-info { position: sticky; top: 135px; }
.cd-privacy-note, .cd-emergency-note { border-radius: 18px; margin-top: 24px; padding: 20px; }
.cd-privacy-note { display: grid; grid-template-columns: 32px 1fr; gap: 12px; background: #fff; border: 1px solid var(--cd-line); }
.cd-privacy-note > span { color: var(--cd-teal-dark); font-size: 25px; }
.cd-privacy-note p { margin: 0; font-size: 13px; line-height: 1.6; }
.cd-emergency-note { background: #fff3ee; border: 1px solid #f0d4c7; }
.cd-emergency-note strong { color: #8c432a; }
.cd-emergency-note p { margin: 5px 0 0; font-size: 13px; line-height: 1.6; }
.cd-form-card { background: #fff; border: 1px solid var(--cd-line); border-radius: 26px; padding: 38px; box-shadow: 0 15px 48px rgba(24,33,38,.06); }
.cd-form-card .avia_ajax_form { margin: 0; }
.cd-form-card .avia_ajax_form h3,
.cd-form-card .avia_ajax_form .avia-form-success { color: var(--cd-ink) !important; }
.cd-form-card .form_element { margin-bottom: 18px !important; }
.cd-form-card label { color: var(--cd-ink) !important; font-size: 13px !important; font-weight: 700 !important; margin-bottom: 7px !important; display: block; }
.cd-form-card input[type="text"],
.cd-form-card input[type="email"],
.cd-form-card input[type="tel"],
.cd-form-card input[type="number"],
.cd-form-card input[type="date"],
.cd-form-card textarea,
.cd-form-card select {
  width: 100% !important;
  min-height: 50px !important;
  padding: 11px 14px !important;
  border: 1px solid #d7e0e2 !important;
  border-radius: 10px !important;
  background: #fbfcfc !important;
  color: var(--cd-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
}
.cd-form-card textarea { min-height: 140px !important; }
.cd-form-card input:focus,
.cd-form-card textarea:focus,
.cd-form-card select:focus { border-color: var(--cd-teal) !important; background: #fff !important; }
.cd-form-card .button,
.cd-form-card input[type="submit"] {
  min-height: 52px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  background: var(--cd-teal) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 750 !important;
  font-size: 14px !important;
}
.cd-form-card .button:hover,
.cd-form-card input[type="submit"]:hover { background: var(--cd-teal-dark) !important; }
.cd-form-confirmation-note { font-size: 12px; line-height: 1.55; color: #738087; border-top: 1px solid var(--cd-line); margin: 22px 0 0; padding-top: 18px; }
.cd-form-fallback { background: var(--cd-warm); border-radius: 18px; padding: 25px; }
.cd-contact-location { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; align-items: stretch; }
.cd-address-large { color: rgba(255,255,255,.78) !important; font-size: 18px !important; line-height: 1.6 !important; }
.cd-location-callout { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.cd-location-callout strong { color: #fff; }
.cd-location-callout p { color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.6; }

/* ---------- Location / hours ---------- */
.cd-location--home { grid-template-columns: .88fr 1.12fr; }
.cd-location-info > div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); }
.cd-mini-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); color: #8bd0d4; font-size: 18px; }
.cd-location-info p { color: rgba(255,255,255,.72); margin: 0; font-size: 14px; line-height: 1.5; }
.cd-location-info p strong { display: block; color: #fff; font-size: 12px; margin-bottom: 2px; }
.cd-location-info a { color: #fff !important; }
.cd-location-card h3 { color: #fff !important; margin: 24px 0 8px !important; font-size: 18px; }
.cd-hours { border-top: 1px solid rgba(255,255,255,.13); }
.cd-hours__row { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.cd-hours__day { color: rgba(255,255,255,.65); }
.cd-hours__time { color: #fff; text-align: right; }
.cd-hours__time small { display: block; color: rgba(255,255,255,.5); font-size: 10px; margin-top: 1px; }
.cd-map { min-height: 540px; border-radius: 26px; overflow: hidden; border: 1px solid var(--cd-line); background: #eef2f2; }
.cd-map iframe { width: 100%; height: 100%; min-height: 540px; border: 0; display: block; filter: saturate(.78) contrast(.98); }

/* ---------- CTA band ---------- */
.cd-cta-band { padding: 74px 0; background: linear-gradient(135deg, #1a292e, #102126); color: #fff; }
.cd-cta-band__inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.cd-cta-band .cd-kicker { color: #8bd0d4; }
.cd-cta-band .cd-kicker::before { background: #8bd0d4; }
.cd-cta-band h2 { margin: 0 0 10px !important; color: #fff !important; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.cd-cta-band p { color: rgba(255,255,255,.68); margin: 0; max-width: 700px; font-size: 16px; line-height: 1.65; }

/* ---------- Custom footer ---------- */
.cd-footer { background: #0f181c; color: rgba(255,255,255,.7); padding: 72px 0 0; }
.cd-footer__grid { display: grid; grid-template-columns: 1.35fr .7fr .9fr 1fr; gap: 54px; padding-bottom: 56px; }
.cd-footer h3 { margin: 0 0 18px !important; color: #fff !important; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.cd-footer__brand-link { display: inline-flex; align-items: center; gap: 13px; color: #fff !important; text-decoration: none !important; }
.cd-footer__mark { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; background: rgba(91,183,189,.12); color: #8bd0d4; font-size: 26px; }
.cd-footer__brand-link strong { display: block; font-size: 17px; letter-spacing: .06em; line-height: 1; }
.cd-footer__brand-link small { display: block; font-size: 13px; letter-spacing: .12em; margin-top: 4px; }
.cd-footer__brand p { color: rgba(255,255,255,.55); max-width: 320px; font-size: 13.5px; line-height: 1.65; margin-top: 18px; }
.cd-footer__nav, .cd-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.cd-footer__nav a, .cd-footer__contact a { color: rgba(255,255,255,.7) !important; text-decoration: none !important; font-size: 13px; }
.cd-footer__nav a:hover, .cd-footer__contact a:hover { color: #fff !important; }
.cd-footer__contact span { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.55; }
.cd-footer .cd-hours--compact { border-top: 0; }
.cd-footer .cd-hours--compact .cd-hours__row { padding: 5px 0; border-bottom: 0; font-size: 11.5px; }
.cd-footer__bottom { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 20px 0 25px; border-top: 1px solid rgba(255,255,255,.09); font-size: 11px; }
.cd-footer__bottom nav { display: flex; gap: 20px; }
.cd-footer__bottom a { color: rgba(255,255,255,.55) !important; text-decoration: none !important; }
.cd-footer__bottom a:hover { color: #fff !important; }

/* ---------- Legal pages retained from current site ---------- */
body.coalhurst-v2-legal #main { background: #fff; }
body.coalhurst-v2-legal #main .container { max-width: 940px; }
body.coalhurst-v2-legal .entry-content { font-size: 15px; line-height: 1.72; }
body.coalhurst-v2-legal .entry-content h1,
body.coalhurst-v2-legal .entry-content h2,
body.coalhurst-v2-legal .entry-content h3 { color: var(--cd-ink) !important; }

/* ---------- Mobile action bar ---------- */
.cd-mobile-actions { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  body.coalhurst-v2-site .av-main-nav > li > a { padding: 0 9px !important; font-size: 13px !important; }
  .cd-hero-grid, .cd-page-hero__grid { gap: 42px; grid-template-columns: 1fr .78fr; }
  .cd-grid-3 { gap: 16px; }
  .cd-doctor-card { grid-template-columns: 130px 1fr; }
  .cd-footer__grid { grid-template-columns: 1.2fr .8fr 1fr; }
  .cd-footer__grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 900px) {
  .cd-section { padding: 74px 0; }
  .cd-hero--complete, .cd-page-hero { padding: 62px 0; }
  .cd-hero-grid, .cd-page-hero__grid, .cd-split, .cd-split--visit, .cd-split--about, .cd-service-intro-grid, .cd-new-patient-grid, .cd-appointment-grid, .cd-contact-location, .cd-location, .cd-location--home, .cd-faq-preview, .cd-faq-layout, .cd-faq-layout--full, .cd-related-services, .cd-community-panel { grid-template-columns: 1fr; gap: 42px; }
  .cd-page-hero__aside { min-height: 290px; }
  .cd-hero-panel { min-height: 420px; }
  .cd-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-trust-item:nth-child(2) { border-right: 0; }
  .cd-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--cd-line); }
  .cd-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cd-doctors--large { grid-template-columns: 1fr; }
  .cd-contact-cards { grid-template-columns: 1fr; }
  .cd-appointment-info, .cd-faq-sidebar { position: static; }
  .cd-new-patient-callout, .cd-cta-band__inner { grid-template-columns: 1fr; gap: 25px; }
  .cd-actions--right { justify-content: flex-start; }
  .cd-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .cd-footer__grid > div:last-child { grid-column: auto; }
}

@media (max-width: 767px) {
  body.coalhurst-v2-site #header .container { width: calc(100% - 30px); }
  body.coalhurst-v2-site #header .logo img { max-height: 56px; }
  .cd-shell { width: calc(100% - 32px); }
  .cd-section { padding: 58px 0; }
  .cd-hero--complete, .cd-page-hero { padding: 48px 0 52px; }
  .cd-heading { font-size: clamp(36px, 11vw, 52px); line-height: 1.02; }
  .cd-heading--section { font-size: clamp(30px, 8.5vw, 39px); }
  .cd-lead { font-size: 17px; line-height: 1.62; }
  .cd-actions { gap: 9px; }
  .cd-btn { width: 100%; min-height: 50px; }
  .cd-hero-panel { min-height: 390px; padding: 26px; border-radius: 24px; }
  .cd-hero-panel__body h2 { font-size: 30px; }
  .cd-hero-panel__facts { margin: 26px -26px -26px; }
  .cd-hero-panel__facts div { padding: 16px 10px 18px; }
  .cd-hero-panel__facts span { font-size: 10.5px; }
  .cd-trust-grid { grid-template-columns: 1fr; }
  .cd-trust-item { border-right: 0; border-bottom: 1px solid var(--cd-line) !important; justify-content: flex-start; padding: 20px 8px; }
  .cd-trust-item:last-child { border-bottom: 0 !important; }
  .cd-section-head { display: block; margin-bottom: 30px; }
  .cd-section-head .cd-section-copy, .cd-section-head .cd-copy { max-width: none; margin-top: 18px; }
  .cd-grid-3 { grid-template-columns: 1fr; }
  .cd-service-card, .cd-service-grid--hub .cd-service-card { min-height: 0; padding: 26px; }
  .cd-service-card__icon { margin-bottom: 30px; }
  .cd-steps-panel, .cd-feature-panel, .cd-benefits-card, .cd-location-card, .cd-form-card { padding: 27px; border-radius: 22px; }
  .cd-step { grid-template-columns: 42px 1fr; }
  .cd-doctor-card { grid-template-columns: 1fr; }
  .cd-doctor-card__visual { min-height: 180px; }
  .cd-doctor-card__body { padding: 27px; }
  .cd-reassurance { grid-template-columns: 1fr; gap: 28px; }
  .cd-reassurance blockquote { font-size: 35px; }
  .cd-page-hero__aside { min-height: 280px; padding: 27px; border-radius: 22px; }
  .cd-contact-card { grid-template-columns: 42px 1fr; padding: 22px; }
  .cd-process-card { min-height: 0; padding: 28px; }
  .cd-process-card > span { margin-bottom: 34px; }
  .cd-disclaimer-card { grid-template-columns: 1fr; padding: 26px; }
  .cd-map, .cd-map iframe { min-height: 390px; }
  .cd-cta-band { padding: 56px 0; }
  .cd-footer { padding-top: 55px; padding-bottom: 72px; }
  .cd-footer__grid { grid-template-columns: 1fr; gap: 35px; }
  .cd-footer__bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .cd-footer__bottom nav { flex-wrap: wrap; gap: 12px 18px; }
  .cd-mobile-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 11px;
    z-index: 9999;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(16,27,31,.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0,0,0,.27);
  }
  .cd-mobile-actions a { min-height: 48px; display: flex; gap: 8px; align-items: center; justify-content: center; border-radius: 13px; text-decoration: none !important; color: #fff !important; font-weight: 750; font-size: 13px; }
  .cd-mobile-actions a:first-child { background: rgba(255,255,255,.08); }
  .cd-mobile-actions a:last-child { background: var(--cd-teal); }
  .cd-mobile-actions svg { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cd-card, .cd-btn, .cd-contact-card, .cd-text-link svg { transition: none !important; }
}


/* ==========================================================
   COALHURST DENTAL V2.1 — QA / RESPONSIVE REMEDIATION
   ========================================================== */

/* Keep anchor targets clear of the Enfold header. */
#appointment,
#location,
#services,
.cd-page-hero,
.cd-section[id] {
  scroll-margin-top: 118px;
}

/* Interior page heroes: slightly tighter than the homepage hero and
   intentionally constrained so long service headings do not overpower
   the page or tuck visually beneath the header. */
.cd-page-hero {
  position: relative;
  padding-top: 86px;
}
.cd-page-hero__content .cd-heading {
  font-size: clamp(40px, 4.25vw, 56px);
  line-height: 1.035;
  max-width: 760px;
}
.cd-page-hero__grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .70fr);
  gap: 58px;
}
.cd-page-hero__aside {
  min-height: 318px;
}

/* Refine the desktop header rhythm and keep the logo crisp. */
body.coalhurst-v2-site #header .logo,
body.coalhurst-v2-site #header .logo a {
  display: flex;
  align-items: center;
}
body.coalhurst-v2-site #header .logo img {
  object-fit: contain;
}

/* Give the mobile menu control a larger, clearer tap target. */
body.coalhurst-v2-site .av-burger-menu-main > a {
  min-width: 54px;
}
body.coalhurst-v2-site .av-hamburger-box {
  width: 34px;
}

/* Contact-form polish for Enfold-specific controls. */
.cd-form-card input[type="checkbox"],
.cd-form-card input[type="radio"] {
  accent-color: var(--cd-teal);
}
.cd-form-card .av-form-labels-hidden label,
.cd-form-card .av-form-labels-hidden .label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
}
.cd-form-card .avia_ajax_form .text_input,
.cd-form-card .avia_ajax_form .text_area,
.cd-form-card .avia_ajax_form select {
  font-size: 16px !important;
}
.cd-form-card .avia_ajax_form .button {
  min-width: 155px;
}

/* Footer uses the clinic's real logo when available. */
.cd-footer__logo-img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 72px;
  filter: brightness(0) invert(1);
  opacity: .96;
}

/* Better touch behaviour and reduced overlay impact on phones. */
@media (max-width: 900px) {
  .cd-page-hero__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .cd-page-hero__content .cd-heading {
    max-width: 820px;
  }
}

@media (max-width: 767px) {
  body.coalhurst-v2-site {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
  body.coalhurst-v2-site #header .logo img {
    max-height: 52px;
  }
  .cd-page-hero {
    padding-top: 50px;
  }
  .cd-page-hero__content .cd-heading {
    font-size: clamp(36px, 10.6vw, 49px);
  }
  .cd-page-hero__aside {
    min-height: 265px;
  }
  .cd-trust-item {
    padding-left: 2px;
    padding-right: 2px;
  }
  .cd-mobile-actions {
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
    padding: 6px;
    border-radius: 17px;
  }
  .cd-mobile-actions a {
    min-height: 46px;
  }
  .cd-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}


/* v2.2.1 expanded service architecture and Coalhurst-first care sections. */
.cd-section--compact { padding-top: 58px; padding-bottom: 58px; }
.cd-care-network {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--cd-line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(31,139,151,.08), rgba(255,255,255,.94));
}
.cd-care-network .cd-copy + .cd-copy { margin-top: 14px; }
.cd-service-group + .cd-service-group { padding-top: 0; }
.cd-section-head--compact { margin-bottom: 28px; }
.cd-service-grid--hub .cd-service-card { min-height: 100%; }
.cd-location-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31,139,151,.11);
  color: var(--cd-teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.cd-care-location-note {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background: var(--cd-ink);
  color: #fff;
}
.cd-care-location-note__icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(120,225,226,.12);
  color: #78e1e2;
}
.cd-care-location-note__icon svg { width: 24px; height: 24px; }
.cd-care-location-note .cd-overline { color: #78e1e2; margin-bottom: 8px; }
.cd-care-location-note h2 { color: #fff; margin: 0 0 12px; font-size: clamp(25px, 3vw, 36px); }
.cd-care-location-note p { color: rgba(255,255,255,.78); max-width: 900px; }
.cd-care-location-note .cd-text-link { color: #9df0ef; margin-top: 12px; }
@media (max-width: 900px) {
  .cd-care-network { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .cd-section--compact { padding-top: 38px; padding-bottom: 38px; }
  .cd-care-network { padding: 24px; border-radius: 20px; }
  .cd-care-location-note { grid-template-columns: 1fr; padding: 25px; border-radius: 20px; }
}

/* ==========================================================
   COALHURST DENTAL V2.3 — PHOTOGRAPHY / WARMTH PASS
   Reuses existing clinic media and the supplied dentist portrait.
   ========================================================== */

.cd-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage: replace the abstract dark panel with a real reception image. */
.cd-hero-photo-card {
  position: relative;
  min-height: 475px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--cd-ink);
  box-shadow: 0 28px 70px rgba(24,33,38,.20);
  isolation: isolate;
}
.cd-hero-photo-card__media {
  position: absolute;
  inset: 0;
}
.cd-hero-photo-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,29,.05) 18%, rgba(15,25,29,.18) 48%, rgba(15,25,29,.92) 100%);
}
.cd-hero-photo-card__media img {
  object-position: 50% 47%;
  transform: scale(1.012);
}
.cd-hero-photo-card__content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
  padding: 24px 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(15,25,29,.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cd-hero-photo-card__content .cd-status-dot {
  position: absolute;
  right: 20px;
  top: -42px;
  background: rgba(15,25,29,.72);
}
.cd-hero-photo-card__content .cd-overline {
  color: #9dd9dd !important;
  margin-bottom: 7px !important;
}
.cd-hero-photo-card__content h2 {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.cd-hero-photo-card__content p:last-child {
  margin: 0;
  max-width: 92%;
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Photography story on the homepage. */
.cd-section--photo-story {
  padding-top: 82px;
  padding-bottom: 82px;
  background: #fff;
}
.cd-section-head--photo .cd-copy { max-width: 400px; }
.cd-photo-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 18px;
  min-height: 580px;
}
.cd-photo-mosaic__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.cd-photo-tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  background: var(--cd-sand);
  box-shadow: 0 14px 40px rgba(24,33,38,.08);
}
.cd-photo-tile--large { min-height: 580px; }
.cd-photo-tile img { transition: transform .5s ease; }
.cd-photo-tile:hover img { transform: scale(1.025); }
.cd-photo-tile figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,25,29,.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Dentist portrait and biographies. */
.cd-doctor-showcase {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: stretch;
}
.cd-doctor-showcase__photo {
  margin: 0;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: #e8e2dc;
  box-shadow: 0 20px 55px rgba(24,33,38,.11);
}
.cd-doctor-showcase__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center 24%;
}
.cd-doctor-showcase__bios {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.cd-doctor-showcase__bios article {
  padding: 28px 0;
  border-bottom: 1px solid var(--cd-line);
}
.cd-doctor-showcase__bios article:first-child { padding-top: 0; }
.cd-doctor-showcase__bios h3 {
  margin: 0 0 10px !important;
  font-size: 28px;
  letter-spacing: -.03em;
}
.cd-doctor-showcase__bios p:not(.cd-overline) {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.cd-doctor-showcase__bios > .cd-text-link { margin-top: 25px; align-self: flex-start; }
.cd-doctor-showcase--about .cd-doctor-showcase__photo { min-height: 620px; }
.cd-doctor-showcase--about .cd-doctor-showcase__photo img { min-height: 620px; }

/* Interior-page photo hero. */
.cd-page-hero__photo {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--cd-ink);
  box-shadow: 0 24px 58px rgba(24,33,38,.16);
}
.cd-page-hero__photo-media {
  position: absolute;
  inset: 0;
}
.cd-page-hero__photo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,29,.02) 20%, rgba(15,25,29,.18) 58%, rgba(15,25,29,.72) 100%);
}
.cd-page-hero__photo-media img { object-position: center 48%; }
.cd-page-hero__photo-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border-radius: 17px;
  background: rgba(15,25,29,.78);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cd-page-hero__photo-caption .cd-hero-emblem {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 13px;
  font-size: 23px;
}
.cd-page-hero__photo-caption .cd-overline {
  color: #9dd9dd !important;
  margin: 0 0 2px !important;
}
.cd-page-hero__photo-caption .cd-aside-big {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

/* Exterior photo inside the homepage location card. */
.cd-location-card__photo {
  margin: -38px -38px 30px;
  height: 230px;
  overflow: hidden;
  border-radius: var(--cd-radius-lg) var(--cd-radius-lg) 0 0;
  background: #dfe7e8;
}
.cd-location-card__photo img {
  object-position: center center;
}

@media (max-width: 989px) {
  .cd-photo-mosaic { grid-template-columns: 1fr 1fr; min-height: 500px; }
  .cd-photo-tile--large { min-height: 500px; }
  .cd-doctor-showcase { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cd-doctor-showcase__photo,
  .cd-doctor-showcase__photo img,
  .cd-doctor-showcase--about .cd-doctor-showcase__photo,
  .cd-doctor-showcase--about .cd-doctor-showcase__photo img { min-height: 500px; }
}

@media (max-width: 767px) {
  .cd-hero-photo-card { min-height: 460px; border-radius: 24px; }
  .cd-hero-photo-card__content { left: 18px; right: 18px; bottom: 18px; padding: 20px; }
  .cd-hero-photo-card__content .cd-status-dot { top: -42px; right: 4px; }
  .cd-section--photo-story { padding-top: 58px; padding-bottom: 58px; }
  .cd-photo-mosaic { grid-template-columns: 1fr; min-height: auto; }
  .cd-photo-mosaic__stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .cd-photo-tile--large { min-height: 410px; }
  .cd-photo-mosaic__stack .cd-photo-tile { min-height: 230px; }
  .cd-doctor-showcase { grid-template-columns: 1fr; }
  .cd-doctor-showcase__photo,
  .cd-doctor-showcase__photo img,
  .cd-doctor-showcase--about .cd-doctor-showcase__photo,
  .cd-doctor-showcase--about .cd-doctor-showcase__photo img { min-height: 470px; }
  .cd-page-hero__photo { min-height: 310px; border-radius: 22px; }
  .cd-location-card__photo { margin: -27px -27px 25px; height: 200px; border-radius: 22px 22px 0 0; }
}

@media (max-width: 520px) {
  .cd-photo-mosaic__stack { grid-template-columns: 1fr; }
  .cd-photo-mosaic__stack .cd-photo-tile { min-height: 260px; }
  .cd-doctor-showcase__photo,
  .cd-doctor-showcase__photo img,
  .cd-doctor-showcase--about .cd-doctor-showcase__photo,
  .cd-doctor-showcase--about .cd-doctor-showcase__photo img { min-height: 420px; }
}


/* v2.3.1 — stronger clinic branding in the navigation header.
   The original logo asset has a wide aspect ratio, so forcing an explicit
   desktop width gives it visual weight comparable to the navigation/CTA. */
@media (min-width: 990px) {
  body.coalhurst-v2-site #header .logo,
  body.coalhurst-v2-site #header .logo a {
    min-width: 172px;
  }
  body.coalhurst-v2-site #header .logo img {
    width: 172px !important;
    max-width: 172px !important;
    max-height: 78px !important;
    height: auto !important;
  }
}

@media (max-width: 989px) {
  body.coalhurst-v2-site #header .logo img {
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
  }
}

@media (max-width: 520px) {
  body.coalhurst-v2-site #header .logo img {
    width: 142px !important;
    max-width: 142px !important;
  }
}
