/* ==========================================================================
   Elite Health & Performance — Global Stylesheet
   Mobile-first. Breakpoints: 640px, 768px, 1024px, 1280px.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* --- Design tokens --------------------------------------------------------- */
/* --- Fonts (self-hosted Latin subsets of Poppins and Inter, SIL Open Font Licence) ------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand colours */
  --color-black: #000000;
  --color-black-soft: #0c0c0c;
  --color-charcoal: #1a1a1a;
  --color-charcoal-light: #262626;
  --color-white: #ffffff;
  --color-off-white: #f7f5f1;
  --color-gold: #c8ad66;
  --color-gold-light: #ddc590;
  --color-bronze: #966a2e;
  /* Bronze darkened 3% for small text on white/off-white: 5.4:1 and 5.0:1 (brand bronze is 4.4:1 on off-white) */
  --color-bronze-text: #8a622a;

  /* Text */
  --color-text-dark: #16140f;
  --color-text-muted-dark: #4a473f;
  --color-text-light: #ffffff;
  --color-text-muted-light: #cfcabf;

  /* Borders */
  --color-border-light: #e5e0d5;
  --color-border-dark: #33322c;

  /* Typography */
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Layout */
  --container-width: 1240px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* --- Base ------------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text-dark);
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3vw + 1rem, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 1rem, 1.5rem);
}

p {
  max-width: 65ch;
}

.section-intro p {
  max-width: 60ch;
}

strong {
  font-weight: 600;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

/* Shared vertical rhythm for page content. :where() keeps specificity low so component
   rules (cards, hero, legal pages, forms) can still set their own spacing. */
main :where(h1, h2) + :where(p, ul, ol) {
  margin-top: var(--space-3);
}

main :where(h3, h4) + :where(p, ul, ol) {
  margin-top: var(--space-1);
}

main p + p {
  margin-top: 1em;
}

main :where(p, ul, ol) + :where(.btn, .btn-row) {
  margin-top: var(--space-4);
}

/* --- Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  background: var(--color-gold);
  color: var(--color-black);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}

/* --- Focus states ------------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* --- Visually hidden ---------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-6);
}

.section--tight {
  padding-block: var(--space-5);
}

.section--dark {
  background-color: var(--color-black);
  color: var(--color-text-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-text-muted-light);
}

.section--charcoal {
  background-color: var(--color-charcoal);
  color: var(--color-text-light);
}

.section--charcoal h1,
.section--charcoal h2,
.section--charcoal h3 {
  color: var(--color-white);
}

.section--charcoal p {
  color: var(--color-text-muted-light);
}

.section--off-white {
  background-color: var(--color-off-white);
}

.section-intro {
  max-width: 760px;
  margin-bottom: var(--space-5);
}

.section-intro--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-1);
}

.section:not(.section--dark):not(.section--charcoal) .eyebrow {
  /* gold fails contrast on light backgrounds */
  color: var(--color-bronze-text);
}

.section--dark .eyebrow,
.section--charcoal .eyebrow {
  color: var(--color-gold);
}

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

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--five {
    grid-template-columns: repeat(6, 1fr);
  }
  .grid--five > * {
    grid-column: span 2;
  }
  .grid--five > :nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --- Buttons -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.75em;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  min-height: 44px;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-gold-light);
}

.btn-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-gold);
  color: var(--color-black);
}

.section:not(.section--dark):not(.section--charcoal) .btn-outline {
  border-color: var(--color-text-dark);
  color: var(--color-text-dark);
}

.section:not(.section--dark):not(.section--charcoal) .btn-outline:hover,
.section:not(.section--dark):not(.section--charcoal) .btn-outline:focus-visible {
  background-color: var(--color-text-dark);
  color: var(--color-white);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* --- Site header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-black);
  border-bottom: 1px solid var(--color-border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 56px;
  height: 56px;
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  display: flex;
  gap: var(--space-4);
}

