/* ==========================================================
   Vredekloof Dental – Global Styles
   ========================================================== */

:root {
  /* Brand */
  --mint: #549c84;          /* sampled from logo */
  --mint-dark: #3b7663;     /* text/buttons – passes AA on white */
  --mint-soft: #e8f3ef;
  --mint-tint: #f3f9f7;

  --pink: #be8481;          /* dusty pink */
  --pink-dark: #9a5d5a;     /* text – passes AA on white */
  --pink-soft: #f6eceb;

  --white: #ffffff;
  --grey-900: #3a3a3a;
  --grey-700: #545454;      /* logo grey */
  --grey-500: #7a7a7a;
  --grey-200: #e4e4e4;
  --grey-100: #f5f5f4;
  --card-grey: #fbfbfb;     /* service cards on white – just off-white */

  /* Type */
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "avenir-lt-pro", sans-serif;
  --font-script: "Great Vibes", cursive;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-btn: 30px;
  --shadow-sm: 0 2px 8px rgba(59, 118, 99, .06);
  --shadow: 0 12px 32px rgba(59, 118, 99, .10);
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: normal;
  color: var(--grey-900);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--mint-dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint-dark);
}
.eyebrow-pink { color: var(--pink-dark); }

.muted { color: var(--grey-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font: 500 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--mint-dark); color: var(--white); box-shadow: 0 6px 18px rgba(59, 118, 99, .25); }
.btn-primary:hover { background: var(--mint); color: var(--white); }

.btn-secondary { background: var(--pink-dark); color: var(--white); }
.btn-secondary:hover { background: #7f4a47; color: var(--white); }

.btn-ghost { background: transparent; color: var(--grey-900); border-color: var(--grey-200); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-dark); }

.btn-light { background: var(--white); color: var(--mint-dark); }
.btn-light:hover { background: var(--pink-soft); color: var(--mint-dark); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); }

/* ==========================================================
   Header / Navigation
   ========================================================== */

/* ---- Top info bar (scrolls away) ---- */
.topbar {
  background: var(--mint-dark);
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar-list li,
.topbar-list a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-list a { color: rgba(255, 255, 255, .9); text-decoration: none; transition: color .2s; }
.topbar-list a:hover { color: var(--white); }
.topbar-list svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: #9fd0bf;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Main bar (sticky) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(58, 58, 58, .08); }

.header-inner {
  position: relative;               /* anchors the mega menu */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo img { width: 230px; }

.primary-nav { justify-self: center; height: 100%; }

.nav-list {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list > li { display: flex; align-items: stretch; }

.nav-list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--grey-900);
  text-decoration: none;
  transition: color .2s;
}
/* Pink indicator bar sits on the header's bottom edge */
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-list > li > a:hover,
.has-dropdown:hover > a,
.has-dropdown:focus-within > a,
.nav-list > li > a[aria-current] { color: var(--mint-dark); }
.nav-list > li > a:hover::after,
.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after,
.nav-list > li > a[aria-current]::after { transform: scaleX(1); }

.chevron { width: 11px; height: 11px; transition: transform .2s; }
.has-dropdown:hover .chevron,
.has-dropdown:focus-within .chevron { transform: rotate(180deg); }

.submenu-toggle { display: none; }

/* ---- Services mega menu ---- */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  margin-top: 1px;
  padding: 16px 18px 18px;
  background: var(--white);
  border-top: 3px solid var(--mint);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 48px rgba(58, 58, 58, .12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.mega-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 6px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-200);
}
.mega-title {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.mega-all { font-size: .82rem; font-weight: 500; text-decoration: none; color: var(--mint-dark); }
.mega-all:hover { color: var(--mint); }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  font-size: .88rem;
  line-height: 1.3;
  white-space: nowrap;
  font-weight: 500;
  color: var(--grey-900);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color .2s, color .2s;
}
.mega-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--mint-tint);
  color: var(--mint-dark);
  border-radius: var(--radius);
  transition: background-color .2s, color .2s;
}
.mega-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mega-item:hover,
.mega-item[aria-current="page"] { background: var(--mint-tint); color: var(--mint-dark); }
.mega-item:hover .mega-icon,
.mega-item[aria-current="page"] .mega-icon { background: var(--mint-dark); color: var(--white); }

/* ---- Call button ---- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--white);
  background: var(--mint-dark);
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: background-color .2s;
}
.header-call:hover { background: var(--mint); color: var(--white); }
.header-call svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Burger ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--grey-900);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Header responsive ---- */
@media (max-width: 1100px) {
  .logo img { width: 200px; }
  .nav-list > li > a { padding: 0 14px; }
  .nav-list > li > a::after { left: 14px; right: 14px; }
  .header-inner { gap: 20px; }
  .topbar-list:first-child li + li { display: none; }  /* drop hours on narrower screens */
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .topbar { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .logo img { width: 180px; }
  .nav-toggle { display: flex; }

  .header-call { width: 46px; padding: 0; justify-content: center; }
  .header-call span { display: none; }

  /* Slide-down drawer */
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    /* The header grid centres its items; newer browsers apply that to fixed
       children too, which shrinks the drawer – stretch it explicitly */
    justify-self: stretch;
    align-self: stretch;
    width: auto;
    height: auto;
    padding: 12px var(--gutter) 40px;
    background: var(--white);
    border-top: 1px solid var(--grey-200);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }

  .nav-list { flex-direction: column; height: auto; }
  .nav-list > li { flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--grey-200); }
  .nav-list > li > a { flex: 1; padding: 18px 4px; font-size: 1.1rem; }
  .nav-list > li > a::after { display: none; }
  .chevron { display: none; }

  .submenu-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: 0;
    color: var(--grey-700);
    cursor: pointer;
  }
  .submenu-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
  .submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .dropdown,
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    position: static;
    display: none;
    flex-basis: 100%;
    width: auto;
    white-space: normal;
    margin: 0;
    padding: 0 0 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .mega-head { display: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 2px; }
  .mega-item { padding: 8px 4px; font-size: 1rem; }
  .mega-icon { width: 38px; height: 38px; }
  .mega-icon svg { width: 22px; height: 22px; }
}

