/* =========================================================================
   Visual layer (client feedback: more colour, photography and graphics).
   Brand palette taken from the logo: deep navy, clinic blue and the gold of
   the hands. Everything here is opt-in through block settings or scoped to
   the homepage (body.cil-home); pages without those settings are unchanged.
   ========================================================================= */

:root {
  --navy: #0d2747;
  --navy-2: #143a66;
  --sky: #eaf3fc;
  --sky-2: #f5f9fe;
  --gold: #f2b705;
  --gold-soft: #fff3c8;
  --radius-lg: 18px;
  --shadow-soft: 0 24px 60px -38px rgba(13, 39, 71, .45);
  --shadow-card: 0 18px 44px -30px rgba(13, 39, 71, .38);
}

/* ------------------------------------------------------------ bands -- */
.bg-sky {
  background:
    radial-gradient(1200px 420px at 100% 0%, rgba(47, 127, 216, .10), transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%);
}
.bg-navy {
  position: relative;
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(47, 127, 216, .30), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(242, 183, 5, .12), transparent 65%),
    var(--navy);
  color: rgba(255, 255, 255, .82);
}
.bg-navy :is(h1, h2, h3, h4, .display) { color: #fff; }
.bg-navy .eyebrow,
.bg-navy .caps { color: var(--gold); }
.bg-navy .lede,
.bg-navy .body-text p { color: rgba(255, 255, 255, .78); }
.bg-navy a:not(.btn) { color: #fff; }
.bg-navy .card.cil-info-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.bg-navy .card.cil-info-card p,
.bg-navy .card.cil-info-card .body-text p { color: rgba(255, 255, 255, .76); }
/* Plain lists in navy cards inherited the muted body colour and nearly vanished. */
.bg-navy .card.cil-info-card .body-text li { color: rgba(255, 255, 255, .76); }
.bg-navy .card.cil-info-card .body-text ul li::marker { color: var(--gold); }
.bg-navy .card.cil-info-card:hover { border-color: rgba(242, 183, 5, .55); }

/* ------------------------------------------------- photo age-group cards -- */
.card-group.has-media {
  padding-top: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border-color: rgba(13, 39, 71, .08);
  box-shadow: var(--shadow-card);
}
.card-group__media {
  position: relative;
  display: block;
  margin: 0 calc(-1 * clamp(24px, 2.4vw, 36px)) clamp(20px, 2vw, 26px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.card-group__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold) 100%);
}
.card-group__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.card-group.has-media .age {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-deep);
}
.card-group.has-media .price {
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--navy);
  font-size: 21px;
}
.card-group.has-media .go {
  justify-content: space-between;
  width: 100%;
  padding-top: 20px;
  margin-top: auto;
  border-top: 1px solid var(--line-2);
}
.card-group.has-media .go::after {
  content: "→";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-size: 17px;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.card-group.has-media:hover .go::after {
  background: var(--blue);
  color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .card-group.has-media:hover .card-group__media img { transform: scale(1.05); }
}

/* --------------------------------------------------- info-card icons -- */
.cil-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky) 0%, #d8e9fb 100%);
  color: var(--blue-deep);
}
.cil-info-card__icon svg { width: 26px; height: 26px; }
.bg-navy .cil-info-card__icon {
  background: rgba(242, 183, 5, .14);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(242, 183, 5, .35);
}

