/*
Theme Name: County Health Systems
Theme URI: https://countyhealthsystems.example
Author: County Health Systems
Author URI: https://countyhealthsystems.example
Description: A modern, accessible, well-animated pediatric healthcare WordPress theme for County Health Systems. Primary-blue + accent-red brand, Bricolage Grotesque headings on Helvetica body, scroll-reveal motion, hero carousel, services / doctors / testimonials, reCAPTCHA-protected appointment booking, editable block patterns, and full Customizer control.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: county-health
Tags: healthcare, medical, child-care, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  /* Brand — County Health Systems (admin-editable via Customizer → Brand Colors) */
  --color-primary: #2563A6;       /* Primary Blue — trust & professionalism */
  --color-primary-dark: #1C4E82;
  --color-on-primary: #FFFFFF;
  --color-secondary: #5BA3CE;     /* Sky Blue — gentleness & calm */
  --color-accent: #72BF44;        /* Warm Green — growth & wellness */
  --color-accent-dark: #589833;
  --color-accent-ink: #FFFFFF;    /* white text on green */
  --color-yellow: #FFD166;        /* Soft Yellow — warmth & optimism */

  --color-background: #F2F7FB;
  --color-surface: #FFFFFF;
  --color-foreground: #2F3A45;    /* Charcoal — body text & UI */
  --color-muted-fg: #5A6B78;
  --color-muted: #E9F1F9;
  --color-border: #D7E7F4;
  --color-destructive: #C0392B;
  --color-success: #2F8F2F;
  --color-ring: #2563A6;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #2563A6 0%, #3F7FBE 55%, #5BA3CE 100%);
  --gradient-accent: linear-gradient(135deg, #589833 0%, #72BF44 100%);
  --gradient-soft: linear-gradient(180deg, #F2F7FB 0%, #FFFFFF 100%);

  /* Typography */
  --font-title: 'Quicksand', system-ui, -apple-system, sans-serif;
  --font-heading: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: clamp(2.5rem, 5vw, 4rem);

  /* Spacing (8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(47, 58, 69, 0.06), 0 2px 8px rgba(47, 58, 69, 0.04);
  --shadow-md: 0 4px 16px rgba(5, 94, 158, 0.10), 0 2px 6px rgba(47, 58, 69, 0.06);
  --shadow-lg: 0 18px 48px rgba(5, 94, 158, 0.16), 0 6px 16px rgba(47, 58, 69, 0.08);
  --shadow-ring: 0 0 0 4px rgba(5, 94, 158, 0.18);

  --container: 1200px;
  --header-h: 80px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 240ms var(--ease-out);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }

/* Two-tone "color play" on the main page & section titles:
   navy at the top flowing into sky blue — matches the brand hero style.
   Scoped to display titles on light backgrounds so contrast stays strong
   and white-on-dark headings (CTA, footer) are unaffected. */
.hero h1,
.page-hero h1,
.service-hero h1,
.section-head h2,
.title-play {
  background: linear-gradient(178deg, var(--color-primary) 0%, var(--color-primary) 42%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary); /* fallback if background-clip unsupported */
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .page-hero h1, .service-hero h1, .section-head h2, .title-play { -webkit-text-fill-color: currentColor; }
}

p { color: var(--color-muted-fg); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Accessibility helpers */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--space-7); position: relative; }
.section--tight { padding-block: var(--space-6); }

.section-head { max-width: 720px; margin: 0 auto var(--space-5); text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}
.eyebrow svg { width: 16px; height: 16px; }
.section-head p { font-size: var(--fs-lg); margin-top: var(--space-1); }

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  will-change: transform;
  text-align: center;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--gradient-brand); color: var(--color-on-primary); box-shadow: var(--shadow-md); }
.btn--primary:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--accent { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent svg { color: #fff; }
.btn--accent:hover, .btn--accent:focus { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--color-primary); transform: translateY(-3px); }
.btn--white { background: #fff; color: var(--color-primary); }
.btn--white:hover { color: var(--color-primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(-1px) scale(0.99); }

/* ==========================================================================
   5. Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  height: 68px;
}
/* Offset the fixed header below the WordPress admin bar when logged in,
   so the header (and mobile menu button) is never hidden behind it. */
.admin-bar .site-header { top: 46px; }
@media screen and (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--space-3); }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--color-foreground); letter-spacing: -0.03em; }
.brand:hover { color: var(--color-foreground); }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary); }

.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-foreground);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--color-primary); background: var(--color-muted); }
.primary-nav .current-menu-item > a { background: var(--color-border); }

.header-cta { display: flex; align-items: center; gap: var(--space-2); }
.header-cta .btn { font-weight: 500; }

/* Drawer extras (Book Visit + address + social) — only inside the mobile drawer */
.nav-extra { display: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; color: var(--color-foreground); }
.header-phone svg { width: 18px; height: 18px; color: var(--color-accent); }

