/* ───────────────────────────────────────────────────────────
   Birmingham Men's Health — front-end site components
   Built on tokens.css, on top of Foundation 6 (XY grid).
   ─────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.bmh {
  font-family: var(--bmh-body);
  color: var(--bmh-ink);
  background: #fff;
  margin: 0;
  line-height: 1.6;
}

/* Skip-to-content link — visible only when focused (keyboard users) */
.skip-link { position: absolute; left: .5rem; top: -3rem; z-index: 1000;
  background: var(--bmh-forest); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 0; }

/* Override Foundation's own container (default 75rem/1200px). With --bmh-max: 100%
   the content runs full width, gutters scaling from 1.1rem on phones to 3.5rem on
   large screens. Long prose blocks are capped to --bmh-measure so text stays readable. */
.grid-container { max-width: var(--bmh-max);
  padding-left: clamp(1.1rem, 4vw, 3.5rem); padding-right: clamp(1.1rem, 4vw, 3.5rem); }
.section-head p, .hero-sub { max-width: var(--bmh-measure); }

/* ─── Type ─── */
.bmh h1, .bmh h2, .bmh h3 { font-family: var(--bmh-head); color: var(--bmh-forest); margin: 0; line-height: 1.14; }
.bmh h1 { font-size: 2rem; font-weight: 700; }
.bmh h2 { font-size: 1.45rem; font-weight: 700; }
.bmh h3 { font-size: 1rem; font-weight: 600; }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--bmh-clay-text); }
.lead { font-size: 1rem; color: var(--bmh-ink-soft); }

/* ─── Section rhythm ─── */
.section { padding: 2.4rem 0 .6rem; }
.section-head { margin-bottom: 1.1rem; }
.section-head h2 { margin: .4rem 0 .3rem; }
.section-head p { margin: 0; color: var(--bmh-ink-soft); font-size: .95rem; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--bmh-body);
       font-size: .95rem; font-weight: 500; padding: .5rem 1.35rem; border-radius: var(--bmh-radius);
       text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: filter .15s, background .15s; }
.btn i { font-size: 1.15rem; }
.btn-clay   { background: var(--bmh-clay); color: var(--bmh-clay-ink); }
.btn-clay:hover { filter: brightness(1.05); color: var(--bmh-clay-ink); }
.btn-forest { background: var(--bmh-forest); color: var(--bmh-sand); }
.btn-forest:hover { background: var(--bmh-forest-2); color: var(--bmh-sand); }
.btn-ghost  { background: transparent; color: var(--bmh-forest); border-color: var(--bmh-forest); }
.btn-ghost:hover { background: var(--bmh-forest); color: var(--bmh-sand); }

/* ─── Notice bar + header ─── */
.notice-bar { background: var(--bmh-forest); color: var(--bmh-ink-on-forest); font-size: .8rem; }
.notice-bar .grid-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; padding-top: .42rem; padding-bottom: .42rem; }
.notice-bar i { color: var(--bmh-clay-soft); vertical-align: -2px; }
.notice-bar .nb-strap { font-weight: 500; }
.notice-bar .nb-contact { display: inline-flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.notice-bar .loc { color: var(--bmh-ink-on-forest); }
.notice-bar .tel { color: var(--bmh-sand); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }

.site-header { border-bottom: 1px solid var(--bmh-card-line); }
.site-header .grid-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; }
/* Logo lockup (option 4b): BIRMINGHAM / MEN'S HEALTH / PHYSIOTHERAPY. The outer lines
   are letter-spread by bmh_logo_spread() to match the name's width exactly. */
.site-header .logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; font-family: var(--bmh-head); }
.site-header .logo .logo-top,
.site-header .logo .logo-sub { display: flex; justify-content: space-between; font-weight: 700; font-size: .88rem; color: var(--bmh-forest); }
.site-header .logo .logo-name { font-weight: 700; font-size: 1.8rem; letter-spacing: .01em; text-transform: uppercase;
  color: var(--bmh-clay-text); white-space: nowrap; margin: .34rem 0; }
