/*
Theme Name: BBIL Doctor
Theme URI: https://blubirdinteractive.com/bbil-doctor
Author: Blubird Interactive
Author URI: https://blubirdinteractive.com
Description: A complete hospital, clinic and healthcare WordPress theme. Includes a full homepage, About, Services, Service single with sidebar + FAQ accordion + working process, Our Team, Doctor profile pages with skills/awards/opening hours, a 4-step Book Appointment wizard, FAQs, blog and contact pages. Custom post types for Services, Doctors and Testimonials, extensive Customizer options, widgetized footer and translation-ready markup. No page builder required.
Version: 2.4.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 7.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bbil-doctor
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, healthcare, one-column, two-columns, right-sidebar, footer-widgets
*/

/* =====================================================
   0. DESIGN TOKENS
   Values verified against the reference design's own
   global kit (colors, type scale, radii).
===================================================== */
:root{
  --bd-dark:        #07332F;   /* primary / header / dark sections */
  --bd-dark-2:      #1F3F37;   /* raised dark surface */
  --bd-cream:       #FFF7F4;   /* page background */
  --bd-cream-2:     #FEEFE9;   /* alt section background */
  --bd-coral:       #F7A582;   /* accent */
  --bd-coral-dark:  #E8875C;   /* accent hover / small text */
  --bd-white:       #FFFFFF;
  --bd-text:        #07332F;
  --bd-muted:       #5C6D6A;
  --bd-muted-light: rgba(255,255,255,.72);
  --bd-border:      #E7DED8;
  --bd-border-dark: rgba(255,255,255,.14);

  --bd-radius-sm: 10px;
  --bd-radius:    20px;
  --bd-radius-lg: 40px;
  --bd-radius-pill: 100px;

  --bd-font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bd-container: 1280px;
  --bd-header-h: 119px;

  --bd-shadow:    0 10px 30px rgba(7,51,47,.06);
  --bd-shadow-lg: 0 20px 50px rgba(7,51,47,.10);
}

/* =====================================================
   1. RESET / BASE
===================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

/* The [hidden] attribute must win. Any component that sets its own `display`
   (.btn is inline-flex, the drawer backdrop is block) otherwise out-ranks the
   browser's [hidden]{display:none} and stays on screen while JS believes it
   is hidden. */
[hidden]{ display:none !important; }
body{
  margin:0;
  font-family: var(--bd-font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--bd-muted);
  background: var(--bd-cream);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration:none; transition: color .2s ease; }
ul{ margin:0; padding:0; list-style:none; }
button, input, textarea, select{ font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6{
  margin: 0 0 .5em; font-weight: 600; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--bd-dark);
}
h1{ font-size: clamp(2.4rem, 5vw, 3.75rem); }   /* 60px */
h2{ font-size: clamp(1.9rem, 3.6vw, 3rem); }     /* 48px */
h3{ font-size: clamp(1.25rem, 1.8vw, 1.5rem); }  /* 24px */
h4{ font-size: 1.25rem; }
p{ margin: 0 0 1em; }
p:last-child{ margin-bottom:0; }

.screen-reader-text{
  position:absolute !important; clip:rect(1px,1px,1px,1px);
  width:1px; height:1px; overflow:hidden; word-wrap:normal !important;
}
.container{ max-width: var(--bd-container); margin:0 auto; padding: 0 24px; }
.section{ padding: 100px 0; position:relative; }
.section--tight{ padding: 60px 0; }
.section--cream{ background: var(--bd-cream-2); }
.section--dark{ background: var(--bd-dark); color: var(--bd-muted-light); }
.section--dark h1,.section--dark h2,.section--dark h3{ color: var(--bd-white); }

.section-tag{
  display:inline-block; text-transform:uppercase; letter-spacing:.18em;
  font-size:.875rem; font-weight:600; color: var(--bd-coral-dark); margin-bottom:14px;
}
.section--dark .section-tag{ color: var(--bd-coral); }
.section-head{ max-width: 660px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color: var(--bd-muted); }
.section--dark .section-head p{ color: var(--bd-muted-light); }

/* Decorative shapes used on dark bands */
.deco-arch{
  position:absolute; right:6%; top:0; width:270px; height:100%;
  background: rgba(255,255,255,.035); border-radius: 200px 200px 0 0; pointer-events:none;
}
.deco-blob{
  position:absolute; left:4%; bottom:-10%; width:250px; height:230px;
  border:1px solid rgba(255,255,255,.10); border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  pointer-events:none;
}

/* =====================================================
   2. BUTTONS
===================================================== */
.btn{
  display:inline-flex; align-items:center; gap:10px; justify-content:center;
  padding: 17px 34px; border-radius: var(--bd-radius-pill);
  font-weight:700; font-size:1rem; line-height:1;
  border:2px solid transparent; cursor:pointer; transition: all .25s ease; white-space:nowrap;
}
.btn svg{ flex-shrink:0; }
/* Hover rule for every button: the fill colour moves to the border and the
   background empties out (solid -> ghost). Outline buttons run it in reverse,
   their border colour becoming the fill. Each variant hovers to its OWN
   colour, never a shared one — that is what keeps a dark button legible on
   the coral CTA band and a coral button legible on the dark hero. */
.btn-coral{ background: var(--bd-coral); border-color: var(--bd-coral); color: var(--bd-dark); }
.btn-coral:hover,
.btn-coral:focus-visible{ background: transparent; border-color: var(--bd-coral); color: var(--bd-dark); }

.btn-dark{ background: var(--bd-dark); border-color: var(--bd-dark); color: var(--bd-white); }
.btn-dark:hover,
.btn-dark:focus-visible{ background: transparent; border-color: var(--bd-dark); color: var(--bd-dark); }

.btn-outline{ border-color: var(--bd-coral); color: var(--bd-coral-dark); }
.btn-outline:hover,
.btn-outline:focus-visible{ background: var(--bd-coral); border-color: var(--bd-coral); color: var(--bd-dark); }

.btn-outline-dark{ border-color: var(--bd-dark); color: var(--bd-dark); }
.btn-outline-dark:hover,
.btn-outline-dark:focus-visible{ background: var(--bd-dark); border-color: var(--bd-dark); color: var(--bd-white); }

/* On dark surfaces the emptied-out button needs light text — dark-green
   label on dark green would vanish. Coral on --bd-dark is ~7:1. */
.site-header .btn-coral:hover,
.site-header .btn-coral:focus-visible,
.hero .btn-coral:hover,
.hero .btn-coral:focus-visible,
.feature-strip .cell--dark .btn-coral:hover,
.feature-strip .cell--dark .btn-coral:focus-visible,
.site-footer .btn-coral:hover,
.site-footer .btn-coral:focus-visible,
.doctor-card__overlay .btn-coral:hover,
.doctor-card__overlay .btn-coral:focus-visible,
/* The split card's panel is dark exactly when this button can be hovered —
   the card has to be hovered to reach it — so it needs the same treatment. */
.doctor-card--split .doctor-card__details .btn-coral:hover,
.doctor-card--split .doctor-card__details .btn-coral:focus-visible{ color: var(--bd-coral); }
.btn-sm{ padding: 11px 22px; font-size:.9rem; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }

/* =====================================================
   3. TOP BAR
===================================================== */
.topbar{
  background: var(--bd-cream-2); color: var(--bd-dark);
  font-size:1rem; font-weight:600; padding: 12px 0;
}
.topbar .container{ display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; }

/* =====================================================
   4. HEADER — dark green band
===================================================== */
.site-header{
  background: var(--bd-dark);
  position:sticky; top:0; z-index:999;
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; min-height: var(--bd-header-h);
}
.site-branding{ display:flex; align-items:center; gap:14px; flex-shrink:0; max-width:300px; }
.site-branding img.custom-logo{ max-height:74px; width:auto; }
.site-title{ font-size: clamp(1.15rem, 1.5vw, 1.75rem); margin:0; font-weight:700; letter-spacing:-.02em; line-height:1.15; }
.site-title a{ display:flex; align-items:center; gap:12px; color: var(--bd-white); }
.site-title .accent{ color: var(--bd-coral); }
.site-title svg{ color: var(--bd-coral); }
.site-description{ display:none; }