.primary-nav > ul > li {
  position: relative;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-white);
  padding-block: var(--space-1);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.nav-item--has-children .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--color-charcoal);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-1) 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  z-index: 50;
}

.nav-item--has-children:hover .submenu,
.nav-item--has-children:focus-within .submenu {
  display: block;
}

.submenu li {
  display: block;
}

.submenu a {
  display: block;
  padding: 0.65em var(--space-2);
  border-bottom: 0;
  font-weight: 400;
  white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus-visible {
  background-color: var(--color-charcoal-light);
}

.header-cta {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

.header-phone {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--color-gold);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  background-color: var(--color-black);
  border-top: 1px solid var(--color-border-dark);
  /* Header bar is ~72px tall (logo/toggle row + border); constrain the panel
     to the remaining viewport height so it scrolls internally instead of
     relying on (or blocking) page scroll. */
  max-height: calc(100vh - 73px);
  max-height: calc(100dvh - 73px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-list a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-white);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  color: var(--color-gold);
}

.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-white);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-dark);
  text-align: left;
}

.mobile-submenu-toggle:hover,
.mobile-submenu-toggle:focus-visible {
  color: var(--color-gold);
}

.mobile-submenu-toggle .chevron-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.mobile-submenu-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: var(--space-3);
}

.mobile-submenu[hidden] {
  display: none;
}

.mobile-submenu a {
  font-size: 0.95rem;
  font-weight: 400;
  padding: var(--space-1) 0;
  border-bottom: 0;
  color: var(--color-text-muted-light);
}

.mobile-submenu a:hover,
.mobile-submenu a:focus-visible {
  color: var(--color-gold);
}

.mobile-nav-cta {
  padding: var(--space-2) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.mobile-nav-cta .header-phone {
  justify-content: center;
  min-height: 44px;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: block;
  }
  .header-cta {
    display: flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none;
  }
  .primary-nav a,
  .header-cta .btn {
    white-space: nowrap;
  }
}

/* Small laptops: tighten the header so all nav items, the phone number and the CTA fit on one line */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-inner {
    gap: var(--space-2);
  }
  .primary-nav ul {
    gap: 0.75rem;
  }
  .primary-nav a {
    font-size: 0.875rem;
  }
  .header-cta {
    gap: var(--space-2);
  }
  .header-cta .btn {
    padding-inline: 1.1em;
  }
}

/* --- Hero ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--color-white);
  display: flex;
  align-items: center;
  min-height: 78vh;
  background-color: var(--color-black);
  background-image: url("../images/web/hero-1600.webp");
  background-size: cover;
  background-position: center center;
}

@media (min-width: 1280px) {
  .hero {
    background-image: url("../images/web/hero-wide.webp");
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: var(--space-6);
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.hero-content .lede {
  font-size: 1.15rem;
  color: var(--color-text-muted-light);
  margin-bottom: var(--space-4);
  max-width: 55ch;
}

/* --- Google Reviews trust banner (hero) --------------------------------------------------- */
.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.5em;
  column-gap: 0.9em;
  margin-top: var(--space-4);
  padding: 0.7em 1.1em;
  background-color: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(200, 173, 102, 0.4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.google-reviews-badge:hover,
.google-reviews-badge:focus-visible {
  background-color: rgba(0, 0, 0, 0.78);
  border-color: var(--color-gold);
}

.grb-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-white);
  white-space: nowrap;
}

.grb-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.grb-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  color: var(--color-gold);
}

.grb-stars svg {
  width: 15px;
  height: 15px;
}

.grb-score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-gold);
}

.grb-count {
  font-size: 0.85rem;
  color: var(--color-text-muted-light);
  white-space: nowrap;
}

.page-banner {
  background-color: var(--color-black);
  color: var(--color-white);
  padding-block: var(--space-6);
}

.page-banner h1 {
  color: var(--color-white);
}

.page-banner .eyebrow {
  color: var(--color-gold);
}