.site-nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--bmh-ink); text-decoration: none; font-size: .9rem; }
.site-nav a:hover { color: var(--bmh-clay-text); }
.site-nav a.tel { display: inline-flex; align-items: center; gap: .35rem; color: var(--bmh-forest); font-weight: 600; }
.site-nav a.tel i { color: var(--bmh-clay-text); font-size: 1.05rem; }
.site-nav a.book { background: var(--bmh-forest); color: var(--bmh-sand); font-weight: 600; padding: .26rem 1.05rem; line-height: 1.1; border-radius: 6px; }
.site-nav a.book:hover { background: var(--bmh-forest-2); color: var(--bmh-sand); }
.nav-toggle, .nav-close, .nav-tel, .nav-scrim { display: none; }
@media screen and (max-width: 47.9375em) {
  /* Tablet/phone: logo centred on its own. The menu is a small tab fixed to the right edge
     (in the spirit of OutsideLeft's) that opens the slide-in panel — JS in site-footer.php. */
  .site-header .grid-container { justify-content: center; padding-top: .75rem; padding-bottom: .75rem; }
  .site-header .logo .logo-name { font-size: 1.55rem; margin: .28rem 0; }
  .site-header .logo .logo-top,
  .site-header .logo .logo-sub { font-size: .76rem; }
  .nav-toggle { display: grid; place-items: center; position: fixed; top: 1.1rem; right: 0; z-index: 900;
    width: 2.4rem; height: 1.9rem; padding: 0; cursor: pointer; border: 0; border-radius: 4px 0 0 4px;
    background: var(--bmh-forest); color: var(--bmh-sand); font-size: 1.15rem; line-height: 1; }
  .nav-toggle:hover, .nav-toggle:focus-visible { background: var(--bmh-forest-2); }

  /* The slide-in panel */
  .site-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; width: min(84vw, 20rem);
    display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    padding: 4.2rem 1.4rem 1.6rem; background: #fff; box-shadow: -24px 0 50px -24px rgba(18,34,28,.5);
    transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
  .site-nav a { padding: .95rem .1rem; font-size: 1.1rem; color: var(--bmh-ink); border-bottom: 1px solid var(--bmh-card-line); }
  .site-nav a.book { display: flex; justify-content: center; margin-top: 1.3rem; padding: .8rem 1rem; font-size: 1rem;
    border-bottom: 0; border-radius: 8px; }
  .site-nav .nav-tel { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    margin-top: .5rem; border-bottom: 0; color: var(--bmh-forest); font-weight: 600; font-size: 1rem; }
  .nav-close { display: grid; place-items: center; position: absolute; top: .9rem; right: 1rem; width: 2.6rem; height: 2.6rem;
    padding: 0; cursor: pointer; border: 1px solid var(--bmh-card-line); border-radius: 8px; background: #fff;
    color: var(--bmh-forest); font-size: 1.4rem; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(18,34,28,.5);
    opacity: 0; pointer-events: none; transition: opacity .28s ease; }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .site-nav, .nav-scrim { transition: none !important; } }

/* ─── Hero (full-bleed photographic) ─── */
.hero-full { position: relative; min-height: min(calc(54vh + 178px), 820px); display: flex; flex-direction: column; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: var(--bmh-forest); }
/* Background image layer(s). Add more .hero-bg divs + .js-crossfade on .hero-media to slideshow photos. */
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  background-repeat: no-repeat; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-bg.is-active { opacity: 1; }
/* Phones/tablets show only a narrow strip of each slide; nudge it right so the person (who sits
   right of centre in our slides) stays fully in frame. Keeps each slide's own vertical framing. */
@media screen and (max-width: 47.9375em) { .hero-bg { background-position-x: 57% !important; } }
/* Forest wash: strong on the left where the text sits, clearing to the right */
.hero-overlay { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24,45,38,.68) 0%, rgba(24,45,38,.42) 40%, rgba(24,45,38,.12) 70%, rgba(24,45,38,0) 100%),
    linear-gradient(0deg, rgba(24,45,38,.38) 0%, rgba(24,45,38,0) 45%); }
/* The text fills the space above the action bar, centred vertically. The bar is in the normal
   flow (not overlaid), so the two can never collide — on any phone, either orientation. */
.hero-content { position: relative; z-index: 2; width: 100%; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 2.2rem; padding-bottom: 2rem; color: #fff; }
.eyebrow-light { color: var(--bmh-clay-soft); }
/* Hero eyebrow now runs to two lines — give it room to breathe above the rotator */
.hero-content .eyebrow-light { display: block; line-height: 1.5; margin-bottom: .15rem; }

/* Melting message rotator — messages grid-stacked in one cell, so the box
   auto-sizes to the tallest message and never overlaps the line below. */
.hero-rotator { display: grid; margin: .55rem 0 1rem; max-width: 52rem; }
.hero-msg { grid-area: 1 / 1; opacity: 0; transition: opacity 1.1s ease-in-out; pointer-events: none; }
.hero-msg.is-active { opacity: 1; pointer-events: auto; }
.hero-msg h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700;
  line-height: 1.04; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0,0,0,.35); margin: 0; }