.main-navigation ul{ display:flex; align-items:center; gap:clamp(18px, 2.2vw, 38px); }
.main-navigation li{ position:relative; }
.main-navigation a{
  font-weight:500; font-size:clamp(1rem, 1.1vw, 1.125rem); color: var(--bd-white); white-space:nowrap;
  padding: 12px 0; display:flex; align-items:center; gap:7px;
}
.main-navigation li:hover > a,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a{ color: var(--bd-coral); }
.main-navigation .menu-item-has-children > a::after{
  content:""; width:8px; height:8px; border-right:2px solid currentColor;
  border-bottom:2px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.main-navigation .sub-menu{
  position:absolute; top:100%; left:-18px; background: var(--bd-white); min-width:250px;
  box-shadow: var(--bd-shadow-lg); border-radius: var(--bd-radius-sm); padding:12px;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: all .22s ease; z-index:60; display:block;
}
.main-navigation li:hover > .sub-menu{ opacity:1; visibility:visible; transform: translateY(0); }
.main-navigation .sub-menu li{ width:100%; }
.main-navigation .sub-menu a{
  padding:10px 14px; border-radius:8px; color: var(--bd-dark); font-size:1rem; font-weight:500;
}
.main-navigation .sub-menu a:hover{ background: var(--bd-cream-2); color: var(--bd-coral-dark); }
.main-navigation .sub-menu .sub-menu{ top:0; left:100%; }

.header-cta{ display:flex; align-items:center; gap:16px; }
.header-cta .btn{ padding:20px 34px; }
.nav-drawer__head,
.nav-drawer__foot,
.nav-drawer__backdrop,
.nav-sub-toggle{ display:none; }

.menu-toggle{
  display:none; background:transparent; border:2px solid var(--bd-coral); border-radius:12px;
  width:50px; height:50px; align-items:center; justify-content:center; cursor:pointer; padding:0;
}
.menu-toggle .bar{ display:block; width:22px; height:2px; background: var(--bd-coral); position:relative; }
.menu-toggle .bar::before,.menu-toggle .bar::after{
  content:""; position:absolute; left:0; width:22px; height:2px; background: var(--bd-coral);
}
.menu-toggle .bar::before{ top:-7px; } .menu-toggle .bar::after{ top:7px; }


/* Header call-to-book button */
.header-call{
  display:flex; align-items:center; gap:12px; color: var(--bd-white);
  padding:8px 4px; transition: color .2s ease;
}
.header-call__icon{
  width:46px; height:46px; border-radius:50%; flex-shrink:0;
  background: rgba(247,165,130,.16); color: var(--bd-coral);
  display:flex; align-items:center; justify-content:center; transition: all .25s ease;
}
.header-call:hover .header-call__icon{ background: var(--bd-coral); color: var(--bd-dark); }
.header-call__text{ display:flex; flex-direction:column; line-height:1.25; }
.header-call__label{
  font-size:.75rem; text-transform:uppercase; letter-spacing:.12em;
  color: var(--bd-coral); font-weight:600;
}
.header-call__number{ font-size:1.05rem; font-weight:700; white-space:nowrap; }
@media (max-width:1200px){ .header-call__text{ display:none; } }

/* Honeypot field - hidden from people, visible to bots */
.bd-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* =====================================================
   5. PAGE HEADER BAND (inner pages)
===================================================== */
.page-header-band{
  background: var(--bd-dark); color: var(--bd-white);
  padding: 60px 0; text-align:center; position:relative; overflow:hidden;
}
.page-header-band h1{ color: var(--bd-coral); margin-bottom: 18px; position:relative; z-index:2; }
.page-header-band .breadcrumb{
  display:flex; align-items:center; justify-content:center; gap:12px;
  font-size:1.125rem; position:relative; z-index:2; flex-wrap:wrap;
}
.page-header-band .breadcrumb a{ color: var(--bd-white); }
.page-header-band .breadcrumb a:hover{ color: var(--bd-coral); }
.page-header-band .breadcrumb .sep{ color: var(--bd-coral); font-size:1.1rem; line-height:1; }
.page-header-band .breadcrumb .current{ color: var(--bd-muted-light); }

/* =====================================================
   6. HERO (homepage)
===================================================== */
.hero{ background: var(--bd-dark); color: var(--bd-white); position:relative; overflow:hidden; padding: 90px 0 100px; }
.hero .container{ display:grid; grid-template-columns: 1.05fr .95fr; gap:60px; align-items:center; position:relative; z-index:2; }
.hero-eyebrow{ text-transform:uppercase; letter-spacing:.22em; font-size:1rem; font-weight:600; color: var(--bd-coral); margin-bottom:20px; }
.hero h1{ color: var(--bd-coral); margin-bottom:24px; }
.hero h1 em{ font-style:normal; color: var(--bd-white); }
.hero p.lead{ color: var(--bd-muted-light); max-width:480px; margin-bottom:36px; }
.hero-actions{ display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
.hero-actions .play-link{ display:flex; align-items:center; gap:14px; font-weight:700; color: var(--bd-white); }
.hero-actions .play-link .icon{
  width:52px; height:52px; border-radius:50%; background: rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center; transition: all .25s ease;
}
.hero-actions .play-link:hover .icon{ background: var(--bd-coral); color: var(--bd-dark); }
.hero-visual{ position:relative; }
.hero-visual img{ border-radius: 300px 300px var(--bd-radius-lg) var(--bd-radius-lg); }
.hero-visual .float-card{
  position:absolute; bottom:24px; left:-30px; background: var(--bd-white); color: var(--bd-dark);
  border-radius: var(--bd-radius); padding:18px 24px; box-shadow: var(--bd-shadow-lg);
  display:flex; align-items:center; gap:12px; font-weight:600; font-size:.95rem; max-width:250px;
}
.hero-visual .float-card .dot{ width:12px; height:12px; border-radius:50%; background: var(--bd-coral); flex-shrink:0; }

/* =====================================================
   7. FEATURE STRIP
===================================================== */
.feature-strip .grid{ display:grid; grid-template-columns: repeat(3,1fr); }
.feature-strip .cell{ padding: 56px 48px; }
.feature-strip .cell--cta{
  background: var(--bd-coral); display:flex; flex-direction:column;
  justify-content:space-between; align-items:flex-start; gap:28px;
}
.feature-strip .cell--cta h2{ color: var(--bd-dark); font-size:2rem; margin:0; }
.feature-strip .cell--cta h2 strong{ color: var(--bd-white); font-weight:600; }
.feature-strip .cell--dark{ background: var(--bd-dark); color: var(--bd-muted-light); }
.feature-strip .cell--dark:nth-of-type(3){ background: var(--bd-dark-2); }
.feature-strip .cell--dark .icon{ color: var(--bd-coral); margin-bottom:24px; }
.feature-strip .cell--dark h3{ color: var(--bd-white); margin-bottom:12px; }
.feature-strip .cell--dark p{ margin:0; }

/* =====================================================
   8. ABOUT / CHECKLIST
===================================================== */
.about-section .container{ display:grid; grid-template-columns: .95fr 1.05fr; gap:70px; align-items:center; }
.about-visual{ position:relative; }
.about-visual img{ border-radius: 300px 300px var(--bd-radius-lg) var(--bd-radius-lg); }
.checklist{ margin: 28px 0 36px; }
.checklist li{ display:flex; align-items:flex-start; gap:14px; margin-bottom:16px; font-weight:600; color: var(--bd-dark); }
.section--dark .checklist li, .checklist.is-light li{ color: var(--bd-white); }
.checklist .check{
  width:26px; height:26px; border-radius:50%; background: var(--bd-coral); color: var(--bd-white);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px;
}
.checklist--2col{ display:grid; grid-template-columns: 1fr 1fr; gap:4px 32px; }

/* =====================================================
   8b. ABOUT PAGE SECTIONS
===================================================== */
/* Hero signature */
.about-signature{ display:flex; align-items:center; gap:16px; margin-top:30px; padding-top:26px; border-top:1px solid var(--bd-border); }
.about-signature__mark{
  width:58px; height:58px; border-radius:50%; flex-shrink:0;
  background: var(--bd-cream-2); color: var(--bd-coral-dark);
  display:flex; align-items:center; justify-content:center;
}
.about-signature__who strong{ display:block; font-size:1.1rem; color: var(--bd-dark); }
.about-signature__who span{ font-size:.95rem; color: var(--bd-muted); }

/* Who We Are */
.who-we-are .container{ display:grid; grid-template-columns: 1.05fr .95fr; gap:70px; align-items:center; }
.who-we-are__media{
  display:grid; gap:20px;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: repeat(2, minmax(0,1fr));
}
.who-we-are__img{ width:100%; height:100%; object-fit:cover; border-radius: var(--bd-radius); background: var(--bd-cream); }
/* Explicit areas — auto-placement drops the small image top-right and leaves
   a dead quarter under it. Staggering it to the bottom balances the pair. */
.who-we-are__img--tall{ grid-area: 1 / 1 / 3 / 2; border-radius: 200px 200px var(--bd-radius) var(--bd-radius); aspect-ratio: 3/4.4; }
.who-we-are__img--wide{ grid-area: 2 / 2 / 3 / 3; }
.who-we-are .play-link{ display:inline-flex; align-items:center; gap:14px; font-weight:700; color: var(--bd-dark); margin-top:6px; }
.who-we-are .play-link .icon{
  width:52px; height:52px; border-radius:50%; background: var(--bd-coral); color: var(--bd-dark);
  display:flex; align-items:center; justify-content:center; transition: all .22s ease;
}
.who-we-are .play-link:hover .icon{ background: var(--bd-dark); color: var(--bd-coral); }

/* Family care */
.family-care .container{ grid-template-columns: 1.05fr .95fr; }
.family-care .about-copy{ order:1; }
.family-care .about-visual{ order:2; }
.family-care__lead{ font-size:1.18rem; font-weight:600; color: var(--bd-dark); margin-bottom:14px; }
.family-care .about-visual img{ border-radius: var(--bd-radius-lg); }

/* What to bring */
.info-cards{ display:grid; grid-template-columns: repeat(3,1fr); gap:30px; }
.info-card{
  background: var(--bd-white); border-radius: var(--bd-radius); padding:40px 34px;
  box-shadow: var(--bd-shadow); transition: transform .28s ease, box-shadow .28s ease;
}
.info-card:hover{ transform: translateY(-6px); box-shadow: var(--bd-shadow-lg); }
.info-card__icon{
  width:62px; height:62px; border-radius:18px; margin-bottom:22px;
  background: var(--bd-cream-2); color: var(--bd-coral-dark);
  display:flex; align-items:center; justify-content:center; transition: all .28s ease;
}
.info-card:hover .info-card__icon{ background: var(--bd-coral); color: var(--bd-dark); }
.info-card h3{ font-size:1.25rem; margin-bottom:12px; }
.info-card p{ font-size:1rem; margin:0; }

/* Open for appointments */
.appointment-cta{
  display:grid; grid-template-columns: 1.25fr .75fr; gap:56px; align-items:center;
  background: var(--bd-dark); border-radius: var(--bd-radius-lg); padding:64px 60px; color: var(--bd-muted-light);
}
.appointment-cta h2{ color: var(--bd-white); margin-bottom:16px; }
.appointment-cta .section-tag{ color: var(--bd-coral); }
.appointment-cta p{ margin-bottom:30px; }
.appointment-cta__actions{ display:flex; flex-wrap:wrap; gap:14px; }
.appointment-cta__hours{ background: rgba(255,255,255,.06); border:1px solid var(--bd-border-dark); border-radius: var(--bd-radius); padding:32px 30px; }
.appointment-cta__hours h3{
  display:flex; align-items:center; gap:10px; color: var(--bd-white);
  font-size:1.15rem; margin-bottom:20px; padding-bottom:18px; border-bottom:1px solid var(--bd-border-dark);
}
.appointment-cta__hours h3 .icon{ color: var(--bd-coral); display:inline-flex; }
.appointment-cta__hours dl{ margin:0; display:grid; gap:12px; }
.appointment-cta__hours .row{ display:flex; justify-content:space-between; gap:14px; font-size:.95rem; }
.appointment-cta__hours dt{ color: var(--bd-muted-light); }
.appointment-cta__hours dd{ margin:0; color: var(--bd-white); font-weight:600; white-space:nowrap; }

/* Top Services runs three-up rather than the front page's four. */
.services-section--trio .services-grid{ grid-template-columns: repeat(3,1fr); }

/* =====================================================
   9. SERVICES GRID
===================================================== */
.services-grid{
  display:grid; grid-template-columns: repeat(3,1fr);
  border:1px solid var(--bd-border); border-radius: var(--bd-radius);
  overflow:hidden; background: var(--bd-white);
}
.service-card{
  padding: 46px 38px; border-right:1px solid var(--bd-border); border-bottom:1px solid var(--bd-border);
  transition: background .28s ease; position:relative;
  display:flex; flex-direction:column;
}
.service-card:hover{ background: var(--bd-dark); }
.service-card:hover h3{ color: var(--bd-white); }
.service-card:hover p{ color: var(--bd-muted-light); }
.service-card .icon{
  width:64px; height:64px; border-radius:18px; background: var(--bd-cream-2); color: var(--bd-dark);
  display:flex; align-items:center; justify-content:center; margin-bottom:24px; transition: all .28s ease;
}
.service-card:hover .icon{ background: var(--bd-coral); color: var(--bd-dark); }
.service-card h3{ margin-bottom:12px; }
.service-card p{ font-size:1rem; margin-bottom:16px; }
.service-card .more{
  font-weight:700; font-size:.95rem; color: var(--bd-coral-dark);
  display:inline-flex; align-items:center; gap:8px;
  margin-top:auto; align-self:flex-start;
}
.service-card:hover .more{ color: var(--bd-coral); }

/* =====================================================
   10. DOCTORS
===================================================== */
.doctors-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:30px; }
.section-action{ display:flex; justify-content:center; margin-top:48px; }
.doctors-grid--4{ grid-template-columns: repeat(4,1fr); }
.doctor-card{
  position:relative;
  background: var(--bd-white); border-radius: var(--bd-radius); overflow:hidden;
  box-shadow: var(--bd-shadow); transition: transform .28s ease, box-shadow .28s ease;
}
.doctor-card:hover{ transform: translateY(-6px); box-shadow: var(--bd-shadow-lg); }
/* While open, let the overlay grow past the card instead of being clipped,
   and lift the card above its neighbours so it isn't overlapped. */
.doctor-card:hover,
.doctor-card:focus-within{ overflow:visible; z-index:5; }

/* Media well: the photo sets the resting height, the overlay sits on top. */
.doctor-card__media{ position:relative; background: var(--bd-cream-2); }
.doctor-card .photo{
  display:block; aspect-ratio: 4/4.4; overflow:hidden;
  border-radius: var(--bd-radius) var(--bd-radius) 0 0;
}
.doctor-card .photo img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.doctor-card:hover .photo img{ transform: scale(1.05); }

/* Details overlay — hidden until hover/focus, so cards stay a uniform height. */
.doctor-card__overlay{
  /* Spans the FULL card, not just the photo: anchored top-left/right with an
     auto height, so it fills the card when the content is short and simply
     grows taller when a doctor has a long CV — nothing is ever clipped or
     hidden behind a scrollbar. */
  position:absolute; top:0; left:0; right:0; bottom:auto;
  min-height:100%; z-index:2;
  display:flex; flex-direction:column; justify-content:center; gap:20px;
  padding: 30px 26px;
  border-radius: var(--bd-radius);
  /* Opaque: the panel can extend past the photo over the white info area,
     where a translucent fill would let the name ghost through. */
  background: linear-gradient(180deg, var(--bd-dark) 0%, var(--bd-dark-2) 100%);
  box-shadow: var(--bd-shadow-lg);
  text-align:left;
  opacity:0; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events:none;
}
.doctor-card:hover .doctor-card__overlay,
.doctor-card:focus-within .doctor-card__overlay{ pointer-events:auto; }

/* Sits behind the panels so clicking anywhere in the overlay still opens the
   doctor — the social icons sit above it and win the click. */
.doctor-card__overlay-link{ position:absolute; inset:0; z-index:0; }
.doctor-card__panel,
.doctor-card__overlay .socials{ position:relative; z-index:1; }
.doctor-card:hover .doctor-card__overlay,
.doctor-card:focus-within .doctor-card__overlay{ opacity:1; transform:none; }

.doctor-card__overlay-head{ padding-bottom:4px; }
.doctor-card__overlay-head .role{
  color: var(--bd-coral); font-weight:600; font-size:.78rem;
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:4px;
}
.doctor-card__overlay-head h3{ color: var(--bd-white); font-size:1.25rem; margin:0; }

.doctor-card__panel-title{
  display:flex; align-items:center; gap:8px; margin-bottom:12px;
  font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em;
  color: var(--bd-coral);
}
.doctor-card__panel-title .icon{ display:inline-flex; color: var(--bd-coral); }

.doctor-card__quals{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.doctor-card__quals li{ display:flex; flex-direction:column; line-height:1.35; }
.doctor-card__quals .qual-title{ font-weight:600; font-size:.95rem; color: var(--bd-white); }
.doctor-card__quals .qual-detail{ font-size:.82rem; color: var(--bd-muted-light); }

.doctor-card__hours{ margin:0; display:grid; gap:8px; }
.doctor-card__hours .row{
  display:flex; justify-content:space-between; align-items:baseline; gap:10px;
  font-size:.85rem; line-height:1.35;
  padding-bottom:8px; border-bottom:1px solid var(--bd-border-dark);
}
.doctor-card__hours .row:last-child{ padding-bottom:0; border-bottom:none; }
.doctor-card__hours dt{ color: var(--bd-muted-light); }
.doctor-card__hours dd{ margin:0; font-weight:600; color: var(--bd-white); white-space:nowrap; }

.doctor-card__actions{ position:relative; z-index:1; pointer-events:auto; }
.doctor-card__actions .btn{ width:100%; }

.doctor-card__overlay .socials{ display:flex; gap:10px; pointer-events:auto; }
.doctor-card__overlay .socials a{
  width:36px; height:36px; border-radius:50%;
  background: rgba(255,255,255,.12); color: var(--bd-white);
  display:flex; align-items:center; justify-content:center; transition: all .22s ease;
}
.doctor-card__overlay .socials a:hover,
.doctor-card__overlay .socials a:focus-visible{ background: var(--bd-coral); color: var(--bd-dark); }

.doctor-card .info{ padding: 26px 28px 30px; text-align:center; }
.doctor-card .role{
  color: var(--bd-coral-dark); font-weight:600; font-size:.875rem;
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:8px;
}
.doctor-card h3{ margin-bottom:8px; font-size:1.375rem; }
.doctor-card h3 a:hover{ color: var(--bd-coral-dark); }
.doctor-card .bio{ font-size:1rem; margin-bottom:0; }

/* Touch devices have no hover: drop the overlay into normal flow so the
   details are always reachable. .photo owns the aspect ratio, so the media
   well simply grows to fit. */
@media (hover: none){
  /* Overlay already sits after .info in the markup, so dropping it into
     normal flow gives photo -> name -> details with no reordering. */
  .doctor-card .info{ padding-bottom:22px; }
  .doctor-card__overlay{
    position:static; opacity:1; transform:none; pointer-events:auto;
    min-height:0; box-shadow:none;
    border-radius: 0 0 var(--bd-radius) var(--bd-radius);
    background: var(--bd-dark);
  }
  .doctor-card__overlay-head{ display:none; } /* .info already shows it */
}

/* ---------------------------------------------------------------
   Split layout — portrait down one side, the full profile down the other.

   Nothing is hidden here: qualifications, hours and the booking button are
   all on the card at rest. Hover only recolours the text side, which means
   the card behaves identically on a phone, and its height is driven by its
   own content instead of a ratio we have to keep guessing per breakpoint.
   Cards alternate sides on their own — every even card puts the photo right.
   --------------------------------------------------------------- */
.doctors-split{ display:grid; gap:30px; }

.doctor-card--split{
  display:grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  /* One timing for the whole colour swap — a slow ease-out so the panel
     settles rather than snapping. */
  --card-swap: .6s cubic-bezier(.33,.9,.35,1);
  transition: box-shadow var(--card-swap);
}
.doctor-card--split:hover{ transform:none; }
/* The base card un-clips on hover so the grid overlay can grow past it. There
   is no overlay here, so keep clipping — otherwise the recoloured panel spills
   square corners over the card's rounded ones. */
.doctor-card--split:hover,
.doctor-card--split:focus-within{ overflow:hidden; }

/* The body sets the row height; the photo fills whatever that comes to. */
.doctor-card--split .doctor-card__media{ position:relative; min-height:100%; }
.doctor-card--split .photo{
  position:absolute; inset:0; aspect-ratio:auto; height:100%;
  border-radius: var(--bd-radius) 0 0 var(--bd-radius);
}

/* One set of colour tokens, swapped wholesale on hover — every child below
   reads from these, so the whole panel recolours as one. */
.doctor-card--split .doctor-card__body{
  --card-fg:       var(--bd-text);
  --card-muted:    var(--bd-muted);
  --card-accent:   var(--bd-coral-dark);
  --card-rule:     var(--bd-border);
  --card-chip:     rgba(7,51,47,.07);
  display:flex; flex-direction:column; justify-content:center;
  padding:34px 38px;
  background: var(--bd-white);
  transition: background var(--card-swap);
}
.doctor-card--split:hover .doctor-card__body,
.doctor-card--split:focus-within .doctor-card__body{
  --card-fg:     var(--bd-white);
  --card-muted:  var(--bd-muted-light);
  --card-accent: var(--bd-coral);
  --card-rule:   var(--bd-border-dark);
  --card-chip:   rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--bd-dark) 0%, var(--bd-dark-2) 100%);
}