@media (max-width: 600px) {
  .logo img { width: 160px; }
}

/* ==========================================================
   Photo placeholders (swap for real <img> when available)
   ========================================================== */
.photo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.55), transparent 45%),
    linear-gradient(135deg, var(--mint-soft) 0%, #d6ebe3 50%, var(--pink-soft) 100%);
  border-radius: var(--radius-lg);
}
.photo::after { /* soft tooth motif */
  content: "";
  position: absolute;
  right: -8%;
  bottom: -10%;
  width: 60%;
  aspect-ratio: 1;
  border: 2px solid rgba(84, 156, 132, .25);
  border-radius: 50%;
}
.photo-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 6px 12px;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-500);
  background: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 96px 0 128px;
  background: var(--grey-100) url("../images/optimized/vredekloof-hero.jpg") 70% 20% / cover no-repeat;
  background-image: image-set(
    url("../images/optimized/vredekloof-hero.webp") type("image/webp"),
    url("../images/optimized/vredekloof-hero.jpg") type("image/jpeg"));
  overflow: hidden;
}
/* Blurred, lightened panel behind the copy – fades out towards the right */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .6) 70%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 65%, transparent 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
}

/* Two lines on desktop: break is set by <br class="hero-br"> */
.hero h1 { white-space: nowrap; }

.hero h1 .script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 3px 3px 0 rgba(190, 132, 129, .55);  /* dusty pink */
}

.hero .lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--grey-900);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.hero-inner { width: 100%; }
.hero .btn-ghost { 
  border: 2px solid var(--mint-dark); 
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-self: end;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .9rem;
  line-height: 1.4;
}
.hero-card strong { display: block; color: var(--grey-900); font-weight: 500; }
.hero-card span:not(.hero-card-icon) { color: var(--grey-500); }
.hero-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  border-radius: 50%;
}
.hero-card-icon svg { width: 22px; height: 22px; }

/* ==========================================================
   Quick contact strip
   ========================================================== */
.quick-strip {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  /* top 56px overlaps the hero photo; below that matches the grey intro */
  background: linear-gradient(180deg, transparent 56px, var(--grey-100) 56px);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(58, 58, 58, .10);
}

.quick-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  min-width: 0;
  color: var(--grey-900);
  text-decoration: none;
  border-radius: 12px;
  transition: background-color .2s;
}
.quick-item:hover { background: var(--mint-tint); }

.quick-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  border-radius: 10px;
  transition: background-color .2s, color .2s;
}
.quick-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Filled brand glyphs (e.g. WhatsApp) inside line-icon slots */
.quick-icon svg.icon-fill { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.topbar-list svg.icon-fill { fill: #9fd0bf; stroke: none; width: 14px; height: 14px; }

.quick-item:hover .quick-icon { background: var(--mint-dark); color: var(--white); }

.quick-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.quick-text small {
  margin-bottom: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-dark);
}
.quick-text strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--grey-900);
  overflow-wrap: anywhere;
}
.quick-text > span {
  margin-top: 3px;
  font-size: .85rem;
  color: var(--grey-500);
}

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: 112px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

/* Intro – centred text on light grey */
.intro { background: var(--grey-100); }
/* Faint decorative line drawings either side of the welcome text */
.intro { position: relative; overflow: hidden; }
.intro > .container { position: relative; z-index: 1; }
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%2810 12 12%29'%3E%3Cpath d='M12 5.5c-1.074 -.586 -2.583 -1.5 -4 -1.5c-2.1 0 -4 1.247 -4 5c0 4.899 1.056 8.41 2.671 10.537c.573 .756 1.97 .521 2.567 -.236c.398 -.505 .819 -1.439 1.262 -2.801c.292 -.771 .892 -1.504 1.5 -1.5c.602 0 1.21 .737 1.5 1.5c.443 1.362 .864 2.295 1.262 2.8c.597 .759 2 .993 2.567 .237c1.615 -2.127 2.671 -5.637 2.671 -10.537c0 -3.74 -1.908 -5 -4 -5c-1.423 0 -2.92 .911 -4 1.5'/%3E%3Cpath d='M12 5.5l3 1.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%28-12 12 12%29'%3E%3Cpath d='M12 5.5c-1.074 -.586 -2.583 -1.5 -4 -1.5c-2.1 0 -4 1.247 -4 5c0 4.899 1.056 8.41 2.671 10.537c.573 .756 1.97 .521 2.567 -.236c.398 -.505 .819 -1.439 1.262 -2.801c.292 -.771 .892 -1.504 1.5 -1.5c.602 0 1.21 .737 1.5 1.5c.443 1.362 .864 2.295 1.262 2.8c.597 .759 2 .993 2.567 .237c1.615 -2.127 2.671 -5.637 2.671 -10.537c0 -3.74 -1.908 -5 -4 -5c-1.423 0 -2.92 .911 -4 1.5'/%3E%3Cpath d='M12 5.5l3 1.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Cpath d='M4 20l9 -9M13 11l2 -2a2 2 0 0 1 3 0l1 1a2 2 0 0 1 0 3l-2 2M15 7l2 2M17 5l2 2M19 3l2 2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position:
    calc(50% - 560px) 90px,
    calc(50% - 420px) 60px,
    calc(50% - 600px) calc(100% - 40px),
    calc(50% + 560px) calc(100% - 110px),
    calc(50% + 440px) 80px,
    calc(50% + 540px) 150px,
    calc(50% + 560px) 40px;
  background-size: 190px, 46px, 150px, 210px, 52px, 30px, 90px;
}
@media (max-width: 960px) {
  .intro::before { opacity: .08; }
}