.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; place-items: center; color: var(--color-foreground); }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: var(--space-7);
  overflow: hidden;
  background: var(--gradient-soft);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-5); align-items: center; }
.hero-copy, .hero-visual { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-sm);
  margin-bottom: var(--space-3);
}
.hero-badge .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-accent); display: grid; place-items: center; color: #fff; }
.hero-badge .dot svg { width: 16px; height: 16px; }
.hero h1 { margin-bottom: var(--space-3); }
.hero h1 .grad { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: var(--fs-lg); max-width: 540px; margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-trust .item { display: flex; align-items: center; gap: 10px; }
.hero-trust .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--color-border); display: grid; place-items: center; color: var(--color-primary); flex: none; }
.hero-trust .ic svg { width: 17px; height: 17px; }
.hero-trust strong { font-family: var(--font-heading); display: block; font-size: var(--fs-sm); }
.hero-trust span { font-size: 0.75rem; color: var(--color-muted-fg); }

.hero-visual { position: relative; }

/* Hero carousel */
.hero-carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-track { display: flex; transition: transform 600ms var(--ease-out); }
.hero-slide { min-width: 100%; aspect-ratio: 4/5; position: relative; background: var(--gradient-brand); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-figure {
  position: relative;
  width: 100%; height: 100%;
  background: var(--gradient-brand);
  overflow: hidden;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.95);
}
.hero-figure svg { width: 45%; height: auto; }
.hero-slide-cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-base); color: rgba(255,255,255,0.95); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.hero-dots button { width: 8px; height: 8px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.55); border: none; transition: all var(--transition); cursor: pointer; }
.hero-dots button.is-active { background: #fff; width: 24px; }
.hero-float {
  position: absolute;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-heading);
}
.hero-float .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.hero-float strong { display: block; font-size: var(--fs-base); }
.hero-float span { font-size: var(--fs-xs); color: var(--color-muted-fg); font-family: var(--font-body); }
.hero-float--one { top: 8%; left: -28px; animation: floaty 6s ease-in-out infinite; }
.hero-float--one .ic { background: var(--gradient-accent); }
.hero-float--two { bottom: 10%; right: -24px; animation: floaty 7s ease-in-out infinite 0.6s; }
.hero-float--two .ic { background: var(--gradient-brand); }

/* decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; pointer-events: none; }
.blob--1 { width: 420px; height: 420px; background: var(--color-secondary); top: -120px; right: -80px; }
.blob--2 { width: 360px; height: 360px; background: rgba(174,28,37,.16); bottom: -140px; left: -100px; }
.hero > .container { position: relative; z-index: 1; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ==========================================================================
   7. Cards (services / promise / blog)
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--color-secondary); }
.card:hover::after { transform: scaleX(1); }
.card .card-ic {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--color-border); color: var(--color-primary);
  margin-bottom: var(--space-3);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.card .card-ic svg { width: 30px; height: 30px; }
.card:hover .card-ic { background: var(--gradient-brand); color: #fff; transform: scale(1.06) rotate(-4deg); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: var(--fs-sm); }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-2); font-weight: 600; font-family: var(--font-heading); font-size: var(--fs-sm);
}
.card .card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ==========================================================================
   8. About / Why-choose
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); align-items: center; }
.about-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--gradient-brand); display:grid; place-items:center; box-shadow: var(--shadow-lg); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual svg.illus { width: 60%; height: 60%; color: rgba(255,255,255,.9); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-4); }
.about-point { display: flex; gap: 14px; }
.about-point .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--color-border); color: var(--color-accent); display: grid; place-items: center; flex: none; }
.about-point .ic svg { width: 24px; height: 24px; }
.about-point h4 { font-family: var(--font-heading); font-size: var(--fs-base); margin-bottom: 2px; }
.about-point p { font-size: var(--fs-sm); }
.check-list { display: grid; gap: 12px; margin: var(--space-3) 0; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--color-foreground); }
.check-list .ic { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient-accent); color: #fff; display: grid; place-items: center; flex: none; }
.check-list .ic svg { width: 15px; height: 15px; }

/* ==========================================================================
   9. Stats
   ========================================================================== */