/* ------------------------------------------------ Google mark sizing -- */
.icon-google { display: inline-block; flex: 0 0 auto; }
/* Google logo beside review sources and Google Maps links. */
.cil-review-source { display: inline-flex; align-items: center; gap: 7px; }
.cil-review-source .icon-google { width: 16px; height: 16px; }
a[href*="google.com/maps"] .icon-google { width: 18px; height: 18px; margin-right: 9px; vertical-align: -3px; }
/* Navy text sections set in cards (Buried penis page). */
.cil-navy-card + .cil-navy-card { margin-top: clamp(20px, 2.6vw, 32px); }
.cil-navy-card :is(h2, h3).display { margin-top: 0; }
.hero-facts .hero-fact--google .icon-google {
  width: 18px;
  height: 18px;
  padding: 2px;
  margin-top: 0;
  border-radius: 50%;
  background: #fff;
  opacity: 1;
}
.cil-eyebrow-google { display: inline-flex; align-items: center; gap: 8px; }
.cil-eyebrow-google .icon-google { width: 16px; height: 16px; }
.rating-badge .score { display: inline-flex; align-items: center; gap: 10px; }
.rating-badge .score .icon-google { width: 26px; height: 26px; }

/* ------------------------------------------------------ trust strip -- */
.cil-trust.section-sm {
  background: linear-gradient(180deg, #fff 0%, var(--sky-2) 100%);
}
.cil-trust .grid.g-4 { gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.cil-trust .stat {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: clamp(22px, 2vw, 28px);
  background: #fff;
  border: 1px solid rgba(13, 39, 71, .08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.cil-trust .stat .stat-link { margin-top: auto; }
.cil-trust .stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue-deep);
}
.stat-icon svg { width: 24px; height: 24px; }
.stat--google .stat-icon { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.stat--google .stat-icon .icon-google { width: 26px; height: 26px; }
.stat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
}
.stat-link::after { content: "→"; transition: transform .25s var(--ease); }
.stat-link:hover::after { transform: translateX(3px); }
/* Official CQC "rated Good" widget. */
.cil-cqc-widget {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
}
.cil-cqc-widget img {
  display: block;
  width: 123px;
  height: auto;
}
/* Same colour as 4.9, 40+ and 6, slightly smaller so "Registered" stays inside the card. */
.cil-trust .stat--cqc .n {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  color: var(--blue-deep);
}
.cil-trust .stat--cqc .cil-cqc-widget {
  margin: 12px 0 0;
  align-self: flex-start;
}
body.cil-home .cil-home-reviews .cil-reviews-split--solo {
  display: block;
}
body.cil-home .cil-home-reviews .cil-reviews-split--solo > [data-reveal] {
  max-width: 40rem;
}

/* ------------------------------------------------- image-and-text split -- */
.split > .cil-split-copy > .cil-section-lede { margin-top: 1.15em; }
.split > .cil-split-copy > .wp-block-group:has(> .section-head) .section-head { margin-bottom: 0; }
.split > .cil-split-copy > .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.wp-block-cil-section .wrap > .split:has(> .cil-split-copy) { align-items: center; }
.split:has(> .cil-split-copy) .figure {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}
.split:has(> .cil-split-copy) .figure picture,
.split:has(> .cil-split-copy) .figure img,
.split:has(> .cil-split-copy) .cil-figure-slideshow__slide picture,
.split:has(> .cil-split-copy) .cil-figure-slideshow__slide img {
  border-radius: var(--radius-lg);
}
/* Homepage clinic intro: keep badge clear of slideshow dots. */
body.cil-home #clinic-introduction .cil-figure-slideshow figcaption {
  max-width: min(62%, 280px);
}
body.cil-home #clinic-introduction .cil-figure-slideshow__dots {
  left: auto;
  right: 14px;
  transform: none;
}
/* Caption as a floating badge on the photograph. */
.split:has(> .cil-split-copy) .figure figcaption {
  position: absolute;
  left: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  max-width: min(78%, 300px);
  margin: 0;
  padding: 12px 16px 12px 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 34px -20px rgba(13, 39, 71, .55);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.split:has(> .cil-split-copy) .figure figcaption::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
}
/* Contained photographs: stay inside .wrap so they align with content above/below
   (header chrome / section copy), instead of bleeding to the viewport edge. */