.intro-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.intro-body h2 {
  max-width: 18ch;
  margin: 0 auto;
}
.intro-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 28px auto 32px;
  background: var(--pink);
}
.intro-body p:not(.eyebrow) {
  font-size: 1.08rem;
  line-height: 1.8;
}
.intro-body a:not(.btn) {
  font-weight: 500;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.intro-body .btn { margin-top: 1.2rem; }

/* Doctor */
.doctor {
  background: var(--pink-soft);
  position: relative;
  overflow: hidden;
}
/* Portrait in its own column; text sits beside it without wrapping underneath */
.doctor-copy {
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 64px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.doctor-copy > * { grid-column: 2; }
.credential {
  display: inline-block;
  margin: -.4rem 0 1.4rem;
  padding: 4px 12px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--pink-dark);
  background: var(--white);
  border-radius: var(--radius-sm);
}
.doctor-copy .btn {
  justify-self: start;
  margin-top: .4rem;
}
.doctor-visual {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 5;       /* eyebrow, heading, two paragraphs, button */
  align-self: center;
}
/* Pink frame offset behind the portrait */
.doctor-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--pink);
  border-radius: 14px;
  transform: translate(5px, 5px);
}
.doctor-photo {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 14px;          /* matches the team photos */
  box-shadow: var(--shadow);
}

/* Services */
.services { background: var(--white); }
/* Faint decorative line drawings behind the services grid */
.services { position: relative; overflow: hidden; }
.services > .container { position: relative; z-index: 1; }
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%28-14 12 12%29'%3E%3Cpath d='M12 5.5c-1.074 -.586 -2.583 -1.5 -4 -1.5c-2.1 0 -4 1.247 -4 5c0 4.899 1.056 8.41 2.671 10.537c.573 .756 1.97 .521 2.567 -.236c.398 -.505 .819 -1.439 1.262 -2.801c.292 -.771 .892 -1.504 1.5 -1.5c.602 0 1.21 .737 1.5 1.5c.443 1.362 .864 2.295 1.262 2.8c.597 .759 2 .993 2.567 .237c1.615 -2.127 2.671 -5.637 2.671 -10.537c0 -3.74 -1.908 -5 -4 -5c-1.423 0 -2.92 .911 -4 1.5'/%3E%3Cpath d='M12 5.5l3 1.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%2812 12 12%29'%3E%3Cpath d='M12 5.5c-1.074 -.586 -2.583 -1.5 -4 -1.5c-2.1 0 -4 1.247 -4 5c0 4.899 1.056 8.41 2.671 10.537c.573 .756 1.97 .521 2.567 -.236c.398 -.505 .819 -1.439 1.262 -2.801c.292 -.771 .892 -1.504 1.5 -1.5c.602 0 1.21 .737 1.5 1.5c.443 1.362 .864 2.295 1.262 2.8c.597 .759 2 .993 2.567 .237c1.615 -2.127 2.671 -5.637 2.671 -10.537c0 -3.74 -1.908 -5 -4 -5c-1.423 0 -2.92 .911 -4 1.5'/%3E%3Cpath d='M12 5.5l3 1.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%288 12 12%29'%3E%3Cpath d='M12 5.5c-1.074 -.586 -2.583 -1.5 -4 -1.5c-2.1 0 -4 1.247 -4 5c0 4.899 1.056 8.41 2.671 10.537c.573 .756 1.97 .521 2.567 -.236c.398 -.505 .819 -1.439 1.262 -2.801c.292 -.771 .892 -1.504 1.5 -1.5c.602 0 1.21 .737 1.5 1.5c.443 1.362 .864 2.295 1.262 2.8c.597 .759 2 .993 2.567 .237c1.615 -2.127 2.671 -5.637 2.671 -10.537c0 -3.74 -1.908 -5 -4 -5c-1.423 0 -2.92 .911 -4 1.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate%280 12 12%29'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position:
    calc(50% - 360px) 40px,
    calc(50% - 250px) 150px,
    calc(50% + 300px) 70px,
    calc(50% + 400px) 30px,
    -60px 52%,
    calc(100% + 40px) 58%,
    3% calc(100% - 80px);
  background-size: 200px, 44px, 34px, 170px, 260px, 240px, 60px;
}
@media (max-width: 960px) {
  .services::before { opacity: .08; background-size: 140px, 32px, 26px, 120px, 180px, 170px, 44px; }
}