.page-banner p {
  color: var(--color-text-muted-light);
  font-size: 1.1rem;
  max-width: 65ch;
}

.page-banner .container > * {
  max-width: 760px;
}

/* --- Credential strip -------------------------------------------------------------- */
.credential-strip {
  background-color: var(--color-off-white);
  border-bottom: 1px solid var(--color-border-light);
}

.credential-strip .grid {
  padding-block: var(--space-4);
  text-align: center;
  gap: var(--space-3);
}

.credential-item .credential-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-bronze-text);
}

.credential-item .credential-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted-dark);
  margin-top: 0.25em;
}

/* --- Cards --------------------------------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section--dark .card,
.section--charcoal .card {
  background-color: var(--color-charcoal-light);
  border-color: var(--color-border-dark);
}

.card h3 + p {
  margin-top: 0.75rem;
}

/* Service icons: one 48-unit line-icon set inside a circular brand backdrop with a partial
   gold ring, echoing the logo roundel and the arcs in the team photographs. */
.service-icon {
  --si-bg: var(--color-off-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background-color: var(--si-bg);
  border: 1px solid var(--color-border-light);
  color: var(--color-bronze-text);
}

.service-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-gold);
  border-right-color: var(--color-gold);
  transform: rotate(-20deg);
}

.service-icon svg {
  width: 50px;
  height: 50px;
}

.service-icon .si-solid {
  fill: var(--si-bg);
}

.service-icon .si-nostroke {
  stroke: none;
}

.section--dark .service-icon,
.section--charcoal .service-icon {
  --si-bg: var(--color-charcoal-light);
  border-color: var(--color-border-dark);
  color: var(--color-gold);
}

.card p {
  color: var(--color-text-muted-dark);
  flex-grow: 1;
}

.section--dark .card p,
.section--charcoal .card p {
  color: var(--color-text-muted-light);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-bronze-text);
  border-bottom: 2px solid transparent;
}

.section--dark .card-link,
.section--charcoal .card-link {
  color: var(--color-gold);
}

.card-link:hover,
.card-link:focus-visible {
  border-bottom-color: currentColor;
}

/* --- Team --------------------------------------------------------------------------- */
.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .team-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.team-photo-wrap {
  flex: 0 0 auto;
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .team-photo-wrap {
    margin-inline: 0;
  }
}

.team-photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.placeholder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-gold);
  background: linear-gradient(160deg, var(--color-charcoal) 0%, var(--color-black) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-2);
}

.placeholder-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-bronze) 100%);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  max-width: 65ch;
}

.team-bio h3 {
  margin-bottom: 0.15em;
}

.team-role {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-bronze-text);
  margin-bottom: var(--space-2);
}

.team-bio ul {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.team-bio li {
  padding-left: 1.4em;
  position: relative;
}

.team-bio li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
}

/* Standalone bulleted list (same style as team-bio list, usable without that wrapper) */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-block: var(--space-2) var(--space-3);
}

.bullet-list li {
  padding-left: 1.4em;
  position: relative;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
}

/* --- Testimonials -------------------------------------------------------------------- */
.testimonial-card {
  background-color: var(--color-charcoal-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border-top: 3px solid var(--color-gold);
  height: 100%;
}

.testimonial-quote {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.testimonial-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-gold);
}

/* --- Facility showcase ----------------------------------------------------------------- */
.showcase-grid {
  display: grid;
  align-items: start;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .showcase-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.showcase-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* --- Gallery ------------------------------------------------------------------------------ */
/* CSS columns rather than a fixed grid so every photo keeps its own proportions (no forced cropping) */
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: var(--space-2);
}

@media (min-width: 640px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    columns: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-2);
}

.gallery-item a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--transition-base);
}

.gallery-item a:hover img {
  transform: scale(1.03);
}

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--space-5) var(--space-2);
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--color-white);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  max-width: 100%;
  max-height: 100%;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  max-width: 65ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted-light);
}