@media (min-width: 901px) {
  .split--bleed { column-gap: clamp(40px, 5vw, 80px); }
  .split--bleed > .figure:last-child,
  .split--bleed > .wp-block-cil-figure:last-child,
  .split--bleed.reverse > .figure:first-child,
  .split--bleed > .figure:first-child:not(:last-child) {
    margin-left: 0;
    margin-right: 0;
  }
  .split--bleed > .figure:last-child img,
  .split--bleed > .figure:last-child picture,
  .split--bleed > .figure:first-child:not(:last-child) img,
  .split--bleed > .figure:first-child:not(:last-child) picture {
    border-radius: var(--radius-lg);
  }
  .split--bleed .figure { aspect-ratio: 4 / 3.1; }
}

/* ------------------------------------------------------- footer social -- */
.footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: #fff;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.footer .footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.footer .footer-social a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* =========================================================================
   Homepage composition
   ========================================================================= */

/* Full-bleed photographs must never cause sideways scrolling (100vw includes the scrollbar). */
body.cil-home main { overflow-x: clip; }

/* Section headings: short gold-to-blue accent bar under the eyebrow. */
body.cil-home .section-head .eyebrow,
body.cil-home .cil-split-copy > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
body.cil-home .section-head .eyebrow::before,
body.cil-home .cil-split-copy > .eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

/* Hero: deeper, brand-tinted overlay so the copy reads strongly. */
body.cil-home .hero-media::after {
  background:
    linear-gradient(90deg, rgba(13, 39, 71, .92) 0%, rgba(13, 39, 71, .72) 42%, rgba(13, 39, 71, .25) 75%, rgba(13, 39, 71, .45) 100%),
    linear-gradient(180deg, transparent 60%, rgba(13, 39, 71, .55) 100%);
}

/* Patient cards: soft sky field behind the overlapping row. */
body.cil-home .groups::before {
  content: "";
  position: absolute;
  inset: 45% 0 -40px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--sky-2));
}

/* Clinic introduction: tighter vertical rhythm; title is H2 (section-head). */
body.cil-home #clinic-introduction {
  padding-block: clamp(40px, 4.5vw, 72px);
}
body.cil-home #clinic-introduction .cil-split-copy > .section-head {
  margin-bottom: 22px;
}

/* Clinic introduction: checklist as left-aligned tiles (8 items → 2×4 on desktop). */
body.cil-home #clinic-introduction .cil-checklist {
  max-width: none;
  justify-content: start;
  justify-items: stretch;
}
@media (min-width: 901px) {
  body.cil-home #clinic-introduction .cil-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.cil-home #clinic-introduction .cil-home-intro:has(> .cil-checklist) {
  max-width: none;
  margin-top: clamp(32px, 4vw, 52px);
}
body.cil-home #clinic-introduction .cil-checklist > li {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px -24px rgba(13, 39, 71, .5);
}
body.cil-home #clinic-introduction .cil-checklist > li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* "Next steps": numbered horizontal timeline with gold markers. */
body.cil-home section:has(> .wrap .steps) {
  background:
    radial-gradient(800px 360px at 100% 0%, rgba(242, 183, 5, .10), transparent 60%),
    #fff;
}
body.cil-home .steps {
  gap: clamp(16px, 2vw, 24px);
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
@media (min-width: 901px) {
  body.cil-home .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
  body.cil-home .steps::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 44px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
  }
}
body.cil-home .steps li {
  position: relative;
  padding: clamp(24px, 2.2vw, 30px);
  border: 1px solid rgba(13, 39, 71, .08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
body.cil-home .steps li::before {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(242, 183, 5, .5);
}
body.cil-home .steps h3 { font-size: 18px; color: var(--navy); }

/* Call-back section: sky field, lifted form card. */
body.cil-home section:has(> .wrap > .split.reverse > div > .card form),
body.cil-home section:has(> .wrap > .cil-callback-form-only > div > .card form) {
  background:
    radial-gradient(900px 420px at 0% 100%, rgba(47, 127, 216, .12), transparent 60%),
    linear-gradient(180deg, var(--sky-2), var(--sky));
}
body.cil-home .split.reverse > div > .card:has(form),
body.cil-home .cil-callback-form-only > div > .card:has(form) {
  border: 0;
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--blue);
  box-shadow: var(--shadow-soft);
}
body.cil-home .cil-callback-form-only {
  max-width: 560px;
  margin-inline: auto;
}

/* Location: rounded, shadowed photograph or Google Map. */
body.cil-home .section .split > .figure.ratio-5-4 {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
body.cil-home .cil-location-section {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(47, 127, 216, .10), transparent 55%),
    linear-gradient(180deg, var(--sky-2), #fff);
}
/* Book online uses the same .btn blue as the header CTA. */
body.cil-home .cil-location-map {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 183, 5, .28), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(47, 127, 216, .35), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, #143a66 45%, #1d5fa0 100%);
}
body.cil-home .cil-location-map__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
body.cil-home .cil-location-map__orbit {
  position: absolute;
  inset: -18%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(13, 39, 71, .12) 19% 19.5%, transparent 20% 34%, rgba(13, 39, 71, .16) 35% 35.5%, transparent 36% 52%, rgba(255, 255, 255, .08) 53% 53.4%, transparent 54%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, .04) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .04) 46px 47px);
  transform: none;
  opacity: 0;
  transition: transform 2.4s cubic-bezier(.16, 1, .3, 1), opacity 1.6s ease;
}
/* Scale a wrapper, never the iframe. A transform or filter on the Google
   Maps frame itself leaves the embed as a frozen bitmap. The settled map is
   the default, so it stays usable when JavaScript does not run. */