.stats { background: var(--color-foreground); color: #fff; border-radius: var(--radius-lg); padding: var(--space-5); position: relative; overflow: hidden; }
.stats::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(69,150,206,.28), transparent 45%), radial-gradient(circle at 80% 80%, rgba(174,28,37,.22), transparent 45%); }
.stats .grid { position: relative; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; background: linear-gradient(135deg, #fff, #CFE6F7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num .suffix { -webkit-text-fill-color: #9CC6E8; }
.stat .label { margin-top: 8px; color: #AFC4D6; font-size: var(--fs-sm); font-weight: 500; }

/* ==========================================================================
   10. Team / Doctors
   ========================================================================== */
.doctor { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); height: 100%; }
.doctor:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctor-photo { aspect-ratio: 1/1; position: relative; overflow: hidden; background: var(--gradient-brand); display:grid; place-items:center; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.doctor:hover .doctor-photo img { transform: scale(1.06); }
.doctor-photo svg.illus { width: 55%; height: 55%; color: rgba(255,255,255,.9); }
.doctor-social { position: absolute; inset: auto 0 0 0; display: flex; gap: 8px; justify-content: center; padding: 14px; background: linear-gradient(0deg, rgba(19,78,74,.7), transparent); opacity: 0; transform: translateY(10px); transition: opacity var(--transition), transform var(--transition); }
.doctor:hover .doctor-social { opacity: 1; transform: translateY(0); }
.doctor-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--color-primary); display: grid; place-items: center; }
.doctor-social a:hover { background: #fff; transform: translateY(-3px); }
.doctor-social svg { width: 18px; height: 18px; }
.doctor-info { padding: var(--space-3); text-align: center; }
.doctor-info h3 { font-size: var(--fs-lg); }
.doctor-info .role { color: var(--color-primary); font-weight: 600; font-size: var(--fs-sm); font-family: var(--font-heading); }
.doctor-info p { font-size: var(--fs-sm); margin-top: 8px; }

/* ==========================================================================
   11. Testimonials slider
   ========================================================================== */
.testi-wrap { position: relative; max-width: 860px; margin: 0 auto; }
.testi-track { display: flex; transition: transform 500ms var(--ease-out); }
.testi-slide { min-width: 100%; padding: 0 8px; }
.testi-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-md); text-align: center; }
.testi-card .quote-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--gradient-brand); color: #fff; display: grid; place-items: center; margin: 0 auto var(--space-3); }
.testi-card .quote-ic svg { width: 30px; height: 30px; }
.testi-card .stars { display: flex; gap: 4px; justify-content: center; color: #F59E0B; margin-bottom: var(--space-2); }
.testi-card .stars svg { width: 22px; height: 22px; }
.testi-card blockquote { font-size: var(--fs-lg); color: var(--color-foreground); line-height: 1.6; font-weight: 500; }
.testi-author { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: var(--space-4); }
.testi-author .av { width: 56px; height: 56px; border-radius: 50%; background: var(--color-border); color: var(--color-primary); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.testi-author .av img { width: 100%; height: 100%; object-fit: cover; }
.testi-author .meta { text-align: left; }
.testi-author strong { font-family: var(--font-heading); display: block; }
.testi-author span { font-size: var(--fs-sm); color: var(--color-muted-fg); }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }
.testi-arrow { width: 50px; height: 50px; border-radius: 50%; background: var(--color-surface); border: 1.5px solid var(--color-border); color: var(--color-primary); display: grid; place-items: center; transition: all var(--transition); }
.testi-arrow:hover { background: var(--color-primary); color: #fff; transform: scale(1.05); }
.testi-arrow svg { width: 22px; height: 22px; }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); transition: all var(--transition); }
.testi-dots button.is-active { background: var(--color-primary); width: 28px; border-radius: var(--radius-pill); }

/* ==========================================================================
   12. CTA banner
   ========================================================================== */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--gradient-brand); color: #fff; padding: var(--space-6); text-align: center; box-shadow: var(--shadow-lg); }
.cta-banner::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 40%), radial-gradient(circle at 85% 80%, rgba(174,28,37,.35), transparent 45%); }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-banner p { color: rgba(255,255,255,.9); font-size: var(--fs-lg); max-width: 580px; margin: 0 auto var(--space-4); }
.cta-actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   13. Blog / posts
   ========================================================================== */