.doctor-card--split .doctor-card__body{ border-radius: 0 var(--bd-radius) var(--bd-radius) 0; }
.doctors-split > .doctor-card--split:nth-child(even) .doctor-card__body{
  border-radius: var(--bd-radius) 0 0 var(--bd-radius);
}

.doctor-card--split .info{ padding:0; text-align:left; }
.doctor-card--split .role{ color: var(--card-accent); transition: color var(--card-swap); }
.doctor-card--split h3{ margin-bottom:10px; }
.doctor-card--split h3 a{ color: var(--card-fg); transition: color var(--card-swap); }
.doctor-card--split h3 a:hover{ color: var(--card-accent); }
.doctor-card--split .bio{ color: var(--card-muted); max-width:52ch; transition: color var(--card-swap); }

.doctor-card--split .doctor-card__details{
  display:grid; grid-template-columns: 1.25fr 1fr; gap:18px 30px;
  margin-top:22px; padding-top:20px;
  border-top:1px solid var(--card-rule);
  transition: border-color var(--card-swap);
}
.doctor-card--split .doctor-card__panel--quals{ grid-row: span 2; }
.doctor-card--split .doctor-card__panel-title{ color: var(--card-accent); transition: color var(--card-swap); }
.doctor-card--split .doctor-card__quals{ gap:8px; }
.doctor-card--split .qual-title{ color: var(--card-fg); transition: color var(--card-swap); }
.doctor-card--split .qual-detail{ color: var(--card-muted); transition: color var(--card-swap); }
.doctor-card--split .doctor-card__hours .row{
  border-bottom-color: var(--card-rule); transition: border-color var(--card-swap);
}
.doctor-card--split .doctor-card__hours dt{ color: var(--card-muted); transition: color var(--card-swap); }
.doctor-card--split .doctor-card__hours dd{ color: var(--card-fg); transition: color var(--card-swap); }
.doctor-card--split .doctor-card__actions{ align-self:end; }
.doctor-card--split .doctor-card__actions .btn{ width:auto; }
.doctor-card--split .socials{ display:flex; gap:10px; align-self:end; }
.doctor-card--split .socials a{
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--card-chip); color: var(--card-fg);
  transition: background var(--card-swap), color var(--card-swap);
}
.doctor-card--split .socials a:hover,
.doctor-card--split .socials a:focus-visible{ background: var(--bd-coral); color: var(--bd-dark); }