body.cil-home .cil-location-map__zoom {
  position: absolute;
  inset: 0;
  transform: none;
  transform-origin: 52% 48%;
  transition: transform 2.6s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
html:not(.no-js) body.cil-home .cil-location-map:not(.is-settled):not(.is-zooming) .cil-location-map__orbit {
  transform: scale(1.55);
  opacity: .9;
}
html:not(.no-js) body.cil-home .cil-location-map:not(.is-settled):not(.is-zooming) .cil-location-map__zoom {
  transform: scale(1.72);
}
body.cil-home .cil-location-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform: none;
  filter: none;
  pointer-events: auto;
}
html:not(.no-js) body.cil-home .cil-location-map:not(.is-settled) .cil-location-map__frame {
  pointer-events: none;
}
body.cil-home .cil-location-map__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 12%, rgba(13, 39, 71, .28) 42%, rgba(13, 39, 71, .72) 100%),
    linear-gradient(180deg, rgba(13, 39, 71, .35), transparent 30% 70%, rgba(13, 39, 71, .25));
  opacity: 0;
  transition: opacity 2s ease;
}
html:not(.no-js) body.cil-home .cil-location-map:not(.is-settled):not(.is-zooming) .cil-location-map__veil {
  opacity: 1;
}
body.cil-home .cil-location-map.is-settled .cil-location-map__orbit,
body.cil-home .cil-location-map.is-zooming .cil-location-map__orbit {
  transform: scale(1);
  opacity: 0;
}
body.cil-home .cil-location-map.is-zooming .cil-location-map__zoom {
  transform: scale(1);
  will-change: transform;
}
body.cil-home .cil-location-map.is-settled .cil-location-map__zoom {
  transform: none;
  transition: none;
  will-change: auto;
}
body.cil-home .cil-location-map.is-settled .cil-location-map__frame {
  pointer-events: auto;
}
body.cil-home .cil-location-map.is-settled .cil-location-map__veil,
body.cil-home .cil-location-map.is-zooming .cil-location-map__veil {
  opacity: 0;
}
body.cil-home .cil-location-map figcaption {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  body.cil-home .cil-location-map__orbit,
  body.cil-home .cil-location-map__zoom,
  body.cil-home .cil-location-map__frame,
  body.cil-home .cil-location-map__veil {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
  body.cil-home .cil-location-map__orbit,
  body.cil-home .cil-location-map__veil { opacity: 0 !important; }
  body.cil-home .cil-location-map__frame {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Reviews: sky band, gold stars, platform buttons, quotes and video cards. */
body.cil-home .cil-home-reviews {
  background:
    radial-gradient(1000px 420px at 100% 0%, rgba(242, 183, 5, .12), transparent 60%),
    linear-gradient(180deg, var(--sky), var(--sky-2));
  /* Tighter bottom so the gap before About our clinic is not oversized. */
  padding-block: clamp(48px, 5.5vw, 88px) clamp(28px, 3.2vw, 48px);
}
body.cil-home .cil-home-reviews .quote {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
body.cil-home .cil-home-reviews .stars { color: var(--gold); letter-spacing: 2px; }
body.cil-home .cil-home-reviews .stat {
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px -24px rgba(13, 39, 71, .45);
}
/* Checked-on note: smaller type between the rating heading and platform buttons. */
body.cil-home .cil-home-reviews .cil-reviews-note {
  margin: 10px 0 0;
  max-width: 38rem;
  font-size: clamp(12.5px, 1.15vw, 14px);
  line-height: 1.5;
  color: var(--muted);
}
body.cil-home .cil-home-reviews .cil-reviews-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(14px, 2vw, 20px);
  max-width: 40rem;
}
body.cil-home .cil-home-reviews .cil-reviews-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(13, 39, 71, .10);
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 12px 30px -24px rgba(13, 39, 71, .45);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.cil-home .cil-home-reviews .cil-reviews-platform:hover,
body.cil-home .cil-home-reviews .cil-reviews-platform:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 14px 32px -20px rgba(13, 39, 71, .5);
}
body.cil-home .cil-home-reviews .cil-reviews-platform:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
body.cil-home .cil-home-reviews .cil-reviews-platform__icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 28px;
  height: 28px;
}
body.cil-home .cil-home-reviews .cil-reviews-platform__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
body.cil-home .cil-home-reviews .cil-reviews-platform__label {
  flex: 1 1 auto;
  min-width: 0;
}
body.cil-home .cil-home-reviews .cil-reviews-actions {
  margin-top: clamp(16px, 2vw, 22px);
}
body.cil-home .cil-home-reviews .cil-reviews-videos {
  margin-top: clamp(24px, 3vw, 36px);
}
body.cil-home .cil-home-reviews .cil-reviews-videos__heading {
  margin: 0 0 clamp(16px, 2vw, 24px);
  color: var(--navy);
}
body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-cards,
body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-grid {
  margin: 0;
}
/* Full-width three columns; shorter portrait frames (was 9/16). */
body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-cards.g-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  max-width: none;
  width: 100%;
}
body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-facade--portrait {
  aspect-ratio: 3 / 4;
}
body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-tile__caption {
  padding: 10px 12px 12px;
  font-size: 14px;
}
@media (max-width: 900px) {
  body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-cards.g-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-cards.g-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-tile__caption {
    padding: 8px 6px 9px;
    font-size: 12px;
    line-height: 1.3;
  }
  body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-facade__play {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
  }
  body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-facade__play::after {
    border-width: 7px 0 7px 11px;
  }
}
@media (max-width: 560px) {
  body.cil-home .cil-home-reviews .cil-reviews-videos .cil-video-cards.g-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
body.cil-home .cil-home-reviews .cil-reviews-videos__cta {
  margin-top: clamp(14px, 1.8vw, 20px);
  margin-bottom: 0;
  display: flex;
  justify-content: flex-start;
}
body.cil-home .cil-home-reviews .cil-reviews-videos__cta .btn {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
}
body.cil-home .cil-home-reviews .cil-reviews-videos__cta .btn:hover,
body.cil-home .cil-home-reviews .cil-reviews-videos__cta .btn:focus {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #fff;
}
@media (max-width: 900px) {
  body.cil-home .cil-home-reviews .cil-reviews-platforms {
    grid-template-columns: minmax(0, 1fr);
    max-width: 28rem;
  }
}

/* Meet our practitioners: sky band + same About video player, homepage CTA. */
body.cil-home #meet-practitioners {
  padding-block: clamp(40px, 4.5vw, 72px);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(242, 183, 5, .10), transparent 55%),
    radial-gradient(1100px 480px at 0% 100%, rgba(47, 127, 216, .12), transparent 60%),
    linear-gradient(180deg, var(--sky-2), var(--sky));
}
body.cil-home #meet-practitioners .body-text > .wp-block-buttons {
  margin-bottom: clamp(8px, 1.5vw, 16px);
}
body.cil-home #meet-practitioners .cil-video-list {
  margin-top: clamp(20px, 3vw, 36px);
}
body.cil-home #meet-practitioners .cil-video-row {
  align-items: stretch;
  border-radius: var(--radius-lg);
  border-color: rgba(13, 39, 71, .08);
  box-shadow: var(--shadow-card);
  background: #fff;
}
body.cil-home #meet-practitioners .cil-video-row__text {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
body.cil-home #meet-practitioners .cil-video-row__media {
  display: flex;
  align-items: stretch;
}
body.cil-home #meet-practitioners .cil-video-facade {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
body.cil-home #meet-practitioners .cil-video-row__title {
  color: var(--navy);
}
/* Pin CTA to the bottom of the text column so it aligns with the video base. */
body.cil-home #meet-practitioners .cil-video-row__cta {
  margin-top: auto;
  padding-top: clamp(16px, 2vw, 28px);
}
body.cil-home #meet-practitioners .cil-video-row__cta .wp-block-button__link,
body.cil-home #meet-practitioners .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}
body.cil-home #meet-practitioners .cil-video-row__cta .wp-block-button__link:hover,
body.cil-home #meet-practitioners .cil-video-row__cta .wp-block-button__link:focus,
body.cil-home #meet-practitioners .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body.cil-home #meet-practitioners .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #fff;
}
@media (max-width: 760px) {
  body.cil-home #meet-practitioners .cil-video-row {
    grid-template-columns: 1fr;
  }
}