.post-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); height: 100%; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--gradient-brand); display:grid; place-items:center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post-card:hover .post-thumb img { transform: scale(1.07); }
.post-thumb svg.illus { width: 40%; color: rgba(255,255,255,.85); }
.post-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-tag { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent-dark); background: var(--color-accent-tint, #E7F4DC); padding: 4px 12px; border-radius: var(--radius-pill); }
.post-body h3 { font-size: var(--fs-lg); }
.post-body h3 a { color: var(--color-foreground); }
.post-body h3 a:hover { color: var(--color-primary); }
.post-meta { font-size: var(--fs-xs); color: var(--color-muted-fg); display: flex; gap: 14px; margin-top: auto; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta svg { width: 14px; height: 14px; }

/* ==========================================================================
   14. Page header / content
   ========================================================================== */
.page-hero { padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--space-5); background: var(--gradient-soft); text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: var(--space-1); }
.breadcrumbs { font-size: var(--fs-sm); color: var(--color-muted-fg); }
.breadcrumbs a { font-weight: 600; }
.content-area { padding-block: var(--space-6); }
.entry-content { max-width: 760px; margin-inline: auto; }
.entry-content > * + * { margin-top: var(--space-3); }
.entry-content h2 { margin-top: var(--space-4); }
.entry-content img { border-radius: var(--radius-md); }
.entry-content blockquote { border-left: 4px solid var(--color-primary); padding-left: var(--space-3); font-size: var(--fs-lg); font-style: italic; color: var(--color-foreground); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li { color: var(--color-muted-fg); margin-top: 0.5rem; }

/* --- Article meta (single post hero) --- */
.article-meta { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: var(--fs-sm); color: var(--color-muted-fg); margin-top: var(--space-2); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; color: var(--color-primary); }

/* --- Featured image --- */
.article-figure { max-width: 880px; margin: 0 auto var(--space-5); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.article-figure img { width: 100%; display: block; }

/* --- Article layout: centered reading column with share rail in the gutter --- */
.article-layout { max-width: 880px; margin-inline: auto; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; column-gap: var(--space-3); align-items: start; }
.share-rail { grid-column: 1; }
.article-body { grid-column: 2; }
.article-layout .entry-content { max-width: none; margin-inline: 0; }

.share-rail { position: sticky; top: calc(var(--header-h) + var(--space-2)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.share-rail-label { font-family: var(--font-heading); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted-fg); margin-bottom: 4px; }

.share-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-primary); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.share-btn--facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn--twitter:hover { background: #111; color: #fff; border-color: #111; }
.share-btn--linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.share-btn--mail:hover, .share-btn--copy:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.share-btn--copy.is-copied { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* --- Inline share row --- */
.article-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin: var(--space-5) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.article-share-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; color: var(--color-foreground); }
.article-share-label svg { width: 18px; height: 18px; color: var(--color-primary); }
.article-share-buttons { display: flex; gap: 10px; }

/* --- Tags --- */
.entry-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-4); }
.entry-tags a { font-size: var(--fs-xs); font-weight: 600; color: var(--color-primary); background: var(--color-muted); padding: 5px 14px; border-radius: var(--radius-pill); text-decoration: none; transition: background var(--transition), color var(--transition); }
.entry-tags a:hover { background: var(--color-primary); color: #fff; }

/* --- Article CTA --- */
.article-cta { margin: var(--space-5) 0 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--gradient-soft); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.article-cta-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-accent); box-shadow: var(--shadow-sm); }
.article-cta-text h3 { font-size: var(--fs-lg); margin-bottom: 4px; }
.article-cta-text p { font-size: var(--fs-sm); margin: 0; }
.article-cta .btn { white-space: nowrap; }

/* --- CPT (non-post) single actions --- */
.cpt-actions { max-width: 760px; margin: var(--space-5) auto 0; display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }

/* --- Related posts read-more --- */
.post-readmore { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm); color: var(--color-primary); margin-top: 4px; }
.post-readmore svg { width: 16px; height: 16px; transition: transform var(--transition); }
.post-card:hover .post-readmore svg { transform: translateX(4px); }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: var(--space-5); }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--color-surface); border: 1px solid var(--color-border); font-weight: 600; font-family: var(--font-heading); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer { background: var(--color-foreground); color: #AFC4D6; padding-top: var(--space-6); margin-top: var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-4); padding-bottom: var(--space-5); }
.site-footer .brand { color: #fff; margin-bottom: var(--space-2); }
.site-footer .brand small { color: var(--color-secondary); }
.footer-about p { color: #9DB1C2; font-size: var(--fs-sm); }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-3); }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: all var(--transition); }
.footer-social a:hover { background: var(--color-primary); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--space-2); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #9DB1C2; font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: var(--fs-sm); color: #9DB1C2; margin-bottom: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--color-secondary); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--space-3); display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-size: var(--fs-sm); }
.footer-bottom a { color: #9DB1C2; }

/* ==========================================================================
   15b. About page — hero collage + clinic intro
   ========================================================================== */
.eyebrow--plain { background: none; border: none; padding: 0; color: var(--color-foreground); font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--fs-sm); }
.eyebrow--dashed { background: none; border: 1.5px dashed var(--color-primary); color: var(--color-primary); padding: 8px 18px; font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--fs-xs); }

.btn--dashed { background: transparent; color: var(--color-primary); border: 1.5px dashed var(--color-primary); }
.btn--dashed:hover { color: var(--color-primary); border-color: var(--color-secondary); background: var(--color-muted); transform: translateY(-3px); }
.btn--soft { background: var(--color-secondary); color: #fff; box-shadow: var(--shadow-md); }
.btn--soft svg, .btn--soft:hover { color: #fff; }
.btn--soft:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); filter: saturate(1.05); }

.about-hero { position: relative; overflow: hidden; background: var(--gradient-soft); padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--space-6); }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-5); align-items: center; }
.about-hero-copy h1 { margin: var(--space-2) 0 var(--space-3); }
.about-hero-copy .lead-text { max-width: 460px; margin-bottom: var(--space-4); }
.leaf-mark { color: var(--color-secondary); opacity: 0.16; pointer-events: none; }
.leaf-mark--hero { position: absolute; top: 18px; left: 16px; color: #fff; opacity: 0.9; transform: rotate(-12deg); }

.about-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.about-social { display: flex; align-items: center; gap: 16px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 3px solid var(--color-surface); margin-left: -12px; box-shadow: var(--shadow-sm); background: var(--color-muted); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-social-text { line-height: 1.2; }
.about-social-text .count, .about-social-text .count-plus { font-family: var(--font-title); font-weight: 700; font-size: 1.9rem; color: var(--color-primary); }
.about-social-text span:last-child { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); font-size: var(--fs-sm); }

/* Scattered image collage */
.about-collage { position: relative; min-height: 460px; }
.collage-card { position: absolute; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid var(--color-surface); }
.collage-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-chip { position: absolute; left: 12px; bottom: 12px; background: var(--color-yellow); color: var(--color-foreground); font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); }
.about-collage { min-height: 520px; }
.collage-card.card--a { width: 50%; height: 50%; top: 0; right: 0; z-index: 1; }
.collage-card.card--b { width: 31%; height: 46%; top: 12%; left: 14%; z-index: 3; }
.collage-card.card--c { width: 24%; height: 28%; bottom: 2%; left: 0; z-index: 4; }
.collage-card.card--d { width: 46%; height: 42%; bottom: 0; right: 4%; z-index: 2; }