.hero-msg .intro { display: block; font-family: var(--bmh-body); font-weight: 500;
  font-size: .95rem; letter-spacing: .02em; text-transform: none;
  color: var(--bmh-clay-soft); margin-bottom: .35rem; text-shadow: none; }

.hero-sub { font-size: 1.06rem; font-weight: 300; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 44rem; margin: 0; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--bmh-forest); }
.stars { color: var(--bmh-clay-soft); letter-spacing: 1px; }

/* Darkened action footer over the bottom of the hero image */
.hero-actionbar { position: relative; z-index: 3;
  background: linear-gradient(0deg, rgba(18,34,28,.94) 0%, rgba(18,34,28,.55) 100%); }
.hero-actionbar-inner { padding-top: .9rem; padding-bottom: .9rem;
  display: flex; align-items: center; justify-content: space-between; gap: .9rem 1.4rem; flex-wrap: wrap; }
.hero-rating { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.hero-rating .stars { font-size: 1.1rem; flex: none; }
.hero-rating-txt { display: flex; flex-direction: column; line-height: 1.28; }
.hero-rating-txt strong { color: #fff; font-weight: 600; font-size: .92rem; }
.hero-rating-txt span { color: rgba(255,255,255,.8); font-size: .82rem; }
/* Clickable badge → jumps to the on-page reviews. Chevron + hover cue it. */
.hero-rating .ti { font-size: .85em; opacity: .7; vertical-align: -1px; transition: transform .15s, opacity .15s; }
.hero-rating:hover .hero-rating-txt strong { text-decoration: underline; text-underline-offset: 2px; }
.hero-rating:hover .ti { transform: translateX(3px); opacity: 1; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.lbl-short { display: none; }
.cond-mob { display: none; }
.hero-below { display: none; }
/* Phones/small tablets (Gerard, 2026-10-07): fewer moving parts over the photo. Hide the eyebrow,
   the intro paragraph and the reviews line; stack the condition names one word per line so they
   sit in a narrow column at the left instead of across the image. */
@media screen and (max-width: 47.9375em) {
  /* $hero_mobile in index.php: 'hidden' and 'below' take the text off the photo; 'small' shrinks it */
  .hero-m-hidden .hero-content .eyebrow-light, .hero-m-hidden .hero-sub, .hero-m-hidden .hero-rating,
  .hero-m-below .hero-content .eyebrow-light, .hero-m-below .hero-sub, .hero-m-below .hero-rating { display: none; }
  .hero-m-small .hero-content .eyebrow-light { font-size: .68rem; margin-bottom: .1rem; }
  .hero-m-small .hero-sub { font-size: .84rem; line-height: 1.45; max-width: 15rem; }
  .hero-m-small .hero-rating .stars { font-size: .9rem; }
  .hero-m-small .hero-rating-txt strong { font-size: .8rem; }
  .hero-m-small .hero-rating-txt span { display: none; }
  .hero-below { display: block; background: var(--bmh-sand); padding: .9rem 0 1rem; }
  .hero-below .hb-rating { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600;
    color: var(--bmh-forest); text-decoration: none; }
  .hero-below .hb-rating .stars { color: var(--bmh-clay); font-size: .95rem; }
  .hero-below .hb-eyebrow { margin: .55rem 0 .15rem; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
    font-weight: 500; color: var(--bmh-clay-text); }
  .hero-below .hb-text { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--bmh-ink-soft); }
  .cond-desk { display: none; }
  .cond-mob { display: inline; }
  .hero-msg h1 { line-height: 1.02; }
}

@media screen and (max-width: 39.9375em) {
  .hero-full { min-height: 48vh; max-height: none; }
  .hero-actionbar-inner { justify-content: flex-start; }
  .hero-content { padding-top: 1.8rem; padding-bottom: 1.6rem; }
  .hero-sub { font-size: .95rem; }
  /* Hero buttons side by side on phones, with shorter labels so they never wrap */
  .hero-actions { width: 100%; flex-wrap: nowrap; gap: .5rem; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; white-space: nowrap; font-size: .86rem;
    padding: .55rem .55rem; gap: .35rem; }
  .hero-actions .btn i { font-size: 1rem; }
  .hero-actions .lbl-full { display: none; }
  .hero-actions .lbl-short { display: inline; }
  /* Phones: the logo already says Physiotherapy — drop the long strapline, keep location + phone on one line */
  .notice-bar .nb-strap { display: none; }
  .notice-bar .nb-contact { width: 100%; justify-content: space-between; }
}

/* ─── Stat cards ─── */
.stat { background: var(--bmh-forest); border-radius: var(--bmh-radius-lg); padding: .62rem 1rem; height: 100%; }
.stat .n { font-family: var(--bmh-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--bmh-sand); }
.stat .l { font-size: .76rem; color: var(--bmh-ink-on-forest-mute); }

/* ─── Tiles (conditions / value props / steps / team) ─── */
.tile { background: var(--bmh-card); border: .5px solid var(--bmh-card-line); border-radius: var(--bmh-radius-lg);
        padding: 1.1rem; height: 100%; display: flex; flex-direction: column; gap: .65rem; text-decoration: none; }
a.tile:hover { border-color: var(--bmh-clay-text); }
.tico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex: none; }
.tico.clay   { background: var(--bmh-tint-clay);   color: var(--bmh-tint-clay-ink); }
.tico.forest { background: var(--bmh-tint-forest); color: var(--bmh-tint-forest-ink); }
.tico.sage   { background: var(--bmh-tint-sage);   color: var(--bmh-tint-sage-ink); }
/* Condition tile — image fills the whole tile (Option 3), forest scrim, white
   text overlaid. Image is washed to forest so the (blue) stock reads on-brand.
   No image → a solid forest tile with the brand icon. */
.tile-cover { position: relative; border-radius: var(--bmh-radius-lg); overflow: hidden;
              aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: flex-end;
              background: var(--bmh-forest); border: .5px solid var(--bmh-card-line);
              text-decoration: none; height: 100%; }
.tile-cover .tcover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                      /* natural colour, gently punched — brighter/fresher (was a grey forest wash) */
                      filter: saturate(1.06) contrast(1.02); opacity: 1;
                      transition: transform .3s ease; }