/* Short centred underline under "What We Offer" (10% of the heading width) */
.services .section-head h2::after {
  content: "";
  display: block;
  width: 10%;
  height: 3px;
  margin: 22px auto 0;
  background: var(--pink);
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 32px 30px 30px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--card-grey) 0%, var(--card-grey) 45%, #f5faf8 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.service-card:nth-child(even) {
  background: linear-gradient(170deg, var(--card-grey) 0%, var(--card-grey) 45%, #fbf6f5 100%);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .7em;
  max-width: 85%;
}
.service-card p {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--grey-500);
  max-width: 92%;
}

/* Big corner circle with line icon */
.service-icon {
  position: absolute;
  right: -34px;
  bottom: -34px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 170px;
  height: 170px;
  padding: 44px 0 0 46px;
  background: var(--white);
  color: var(--grey-900);
  border-radius: 50%;
  box-shadow: 0 -4px 24px rgba(59, 118, 99, .06);
  transition: background-color .3s, color .3s, transform .3s;
}
.service-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card:hover .service-icon { background: var(--mint-dark); color: var(--white); transform: scale(1.04); }
.service-card:nth-child(even):hover .service-icon { background: var(--pink); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--mint-dark);
}
.service-card:nth-child(even) .card-link { color: var(--pink-dark); }
.card-link span { transition: transform .2s; }
.card-link::after { /* whole card clickable */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.service-card:hover .card-link span { transform: translateX(4px); }

/* Reviews – swipeable carousel of Google reviews */
.reviews { background: var(--mint-tint); }
.review-carousel { position: relative; }
.review-track {
  --per-view: 3;
  --gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  gap: var(--gap);
  margin: 0;
  padding: 30px 4px 24px;    /* room for the quote badges and card shadows */
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;  /* match the side padding so the first card snaps to scrollLeft 0 */
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: var(--radius); }

.review-card {
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-snap-align: start;
  padding: 36px 24px 20px;
  background: var(--white);
  border: 1px solid rgba(84, 156, 132, .28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
/* Quote badge centred on the card's top border */
.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--mint-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.6 6C6.3 7.3 4 10.2 4 13.9V18h6v-6H7c0-2.2 1.3-3.9 3.3-4.7zM19.6 6c-3.3 1.3-5.6 4.2-5.6 7.9V18h6v-6h-3c0-2.2 1.3-3.9 3.3-4.7z'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 0 0 4px var(--mint-tint);
}
.review-stars { display: flex; gap: 3px; margin-bottom: 12px; }
.review-stars svg { width: 18px; height: 18px; fill: #e0a93b; }
.review-card blockquote { flex: 1; margin: 0 0 16px; }
.review-card blockquote p { margin: 0; font-size: .98rem; line-height: 1.65; }
/* Long reviews are cut to 4 lines until "Read more" is pressed */
.review-card blockquote p:first-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.review-card.is-expanded blockquote p:first-child { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.review-more {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 .88rem/1.4 var(--font);
  color: var(--mint-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.review-more:hover { color: var(--mint); }
.review-more:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.review-card .review-note { margin-top: .6em; font-size: .82rem; color: var(--grey-500); }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--grey-200);
  font-weight: 500;
  color: var(--grey-900);
}
.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-family: var(--font-heading);
  font-weight: 600;
}

.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--mint-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--mint-dark);
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.carousel-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover:not(:disabled) { background: var(--mint-dark); color: var(--white); }
.carousel-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.carousel-btn:disabled { opacity: .35; cursor: default; }

/* CTA band – solid card that overlaps the top of the footer */
.cta-band {
  --cta-overlap: 90px;
  position: relative;
  z-index: 2;
  margin-bottom: calc(var(--cta-overlap) * -1);
  padding-top: 8px;
  /* upper part continues the previous section's background; lower part sits over the footer */
  --cta-bg: var(--mint-tint);
  background: linear-gradient(180deg, var(--cta-bg) 0%, var(--cta-bg) calc(100% - var(--cta-overlap)), transparent calc(100% - var(--cta-overlap)));
}
.cta-inner {
  position: relative;
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 52px 56px;
  overflow: hidden;
  /* dark mint → logo mint */
  background: linear-gradient(115deg, var(--mint-dark) 0%, #4a8d77 45%, var(--mint) 70%, #86c0ac 100%);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(58, 58, 58, .16);
  color: rgba(255, 255, 255, .88);
}
.cta-copy { max-width: 34rem; margin-inline: auto; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: .4em;
}
.cta-inner p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.cta-actions .btn { min-height: 46px; padding: .75rem 1.5rem; font-size: .95rem; }

/* Make room in the footer for the overlapping card (CTA sits in <main>, footer follows it) */
main:has(.cta-band) + .site-footer .footer-grid { padding-top: calc(72px + 90px); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  --footer-muted: #56645f;   /* readable on mint */
  background: var(--mint-soft);
  border-top: 4px solid var(--mint);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.45fr .6fr;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer-logo img { width: 230px; margin-bottom: 20px; }
.footer-brand p { max-width: 22rem; }

.site-footer h3 {
  position: relative;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-900);
  margin: 0 0 18px;
  padding-bottom: 12px;
}
.site-footer h3::after { /* short accent underline */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--pink);
}
.site-footer h3:not(:first-child) { margin-top: 30px; }
.site-footer address { font-style: normal; margin-bottom: 0; }
.site-footer a { color: var(--grey-700); text-decoration: none; }
.site-footer a:hover { color: var(--mint-dark); }

.footer-contact,
.footer-links,
.social { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.footer-contact li > span:last-child { min-width: 0; line-height: 1.45; }
.footer-label {
  display: block;
  font-size: .78rem;
  color: var(--footer-muted);
}
/* Small white icon tiles, matching the social buttons */
.footer-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--white);
  color: var(--mint-dark);
  border: 1px solid rgba(84, 156, 132, .25);
  border-radius: 50%;
  transition: background-color .2s, color .2s, border-color .2s;
}
.footer-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-icon svg.icon-fill { fill: currentColor; stroke: none; }
.footer-contact li:hover .footer-icon { background: var(--pink); border-color: var(--pink); color: var(--white); }
.footer-links li { margin-bottom: 10px; }

.social { display: flex; gap: 10px; margin-top: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--grey-700);
  border: 1px solid rgba(84, 156, 132, .25);
  border-radius: 50%;
  transition: background-color .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom { border-top: 1px solid rgba(84, 156, 132, .25); }
.site-footer .muted { color: var(--footer-muted); }
/* Copyright left, policies centred, credit right */
.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: .85rem;
  color: var(--footer-muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--footer-muted); }