/* Every second card mirrors: photo right, profile left. */
.doctors-split > .doctor-card--split:nth-child(even){
  grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr);
}
.doctors-split > .doctor-card--split:nth-child(even) .doctor-card__media{ order:2; }
.doctors-split > .doctor-card--split:nth-child(even) .doctor-card__body{ order:1; }
.doctors-split > .doctor-card--split:nth-child(even) .photo{
  border-radius: 0 var(--bd-radius) var(--bd-radius) 0;
}

/* The split card has far more room than a grid cell, so it carries a larger
   type scale — stepped down at narrower widths rather than fixed. */
@media (min-width:861px){
  .doctor-card--split .role{ font-size:.95rem; letter-spacing:.1em; margin-bottom:10px; }
  .doctor-card--split h3{ font-size:1.75rem; }
  .doctor-card--split .bio{ font-size:1.0625rem; line-height:1.65; }
}

/* Laptops and small desktops: one step down so the columns still breathe. */
@media (min-width:861px) and (max-width:1200px){
  .doctor-card--split h3{ font-size:1.5rem; }
  .doctor-card--split .bio{ font-size:1rem; }
  .doctor-card--split .role{ font-size:.875rem; }
  .doctor-card--split .doctor-card__body{ padding:30px 32px; }
  .doctor-card--split .doctor-card__details{ grid-template-columns:1fr; gap:16px; }
  .doctor-card--split .doctor-card__panel--quals{ grid-row:auto; }
}

/* One column: photo always on top, in both the odd and the mirrored card. */
@media (max-width:860px){
  .doctor-card--split,
  .doctors-split > .doctor-card--split:nth-child(even){ grid-template-columns:1fr; }
  .doctors-split > .doctor-card--split:nth-child(even) .doctor-card__media{ order:0; }
  .doctors-split > .doctor-card--split:nth-child(even) .doctor-card__body{ order:1; }
  /* The well owns the ratio here; the photo fills it absolutely, so setting
     the photo alone would leave the well's background showing underneath. */
  .doctor-card--split .doctor-card__media{ aspect-ratio: 4/3; min-height:0; }
  .doctor-card--split .photo,
  .doctors-split > .doctor-card--split:nth-child(even) .photo{
    border-radius: var(--bd-radius) var(--bd-radius) 0 0;
  }
  .doctor-card--split .doctor-card__body,
  .doctors-split > .doctor-card--split:nth-child(even) .doctor-card__body{
    padding:26px 24px;
    border-radius: 0 0 var(--bd-radius) var(--bd-radius);
  }
  .doctor-card--split .doctor-card__details{ grid-template-columns:1fr; gap:16px; }
  .doctor-card--split .doctor-card__panel--quals{ grid-row:auto; }
  /* The colour swap is only an affordance for a pointer. With no hover to
     afford, the card stays in its light form — which sits better against the
     page and is easier to read on a phone outdoors. */
}


/* Respect reduced-motion: reveal without the slide. */
@media (prefers-reduced-motion: reduce){
  .doctor-card,
  .doctor-card .photo img,
  .doctor-card__overlay{ transition:none; }
  .doctor-card__overlay{ transform:none; }
}

/* =====================================================
   11. TESTIMONIALS
===================================================== */
.testimonial-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:30px; }

/* Marquee — runs edge to edge and scrolls continuously. The track is
   duplicated by JS, so translating it exactly one copy's width loops
   seamlessly with no visible jump. */
.testimonial-marquee{
  position:relative; overflow:hidden;
  /* Fade the ends so cards enter and leave rather than being cut off. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
}
.testimonial-marquee__track{
  display:flex; gap:30px; width:max-content;
  will-change: transform;
  animation: bd-marquee var(--bd-marquee-duration, 60s) linear infinite;
}
.testimonial-marquee:hover .testimonial-marquee__track,
.testimonial-marquee:focus-within .testimonial-marquee__track{ animation-play-state: paused; }
/* Only animate once JS has cloned the cards, or a single set would slide away. */
.testimonial-marquee:not(.is-ready) .testimonial-marquee__track{ animation:none; }
@keyframes bd-marquee{
  from{ transform: translate3d(0,0,0); }
  to{ transform: translate3d(-50%,0,0); }
}
.testimonial-marquee .testimonial-card{
  flex: 0 0 clamp(300px, 30vw, 420px);
  margin:0;
}

.testimonial-card{ background: rgba(255,255,255,.06); border:1px solid var(--bd-border-dark); border-radius: var(--bd-radius); padding:38px; }
.testimonial-card .stars{ color: var(--bd-coral); letter-spacing:3px; margin-bottom:18px; }
.testimonial-card p{ color: var(--bd-muted-light); }
.testimonial-card .person{ display:flex; align-items:center; gap:14px; margin-top:24px; padding-top:24px; border-top:1px solid var(--bd-border-dark); }
.testimonial-card .person img{ width:52px; height:52px; border-radius:50%; object-fit:cover; }
.testimonial-card .person strong{ display:block; color: var(--bd-white); font-weight:600; }
.testimonial-card .person span{ font-size:.9rem; color: var(--bd-muted-light); }

/* =====================================================
   12. CTA BAND
===================================================== */
.cta-band{ background: var(--bd-coral); padding: 80px 0; }
.cta-band .container{ display:grid; grid-template-columns: 1.15fr .85fr; gap:50px; align-items:center; }
.cta-band h2{ color: var(--bd-dark); margin-bottom:18px; }
.cta-band p{ color: rgba(7,51,47,.82); margin-bottom:30px; }

/* =====================================================
   13. BLOG CARDS
===================================================== */
.blog-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:30px; }
/* Blog listings (index, archives, search) run beside the sidebar, so two
   cards per row rather than the three used in full-width sections. */
.posts-column .blog-grid{ grid-template-columns: repeat(2,1fr); }
.post-card{ background: var(--bd-white); border-radius: var(--bd-radius); overflow:hidden; box-shadow: var(--bd-shadow); }
.post-card .thumb{ aspect-ratio:16/10; overflow:hidden; display:block; background: var(--bd-cream-2); }
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.post-card:hover .thumb img{ transform: scale(1.06); }
.post-card .body{ padding: 28px; }
.post-card .meta{
  font-size:.85rem; color: var(--bd-coral-dark); font-weight:700;
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:12px;
}
.post-card h3{ font-size:1.3rem; margin-bottom:12px; }
.post-card h3 a:hover{ color: var(--bd-coral-dark); }
.post-card p{ font-size:1rem; }
.post-card .more{ font-weight:700; font-size:.95rem; color: var(--bd-coral-dark); display:inline-flex; gap:8px; align-items:center; margin-top:6px; }
.post-card .meta .sep{ margin:0 8px; opacity:.55; }
.post-card__more{ margin-top:auto; align-self:flex-start; }
.post-card .body{ display:flex; flex-direction:column; }