a.tile-cover:hover .tcover { transform: scale(1.03); }
.tile-cover .tscrim { position: absolute; inset: 0;
                      /* scrim held at the bottom for white-text legibility, clears by mid-tile so the image stays bright */
                      background: linear-gradient(to top, rgba(24,45,38,.9) 4%, rgba(24,45,38,.42) 36%, rgba(24,45,38,0) 66%); }
.tile-cover .tcontent { position: relative; z-index: 2; padding: 1.1rem; display: flex; flex-direction: column; gap: .38rem; }
.tile-cover .tico { align-self: flex-start; margin-bottom: .25rem; }
.tile-cover .tt { font-family: var(--bmh-head); font-weight: 700; color: #fff; text-transform: uppercase;
                  font-size: clamp(1.2rem, 1.5vw, 1.45rem); line-height: 1.14; letter-spacing: .01em; }
.tile-cover .td { font-size: .96rem; color: var(--bmh-ink-on-forest); line-height: 1.5; }
.tile-cover .arrow { font-size: .8rem; color: var(--bmh-clay-soft); font-weight: 500;
                     display: inline-flex; align-items: center; gap: .25rem; margin-top: .1rem; }
a.tile-cover:hover { border-color: var(--bmh-clay-text); box-shadow: 0 16px 34px -24px rgba(37,78,66,.5); }
a.tile-cover:hover .tcover { opacity: 1; }
.tile .tt { font-family: var(--bmh-head); font-weight: 600; font-size: .98rem; color: var(--bmh-forest); line-height: 1.25; }
.tile .td { font-size: .84rem; color: var(--bmh-ink-soft); }
.tile .arrow { font-size: .8rem; color: var(--bmh-clay-text); font-weight: 500; margin-top: auto; display: inline-flex; align-items: center; gap: .25rem; }
.tile .step-n { font-family: var(--bmh-head); font-weight: 700; font-size: 1.3rem; color: var(--bmh-clay-text); }

/* Subtle per-section tile blends — lift the tiles off the white page.
   "What we treat" = warm sand blend; "Why men choose us" = cooler sage blend. */
#conditions .tile { background: linear-gradient(180deg, #fff 0%, var(--bmh-sand) 100%); }
#conditions a.tile:hover { border-color: var(--bmh-clay-text); box-shadow: 0 16px 34px -24px rgba(37,78,66,.42); }
#why .tile { background: linear-gradient(180deg, #fff 0%, #EDF1EC 100%); }
/* "Your first visit" steps — a warmer clay blend for a touch more vibrancy,
   echoing the clay step numbers. */