.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-gold);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.lightbox-btn:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.lightbox-close {
  top: var(--space-2);
  right: var(--space-2);
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: var(--space-2);
}

.lightbox-next {
  right: var(--space-2);
}

/* On narrow screens move the arrows below the photo so they never cover it */
@media (max-width: 767px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: var(--space-2);
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 56px);
  }

  .lightbox-next {
    right: calc(50% - 56px);
  }
}

body.lightbox-open {
  overflow: hidden;
}

/* --- CTA band --------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-black) 0%, #24200f 60%, var(--color-bronze) 150%);
  color: var(--color-white);
  text-align: center;
  padding-block: var(--space-6);
}

.cta-band h2 {
  color: var(--color-white);
}

.cta-band p {
  color: var(--color-text-muted-light);
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

.cta-band .btn-row {
  justify-content: center;
}

/* --- Forms ------------------------------------------------------------------------------- */
.form-field {
  margin-bottom: var(--space-3);
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
}

.required-indicator {
  color: var(--color-bronze-text);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  min-height: 44px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted-dark);
  margin-top: var(--space-2);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Contact page layout -------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.contact-info h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.contact-info h3:first-child {
  margin-top: 0;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  padding-block: 0.15em;
  border-bottom: 1px dashed var(--color-border-light);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-bronze-text);
}

.section--dark .social-links a,
.section--charcoal .social-links a {
  color: var(--color-gold);
}

/* --- Icons & contact rows ------------------------------------------------------------------ */
.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin-bottom: 0.4em;
}

.text-center .contact-line {
  justify-content: center;
  align-items: center;
}

.confirmation-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

/* Thank-you page: one shared wrapper keeps heading, copy, phone and button on the
   same centred axis regardless of each child's own natural/inherited width
   (e.g. the global `p { max-width: 65ch }` rule would otherwise leave the narrower
   phone line flush against the wrapper's left edge instead of centred). */
.confirmation-panel {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.confirmation-panel > p {
  margin-inline: auto;
}

.confirmation-panel .contact-line {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin-inline: auto;
  margin-top: var(--space-3);
}

.confirmation-panel .btn-row {
  justify-content: center;
  margin-inline: auto;
  margin-top: var(--space-4);
}

.contact-line .icon {
  color: var(--color-gold);
  margin-top: 0.2em;
}

.contact-line a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6em;
}

.section:not(.section--dark):not(.section--charcoal) .contact-line .icon,
.contact-info .contact-line .icon {
  color: var(--color-bronze);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

/* --- Footer ------------------------------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-text-muted-light);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6) var(--space-4);
  grid-template-columns: 1fr;
}

/* Tablets get a 2 x 2 footer: four columns there pushed the long email address past the
   viewport edge */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

.footer-brand .logo-img {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-2);
}

.footer-brand p {
  color: var(--color-text-muted-light);
  max-width: 32ch;
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--color-gold);
}

.footer-col address a {
  color: var(--color-text-muted-light);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-block: var(--space-3);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}

.form-note a {
  text-decoration: underline;
}

/* --- Contact map (click-to-load Google Map) --------------------------------------------- */
.map-consent {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  overflow: hidden;
}

/* Fixed height shared by the placeholder and the loaded map, so loading causes no layout
   shift; kept well under a phone's height so there is always page to scroll past it */
.map-consent-frame {
  height: 360px;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .map-consent-frame {
    height: 420px;
  }
}

.map-consent-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3);
  background-color: var(--color-off-white);
}

.map-consent-address {
  margin-bottom: var(--space-2);
}

.map-consent-note {
  font-size: 0.9rem;
  color: var(--color-text-muted-dark);
  margin-bottom: var(--space-2);
}

.map-consent-note a {
  text-decoration: underline;
}

.map-embed-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-consent-directions {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--color-border-light);
}