.footer-credit {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-credit a { display: inline-flex; transition: opacity .2s; }
.footer-credit a:hover { opacity: .7; }
.footer-credit img { width: 40px; height: 15px; position: relative; top: -3px; }

/* ==========================================================
   Inner pages
   ========================================================== */

/* ---- Page hero ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
  background: var(--mint-tint);
  border-bottom: 1px solid rgba(84, 156, 132, .15);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  /* Line-drawn sparkles (mint + pink) and one large circle */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be8481' stroke-width='.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7663' stroke-width='.6'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position:
    calc(50% - 700px) 58%,               /* large pink, left margin */
    calc(50% - 640px) 26%,               /* small mint, left margin */
    calc(50% - 470px) 26px,              /* mint, top strip */
    calc(50% - 130px) 18px,              /* mint, top strip */
    calc(50% + 30px) calc(100% - 34px),  /* small pink, under the copy */
    calc(50% + 590px) calc(100% - 30px), /* pink, bottom right */
    calc(100% + 60px) -60px;             /* circle, top right */
  background-size: 70px, 28px, 40px, 30px, 22px, 46px, 260px;
}
/* Small solid sparkles – twinkle gently (see Motion) */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b7663'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23be8481'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23be8481'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b7663'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2a10 10 0 0 0 10 10a10 10 0 0 0 -10 10a10 10 0 0 0 -10 -10a10 10 0 0 0 10 -10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position:
    calc(50% - 600px) 18%,
    calc(50% - 680px) calc(100% - 46px),
    calc(50% - 300px) 34px,
    calc(50% + 10px) 54px,
    calc(50% + 330px) 46px,              /* white glints over the photo */
    calc(50% + 500px) 62%;
  background-size: 12px, 14px, 9px, 11px, 16px, 12px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}
.page-hero-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 24px 0 26px;
  background: var(--pink);
}
.page-hero .lead {
  max-width: 44rem;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--grey-900);
}
.page-hero .eyebrow { margin-bottom: .6rem; }

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--grey-500);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 4px;
  color: var(--pink);
}
.breadcrumbs a { color: var(--grey-700); text-decoration: none; }
.breadcrumbs a:hover { color: var(--mint-dark); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--mint-dark); font-weight: 500; }

/* Full-bleed photo on the right that the mint hero fades into */
.page-hero.has-fade-image { padding: 96px 0 104px; }
.has-fade-image .page-hero-copy { max-width: 600px; }
.page-hero-fade {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 8%, rgba(0, 0, 0, .3) 28%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 8%, rgba(0, 0, 0, .3) 28%, #000 58%);
}
.page-hero-fade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}
.has-fade-image::before,
.has-fade-image::after { z-index: 1; }   /* keep the sparkles over the photo's faded edge */
.has-fade-image > .container { z-index: 2; }

/* ---- Article + sidebar ---- */
.content-section { padding: 88px 0 112px; background: var(--white); }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 72px;
  align-items: start;
}

.prose { max-width: 720px; }
.prose h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin: 2.2em 0 .7em;
}
.prose h2:first-child { margin-top: 0; }
/* Divider between sections on the service pages */
.content-section .prose h2:not(:first-child) {
  margin-top: 1.8em;
  padding-top: 1.6em;
  border-top: 1px solid var(--grey-200);
}
.prose a:not(.btn) {
  font-weight: 500;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.prose strong { color: var(--grey-900); font-weight: 500; }
.prose ul {
  margin: 0 0 1.4em;
  padding: 22px 26px;
  list-style: none;
  background: var(--mint-tint);
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.prose li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .55em;
}
.prose li:last-child { margin-bottom: 0; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--mint);
}
.prose .btn { margin-top: 1.2rem; }

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);   /* main.js lowers this when the sidebar is taller than the screen */
  display: grid;
  gap: 24px;
}