#first-visit .tile { background: linear-gradient(180deg, #fff 0%, #F3E6DA 100%); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--bmh-head); font-weight: 600; }
.avatar.forest { background: var(--bmh-forest); color: var(--bmh-sand); }
.avatar.sage   { background: var(--bmh-sage);   color: #22201c; }
.avatar.clay   { background: var(--bmh-clay);   color: var(--bmh-clay-ink); }

/* ─── Feature band (forest) ─── */
.feature { background: var(--bmh-forest); border-radius: var(--bmh-radius-xl); position: relative; overflow: hidden; padding: 2rem 1.8rem; }
.feature .blob { position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%; background: var(--bmh-forest-2); }
.feature .inner { position: relative; max-width: 38rem; }
.feature .eyebrow { color: var(--bmh-clay-soft); }
.feature h2 { color: var(--bmh-sand); margin: .5rem 0 .6rem; }
.feature p { color: var(--bmh-ink-on-forest); font-size: .95rem; margin: 0 0 1.1rem; }
/* Transparent machine cutout: anchored bottom-right, bleeds out of the box and
   is clipped by .feature's overflow:hidden. Text stays clear (.inner caps at 38rem).
   Hidden on narrow screens where it would crowd the copy. */
.feature-machine { position: absolute; right: 0; top: 0; height: 120%; width: auto; max-width: 52%;
  object-fit: contain; object-position: top right; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 62%, transparent 100%);
          mask-image: linear-gradient(to left, #000 62%, transparent 100%); }
.feature .inner { position: relative; z-index: 1; }
@media screen and (max-width: 47.9375em) { .feature-machine { display: none; } }

/* ── Post-Prostatectomy MOT home band ─────────────────────────────────────── */
.mot-feature { padding: 2.4rem 2rem; }
.mot-feature .inner { max-width: 47rem; }
/* Recovering-man photo — right-aligned, washed into the forest, dissolving toward the text */
.mot-photo { position: absolute; right: 0; top: 0; bottom: 0; height: 100%; width: min(48%, 500px);
  object-fit: cover; object-position: 92% top; z-index: 0;
  filter: grayscale(1) contrast(1.03); mix-blend-mode: luminosity; opacity: .85;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 96%);
          mask-image: linear-gradient(to left, #000 40%, transparent 96%); }
.mot-feature.has-photo .inner { max-width: min(60%, 40rem); }
@media screen and (max-width: 47.9375em) {
  .mot-photo { display: none; }
  .mot-feature.has-photo .inner { max-width: 47rem; }
}
.mot-tag { font-family: var(--bmh-head); font-weight: 600; color: var(--bmh-sand);
           font-size: 1.18rem; line-height: 1.2; margin: .15rem 0 .7rem; }
.mot-hooks { list-style: none; margin: .2rem 0 1.15rem; padding: 0; display: grid; gap: .35rem; }
.mot-hooks li { display: flex; align-items: flex-start; gap: .5rem;
                color: var(--bmh-ink-on-forest); font-size: .92rem; }
.mot-hooks li i { color: var(--bmh-clay-soft); margin-top: .12rem; flex: none; }
.mot-included { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.35rem; }
.mot-included .mi { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem;
                    font-weight: 500; color: var(--bmh-sand); background: rgba(255,255,255,.08);
                    border: .5px solid rgba(255,255,255,.16); padding: .4rem .68rem; border-radius: 999px; }
.mot-included .mi i { color: var(--bmh-clay-soft); font-size: 1rem; }
.mot-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ── Clinical lead (Gerard) — light, image + bio side by side ──────────────── */
.leader { display: grid; grid-template-columns: minmax(240px, .82fr) 1.18fr; gap: 2.4rem; align-items: center;
          background: #fff; border: 1px solid var(--bmh-card-line); border-radius: var(--bmh-radius-xl);
          padding: 1.8rem; box-shadow: 0 22px 48px -34px rgba(37,78,66,.4); }
.leader-photo { border-radius: var(--bmh-radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bmh-sand); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.leader-body h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; color: var(--bmh-forest);
                  letter-spacing: -.015em; line-height: 1.12; margin: .35rem 0 .3rem; }
.leader-role { color: var(--bmh-clay-text); font-weight: 600; font-family: var(--bmh-head); font-size: .95rem; margin: 0 0 .9rem; }
.leader-para { color: var(--bmh-ink); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1.3rem; max-width: 40rem; }
@media (max-width: 820px) {
  .leader { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.4rem; }
  .leader-photo { aspect-ratio: 4 / 3; max-width: 420px; }
}

/* ─── Reviews ─── */
.review { background: var(--bmh-sand); border-radius: var(--bmh-radius-lg); padding: 1.2rem; height: 100%; }
.review .stars { font-size: .85rem; }
.review q { display: block; font-family: var(--bmh-head); font-size: 1rem; line-height: 1.5; color: var(--bmh-forest); margin: .5rem 0 .7rem; quotes: none; }
.review .by { font-size: .82rem; color: var(--bmh-ink-soft); }
/* Patient stories: two side-by-side on desktop, swipe sideways through more on small screens */
.review-scroll { display: flex; align-items: stretch; gap: 1rem; overflow-x: auto;
                 scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.review-scroll .review { flex: 0 0 calc(50% - .5rem); scroll-snap-align: start; }
.review-scroll::-webkit-scrollbar { height: 8px; }
.review-scroll::-webkit-scrollbar-thumb { background: var(--bmh-sage); border-radius: 20px; }
.review-scroll::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 640px) { .review-scroll .review { flex-basis: 82vw; } }

/* ─── Final CTA band (clay) ─── */
.cta-band { background: var(--bmh-clay); border-radius: var(--bmh-radius-xl); padding: 2.2rem 1.6rem; text-align: center; }
.cta-band h2 { color: var(--bmh-clay-ink); }
.cta-band p { color: #5A3113; font-size: .98rem; max-width: 34rem; margin: .5rem auto 1.2rem; }

/* ─── Footer ─── */
.site-footer { background: var(--bmh-forest); color: var(--bmh-ink-on-forest); margin-top: 3rem; padding: 2.6rem 0 1.5rem; font-size: .88rem; }
.site-footer a { color: var(--bmh-ink-on-forest); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Global footer navigation */
.foot-top { display: grid; grid-template-columns: 1.35fr 2fr; gap: 2.6rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--bmh-forest-line); }
.foot-logo { display: inline-flex; flex-direction: column; line-height: 1; font-family: var(--bmh-head); text-decoration: none; }
.foot-logo .logo-top,
.foot-logo .logo-sub { display: flex; justify-content: space-between; font-weight: 700; font-size: .72rem; color: rgba(255,255,255,.85); }
.foot-logo .logo-name { font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; text-transform: uppercase;
  color: var(--bmh-clay-soft); white-space: nowrap; margin: .3rem 0; }
.foot-desc { color: var(--bmh-ink-on-forest-mute); max-width: 30rem; margin: .6rem 0 .9rem; line-height: 1.55; }
.foot-contact { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1.1rem; }
.foot-contact i { color: var(--bmh-clay-soft); margin-right: .35rem; }
.site-footer a.foot-book { color: var(--bmh-sand); }             /* keep button text light over the footer link colour */
/* Book buttons are forest green site-wide. On dark surfaces (hero action bar, footer)
   a light outline keeps the green button visible against the dark green. */
.hero-actionbar .btn-forest, .site-footer .btn-forest { border-color: rgba(244,239,231,.6); }
.hero-actionbar .btn-forest:hover, .site-footer .btn-forest:hover { background: #2f6353; border-color: var(--bmh-sand); color: var(--bmh-sand); }

.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.foot-col h3 { font-family: var(--bmh-head); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 .7rem; }
.foot-col a { display: block; padding: .26rem 0; color: var(--bmh-ink-on-forest); }

.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; padding-top: 1.2rem; }
.foot-copy { margin: 0; color: var(--bmh-ink-on-forest-mute); }
.foot-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.foot-legal a { color: var(--bmh-ink-on-forest-mute); }
.foot-legal a:hover { color: #fff; }
.foot-network { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; }
.foot-network__label { color: #fff; font-weight: 600; padding: .15rem .9rem .15rem 0; line-height: 1.2; }
.foot-network a { color: var(--bmh-ink-on-forest-mute); padding: .15rem .9rem; line-height: 1.2; }
.foot-network a:hover { color: #fff; }
.foot-network a + a { border-left: 1px solid rgba(255,255,255,.22); }
.foot-reg { margin: 1rem 0 0; font-size: .78rem; color: var(--bmh-ink-on-forest-mute); }

@media screen and (max-width: 47.9375em) {
  .foot-top { grid-template-columns: 1fr; gap: 1.7rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media screen and (max-width: 30em) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ── Simple content + legal pages ─────────────────────────────────────── */
.back-link { display:inline-flex; align-items:center; gap:.35rem; font-size:.85rem; color:var(--bmh-ink-soft); text-decoration:none; margin:1.2rem 0 0; }
.page-hero { background: linear-gradient(180deg, var(--bmh-sand) 0%, #fff 100%); padding: .2rem 0 1.8rem; }
.page-hero .eyebrow { display:block; margin-bottom:.35rem; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight:700; letter-spacing:-.015em; margin:.5rem 0 .55rem; }
.page-lead { font-size:1.1rem; color: var(--bmh-ink-soft); max-width: var(--bmh-measure); margin:0; }
.page-body { max-width: var(--bmh-measure); margin: 2rem 0 1rem; font-size: 1.02rem; color: var(--bmh-ink); }
.page-body h2 { font-size:1.35rem; margin:1.9rem 0 .6rem; color:var(--bmh-forest); }
.page-body h3 { font-size:1.08rem; margin:1.4rem 0 .4rem; color:var(--bmh-forest); }
.page-body p, .page-body li { line-height:1.6; }
.page-body ul { padding-left:1.2rem; }
.page-body a { color: var(--bmh-clay-text); }
.page-note { background: var(--bmh-tint-sage); border-radius: var(--bmh-radius-lg); padding: 1rem 1.2rem; margin: 1.3rem 0; font-size:.95rem; color:#3f4a3d; }
.page-draft { display:inline-block; background:#FBEFE6; border:1px solid var(--bmh-clay-soft); border-radius:20px; padding:.15rem .7rem; font-size:.78rem; color:#A9542F; font-weight:600; margin-top:.6rem; }
.todo { background:#FBEFE6; border-radius:4px; padding:0 .3rem; color:#A9542F; font-weight:600; font-size:.9em; }

/* Coming-soon pages */
.soon { text-align:center; max-width:36rem; margin:3rem auto 2rem; }
.soon .ti-icon { font-size:2.8rem; color:var(--bmh-sage); }
.soon h1 { font-size:clamp(1.8rem,3.4vw,2.4rem); margin:.7rem 0 .5rem; }
.soon p { color:var(--bmh-ink-soft); font-size:1.06rem; margin:.4rem 0; }
.soon-actions { display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap; margin-top:1.5rem; }

/* ─── Inline text link (section-head "View the full team →") ─── */
.text-link { color: var(--bmh-clay-text); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .3rem; }
.text-link:hover { text-decoration: underline; }

/* ─── Team cards (person tiles link through to a bio) ─── */
.tile.person .avatar { margin-bottom: .1rem; }
.tile.person .quals-line { font-size: .78rem; color: var(--bmh-ink-soft); }
.avatar.photo { padding: 0; overflow: hidden; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ─── Image-led team cards (home + team page) ─── */
.person-card { position: relative; display: block; border-radius: var(--bmh-radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--bmh-forest); text-decoration: none; }
.person-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%;
  display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.person-card:hover img { transform: scale(1.04); }
.person-card .pc-scrim { position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21,44,37,.92) 6%, rgba(21,44,37,.30) 42%, transparent 66%); }
.person-card .pc-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.15rem 1.2rem; color: #fff; }
.person-card .pc-name { display: block; font-family: var(--bmh-head); font-weight: 700; font-size: 1.3rem; line-height: 1.08; }
.person-card .pc-role { display: block; color: var(--bmh-clay-soft); font-size: .84rem; margin-top: .25rem; line-height: 1.3; }
.person-card .pc-link { display: inline-flex; align-items: center; gap: .3rem; color: #fff; font-size: .8rem;
  margin-top: .6rem; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.person-card:hover .pc-link, .person-card:focus-visible .pc-link { opacity: .9; transform: none; }
.person-card.noimg { display: flex; align-items: center; justify-content: center; }
.person-card.noimg .pc-init { font-family: var(--bmh-head); font-weight: 700; font-size: 3rem; color: var(--bmh-clay-soft); }
@media screen and (max-width: 39.9375em) {
  .person-card .pc-name { font-size: 1.1rem; }
  .person-card .pc-link { opacity: .9; transform: none; }
}

/* ─── Team strip: horizontal scroll instead of wrapping (home) ─── */
.team-scroll { display: flex; align-items: flex-start; gap: 1rem;
  overflow-x: auto; overflow-y: hidden; padding: .25rem .1rem 1.1rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--bmh-sage) transparent;
  /* soft right-edge fade hints there's more to scroll to */
  -webkit-mask-image: linear-gradient(to right, #000 92%, rgba(0,0,0,.15) 100%);
          mask-image: linear-gradient(to right, #000 92%, rgba(0,0,0,.15) 100%); }
.team-scroll .person-card { flex: 0 0 292px; width: 292px; scroll-snap-align: start; }
.team-scroll::-webkit-scrollbar { height: 8px; }
.team-scroll::-webkit-scrollbar-thumb { background: var(--bmh-sage); border-radius: 20px; }
.team-scroll::-webkit-scrollbar-track { background: transparent; }
@media screen and (max-width: 63.9375em) {   /* tablets & down: tighter cards */
  .team-scroll .person-card { flex: 0 0 236px; width: 236px; }
}
@media screen and (max-width: 39.9375em) {   /* phones: a peek of the next card */
  .team-scroll .person-card { flex-basis: 60vw; width: 60vw; max-width: 240px; }
}

/* ─── Biography page ─── */
.bio-hero { background: var(--bmh-forest); border-radius: var(--bmh-radius-xl);
  padding: 1.8rem; margin-top: 1rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.bio-hero .photo { width: 116px; height: 116px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--bmh-forest-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--bmh-head); font-weight: 600; font-size: 2.1rem; color: var(--bmh-sand); }
.bio-hero .who { flex: 1; min-width: 15rem; }
.bio-hero .who h1 { color: #fff; margin: .35rem 0 0; }
.bio-hero .who .role { color: var(--bmh-clay-soft); font-weight: 500; margin: .35rem 0 0; }
.bio-hero .who .quals { color: var(--bmh-ink-on-forest-mute); font-size: .85rem; margin: .3rem 0 0; }

.bio-body { max-width: var(--bmh-measure); margin: 1.8rem 0; font-size: 1rem; color: var(--bmh-ink); }
.bio-body h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.bio-body h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.bio-body p { margin: 0 0 1rem; }
.bio-body ul, .bio-body ol { margin: 0 0 1rem 1.2rem; }
.bio-body li { margin: .2rem 0; }
.bio-body blockquote { border-left: 3px solid var(--bmh-clay); margin: 1rem 0; padding-left: 1rem; color: var(--bmh-ink-soft); }
.bio-body a { color: var(--bmh-clay-text); }
.bio-body img, .bio-body figure img { max-width: 100%; height: auto; border-radius: 8px; }
.bio-body figure { margin: 1.2rem 0; }
.bio-body figcaption { font-size: .82rem; color: var(--bmh-ink-soft); margin-top: .35rem; }

.bio-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem;
  color: var(--bmh-clay-text); text-decoration: none; margin-bottom: 1rem; }
.back-link:hover { text-decoration: underline; }
.bmh-notfound-h { margin-bottom: .6rem; }

@media screen and (max-width: 39.9375em) {
  .hero h1 { font-size: 1.7rem; }
  .bio-hero { padding: 1.3rem; gap: 1rem; }
  .bio-hero .photo { width: 88px; height: 88px; font-size: 1.6rem; }
}

/* ==========================================================================
   MEN'S HEALTH HUB — shared story cards + sliding row
   Used on the Hub (/advice) and in the homepage "From the Hub" section.
   ========================================================================== */
.acard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bmh-card-line);
  border-radius: var(--bmh-radius-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(37,78,66,.5); }
.acard .a-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bmh-tint-forest); display: block; }
.acard .a-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard .a-img.noimg { display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bmh-forest), var(--bmh-sage)); }
.acard .a-img.noimg i { font-size: 2.2rem; color: rgba(255,255,255,.55); }
.acard .a-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.acard .a-date { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--bmh-clay); font-weight: 600; }
.acard h2, .acard h3 { font-size: 1.18rem; font-weight: 700; color: var(--bmh-forest); margin: 0; line-height: 1.25; }
.acard p { font-size: .92rem; color: var(--bmh-ink-soft); margin: 0; }
.acard .a-more { margin-top: .4rem; font-size: .85rem; color: var(--bmh-clay); font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem; }

/* the sliding row — three across on desktop, slide sideways for the rest */
.hub-carwrap { position: relative; }
.hub-car { display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .2rem .2rem 1.2rem; scrollbar-width: none; }
.hub-car::-webkit-scrollbar { display: none; }
.hub-car .acard { flex: 0 0 calc((100% - 2.6rem) / 3); scroll-snap-align: start; }
.hub-arrow { position: absolute; top: calc(50% - .2rem); transform: translateY(-50%); width: 2.6rem; height: 2.6rem;
  border-radius: 50%; border: 1px solid var(--bmh-card-line); background: #fff; color: var(--bmh-forest);
  display: grid; place-items: center; font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(37,78,66,.55); z-index: 2; }
.hub-arrow.prev { left: -.7rem; }
.hub-arrow.next { right: -.7rem; }
.hub-arrow:hover { background: var(--bmh-sand); }
.hub-arrow[hidden] { display: none; }
@media (hover: none) { .hub-arrow { display: none; } }
@media (max-width: 53.75em) { .hub-car .acard { flex: 0 0 min(82%, 20rem); } }

/* Phone and text links only really work on phones. On computers (a mouse or trackpad, no touch)
   phone numbers show as plain text and the Call / Text buttons are hidden. WhatsApp stays: it
   opens WhatsApp on the computer. Tablets and phones keep everything tappable. */
@media (hover: hover) and (pointer: fine) {
  a[href^="tel:"], a[href^="sms:"] { pointer-events: none; cursor: text; text-decoration: none; }
  .page-body a[href^="tel:"], .site-footer a[href^="tel:"] { color: inherit; }
  .touch-only { display: none !important; }
}