/* --- Legal pages (privacy policy) --------------------------------------------------------- */
.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-content p,
.legal-content ul {
  margin-bottom: var(--space-2);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.35em;
}

.legal-content a {
  color: var(--color-bronze-text);
  text-decoration: underline;
}

.draft-notice {
  border-left: 4px solid var(--color-bronze-text);
  background-color: var(--color-off-white);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.draft-notice p {
  margin: 0;
}

/* Visible marker for facts still awaiting client confirmation */
.draft-placeholder {
  background-color: var(--color-off-white);
  border: 1px dashed var(--color-bronze-text);
  border-radius: var(--radius-sm);
  padding: 0 0.3em;
  color: var(--color-text-dark);
  font-style: italic;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted-dark);
}

.footer-social {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

/* 44px circles give a comfortable tap target around the small icons */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-dark);
  border-radius: 50%;
  color: var(--color-gold);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.footer-legal a {
  display: inline-block;
  padding-block: 0.25rem;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--color-gold);
}

/* --- Service page hero image ----------------------------------------------------------------------- */
.service-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* --- Pricing -------------------------------------------------------------------------------------- */
.pricing-group {
  margin-bottom: var(--space-6);
}

.pricing-group-header {
  margin-bottom: var(--space-3);
}

.pricing-list {
  border-top: 1px solid var(--color-border-light);
}

.section--dark .pricing-list,
.section--charcoal .pricing-list {
  border-top-color: var(--color-border-dark);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border-light);
}

.section--dark .pricing-row,
.section--charcoal .pricing-row {
  border-bottom-color: var(--color-border-dark);
}

.pricing-label {
  font-weight: 500;
}

.pricing-note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted-dark);
}

.section--dark .pricing-note,
.section--charcoal .pricing-note {
  color: var(--color-text-muted-light);
}

.pricing-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-bronze-text);
  white-space: nowrap;
}

.section--dark .pricing-price,
.section--charcoal .pricing-price {
  color: var(--color-gold);
}

/* --- Utility spacing ---------------------------------------------------------------------------- */
.mt-0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

p.text-center {
  margin-inline: auto;
}

/* Centred CTA content keeps a set width, leaving clear space for its edge decorations */
.cta-band .container > * {
  max-width: 720px;
  margin-inline: auto;
}

/* --- Brand decorations ----------------------------------------------------------------------- */
/* Concentric ring pairs cropped by the section edge, matching the gold rings in the team
   photographs and the logo roundel: one bold pair and one fine pair per section. Purely
   decorative: empty aria-hidden spans, no pointer events, clipped at the section edge and
   kept inside the section padding or clear of the text column. */
.has-deco {
  position: relative;
  overflow: clip;
  --deco-bold: rgba(200, 173, 102, 0.6);
  --deco-fine: rgba(150, 106, 46, 0.4);
}

.page-banner.has-deco,
.cta-band.has-deco,
.has-deco.section--dark,
.has-deco.section--charcoal {
  --deco-bold: rgba(206, 182, 115, 0.85);
  --deco-fine: rgba(206, 182, 115, 0.6);
}

.has-deco > .container {
  position: relative;
  z-index: 1;
}