/* =====================================================
   14. FORMS
===================================================== */
.contact-section{ background: var(--bd-cream-2); }
.contact-section .container{ display:grid; grid-template-columns: 1fr 1.1fr; gap:60px; align-items:start; }
.contact-info h2{ margin-bottom:16px; }
.contact-cards{ display:grid; gap:16px; margin-top:34px; }
.contact-cards li{
  display:flex; align-items:flex-start; gap:18px; background: var(--bd-white);
  border:1px solid var(--bd-border); border-radius: var(--bd-radius-sm); padding:20px 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-cards li:hover{ border-color: var(--bd-coral); transform: translateY(-2px); }
.contact-cards .ico{
  width:46px; height:46px; border-radius:12px; flex-shrink:0;
  background: var(--bd-cream-2); color: var(--bd-coral-dark);
  display:flex; align-items:center; justify-content:center;
}
.contact-cards strong{
  display:block; color: var(--bd-dark); font-size:.8rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.1em; margin-bottom:5px;
}
.contact-cards a, .contact-cards span{ color: var(--bd-muted); font-size:1.05rem; }
.contact-cards a:hover{ color: var(--bd-coral-dark); }

/* Contact form card */
.contact-form{
  background: var(--bd-white); border:1px solid var(--bd-border);
  border-radius: var(--bd-radius); padding:40px;
}
.contact-form .form-row:last-of-type{ margin-bottom:24px; }
.form-feedback{ margin:18px 0 0; font-size:.95rem; min-height:1.4em; }
.form-feedback.is-error{ color:#B3261E; }
.form-feedback.is-success{ color:#1B6B4A; font-weight:600; }
@media (max-width:1024px){ .contact-form{ padding:30px 24px; } }
input[type=text],input[type=email],input[type=url],input[type=tel],input[type=search],
input[type=number],input[type=date],input[type=password],textarea,select{
  width:100%; padding:17px 20px; border-radius: var(--bd-radius-sm);
  border:1px solid var(--bd-border); background: var(--bd-white); color: var(--bd-dark);
  transition: border-color .2s ease;
}
input:focus,textarea:focus,select:focus{ outline:none; border-color: var(--bd-coral); }
textarea{ min-height:150px; resize:vertical; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.form-row .full{ grid-column: 1 / -1; }
.contact-form .btn{ margin-top:6px; }
label.field-label{ display:block; font-weight:600; color: var(--bd-dark); margin-bottom:8px; font-size:.95rem; }

/* =====================================================
   15. ACCORDION (FAQ)
===================================================== */
.accordion{ border-top:1px solid var(--bd-border); }
.accordion__item{ border-bottom:1px solid var(--bd-border); }
.accordion__trigger{
  width:100%; background:none; border:none; cursor:pointer; text-align:left;
  display:flex; align-items:center; gap:20px; padding: 26px 0;
  font-size:1.25rem; font-weight:600; color: var(--bd-dark); letter-spacing:-.01em;
}
.accordion__trigger:hover{ color: var(--bd-coral-dark); }
.accordion__icon{
  width:22px; height:22px; flex-shrink:0; position:relative; color: var(--bd-coral-dark);
}
.accordion__icon::before,.accordion__icon::after{
  content:""; position:absolute; background: currentColor; border-radius:2px;
  transition: transform .25s ease, opacity .25s ease;
}
.accordion__icon::before{ top:10px; left:0; width:22px; height:2px; }
.accordion__icon::after{ left:10px; top:0; width:2px; height:22px; }
.accordion__item.is-open .accordion__icon::after{ transform: rotate(90deg); opacity:0; }
.accordion__panel{ display:none; padding: 0 0 26px 42px; }
.accordion__item.is-open .accordion__panel{ display:block; }
.accordion__panel p{ margin:0; }

/* =====================================================
   16. SERVICE SINGLE
===================================================== */
.service-single .container{ display:grid; grid-template-columns: 1fr 370px; gap:50px; align-items:start; }
.service-single .featured{ border-radius: var(--bd-radius); overflow:hidden; margin-bottom:40px; }
.service-single h2{ margin-bottom:22px; }
.service-single .benefits-title{ margin-top:46px; }

.service-sidebar{ position:sticky; top: calc(var(--bd-header-h) + 24px); }
.service-nav-card{ background: var(--bd-dark); border-radius: var(--bd-radius); padding:36px 28px; }
.service-nav-card h3{ color: var(--bd-white); text-align:center; margin-bottom:26px; }
.service-nav-card ul{ display:grid; gap:14px; margin-bottom:28px; }
.service-nav-card ul a{
  display:flex; align-items:center; gap:16px; background: var(--bd-coral); color: var(--bd-white);
  padding:18px 20px; border-radius: var(--bd-radius-sm); font-size:1.25rem; font-weight:600;
  letter-spacing:-.01em; transition: all .22s ease;
}
.service-nav-card ul a:hover, .service-nav-card ul li.is-current a{ background: var(--bd-white); color: var(--bd-dark); }
.service-nav-card ul a svg{ flex-shrink:0; }
.service-nav-card .btn{ width:100%; }

/* Working process */
.process-grid{ display:grid; grid-template-columns: repeat(2,1fr); border-radius: var(--bd-radius); overflow:hidden; }
.process-cell{ padding: 54px 48px 64px; position:relative; overflow:hidden; }
.process-cell:nth-child(odd){ background: var(--bd-coral); }
.process-cell:nth-child(even){ background: var(--bd-dark); }
.process-cell .icon{ color: var(--bd-white); margin-bottom:26px; }
.process-cell h3{ color: var(--bd-white); margin-bottom:12px; }
.process-cell p{ color: rgba(255,255,255,.92); max-width: 420px; margin:0; }
.process-cell .num{
  position:absolute; right:36px; bottom:8px; font-size:5rem; font-weight:700;
  color: rgba(255,255,255,.22); line-height:1; letter-spacing:-.04em;
}

/* =====================================================
   17. DOCTOR SINGLE
===================================================== */
.doctor-hero{ padding: 100px 0 0; }
.doctor-hero .container{ display:grid; grid-template-columns: 420px 1fr; gap:0; align-items:start; }
.doctor-hero .photo{ border-radius: var(--bd-radius); overflow:hidden; background: var(--bd-cream-2); }
.doctor-hero .panel{
  background: var(--bd-dark); color: var(--bd-muted-light);
  border-radius: var(--bd-radius); padding: 56px 50px; margin: 48px 0 0 -40px;
}
.doctor-hero .panel .eyebrow{
  text-transform:uppercase; letter-spacing:.18em; font-size:.9rem;
  font-weight:600; color: var(--bd-coral); margin-bottom:12px;
}
.doctor-hero .panel h2{ color: var(--bd-white); margin-bottom:20px; }
.doctor-hero .panel .socials{ display:flex; gap:12px; margin-top:28px; }
.doctor-hero .panel .socials a{
  width:44px; height:44px; border-radius:50%; background: rgba(255,255,255,.1); color: var(--bd-white);
  display:flex; align-items:center; justify-content:center; transition: all .22s ease;
}
.doctor-hero .panel .socials a:hover{ background: var(--bd-coral); color: var(--bd-dark); }

.doctor-body .container{ display:grid; grid-template-columns: 1fr 340px; gap:60px; align-items:start; }
.doctor-body .divider{ height:1px; background: var(--bd-coral); margin: 46px 0; opacity:.5; }

/* Opening hours card */
.hours-card{ background: var(--bd-coral); border-radius: var(--bd-radius); padding: 44px 40px; position:sticky; top: calc(var(--bd-header-h) + 24px); }
.hours-card .icon{ color: var(--bd-white); margin-bottom:24px; }
.hours-card h3{ color: var(--bd-white); margin-bottom:28px; font-size:2rem; }
.hours-card dl{ margin:0; display:grid; gap:20px; }
.hours-card .row{ display:grid; grid-template-columns: 1fr auto; gap:16px; align-items:start; }
.hours-card dt{ color: #FFFFFF; font-weight:500; }
.hours-card dd{ margin:0; color: var(--bd-white); font-weight:600; text-align:right; }

/* Awards */
.award-item{ display:flex; gap:20px; margin-bottom:30px; }
.award-item .icon{ color: var(--bd-coral-dark); flex-shrink:0; }
.award-item h4{ margin-bottom:4px; color: var(--bd-dark); }
.award-item p{ margin:0; font-size:1rem; }

/* Skill bars */
.skill{ margin-bottom:26px; }
.skill__head{ display:flex; justify-content:space-between; margin-bottom:10px; font-weight:600; color: var(--bd-dark); }
.skill__track{ height:10px; background: var(--bd-cream-2); border-radius:100px; overflow:hidden; }
.skill__fill{ height:100%; background: var(--bd-coral); border-radius:100px; width:0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }

/* =====================================================
   18. BOOKING WIZARD
===================================================== */
.booking-wrap .container{ display:grid; grid-template-columns: 280px 1fr; gap:44px; align-items:start; }

.booking-steps{
  background: var(--bd-white); border:1px solid var(--bd-border);
  border-radius: var(--bd-radius); padding:26px; position:sticky; top: calc(var(--bd-header-h) + 24px);
}
.booking-steps li{ display:flex; align-items:center; gap:16px; padding:11px 0; font-weight:600; color: var(--bd-dark); }
.booking-steps li .num{
  width:44px; height:44px; border-radius:12px; background: var(--bd-dark); color: var(--bd-white);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; transition: all .25s ease;
}
.booking-steps li.is-active{ color: var(--bd-coral-dark); }
.booking-steps li.is-active .num{ background: var(--bd-coral); color: var(--bd-white); }
.booking-steps li.is-done .num{ background: var(--bd-coral); color: var(--bd-white); }

.booking-panel{
  background: var(--bd-white); border:1px solid var(--bd-border);
  border-radius: var(--bd-radius); overflow:hidden;
}
.booking-panel__body{ padding: 40px; }
.booking-panel h3{ font-size:1.5rem; margin-bottom:20px; }
.booking-panel h3:not(:first-child){ margin-top:38px; }

.chip-row{ display:flex; flex-wrap:wrap; gap:14px; }
.chip{
  display:inline-flex; align-items:center; gap:10px; padding:13px 24px;
  border:1px solid var(--bd-border); border-radius: var(--bd-radius-sm);
  background: var(--bd-white); color: var(--bd-dark); font-weight:500; cursor:pointer;
  transition: all .2s ease;
}
.chip:hover{ border-color: var(--bd-coral); }
.chip.is-active{ border-color: var(--bd-coral); color: var(--bd-dark); }
/* Doctors archive: specialty tabs */
.doctor-tabs{ margin-bottom:44px; }
.doctor-tabs__list{
  display:flex; flex-wrap:wrap; gap:12px;
  padding-bottom:18px; border-bottom:1px solid var(--bd-border);
}
.doctor-tab{
  display:inline-flex; align-items:center; gap:10px;
  padding:11px 20px; border-radius: var(--bd-radius-pill);
  border:1px solid var(--bd-border); background: var(--bd-white);
  color: var(--bd-dark); font-weight:600; font-size:.95rem;
  transition: all .22s ease;
}
.doctor-tab:hover{ border-color: var(--bd-coral); color: var(--bd-coral-dark); }
.doctor-tab.is-active{
  background: var(--bd-dark); border-color: var(--bd-dark); color: var(--bd-white);
}
.doctor-tab__count{
  min-width:24px; padding:1px 7px; border-radius: var(--bd-radius-pill);
  background: var(--bd-cream-2); color: var(--bd-muted);
  font-size:.78rem; font-weight:700; text-align:center;
}
.doctor-tab.is-active .doctor-tab__count{ background: var(--bd-coral); color: var(--bd-dark); }
.doctor-tabs__empty a{ color: var(--bd-coral-dark); font-weight:600; text-decoration:underline; }

.chip .tick{ display:none; color: var(--bd-coral); }
.chip.is-active .tick{ display:inline-flex; }

/* Two per row on desktop — one full-width card per doctor made the step
   scroll for pages once qualifications and hours were added. */
#bbil-doctor-list{ display:grid; grid-template-columns: repeat(2,1fr); gap:14px; align-items:start; }

.doctor-option{
  display:grid; grid-template-columns: auto 1fr; align-items:start; gap:14px;
  width:100%; text-align:left; height:100%;
  border:1px solid var(--bd-border); border-radius: var(--bd-radius-sm);
  padding:16px 18px; background: var(--bd-white); cursor:pointer; transition: all .2s ease;
}
.doctor-option:hover{ border-color: var(--bd-coral); }
.doctor-option.is-active{ border-color: var(--bd-coral); background: var(--bd-cream); }
.doctor-option .avatar{
  width:52px; height:52px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background: var(--bd-cream-2); border:1px solid var(--bd-border);
  display:flex; align-items:center; justify-content:center; color: var(--bd-dark);
}
.doctor-option .avatar img{ width:100%; height:100%; object-fit:cover; }
.doctor-option .name{ font-size:1.05rem; font-weight:600; color: var(--bd-dark); margin-bottom:2px; line-height:1.25; }
.doctor-option .facts{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; font-size:1rem; }
.doctor-option .facts strong{ color: var(--bd-dark); }
.doctor-option .price{ background: var(--bd-coral); color: var(--bd-white); font-weight:700; padding:5px 14px; border-radius:8px; }
.doctor-option__body{ display:block; }
.doctor-option__role{
  display:block; margin-bottom:10px;
  font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--bd-coral-dark);
}
.doctor-option__quals{
  display:block; margin:0 0 8px; padding:9px 12px;
  background: var(--bd-cream); border-radius: var(--bd-radius-sm);
}
.doctor-option__quals-title{
  display:flex; align-items:center; gap:6px; margin-bottom:5px;
  font-size:.66rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--bd-muted);
}
.doctor-option__quals-title svg{ color: var(--bd-coral-dark); flex-shrink:0; }
.doctor-option__quals-list{ display:grid; gap:2px; }
.doctor-option__quals-list .qual{ display:block; font-size:.82rem; line-height:1.3; }
.doctor-option__quals-list .qual strong{ color: var(--bd-dark); font-weight:600; }
.doctor-option__quals-list .qual span{ color: var(--bd-muted); }
.doctor-option.is-active .doctor-option__quals{ background: var(--bd-white); }
.doctor-option__hours{
  display:block; margin:0; padding:9px 12px;
  background: var(--bd-cream); border-radius: var(--bd-radius-sm);
}
.doctor-option.is-active .doctor-option__hours{ background: var(--bd-white); }
.doctor-option__hours-list{ display:grid; gap:2px; }
.doctor-option__hours-list .row{
  display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  font-size:.82rem; line-height:1.3;
}
.doctor-option__hours-list .days{ color: var(--bd-muted); }
.doctor-option__hours-list .time{ color: var(--bd-dark); font-weight:600; white-space:nowrap; }

.slot-grid{ display:grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap:14px; }
.slot{
  padding:14px 10px; text-align:center; border:1px solid var(--bd-border);
  border-radius: var(--bd-radius-sm); background: var(--bd-white); cursor:pointer;
  font-weight:600; color: var(--bd-dark); transition: all .2s ease;
}
.slot:hover:not(:disabled){ border-color: var(--bd-coral); }
.slot.is-active{ background: var(--bd-coral); border-color: var(--bd-coral); color: var(--bd-white); }
/* Taken by someone else — struck through so it reads as "gone", not "broken". */
.slot.is-taken{
  background: var(--bd-cream-2); color: var(--bd-muted); border-style:dashed;
  cursor:not-allowed; text-decoration: line-through; opacity:.75;
}
.slot-hint{ color: var(--bd-muted); margin:0 0 6px; }
.slot-legend{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:16px; font-size:.9rem; color: var(--bd-muted); }
.slot-legend__key{ width:14px; height:14px; border-radius:4px; display:inline-block; border:1px solid var(--bd-border); }
.slot-legend__key--free{ background: var(--bd-white); }
.slot-legend__key--taken{ background: var(--bd-cream-2); border-style:dashed; }
.slot-legend__key:not(:first-child){ margin-left:14px; }

/* Patient type picker */
.patient-types{ display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-bottom:34px; }
.patient-type{ position:relative; display:block; cursor:pointer; }
.patient-type input{ position:absolute; opacity:0; width:1px; height:1px; }
.patient-type__body{
  display:flex; flex-direction:column; gap:6px; height:100%;
  padding:18px 20px; border:1px solid var(--bd-border); border-radius: var(--bd-radius-sm);
  background: var(--bd-white); transition: all .2s ease;
}
.patient-type:hover .patient-type__body{ border-color: var(--bd-coral); }
.patient-type input:checked + .patient-type__body{
  border-color: var(--bd-coral); background: var(--bd-cream);
  box-shadow: 0 0 0 1px var(--bd-coral);
}
.patient-type input:focus-visible + .patient-type__body{ outline:2px solid var(--bd-coral); outline-offset:2px; }
.patient-type__label{ font-weight:600; color: var(--bd-dark); }
.patient-type__price{ font-weight:700; color: var(--bd-coral-dark); font-size:1.15rem; }
.field-optional{ color: var(--bd-muted); font-weight:400; font-size:.9em; }

/* Confirmation receipt */
.booking-serial{
  display:inline-flex; align-items:center; gap:12px; margin:0 auto 24px;
  padding:12px 22px; border-radius: var(--bd-radius-pill);
  background: var(--bd-cream-2); color: var(--bd-dark);
}
.booking-serial span{ color: var(--bd-muted); font-size:.9rem; text-transform:uppercase; letter-spacing:.1em; }
.booking-serial strong{ font-size:1.2rem; color: var(--bd-coral-dark); letter-spacing:.04em; }
.summary-list--done{ text-align:left; margin-top:8px; }

.summary-list{ border:1px solid var(--bd-border); border-radius: var(--bd-radius-sm); overflow:hidden; }
.summary-list .row{ display:flex; justify-content:space-between; gap:20px; padding:18px 24px; border-bottom:1px solid var(--bd-border); }
.summary-list .row:last-child{ border-bottom:none; }
.summary-list .row span{ color: var(--bd-muted); }
.summary-list .row strong{ color: var(--bd-dark); text-align:right; }
.summary-list .row.total{ background: var(--bd-cream-2); }
.summary-list .row.total strong{ color: var(--bd-coral-dark); font-size:1.25rem; }

.booking-panel__footer{
  display:flex; justify-content:space-between; gap:16px;
  padding:26px 40px; border-top:1px solid var(--bd-border); background: var(--bd-white);
}
.booking-panel__footer .btn{ min-width:190px; }
.booking-panel__footer .spacer{ flex:1; }
.booking-success{ text-align:center; padding: 30px 0; }
.booking-success .tick-circle{
  width:86px; height:86px; border-radius:50%; background: var(--bd-coral); color: var(--bd-white);
  display:flex; align-items:center; justify-content:center; margin:0 auto 24px;
}
.booking-note{ font-size:.95rem; margin-top:18px; }

/* Calendar */
.calendar{ border:1px solid var(--bd-border); border-radius: var(--bd-radius-sm); padding:22px; }
.calendar__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.calendar__head strong{ font-size:1.15rem; color: var(--bd-dark); }
.calendar__nav{ display:flex; gap:8px; }
.calendar__nav button{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--bd-border);
  background: var(--bd-white); cursor:pointer; color: var(--bd-dark);
  display:flex; align-items:center; justify-content:center;
}
.calendar__nav button:hover{ border-color: var(--bd-coral); color: var(--bd-coral-dark); }
.calendar__grid{ display:grid; grid-template-columns: repeat(7,1fr); gap:6px; }
.calendar__dow{ text-align:center; font-size:.8rem; font-weight:700; color: var(--bd-muted); padding:6px 0; text-transform:uppercase; }
.calendar__day{
  aspect-ratio:1; border:1px solid transparent; border-radius:10px; background:transparent;
  cursor:pointer; font-weight:600; color: var(--bd-dark); transition: all .18s ease;
}
.calendar__day:hover:not(:disabled){ border-color: var(--bd-coral); }
.calendar__day.is-active{ background: var(--bd-coral); color: var(--bd-white); }
.calendar__day:disabled{ color: #C8CFCD; cursor:not-allowed; }
/* Doctor doesn't work this day — distinct from a past date. */
.calendar__day.is-unavailable{ color:#C8CFCD; background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(7,51,47,.045) 4px, rgba(7,51,47,.045) 8px); }
.calendar__day.is-open{ color: var(--bd-dark); font-weight:600; }
.calendar.is-loading{ opacity:.55; pointer-events:none; }
.calendar__day.is-empty{ pointer-events:none; }

/* =====================================================
   19. FOOTER
===================================================== */
.site-footer{ background: var(--bd-dark); color: var(--bd-muted-light); padding-top: 90px; }
.footer-top{
  display:grid; grid-template-columns: 1.5fr 1fr 1.15fr 1.3fr; gap:44px;
  padding-bottom:70px;
}
.footer-widget .widget-title, .footer-widget h3{ color: var(--bd-coral); margin-bottom:26px; font-size:1.5rem; }
.footer-widget ul li{ margin-bottom:14px; }
.footer-widget a:hover{ color: var(--bd-coral); }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:14px; font-size:1.75rem; font-weight:700; color: var(--bd-white); letter-spacing:-.02em; }
.footer-brand svg{ color: var(--bd-coral); }
.footer-brand .accent{ color: var(--bd-coral); }
.footer-full-name{ margin:0 0 14px; font-size:18px; font-weight:700; line-height:1.5; color: var(--bd-white); }
.footer-brand .custom-logo-link{ display:inline-block; line-height:0; }
.footer-brand .custom-logo{ max-height:96px; width:auto; }
.footer-contact li{ display:flex; align-items:flex-start; gap:14px; }
.footer-contact li svg{ color: var(--bd-coral); flex-shrink:0; margin-top:5px; }
.footer-socials{ display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.footer-socials a{
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08); border:1px solid var(--bd-border-dark);
  color: var(--bd-coral); transition: all .22s ease;
}
.footer-socials a:hover,
.footer-socials a:focus-visible{
  background: var(--bd-coral); border-color: var(--bd-coral);
  color: var(--bd-dark); transform: translateY(-3px);
}
.footer-socials a:hover{ transform: translateY(-3px); }
.newsletter-form{
  display:flex; align-items:center; border:1px solid var(--bd-coral);
  border-radius: var(--bd-radius-sm); overflow:hidden; margin-top:18px; background:transparent;
}
.newsletter-form input{
  flex:1; border:none; background:transparent; color: var(--bd-white);
  padding:18px 20px; border-radius:0;
}
.newsletter-form input::placeholder{ color: rgba(255,255,255,.5); }
.newsletter-form input:focus{ outline:none; }
.newsletter-form button{
  background:transparent; border:none; border-left:1px solid var(--bd-coral);
  color: var(--bd-coral); font-weight:700; padding:18px 24px; cursor:pointer; transition: all .2s ease;
}
.newsletter-form button:hover{ background: var(--bd-coral); color: var(--bd-dark); }
.footer-bottom{
  display:flex; align-items:center; justify-content:center; gap:14px;
  padding:30px 0; border-top:1px solid var(--bd-border-dark); font-size:1rem; flex-wrap:wrap;
}
.footer-bottom .brand{ color: var(--bd-coral); font-weight:700; }
.footer-legal__list{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap:10px 18px; flex-wrap:wrap;
}
/* Thin rule between the links. Sits on the item rather than between them via
   ::before on all-but-first, so a wrapped row never starts with a stray bar. */
.footer-legal__list li + li{
  border-left:1px solid var(--bd-border-dark); padding-left:18px;
}
.footer-legal__list a{ color: var(--bd-muted-light); }
.footer-legal__list a:hover,
.footer-legal__list a:focus-visible{ color: var(--bd-coral); }
/* A quiet divider between the copyright and the legal links, dropped when
   they wrap onto separate lines. */
@media (min-width:783px){
  .footer-bottom{ justify-content:space-between; }
  .footer-bottom > p{ margin-right:auto; }
}

/* =====================================================
   20. BLOG / ARCHIVE / SINGLE / WIDGETS
===================================================== */
.content-area{ padding: 90px 0; }
.content-area .container{ display:grid; grid-template-columns: 1fr; gap:50px; }
.content-area.has-sidebar .container{ grid-template-columns: minmax(0,1fr) 340px; }
/* Sticky sidebar. `align-self:start` is what makes it work: as a grid item it
   otherwise stretches to the article's full height, leaving sticky nothing to
   travel within.

   `top` is set by initStickySidebar(): a short sidebar pins below the header,
   while one taller than the viewport gets a negative top so it scrolls along
   with the page and pins only once its end is in view — no inner scrollbar
   hiding half the widgets. The value here is the no-JS fallback. */
.sidebar-column{
  align-self:start;
  position:sticky;
  top: calc(var(--bd-header-h) + 20px);
}
.sidebar-column .widget:last-child{ margin-bottom:0; }
article.entry{ margin-bottom:50px; }
article.entry .entry-thumb{ border-radius: var(--bd-radius); overflow:hidden; margin-bottom:30px; }
article.entry .entry-meta{ font-size:.85rem; color: var(--bd-coral-dark); font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:14px; }
article.entry .entry-meta .sep{ margin:0 8px; opacity:.55; }
.entry-meta__read{ display:inline-flex; align-items:center; gap:6px; }
.entry-meta__read svg{ flex-shrink:0; }
.entry-content > *{ margin-bottom:1.2em; }
/* Heading margins are relative to the heading's own size, so at the h2 display
   size 1.5em was ~72px above and ~58px below — far too airy for a long prose
   page. Tie the heading to the text it introduces instead. */
.entry-content h2,
.entry-content h3,
.entry-content h4{ margin-top:.7em; margin-bottom:.4em; }
.entry-content > *:first-child{ margin-top:0; }
.entry-content ul, .entry-content ol{ padding-left:1.4em; list-style: disc; }
.entry-content ol{ list-style: decimal; }
.entry-content li{ margin-bottom:.5em; }
.entry-content blockquote{
  border-left:4px solid var(--bd-coral); padding:20px 28px; margin-left:0;
  font-style:italic; color: var(--bd-dark); background: var(--bd-cream-2);
  border-radius: 0 var(--bd-radius-sm) var(--bd-radius-sm) 0;
}
.entry-content img{ border-radius: var(--bd-radius); }
.entry-content a{ color: var(--bd-coral-dark); text-decoration: underline; }

.pagination{ display:flex; gap:10px; margin-top:40px; flex-wrap:wrap; }
.pagination a,.pagination span{
  padding:12px 18px; border-radius:10px; background: var(--bd-white);
  border:1px solid var(--bd-border); color: var(--bd-dark); font-weight:600;
}
.pagination .current{ background: var(--bd-dark); color: var(--bd-white); border-color: var(--bd-dark); }
.pagination a:hover{ border-color: var(--bd-coral); color: var(--bd-coral-dark); }

.widget{ background: var(--bd-white); border-radius: var(--bd-radius); padding:32px; margin-bottom:28px; border:1px solid var(--bd-border); }
.widget-title{ font-size:1.25rem; margin-bottom:20px; }

/* Categories with counts */
.cat-list{ display:grid; gap:2px; }
.cat-list a{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:11px 0; border-bottom:1px solid var(--bd-border);
  font-weight:600; color: var(--bd-dark); transition: color .2s ease;
}
.cat-list li:last-child a{ border-bottom:none; }
.cat-list a:hover,
.cat-list a.is-current{ color: var(--bd-coral-dark); }
.cat-list__count{
  flex-shrink:0; min-width:28px; padding:2px 9px; border-radius: var(--bd-radius-pill);
  background: var(--bd-cream-2); color: var(--bd-muted);
  font-size:.78rem; font-weight:700; text-align:center;
}
.cat-list a:hover .cat-list__count,
.cat-list a.is-current .cat-list__count{ background: var(--bd-coral); color: var(--bd-dark); }

/* Trending posts */
.trending-list{ display:grid; gap:18px; }
.trending-list a{ display:flex; align-items:flex-start; gap:14px; }
.trending-list__thumb{
  flex-shrink:0; width:70px; height:70px; border-radius: var(--bd-radius-sm);
  overflow:hidden; background: var(--bd-cream-2);
}
.trending-list__thumb img{ width:100%; height:100%; object-fit:cover; }
.trending-list__body{ display:block; }
.trending-list__title{
  display:block; font-weight:600; font-size:.98rem; line-height:1.35;
  color: var(--bd-dark); transition: color .2s ease;
}
.trending-list a:hover .trending-list__title{ color: var(--bd-coral-dark); }
.trending-list__meta{ display:block; margin-top:6px; font-size:.82rem; color: var(--bd-muted); }
.trending-list__meta .sep{ margin:0 6px; opacity:.55; }

.widget--search .search-form{ display:flex; gap:8px; }
.widget--search .search-form input[type="search"]{ flex:1; min-width:0; }
.widget ul li{ margin-bottom:14px; padding-bottom:14px; border-bottom:1px dashed var(--bd-border); }
.widget ul li:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
.widget a:hover{ color: var(--bd-coral-dark); }

.comments-area{ margin-top:60px; }
.comments-title{ margin-bottom:26px; }
.comment-list{ list-style:none; margin:0; padding:0; }
.comment-list .children{ list-style:none; padding-left:40px; }
.comment-body{ background: var(--bd-white); border-radius: var(--bd-radius-sm); padding:26px; margin-bottom:20px; border:1px solid var(--bd-border); }
.comment-respond input,.comment-respond textarea{ margin-bottom:16px; }
.comment-reply-link{ font-weight:700; color: var(--bd-coral-dark); font-size:.9rem; }

.error-404{ text-align:center; padding:130px 0; }
.error-404 .code{ font-size:9rem; font-weight:700; color: var(--bd-coral); line-height:1; letter-spacing:-.04em; margin:0 0 10px; }
.search-form{ display:flex; gap:12px; }
.search-form input{ flex:1; border-radius: var(--bd-radius-pill); }

/* Team page filter */
.team-filter{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:44px; }

/* WP core alignment classes */
.alignwide{ max-width:1100px; margin-left:auto; margin-right:auto; }
.alignfull{ width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); }
.aligncenter{ margin-left:auto; margin-right:auto; }
.alignleft{ float:left; margin: 0 24px 20px 0; }
.alignright{ float:right; margin: 0 0 20px 24px; }
.wp-caption-text, figcaption{ font-size:.9rem; color: var(--bd-muted); text-align:center; margin-top:10px; }
.sticky .entry-title::after{ content:" ★"; color: var(--bd-coral); }

/* Reveal-on-scroll */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
  /* No auto-scroll — let people swipe through instead. */
  .testimonial-marquee__track{ animation:none !important; }
  .testimonial-marquee{ overflow-x:auto; -webkit-mask-image:none; mask-image:none; }
}

/* =====================================================
   21. RESPONSIVE
===================================================== */
@media (max-width:1200px){
  .doctor-hero .container{ grid-template-columns: 360px 1fr; }
  .doctor-hero .panel{ padding:44px 38px; }
}
@media (max-width:1024px){
  .section{ padding:72px 0; }
  .hero .container,.about-section .container,.contact-section .container,
  .cta-band .container,.service-single .container,.doctor-body .container,
  .booking-wrap .container,.content-area.has-sidebar .container{ grid-template-columns:1fr; }
  .sidebar-column{ position:static; top:auto; }
  .doctor-hero .container{ grid-template-columns:1fr; }
  .doctor-hero .panel{ margin:-30px 20px 0; }
  .services-grid,.doctors-grid,.doctors-grid--4,.testimonial-grid,.blog-grid,.feature-strip .grid{ grid-template-columns:repeat(2,1fr); }
  #bbil-doctor-list{ grid-template-columns:1fr; }
  .who-we-are .container,.family-care .container{ grid-template-columns:1fr; }
  .services-section--trio .services-grid{ grid-template-columns:repeat(2,1fr); }
  .info-cards{ grid-template-columns:repeat(2,1fr); }
  .appointment-cta{ grid-template-columns:1fr; padding:48px 40px; gap:36px; }
  .footer-top{ grid-template-columns:repeat(2,1fr); }
  .service-sidebar,.hours-card,.booking-steps{ position:static; }
  .hero-visual img,.about-visual img{ border-radius: var(--bd-radius-lg); }
}
@media (max-width:782px){
  :root{ --bd-header-h: 84px; }
  body{ font-size:17px; }
  .menu-toggle{ display:flex; }
  .header-cta .btn{ display:none; }
  /* The announcement wraps to three lines on a phone and pushes the header
     down before anything useful is on screen — the same number is one tap
     away in the header. */
  .topbar{ display:none; }

  /* ---- Off-canvas navigation drawer ----
     Three rows: fixed head (logo + close), scrolling menu, fixed foot
     (the two CTAs). Only the middle row scrolls. */
  .nav-drawer__backdrop{
    display:block;
    position:fixed; inset:0; z-index:998;
    background: rgba(7,51,47,.55); backdrop-filter: blur(2px);
    opacity:0; transition: opacity .3s ease;
  }
  .nav-drawer__backdrop:not([hidden]){ opacity:1; }

  .main-navigation{
    display:flex; flex-direction:column;
    position:fixed; top:0; right:0; z-index:999;
    width: min(360px, 88vw);
    /* Dynamic viewport unit keeps the foot above mobile browser chrome. */
    height:100dvh; max-height:100dvh;
    background: var(--bd-dark);
    box-shadow: -18px 0 44px rgba(7,51,47,.32);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    overscroll-behavior: contain;
  }
  .site-header.is-open .main-navigation{ transform:none; }

  .nav-drawer__head{
    flex:0 0 auto;
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:18px 20px; border-bottom:1px solid var(--bd-border-dark);
  }
  .nav-drawer__brand a{ display:flex; align-items:center; gap:10px; color: var(--bd-white); font-weight:800; font-size:1.25rem; }
  .nav-drawer__brand a > svg,
  .nav-drawer__brand svg{ color: var(--bd-coral); }
  .nav-drawer__brand .accent{ color: var(--bd-coral); }
  .nav-drawer__brand img{ max-height:42px; width:auto; }
  .nav-drawer__close{
    flex-shrink:0; width:40px; height:40px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background: rgba(255,255,255,.08); border:1px solid var(--bd-border-dark);
    color: var(--bd-white); cursor:pointer; transition: all .22s ease;
  }
  .nav-drawer__close:hover,
  .nav-drawer__close:focus-visible{ background: var(--bd-coral); border-color: var(--bd-coral); color: var(--bd-dark); }

  /* The only scrolling region. */
  .nav-drawer__body{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:14px 20px 20px; }

  .main-navigation ul{ flex-direction:column; align-items:stretch; gap:2px; }
  .main-navigation .menu > li{ border-bottom:1px solid rgba(255,255,255,.07); }
  .main-navigation .menu > li > a{ padding:14px 0; font-size:1.05rem; }
  .main-navigation .menu-item-has-children{ position:relative; }
  .main-navigation .menu-item-has-children > a{ padding-right:48px; }
  .main-navigation .menu-item-has-children > a::after{ display:none; } /* .nav-sub-toggle replaces it */

  /* Submenu toggle — a real button, so the parent link stays navigable. */
  .nav-sub-toggle{
    position:absolute; top:6px; right:-6px; width:40px; height:40px;
    display:flex; align-items:center; justify-content:center;
    background:transparent; border:none; color: var(--bd-muted-light);
    cursor:pointer; transition: transform .25s ease, color .2s ease;
  }
  .nav-sub-toggle:hover,
  .nav-sub-toggle:focus-visible{ color: var(--bd-coral); }
  .menu-item-has-children.is-open > .nav-sub-toggle{ transform: rotate(180deg); color: var(--bd-coral); }

  .main-navigation .sub-menu{
    position:static; opacity:1; visibility:visible; transform:none;
    background:transparent; box-shadow:none; min-width:0;
    display:block; padding:0 0 0 14px; margin:0;
    max-height:0; overflow:hidden;
    transition: max-height .3s ease;
  }
  .menu-item-has-children.is-open > .sub-menu{ max-height:70vh; overflow-y:auto; }
  .main-navigation .sub-menu li{ border:none; }
  .main-navigation .sub-menu a{ color: var(--bd-muted-light); padding:10px 0; font-size:1rem; }
  .main-navigation .sub-menu a:hover{ background:transparent; color: var(--bd-coral); }

  /* Pinned to the bottom, never scrolls away. */
  .nav-drawer__foot{
    flex:0 0 auto;
    display:flex; flex-direction:column; gap:10px;
    padding:16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top:1px solid var(--bd-border-dark);
    background: var(--bd-dark);
  }
  .nav-drawer__foot .btn{ display:flex; width:100%; padding:14px 20px; font-size:.95rem; }

  body.nav-open{ overflow:hidden; }
  .services-grid,.doctors-grid,.doctors-grid--4,.testimonial-grid,.blog-grid,
  .feature-strip .grid,.footer-top,.process-grid,.checklist--2col,.form-row,
  .services-section--trio .services-grid,.info-cards{ grid-template-columns:1fr; }
  .posts-column .blog-grid{ grid-template-columns:1fr; }
  .who-we-are__media{ grid-template-columns:1fr 1fr; }
  .who-we-are__img--tall{ grid-row:auto; aspect-ratio:1/1; border-radius: var(--bd-radius); }
  .who-we-are__img--wide{ grid-column:auto; }
  .appointment-cta{ padding:38px 26px; border-radius: var(--bd-radius); }
  .appointment-cta__actions .btn{ width:100%; }
  .service-card{ border-right:none; }
  .booking-panel__body,.booking-panel__footer{ padding:26px 22px; }
  .booking-panel__footer{ flex-direction:column-reverse; }
  .booking-panel__footer .btn{ width:100%; }
  .doctor-option{ flex-direction:column; align-items:flex-start; }
  .hero{ padding:60px 0 70px; }
  .deco-arch,.deco-blob{ display:none; }
  .feature-strip .cell,.process-cell{ padding:40px 28px; }
  .hero-visual .float-card{ left:16px; bottom:16px; }
  .doctor-hero .panel{ margin:-20px 0 0; }
}

/* =====================================================
   21b. reCAPTCHA
===================================================== */
/* Badge hidden site-wide, as requested. */
.grecaptcha-badge{
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* =====================================================
   22. BACK TO TOP
===================================================== */
.back-to-top{
  position:fixed; right:26px; bottom:26px; z-index:90;
  width:50px; height:50px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--bd-coral); color: var(--bd-dark);
  /* White border, not coral: the button floats over cream, coral and dark
     sections alike, and a coral ring disappears against half of them. */
  border:2px solid var(--bd-white); cursor:pointer;
  box-shadow: var(--bd-shadow-lg);
  opacity:0; transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease, background .22s ease, color .22s ease;
  /* Not clickable until it has actually faded in. */
  pointer-events:none;
}
.back-to-top.is-visible{ opacity:1; transform:none; pointer-events:auto; }
/* Hover darkens rather than emptying out — a transparent fill would leave the
   chevron unreadable on whichever section happens to be behind it. */
.back-to-top:hover,
.back-to-top:focus-visible{ background: var(--bd-dark); color: var(--bd-white); }
.back-to-top:focus-visible{ outline:2px solid var(--bd-coral); outline-offset:3px; }

/* Sits above the sticky drawer CTAs on phones, and out of the way entirely
   while the navigation drawer is open. */
@media (max-width:782px){
  .back-to-top{ right:18px; bottom:18px; width:44px; height:44px; }
  body.nav-open .back-to-top{ opacity:0; pointer-events:none; }
}

@media (prefers-reduced-motion: reduce){
  .back-to-top{ transition: opacity .01s linear; transform:none; }
}

/* Contact map (opt-in via Customizer) */
.contact-map{ border-radius: var(--bd-radius); overflow:hidden; line-height:0; }
.contact-map iframe{ width:100%; height:400px; border:0; display:block; }

/* Full-bleed map band — sits outside any .container, edge to edge. */
.contact-map--full{ border-radius:0; display:block; }
.contact-map--full iframe{ height:460px; }
@media (max-width:1024px){ .contact-map--full iframe{ height:380px; } }
@media (max-width:782px){ .contact-map--full iframe{ height:300px; } }