/* Clinic intro section */
.clinic-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.clinic-copy .eyebrow--dashed { display: inline-block; margin-bottom: var(--space-3); }
.clinic-text { font-size: var(--fs-lg); color: var(--color-muted-fg); margin-bottom: var(--space-4); max-width: 540px; }
.clinic-portraits { position: relative; min-height: 460px; }
.clinic-portrait { position: absolute; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid var(--color-surface); }
.clinic-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clinic-portrait--front { width: 52%; height: 70%; left: 4%; bottom: 0; z-index: 3; }
.clinic-portrait--back { width: 52%; height: 78%; right: 2%; top: 0; z-index: 2; }
.leaf-mark--one { position: absolute; top: 8%; left: 46%; z-index: 4; color: #fff; opacity: 0.95; transform: rotate(8deg); }
.leaf-mark--two { position: absolute; bottom: 4%; right: 40%; z-index: 4; color: #fff; opacity: 0.9; transform: rotate(-18deg); }

/* ==========================================================================
   16. Animations — scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); will-change: transform, opacity; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* About hero + clinic: stack columns; collage/portraits become a simple grid */
  .about-hero-grid, .clinic-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .about-collage { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-collage .collage-card { position: static; width: auto; height: auto; aspect-ratio: 4/3; }
  .clinic-portraits { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .clinic-portraits .clinic-portrait { position: static; width: auto; height: auto; aspect-ratio: 3/4; }
  .clinic-portraits .leaf-mark { display: none; }

  /* Collapse the sticky share rail; rely on the inline share row */
  .article-layout { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .article-body { grid-column: 1; }
  .share-rail { display: none; }
}
@media (max-width: 860px) {
  :root { --space-7: 4rem; --space-6: 3rem; }
  .primary-nav, .header-phone, .header-cta { display: none; }
  /* Fixed, top-most toggle so it always clears the admin bar AND sits above
     the open drawer (so the ✕ can always close the menu). */
  .nav-toggle {
    display: grid; position: fixed; top: 14px; right: 16px; z-index: 1200;
    background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  body.nav-open .nav-toggle { background: transparent; }
  .admin-bar .nav-toggle { top: 60px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .article-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .article-cta .btn { width: 100%; justify-content: center; }
  .article-share { flex-direction: column; align-items: flex-start; }

  /* Mobile drawer */
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    height: 100%; max-height: 100dvh;
    background: var(--color-surface); z-index: 1100;
    flex-direction: column; padding: calc(var(--header-h) - 6px) 22px 28px;
    transform: translateX(100%); transition: transform 320ms var(--ease-out);
    box-shadow: var(--shadow-lg); display: flex;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .primary-nav { transform: translateX(0); }
  .admin-bar .primary-nav { top: 46px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .primary-nav a { height: 46px; font-size: var(--fs-base); width: 100%; }
  /* Below the header (z:1000) so the drawer — trapped inside the header's
     stacking context — renders ABOVE the scrim and its links stay tappable. */
  .nav-scrim { position: fixed; inset: 0; background: transparent; z-index: 999; opacity: 0; visibility: hidden; transition: opacity var(--transition); }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

  /* Drawer extras */
  .nav-extra { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-border); width: 100%; }
  .nav-book { width: 100%; font-weight: 500; }
  .nav-extra-info { display: grid; gap: 12px; }
  .nav-extra-row { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--color-muted-fg); font-weight: 500; }
  .nav-extra-row svg { width: 18px; height: 18px; color: var(--color-primary); flex: none; margin-top: 2px; }
  .nav-social { display: flex; gap: 10px; }
  .nav-social a { width: 42px; height: 42px; border-radius: 12px; background: var(--color-muted); color: var(--color-primary); display: grid; place-items: center; transition: background var(--transition), color var(--transition); }
  .nav-social a:hover { background: var(--color-primary); color: #fff; }
  .nav-social svg { width: 18px; height: 18px; }
}
@media (max-width: 768px) {
  /* Smaller titles on mobile */
  h1 { font-size: clamp(2rem, 8vw, 2.4rem); }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.2rem; }
  .section-head p { font-size: 1.05rem; }
  .hero-lead, .lead-text { font-size: 1.05rem; }
  .reassure blockquote { font-size: 1.4rem; }

  /* Hide decorative floating hero cards on mobile */
  .hero-float--one, .hero-float--two { display: none; }

  /* Hide the standalone trust-bar section on mobile */
  .chs-trust-section { display: none; }

  /* Hero trust items become a swipeable carousel on mobile */
  .hero-trust {
    flex-wrap: nowrap; overflow-x: auto; gap: var(--space-2);
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin: 0; padding-bottom: 4px;
  }
  .hero-trust::-webkit-scrollbar { display: none; }
  .hero-trust .item {
    flex: 0 0 auto; scroll-snap-align: start;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 10px 14px; box-shadow: var(--shadow-sm);
  }

  /* Smaller hero badge */
  .hero-badge { font-size: var(--fs-xs); padding: 5px 12px 5px 5px; gap: 8px; }
  .hero-badge .dot { width: 24px; height: 24px; }
  .hero-badge .dot svg { width: 13px; height: 13px; }

  /* Testimonials: responsive + smaller text */
  .mintesti { padding: 0; }
  .mintesti-quotes { min-height: 210px; margin-bottom: var(--space-4); }
  .mintesti-quote { font-size: 1.05rem; }
  .mintesti-author { flex-wrap: wrap; gap: var(--space-2); }
  .mintesti-avatars button { width: 44px; height: 44px; }
  .mintesti-stars svg { width: 18px; height: 18px; }

  /* CTA banner: tighter padding + full-width, non-wrapping buttons */
  .cta-banner { padding: var(--space-5) var(--space-3); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; white-space: nowrap; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-float--one { left: 0; transform: scale(.82); }
  .hero-float--two { right: 0; transform: scale(.82); }

  /* Smaller testimonial text on small phones */
  .mintesti-quote { font-size: 0.95rem; line-height: 1.5; }
  .mintesti-quotes { min-height: 200px; }
  .mintesti-stars svg { width: 16px; height: 16px; }
  .mintesti-avatars button { width: 40px; height: 40px; }

  /* Keep the two hero buttons side-by-side on one line */
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; font-size: var(--fs-sm); white-space: nowrap; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); text-align: left; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: var(--space-1); }
  .site-footer { padding-top: var(--space-5); }
  .site-footer .brand img { height: 48px; }
}

/* ==========================================================================
   18. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-float { animation: none !important; }
}

/* ==========================================================================
   19. Logos
   ========================================================================== */
.brand img, .custom-logo { height: 52px; width: auto; max-width: 230px; display: block; }
.site-header.is-scrolled .brand img, .site-header.is-scrolled .custom-logo { height: 44px; }
.site-footer .brand img { height: 56px; width: auto; max-width: 240px; }

/* ==========================================================================
   20. Trust bar
   ========================================================================== */
.trust-bar { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-3) var(--space-4); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.trust-item { display: flex; align-items: center; gap: 14px; justify-content: center; text-align: left; }
.trust-item + .trust-item { border-left: 1px solid var(--color-border); }
.trust-item .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--color-muted); color: var(--color-primary); display: grid; place-items: center; flex: none; }
.trust-item .ic svg { width: 24px; height: 24px; }
.trust-item strong { font-family: var(--font-heading); font-size: var(--fs-sm); display: block; color: var(--color-foreground); }
.trust-item span { font-size: var(--fs-xs); color: var(--color-muted-fg); }

/* ==========================================================================
   21. Value props (Why families choose us — 3 column)
   ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.value { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value .ic { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto var(--space-2); display: grid; place-items: center; background: var(--gradient-brand); color: #fff; }
.value:nth-child(2) .ic { background: var(--gradient-accent); color: var(--color-accent-ink); }
.value:nth-child(3) .ic { background: linear-gradient(135deg, #FFD166, #FFB938); color: #5A4200; }
.value .ic svg { width: 36px; height: 36px; }
.value h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.value p { font-size: var(--fs-sm); }

/* ==========================================================================
   22. Care for Every Stage — timeline
   ========================================================================== */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); position: relative; }