.deco-group {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Each span draws an outer ring; ::after draws the inner ring of the pair */
.deco {
  --size: 112px;
  --stroke: 5px;
  --gap: 14px;
  position: absolute;
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: var(--stroke) solid var(--deco-bold);
  transform: translate(-50%, -50%);
}

.deco::after {
  content: "";
  position: absolute;
  inset: var(--gap);
  border-radius: 50%;
  border: inherit;
}

.deco--thin {
  --size: 96px;
  --stroke: 1.5px;
  --gap: 12px;
  border-color: var(--deco-fine);
}

/* Small single accent rings, placed in the empty top and bottom padding bands by default */
.deco.deco--accent {
  --size: 16px;
  --stroke: 2px;
  left: 26%;
  top: 30px;
  border-color: var(--deco-bold);
}

.deco--accent::after {
  display: none;
}

.deco-group--accents .deco--accent + .deco--accent {
  --size: 11px;
  left: 74%;
  top: calc(100% - 30px);
}

/* Phones and tablets: a small bold pair on the top-right corner and a fine pair on the
   bottom-left corner. Radii stay under the 64px section padding so they never reach text. */
.deco-group .deco--thick {
  left: 100%;
  top: 0;
}

.deco-group .deco--thin {
  left: 0;
  top: 100%;
}

@media (min-width: 1024px) {
  .deco {
    --size: 300px;
    --stroke: 7px;
    --gap: 22px;
  }

  .deco--thin {
    --size: 200px;
    --stroke: 2px;
    --gap: 16px;
  }

  /* Laptop widths: the bold pair only, cropped by the edge, sized to stay clear of text */
  .deco-group .deco--thin {
    display: none;
  }

  .deco-group--banner .deco--thick {
    top: 50%;
  }

  .deco-group--cta .deco--thick {
    --size: 260px;
  }

  .deco-group--corner-left .deco--thick {
    --size: 250px;
    left: 0;
  }

  .deco-group--top-right .deco--thick {
    --size: 340px;
  }

  .deco-group--side-right {
    display: none;
  }
}

/* The compact corners variant keeps its small, padding-safe pairs at every width */
@media (min-width: 1024px) {
  .deco-group--corners .deco--thick {
    --size: 124px;
    --stroke: 5px;
    --gap: 15px;
  }

  .deco-group--corners .deco--thin {
    --size: 112px;
    --stroke: 1.5px;
    --gap: 13px;
    display: block;
  }
}

@media (min-width: 1280px) {
  .deco-group .deco--thin {
    display: block;
  }

  .deco-group--side-right {
    display: block;
  }

  .deco-group--banner .deco--thick {
    --size: 440px;
    --stroke: 9px;
    --gap: 26px;
  }

  .deco-group--banner .deco--thin {
    --size: 180px;
    left: calc(100% - 300px);
    top: 0;
  }

  .deco-group--cta .deco--thick {
    --size: 400px;
    --stroke: 8px;
  }

  .deco-group--cta .deco--thin {
    --size: 280px;
  }

  .deco-group--corner-left .deco--thick {
    --size: 440px;
    --stroke: 8px;
    --gap: 26px;
  }

  .deco-group--corner-left .deco--thin {
    --size: 280px;
    left: 100%;
    top: 0;
  }

  .deco-group--top-right .deco--thick {
    --size: 500px;
    --stroke: 9px;
    --gap: 28px;
  }

  .deco-group--top-right .deco--thin {
    --size: 180px;
    left: calc(100% - 360px);
    top: 0;
  }

  .deco-group--side-right .deco--thick {
    --size: 500px;
    --stroke: 8px;
    --gap: 26px;
    top: 50%;
  }

  .deco-group--side-right .deco--thin {
    --size: 280px;
    left: 100%;
    top: 100%;
  }

  .deco-group--banner .deco--accent {
    --size: 24px;
    left: calc(100% - 430px);
    top: 72%;
  }

  .deco-group--cta .deco--accent {
    --size: 22px;
    left: 9%;
    top: 30%;
  }

  .deco-group--corner-left .deco--accent {
    --size: 18px;
    left: 290px;
    top: 34px;
  }

  .deco-group--top-right .deco--accent {
    --size: 20px;
    left: calc(100% - 520px);
    top: 34px;
  }

  .deco-group--side-right .deco--accent {
    --size: 22px;
    left: calc(100% - 220px);
    top: 30%;
  }

  .deco-group--accents .deco--accent {
    --size: 20px;
    left: 8%;
  }

  .deco-group--accents .deco--accent + .deco--accent {
    --size: 13px;
    left: 88%;
  }
}

/* Keep the practitioner bios to a readable width so the side decoration has clear space */
.team-bio {
  max-width: 720px;
}