/* Enquiry form */
.enquiry-card {
  padding: 30px 26px 28px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 4px solid var(--pink);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.enquiry-card h2 { font-size: 1.45rem; margin-bottom: .4em; }
.enquiry-card > p { font-size: .92rem; line-height: 1.6; color: var(--grey-500); margin-bottom: 1.2em; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--grey-900);
}
.field label span { color: var(--pink-dark); }
.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font: 400 1rem/1.4 var(--font);   /* 16px stops iOS zooming on focus */
  color: var(--grey-900);
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(84, 156, 132, .18);
}
.enquiry-card .btn { width: 100%; margin-top: 8px; }

/* Booking card */
.book-card {
  padding: 32px 28px;
  background: linear-gradient(150deg, var(--mint-dark) 0%, #4a8d77 60%, var(--mint) 100%);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(59, 118, 99, .22);
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
}
.book-card h2 {
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: .5em;
}
.book-card p { line-height: 1.6; }
.book-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.book-list li { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.book-list a,
.book-list .book-hours {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.book-list a:hover { color: var(--pink-soft); }
.book-list small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .72); }
.book-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #cfe8df;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.book-list svg.icon-fill { fill: #cfe8df; stroke: none; }
.book-card .btn { width: 100%; }

/* ---- Services overview ---- */
.services-page { padding-bottom: 112px; }

/* ---- About: doctor + team ---- */
.doctor-copy.has-credential .doctor-visual { grid-row: 1 / span 6; }
.doctor-copy .credential { justify-self: start; }

.team { background: var(--white); }
.team .section-head h2::after,
.contact-details .section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 22px auto 0;
  background: var(--pink);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  padding: 34px 30px 30px;
  background: var(--card-grey);
  border-top: 3px solid var(--mint);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.team-card:nth-child(even) { border-top-color: var(--pink); }
.team-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
}
.team-card:nth-child(even) .team-avatar { background: var(--pink-soft); color: var(--pink-dark); }
/* Photo avatars: whole photo at its natural proportions, with a ring in the card's accent colour */
img.team-avatar {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--mint);
}
.team-card:nth-child(even) img.team-avatar { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--pink); }
.team-card h3 { font-size: 1.3rem; margin-bottom: .2em; }
.team-role {
  margin-bottom: 1em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-dark);
}
.team-card:nth-child(even) .team-role { color: var(--pink-dark); }
.team-card p:last-child { margin: 0; font-size: .95rem; line-height: 1.65; }

/* ---- Contact ---- */
.contact-details { background: var(--white); }

/* Detail cards: icon tile, title, one line of copy */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.detail-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  background: var(--white);
  border: 1px solid #e6e1d8;   /* warm hairline, as in the reference */
  border-radius: 18px;
  color: var(--grey-500);
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.detail-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  border-radius: 10px;
  transition: background-color .25s, color .25s;
}
.detail-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail-icon svg.icon-fill { fill: currentColor; stroke: none; }
.detail-card h3 {
  margin: 0 0 .45em;
  font-size: 1.08rem;
  color: var(--grey-900);
}
.detail-card p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.detail-card:hover,
a.detail-card:focus-visible {
  border-color: var(--mint-dark);
  box-shadow: 0 16px 36px rgba(59, 118, 99, .12);
  transform: translateY(-3px);
}
.detail-card:hover .detail-icon,
a.detail-card:focus-visible .detail-icon { background: var(--mint-dark); color: var(--white); }

/* Form on the left, visit info on the right */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.visit-stack { display: grid; gap: 24px; }

/* Full-width map directly above the footer */
.map-band { line-height: 0; background: var(--grey-100); }
.map-band iframe { display: block; width: 100%; height: 460px; border: 0; }

.visit-info { background: var(--grey-100); }
.visit-card {
  padding: 40px 38px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.visit-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.visit-card h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 18px;
  background: var(--pink);
}
.visit-card p:last-child { margin-bottom: 0; }

/* ---- Legal pages ---- */
.legal-section { padding: 80px 0 112px; }
.legal .prose { max-width: 800px; margin: 0 auto; }
.legal .prose h2 { font-size: 1.3rem; margin-top: 2em; }
.legal address { font-style: normal; margin-bottom: 1.1em; }

/* ==========================================================
   Service icons (sliced from images/service icons.png into images/icons/)
   ========================================================== */