.stages::before { content: ""; position: absolute; top: 36px; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, var(--color-secondary), var(--color-accent)); border-radius: 2px; z-index: 0; }
.stage { text-align: center; position: relative; z-index: 1; }
.stage .node { width: 72px; height: 72px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-secondary); color: var(--color-primary); display: grid; place-items: center; margin: 0 auto var(--space-2); box-shadow: var(--shadow-md); transition: transform var(--transition), border-color var(--transition); }
.stage:hover .node { transform: scale(1.08); border-color: var(--color-accent); }
.stage .node svg { width: 34px; height: 34px; }
.stage h4 { font-family: var(--font-heading); font-size: var(--fs-base); }
.stage p { font-size: var(--fs-sm); margin-top: 6px; }

/* ==========================================================================
   23. Parent reassurance callout
   ========================================================================== */
.reassure { background: var(--gradient-brand); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.reassure::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, rgba(255,255,255,.16), transparent 42%), radial-gradient(circle at 88% 85%, rgba(174,28,37,.38), transparent 46%); }
.reassure > * { position: relative; }
.reassure .q-ic { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; margin: 0 auto var(--space-3); }
.reassure .q-ic svg { width: 34px; height: 34px; }
.reassure blockquote { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; max-width: 820px; margin: 0 auto var(--space-3); color: #fff; }
.reassure cite { font-style: normal; color: rgba(255,255,255,.85); font-size: var(--fs-sm); display: block; margin-bottom: var(--space-4); }

/* ==========================================================================
   24. When to contact us — checklist
   ========================================================================== */
.when-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-5); align-items: center; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px 16px; font-size: var(--fs-sm); font-weight: 500; color: var(--color-foreground); box-shadow: var(--shadow-sm); }
.checklist .ic { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient-accent); color: var(--color-accent-ink); display: grid; place-items: center; flex: none; }
.checklist .ic svg { width: 15px; height: 15px; }