/* Our clinics: navy-capped location cards. */
body.cil-home #our-clinics .cil-info-card {
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--navy);
  box-shadow: var(--shadow-card);
}
body.cil-home #our-clinics .cil-info-card .eyebrow { color: var(--blue); }

/* Call-to-action band: navy with the clinic's logo mark. */
.cta-band:has(.cil-cta-callback-card) {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(47, 127, 216, .35), transparent 60%),
    radial-gradient(600px 360px at 0% 100%, rgba(242, 183, 5, .14), transparent 65%),
    var(--navy);
  color: rgba(255, 255, 255, .82);
}
.cta-band:has(.cil-cta-callback-card)::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 360px;
  height: 230px;
  background: var(--cil-logo-mark, url("../images/home/logo-mark.webp")) center / contain no-repeat;
  opacity: .10;
  pointer-events: none;
}
.cta-band:has(.cil-cta-callback-card) .wrap { position: relative; }
.cta-band:has(.cil-cta-callback-card) h2 { color: #fff; }
.cta-band:has(.cil-cta-callback-card) .eyebrow { color: var(--gold); }
.cta-band:has(.cil-cta-callback-card) .lede { color: rgba(255, 255, 255, .8); }
.cta-band:has(.cil-cta-callback-card) .btn:not(.btn-ghost) { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.cta-band:has(.cil-cta-callback-card) .btn:not(.btn-ghost):hover { background: #ffd23f; border-color: #ffd23f; }
.cta-band:has(.cil-cta-callback-card) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band:has(.cil-cta-callback-card) .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.cta-band:has(.cil-cta-callback-card) .card {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.cta-band:has(.cil-cta-callback-card) .card a { color: var(--blue-deep); }
.cta-band:has(.cil-cta-callback-card) .cta-band__lede,
.cta-band:has(.cil-cta-callback-card) .cta-band__lede p {
  color: rgba(255, 255, 255, .84);
  margin: 0 0 0.85em;
}
.cta-band:has(.cil-cta-callback-card) .cta-band__lede p:last-child { margin-bottom: 0; }
/* Inline action links in the intro sentence stay gold. */
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a:hover,
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a:focus {
  color: #ffd23f;
}
/* Contact rows: one clear pattern — gold icon, white label + value. */
.cta-band:has(.cil-cta-callback-card) .cta-band__lede .cil-cta-contacts {
  display: grid;
  gap: 12px;
  margin-top: 1.15em;
}
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  line-height: 1.35;
}
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact:hover,
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact .cil-cta-contact__label {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  min-width: 5.5rem;
}
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact::before {
  content: "";
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  background: var(--gold);
}
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact--email::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 7 9-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 7 9-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact--whatsapp::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.5 14.4c-.3-.2-1.7-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.7 1-.9 1.2-.2.2-.3.2-.6.1a8 8 0 0 1-2.4-1.5 9 9 0 0 1-1.6-2c-.2-.3 0-.5.1-.6l.5-.5.3-.5v-.5l-.9-2.2c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.2.2 2.1 3.3 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.7-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.2-.3-.3-.6-.4zM12 2a10 10 0 0 0-8.5 15.2L2 22l4.9-1.4A10 10 0 1 0 12 2zm0 18.3a8.3 8.3 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.3 8.3 0 1 1 12 20.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.5 14.4c-.3-.2-1.7-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.7 1-.9 1.2-.2.2-.3.2-.6.1a8 8 0 0 1-2.4-1.5 9 9 0 0 1-1.6-2c-.2-.3 0-.5.1-.6l.5-.5.3-.5v-.5l-.9-2.2c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.2.2 2.1 3.3 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.7-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.2-.3-.3-.6-.4zM12 2a10 10 0 0 0-8.5 15.2L2 22l4.9-1.4A10 10 0 1 0 12 2zm0 18.3a8.3 8.3 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.3 8.3 0 1 1 12 20.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta-band:has(.cil-cta-callback-card) .cta-band--with-callback {
  --cil-cta-card-pad: clamp(22px, 2.8vw, 32px);
  --cil-cta-card-gold: 5px;
}
.cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card {
  background: #fff;
  color: var(--ink);
  border-top: var(--cil-cta-card-gold) solid var(--gold);
  padding: var(--cil-cta-card-pad);
}
@media (min-width: 901px) {
  .cta-band:has(.cil-cta-callback-card) .cta-band--with-callback {
    align-items: start;
  }
  .cta-band:has(.cil-cta-callback-card) .cta-band--with-callback > :first-child {
    padding-top: calc(var(--cil-cta-card-gold) + var(--cil-cta-card-pad));
  }
}
.cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .eyebrow {
  color: var(--blue);
}
.cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .display {
  color: var(--navy);
}
.cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .form-grid .btn {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .form-grid .btn:hover,
.cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .form-grid .btn:focus {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: #fff;
}
@media (max-width: 900px) {
  .cta-band:has(.cil-cta-callback-card) .cta-band--with-callback {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
  }
  .cta-band:has(.cil-cta-callback-card) .cta-band--with-callback > * {
    min-width: 0;
    max-width: 100%;
  }
  .cta-band:has(.cil-cta-callback-card) .cta-band__lede,
  .cta-band:has(.cil-cta-callback-card) .cta-band__lede p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .cta-band:has(.cil-cta-callback-card) .cta-band__lede .cil-cta-contacts {
    gap: 14px;
    width: 100%;
  }
  .cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact .cil-cta-contact__label {
    min-width: 0;
  }
  .cta-band:has(.cil-cta-callback-card) .btn-row {
    width: 100%;
  }
  .cta-band:has(.cil-cta-callback-card) .btn-row .btn {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
  .cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(18px, 4.5vw, 26px);
  }
  .cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
  }
  .cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .consent span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .cta-band:has(.cil-cta-callback-card) .cil-cta-callback-card .form-grid .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cta-band:has(.cil-cta-callback-card) .display.d-2 {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-left: calc(1.2em + 10px);
    position: relative;
  }
  .cta-band:has(.cil-cta-callback-card) .cta-band__lede a.cil-cta-contact::before {
    position: absolute;
    left: 0;
    top: 0.15em;
  }
}

/* FAQ: card-like accordion rows. */
body.cil-home .faq details {
  margin-bottom: 10px;
  padding-inline: 20px;
  border: 1px solid rgba(13, 39, 71, .08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px -24px rgba(13, 39, 71, .5);
}
body.cil-home .faq details[open] { border-color: rgba(29, 95, 160, .35); }

/* Medical-reason cards: gold accent rule. */
body.cil-home .wp-block-cil-section .split--bleed ~ .grid .cil-info-card {
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-card);
}

@media (max-width: 900px) {
  .split:has(> .cil-split-copy) .figure figcaption { position: static; margin-top: 12px; max-width: none; box-shadow: none; padding: 10px 14px 10px 44px; position: relative; }
}

/* Tablet: keep homepage age-group + 3-up info cards on one row.
   Global .g-3 drops to 2 columns below 900px; restore 3 columns on the
   homepage from 700px up so 768 / 820 / 1024 stay a single level.
   Also cancel the shared "centre leftover third card" tablet rules. */
@media (max-width: 900px) and (min-width: 700px) {
  body.cil-home .grid.g-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 18px);
  }

  /* Beat shared tablet leftover-centering (higher specificity than
     .grid.g-3 > .cil-info-card:last-child:nth-child(odd):not(:first-child)). */
  body.cil-home .grid.g-3 > .card-group:last-child:nth-child(odd):not(:first-child),
  body.cil-home .grid.g-3 > .cil-info-card:last-child:nth-child(odd):not(:first-child),
  body.cil-home .grid.g-3 > .card:last-child:nth-child(odd):not(:first-child),
  body.cil-home .grid.g-3.cil-info-cards-grid > .card:last-child:nth-child(odd):not(:first-child),
  body.cil-home .grid.g-3:has(> .card-group:nth-child(3):last-child) > .card-group:last-child,
  body.cil-home .grid.g-3 > .card-group,
  body.cil-home .grid.g-3 > .cil-info-card,
  body.cil-home .grid.g-3 > .card,
  body.cil-home .grid.g-3.cil-info-cards-grid > * {
    grid-column: auto;
    width: auto;
    max-width: none;
    justify-self: stretch;
    margin-inline: 0;
  }

  body.cil-home .card-group {
    padding: clamp(14px, 1.8vw, 22px);
  }
  body.cil-home .card-group.has-media {
    padding-top: 0;
  }
  body.cil-home .card-group.has-media .card-group__media {
    margin-inline: calc(-1 * clamp(14px, 1.8vw, 22px));
    margin-bottom: 12px;
  }
  body.cil-home .card-group .price { font-size: clamp(17px, 2vw, 21px); }
  body.cil-home .card-group p { font-size: 13.5px; line-height: 1.55; }
  body.cil-home .card-group .go { padding-top: 14px; font-size: 13.5px; }
  body.cil-home .card-group.has-media .go::after {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  body.cil-home .card-group .display.d-3 {
    font-size: clamp(17px, 2.1vw, 22px);
  }

  body.cil-home .cil-info-card {
    padding: clamp(14px, 1.8vw, 22px);
  }
  body.cil-home .cil-info-card .display.d-3 {
    font-size: clamp(16px, 2vw, 20px);
  }
  body.cil-home .cil-info-card .body-text,
  body.cil-home .cil-info-card .body-text p {
    font-size: 13.5px;
    line-height: 1.5;
  }
}