.svc-img { display: block; object-fit: contain; transition: filter .2s; }
.service-icon .svc-img { width: 64px; height: 64px; }
.mega-icon .svc-img { width: 26px; height: 26px; }
/* Turn the grey glyph white when its circle/tile fills with colour */
.service-card:hover .svc-img,
.mega-item:hover .svc-img { filter: brightness(0) invert(1); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {


  .hero { min-height: 0; padding: 56px 0 96px; background-position: 60% center; }
  .hero::before { width: 100%; background: rgba(255, 255, 255, .78); -webkit-mask-image: none; mask-image: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: flex-start; }

  .doctor-copy { grid-template-columns: 240px 1fr; column-gap: 40px; }

  .section { padding: 80px 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review-track { --per-view: 2; }

  /* Stack: text on solid green, photo underneath */
  .cta-inner { gap: 24px; padding: 40px 36px; }

  /* Inner pages */
  .page-hero { padding: 40px 0 64px; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 40px; }

  /* Photo drops below the copy and fades up into it */
  .page-hero.has-fade-image { padding: 48px 0 0; }
  .has-fade-image .page-hero-copy { max-width: none; }
  /* The big circle (last layer) would sit on the heading here – size it to nothing */
  .page-hero::before { background-size: 70px, 28px, 40px, 30px, 22px, 46px, 0 0; }
  .page-hero-fade {
    position: relative;
    width: 100%;
    height: 320px;
    margin-top: 12px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  }

  .content-section { padding: 64px 0 88px; }
  .content-layout { grid-template-columns: 1fr; gap: 56px; }
  .prose { max-width: none; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; align-items: start; }

  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .map-band iframe { height: 380px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }

  body { font-size: 1rem; }

  .hero h1 { white-space: normal; }
  .hero-br { display: none; }
  .hero-actions .btn { width: 100%; }

  .quick-grid { grid-template-columns: 1fr; gap: 2px; padding: 10px; }


  .service-grid { grid-template-columns: 1fr; }
  .review-track { --per-view: 1.1; --gap: 14px; }
  .review-card { padding: 34px 20px 18px; }
  .doctor-copy { grid-template-columns: 1fr; }
  .doctor-copy > * { grid-column: 1; }
  .doctor-visual { grid-row: auto; width: calc(100% - 40px); max-width: 320px; margin: 0 auto 48px; }
  /* Compact service cards: smaller corner circle, no forced height */
  .service-card { min-height: 0; padding: 26px 22px 22px; }
  .service-card h3 { font-size: 1.2rem; }
  .service-icon { width: 112px; height: 112px; right: -26px; bottom: -26px; padding: 26px 0 0 28px; }
  .service-icon svg { width: 40px; height: 40px; }
  .service-icon .svc-img { width: 44px; height: 44px; }
  .service-card p { margin-bottom: 40px; }   /* keep text clear of the corner circle */

  /* Long buttons wrap neatly */
  .btn { line-height: 1.3; text-align: center; }
  .prose > .btn { width: 100%; }

  .cta-inner { width: 100%; padding: 32px 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .footer-bottom-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-credit { justify-self: center; }
  main:has(.cta-band) + .site-footer .footer-grid { padding-top: calc(56px + 90px); }

  /* Inner pages */
  .breadcrumbs ol { margin-bottom: 24px; }
  .page-hero .lead { font-size: 1.02rem; }
  .prose ul { padding: 18px 18px; }
  .sidebar { grid-template-columns: 1fr; }
  .book-card { padding: 28px 22px; }
  .team-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 12px; }
  /* Contact cards become compact rows: icon beside the text */
  .detail-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 18px 18px 20px;
    border-radius: 14px;
  }
  .detail-icon { grid-row: 1 / span 2; margin: 0; }
  .detail-card h3 { margin-top: 2px; }
  .map-band iframe { height: 320px; }
  .visit-card { padding: 30px 22px; }
  .legal-section { padding: 56px 0 88px; }
}

/* ==========================================================
   Motion – only for visitors who haven't asked for reduced motion.
   Page-load sequences are pure CSS; scroll reveals are driven by
   main.js, which tags elements with data-anim="…" and adds .is-in.
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Side-entering elements must never widen the page – on html too, or phones zoom the page out */
  html, body { overflow-x: clip; }

  /* ---- Keyframes ---- */
  @keyframes fade-in   { from { opacity: 0; } }
  @keyframes clip-rise { from { clip-path: inset(0 0 100% 0); transform: translateY(28px); } to { clip-path: inset(-20%); transform: none; } }
  @keyframes ink-in    { from { opacity: 0; filter: blur(10px); transform: scale(1.18) rotate(-4deg); } }
  @keyframes pop-in    { from { opacity: 0; transform: scale(.7); } }
  @keyframes track-in  { from { opacity: 0; letter-spacing: .6em; } }
  @keyframes grow-x    { from { transform: scaleX(0); } }
  @keyframes wipe-in   { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
  @keyframes ken-burns { from { transform: scale(1.16); } to { transform: scale(1); } }
  @keyframes panel-in  { from { opacity: 0; transform: translateX(-25%); } }
  @keyframes float-in  { from { opacity: 0; transform: translateY(36px) scale(.98); } }
  @keyframes drift     { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -16px, 0) rotate(.5deg); } }
  @keyframes twinkle   { from { opacity: .1; } to { opacity: .55; } }
  @keyframes gradient-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
  @keyframes ring {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); }
    60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); }
  }

  /* ---- Homepage hero (on load) ---- */
  .hero::before { animation: panel-in 1.2s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero h1 { animation: clip-rise 1s cubic-bezier(.2, .7, .2, 1) .15s backwards; }
  .hero h1 .script { display: inline-block; animation: ink-in 1.5s cubic-bezier(.2, .7, .2, 1) .75s backwards; }
  .hero .lead { animation: fade-in 1.1s ease .5s backwards; }
  .hero-actions .btn { animation: pop-in .7s cubic-bezier(.3, 1.4, .5, 1) .7s backwards; }
  .hero-actions .btn + .btn { animation-delay: .82s; }
  .quick-grid { animation: float-in 1s cubic-bezier(.2, .7, .2, 1) .9s backwards; }

  /* ---- Inner-page hero (on load) ---- */
  .page-hero .eyebrow { animation: track-in 1.1s ease .1s backwards; }
  .page-hero h1 { animation: clip-rise 1s cubic-bezier(.2, .7, .2, 1) .2s backwards; }
  .page-hero-rule { transform-origin: left; animation: grow-x .8s cubic-bezier(.6, 0, .2, 1) .6s backwards; }
  .page-hero .lead { animation: fade-in 1.1s ease .7s backwards; }
  .page-hero-fade { animation: wipe-in 1.5s cubic-bezier(.7, 0, .2, 1) .1s backwards; }
  .page-hero-fade img { animation: ken-burns 14s cubic-bezier(.2, .6, .3, 1) backwards; }

  /* ---- Ambient ---- */
  .intro::before,
  .services::before,
  .page-hero::before { animation: drift 14s ease-in-out infinite alternate; }
  .page-hero::after { animation: twinkle 3.2s ease-in-out infinite alternate; }
  .services::before { animation-duration: 18s; animation-direction: alternate-reverse; }
  .cta-inner,
  .book-card { background-size: 220% 220%; animation: gradient-shift 9s ease-in-out infinite alternate; }

  /* Buttons: light sweep on hover */
  .btn { position: relative; overflow: hidden; isolation: isolate; }
  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s ease;
    pointer-events: none;
  }
  .btn:hover::after { transform: translateX(120%); }

  .header-call:hover svg { animation: ring .7s ease; }

  /* ---- Scroll reveals ---- */
  .anim-ready [data-anim] {
    transition:
      opacity .8s cubic-bezier(.2, .7, .2, 1),
      transform .9s cubic-bezier(.2, .7, .2, 1),
      filter .9s ease,
      clip-path 1.1s cubic-bezier(.7, 0, .2, 1),
      letter-spacing 1.1s ease;
    transition-delay: var(--d, 0s);
  }
  .anim-ready [data-anim]:not(.is-in) { opacity: 0; }
  .anim-ready [data-anim="zoom"]:not(.is-in)  { transform: scale(.9); }
  .anim-ready [data-anim="left"]:not(.is-in)  { transform: translateX(-48px); }
  .anim-ready [data-anim="right"]:not(.is-in) { transform: translateX(48px); }
  .anim-ready [data-anim="blur"]:not(.is-in)  { filter: blur(14px); transform: scale(1.05); }
  .anim-ready [data-anim="track"]:not(.is-in) { letter-spacing: .6em; }
  .anim-ready [data-anim="grow"]:not(.is-in)  { transform: scaleX(0); }
  .anim-ready [data-anim="tilt"]:not(.is-in)  { transform: rotate(-10deg) scale(.85); }
  .anim-ready [data-anim="pop"] { transition-timing-function: cubic-bezier(.3, 1.5, .5, 1); }
  .anim-ready [data-anim="pop"]:not(.is-in)   { transform: scale(.6); }
  .anim-ready [data-anim="flip"] { transform-origin: 50% 0; }
  .anim-ready [data-anim="flip"]:not(.is-in)  { transform: perspective(900px) rotateX(-22deg) translateY(16px); }
  /* Wipe clips an inner wrapper (added by main.js) – clipping the observed element itself would hide it from IntersectionObserver */
  /* Tablets/phones: nothing starts off to the side – sideways reveals rise instead */
  @media (max-width: 960px) {
    .anim-ready [data-anim="left"]:not(.is-in),
    .anim-ready [data-anim="right"]:not(.is-in) { transform: translateY(24px); }
  }
  .anim-ready [data-anim="wipe"] .wipe-inner {
    display: inline-block;
    clip-path: inset(-15% -2% -15% 0);
    transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) var(--d, 0s);
  }
  .anim-ready [data-anim="wipe"]:not(.is-in) .wipe-inner { clip-path: inset(-15% 100% -15% 0); }

  /* Details that animate once their parent arrives */
  .anim-ready [data-anim] .service-icon,
  .anim-ready [data-anim] .team-avatar,
  .anim-ready [data-anim] .detail-icon {
    transition: transform .9s cubic-bezier(.3, 1.4, .5, 1) calc(var(--d, 0s) + .25s), background-color .3s, color .3s;
  }
  .anim-ready [data-anim]:not(.is-in) .service-icon { transform: scale(.3) rotate(-90deg); }
  .anim-ready [data-anim]:not(.is-in) .team-avatar,
  .anim-ready [data-anim]:not(.is-in) .detail-icon { transform: scale(0) rotate(-45deg); }

  .anim-ready [data-anim].review-card::before { transition: transform .7s cubic-bezier(.3, 1.5, .5, 1) calc(var(--d, 0s) + .3s); }
  .anim-ready [data-anim]:not(.is-in).review-card::before { transform: translate(-50%, -50%) scale(0); }

  .anim-ready [data-anim] h2::after { transition: transform .9s cubic-bezier(.6, 0, .2, 1) .35s; }
  .anim-ready [data-anim]:not(.is-in) h2::after { transform: scaleX(0); }

  /* Pink ring slides in behind Dr Beck's portrait */
  .anim-ready [data-anim].doctor-visual::before { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .35s; }
  .anim-ready [data-anim]:not(.is-in).doctor-visual::before { transform: translate(-22px, -22px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