/* ==========================================================================
   25. Minimal testimonial (ported from minimal-testimonial.tsx)
   ========================================================================== */
.mintesti { width: 100%; max-width: 720px; margin: 0 auto; padding: var(--space-3) var(--space-2); }
.mintesti-quotes { position: relative; min-height: 150px; margin-bottom: var(--space-5); }
.mintesti-quote {
  position: absolute; inset: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300; line-height: 1.45; color: var(--color-foreground);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), filter 500ms var(--ease-out);
  opacity: 0; transform: translateY(16px); filter: blur(6px); pointer-events: none;
}
.mintesti-quote.is-active { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.mintesti-author { display: flex; align-items: center; gap: var(--space-3); }
.mintesti-avatars { display: flex; }
.mintesti-avatars button {
  position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px var(--color-surface); margin-left: -8px;
  transition: transform 300ms var(--ease-out), filter 300ms var(--ease-out);
  filter: grayscale(1); cursor: pointer; background: var(--color-muted);
}
.mintesti-avatars button:first-child { margin-left: 0; }
.mintesti-avatars button img { width: 100%; height: 100%; object-fit: cover; }
.mintesti-avatars button .av-initial { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); background: var(--color-muted); }
.mintesti-avatars button:hover { filter: grayscale(0); transform: scale(1.05); }
.mintesti-avatars button.is-active { filter: grayscale(0); transform: scale(1.12); z-index: 2; box-shadow: 0 0 0 3px var(--color-surface), 0 6px 16px rgba(47,58,69,.18); }
.mintesti-divider { width: 1px; height: 36px; background: var(--color-border); flex: none; }
.mintesti-meta { position: relative; flex: 1; min-height: 46px; }
.mintesti-person { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(-8px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); pointer-events: none; }
.mintesti-person.is-active { opacity: 1; transform: none; pointer-events: auto; }
.mintesti-person strong { font-family: var(--font-heading); font-size: var(--fs-base); color: var(--color-foreground); }
.mintesti-person span { font-size: var(--fs-sm); color: var(--color-muted-fg); }
.mintesti-stars { display: flex; gap: 3px; color: var(--color-yellow); margin-bottom: var(--space-2); }
.mintesti-stars svg { width: 20px; height: 20px; }

/* ==========================================================================
   26. FAQ accordion
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-base); color: var(--color-foreground); text-align: left; }
.faq-q .chev { width: 30px; height: 30px; border-radius: 50%; background: var(--color-muted); color: var(--color-primary); display: grid; place-items: center; flex: none; transition: transform var(--transition), background var(--transition); }
.faq-q .chev svg { width: 18px; height: 18px; }
.faq-item[aria-expanded="true"] .faq-q .chev,
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--color-primary); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease-out); }
.faq-a-inner { padding: 0 22px 20px; color: var(--color-muted-fg); font-size: var(--fs-sm); }

/* ==========================================================================
   27. Forms (contact + appointment)
   ========================================================================== */
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-5); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }
.field label { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm); color: var(--color-foreground); }
.field label .req { color: var(--color-destructive); }
.field .hint { font-size: var(--fs-xs); color: var(--color-muted-fg); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--color-foreground);
  background: var(--color-background);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px; min-height: 50px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); background: #fff; box-shadow: var(--shadow-ring); }
.field input:invalid:not(:placeholder-shown) { border-color: var(--color-destructive); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); }
.form-note { font-size: var(--fs-xs); color: var(--color-muted-fg); margin-top: var(--space-2); display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 16px; height: 16px; color: var(--color-primary); flex: none; margin-top: 2px; }
.form-message { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: var(--space-3); font-size: var(--fs-sm); font-weight: 500; display: flex; gap: 10px; align-items: center; }
.form-message svg { width: 20px; height: 20px; flex: none; }
.form-message.is-success { background: #E6F6E6; color: #1E6B1E; border: 1px solid #BFE6BF; }
.form-message.is-error { background: #FDEAEA; color: #9B1C1C; border: 1px solid #F5C2C2; }
.g-recaptcha { margin-bottom: var(--space-3); }

/* ==========================================================================
   28. Contact + appointment layout
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5); align-items: start; }
.contact-info { display: grid; gap: var(--space-3); }
.contact-info .info-card { display: flex; gap: 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-sm); }
.contact-info .info-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--gradient-brand); color: #fff; display: grid; place-items: center; flex: none; }
.contact-info .info-card .ic svg { width: 26px; height: 26px; }
.contact-info .info-card h4 { font-family: var(--font-heading); font-size: var(--fs-base); margin-bottom: 2px; }
.contact-info .info-card a, .contact-info .info-card p { color: var(--color-muted-fg); font-size: var(--fs-sm); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); aspect-ratio: 16/9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   29. Page intro content
   ========================================================================== */
.lead-text { font-size: var(--fs-lg); color: var(--color-muted-fg); max-width: 760px; }
.section--muted { background: var(--gradient-soft); }
/* Single service page */
.service-hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--space-5); background: var(--gradient-soft); }
.service-hero > .container { position: relative; z-index: 1; }
.service-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
.service-hero-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--gradient-brand); }
.service-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-visual .hero-figure { width: 100%; height: 100%; }
.service-body-grid { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: var(--space-5); align-items: start; }
.service-aside { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1024px) {
  .service-hero-grid, .service-body-grid { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

/* Single service — alternating media rows */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.svc-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--gradient-brand); display: grid; place-items: center; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-media .hero-figure { width: 100%; height: 100%; }
.svc-row--reverse .svc-media { order: 2; }
.svc-text h2 { margin-bottom: var(--space-2); }
.svc-text .lead-text { margin-bottom: var(--space-3); }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .svc-row--reverse .svc-media { order: 0; }
}

.page-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 21/9; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .page-banner { aspect-ratio: 16/10; } }

@media (max-width: 1024px) {
  .when-grid, .contact-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr 1fr; }
  .stages::before { display: none; }
}
@media (max-width: 860px) {
  .trust-bar { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .trust-item + .trust-item { border-left: none; }
  .checklist { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .trust-bar { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
}

/* ==========================================================================
   30. Core block styles (front end) — for admin-editable content blocks
   ========================================================================== */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-2); }
.wp-block-button__link, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-base);
  border-radius: var(--radius-pill);
  background: var(--gradient-brand); color: var(--color-on-primary);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wp-block-button__link:hover, .wp-element-button:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--color-surface); color: var(--color-primary);
  border: 1.5px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

.wp-block-media-text { gap: var(--space-5); border-radius: var(--radius-lg); margin-block: var(--space-4); }
.wp-block-media-text__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.wp-block-media-text__content { padding: 0; }
.wp-block-media-text h2 { margin-bottom: var(--space-2); }

.wp-block-columns { gap: var(--space-3); margin-block: var(--space-4); }
.wp-block-columns .wp-block-column {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm);
}
.wp-block-columns .wp-block-column h3 { margin-bottom: 10px; }

.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-group.has-background { color: #fff; }
.wp-block-quote { border-left: 4px solid var(--color-primary); padding-left: var(--space-3); font-style: italic; }

.editable-content { padding-block: var(--space-6); }
.editable-content .entry-content { max-width: 1100px; }

@media (max-width: 860px) {
  .wp-block-media-text { gap: var(--space-3); }
  .wp-block-columns { flex-wrap: wrap; }
}

/* WP core alignment helpers */
.alignwide { width: min(100%, 1100px); margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: var(--fs-sm); color: var(--color-muted-fg); }
.sticky, .bypostauthor { display: block; }
