/* ==========================================================================
   CHIMNEYSMART — MAIN CSS
   Base styling ported from static/chimney-smart-base.css (style guide).
   Sections: variables, reset & base, typography, lists, layout utilities,
   buttons, utilities, responsive. @font-face lives in css/fonts.css.
   Design profile: Friendly
   shape: round | cards: shadow | transitions: corner-border | decoration: circles
   spacing: standard | images: rounded | hover: scale
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
  /* === Brand palette (source of truth) === */
  --color-white: #FFFFFF;
  --color-off-white: #F7F3EF;
  --color-dark-offwhite: #EAE3DE;
  --color-orange: #E65D25;
  --color-pale-orange: #EAAF97;
  --color-black: #000000;
  --color-faded-black: #202020;
  --color-grey: #58595B;
  --color-light-grey: #707070;
  --color-green: #1A9F09;

  /* === Derived — computed from the ten above, no new hexes === */
  --color-orange-dark: color-mix(in srgb, var(--color-orange) 86%, #000000);
  --color-faded-black-lighter: color-mix(in srgb, var(--color-faded-black) 92%, #FFFFFF);

  /* === Semantic aliases (all elements reference these) === */
  --color-dark: var(--color-faded-black);
  --color-dark-lighter: var(--color-faded-black-lighter);
  --color-accent: var(--color-orange);
  --color-accent-dark: var(--color-orange-dark);
  --color-secondary: var(--color-grey);
  --color-light: var(--color-dark-offwhite);
  --color-light-alt: var(--color-off-white);
  --color-text: var(--color-dark);
  --color-text-muted: var(--color-light-grey);
  --color-border: rgba(88, 89, 91, 0.25);
  --color-overlay: rgba(32, 32, 32, 0.55);
  --color-success: var(--color-green);
  --color-warning: var(--color-pale-orange);
  --color-error: var(--color-orange);
  --color-info: var(--color-grey);

  /* === Typography === */
  --font-primary: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-heading: var(--font-primary);

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;   /* 18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 2rem;      /* 32px */
  --font-size-3xl: 2.5rem;    /* 40px */
  --font-size-4xl: 3.25rem;   /* 52px */

  /* === Heading scale (readme.md) ===
     H1-H3 sizes, line-heights and letter-spacing are as specified.
     H4-H6 continue the same deceleration: each step is ~0.51 of the one
     before it (39 -> 20 -> 10 -> 5 -> 3), which lands on 20/15/12px.
     From H3 down that is 60/2, 60/3, 60/4, 60/5.
     The clamp() floors are mine, so 89px does not overflow a phone —
     the readme value is always the upper bound. */
  --font-size-h1: 5.5625rem;  /* 89px */
  --font-size-h2: 3.125rem;   /* 50px */
  --font-size-h3: 1.875rem;   /* 30px */
  --font-size-h4: 1.25rem;    /* 20px */
  --font-size-h5: 0.9375rem;  /* 15px */
  --font-size-h6: 0.75rem;    /* 12px */

  --line-height-h1: 1.124;    /* 100/89 */
  --line-height-h2: 1.16;     /* 58/50  */
  --line-height-h3: 1.933;    /* 58/30  — see readme note */
  --line-height-h4: 1.3;
  --line-height-h5: 1.33;
  --line-height-h6: 1.33;

  /* Satoshi's axis starts at 300 — there is no 200. Named cuts are
     Light 300, Regular 400, Medium 500, Bold 700, Black 900; 600 and 800
     are interpolated by the variable font. */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  --line-height-tight: 1.1;
  --line-height-heading: 1.2;
  --line-height-snug: 1.4;
  --line-height-base: 1.6;
  --line-height-loose: 1.8;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;

  /* === Spacing === */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  --space-4xl: 8rem;     /* 128px */

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(32, 32, 32, 0.05);
  --shadow-md: 0 4px 6px rgba(32, 32, 32, 0.07), 0 2px 4px rgba(32, 32, 32, 0.05);
  --shadow-lg: 0 10px 15px rgba(32, 32, 32, 0.1), 0 4px 6px rgba(32, 32, 32, 0.05);
  --shadow-xl: 0 20px 25px rgba(32, 32, 32, 0.1), 0 10px 10px rgba(32, 32, 32, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.15);

  /* === Transitions === */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* === Container & grid === */
  --container-max: 1440px;
  --container-padding: 1.5rem;
  --grid-columns: 12;
  --grid-gutter: var(--space-md); /* 24px */

  /* ======================================================================
     DESIGN PROFILE — Friendly
     ====================================================================== */

  /* Shape language: round */
  --profile-radius-sm: 16px;
  --profile-radius-md: 24px;
  --profile-radius-lg: 32px;
  --profile-radius-pill: 999px;
  --profile-button-radius: 10px; /* buttons keep their own radius, not the card scale */

  /* Card treatment: shadow */
  --profile-card-border: none;
  --profile-card-shadow: var(--shadow-card);
  --profile-card-bg: var(--color-white);
  --profile-card-hover-shadow: var(--shadow-card-hover);
  --profile-card-hover-lift: 0; /* 0 — this profile uses scale, see --profile-hover-transform */

  /* Section transitions: corner-border */
  --profile-section-transition: corner-border;
  --profile-section-gap: 0;

  /* Decorative elements: circles */
  --profile-decoration: circles;
  --profile-decoration-opacity: 0.15;
  --profile-decoration-colour-1: var(--color-accent);
  --profile-decoration-colour-2: var(--color-pale-orange);

  /* Spacing density: standard */
  --profile-space-multiplier: 1;
  --profile-section-padding: calc(var(--space-4xl) * var(--profile-space-multiplier));
  --profile-container-max: var(--container-max);

  /* Image treatment: rounded */
  --profile-image-radius: var(--profile-radius-md);
  --profile-image-aspect: 1 / 1;
  --blog-image-aspect: 1 / 1;
  --profile-image-overlay: none;
  --profile-image-filter: none;

  /* Hover behaviour: scale */
  --profile-hover-shadow: var(--shadow-card-hover);
  --profile-hover-transform: scale(1.02);
  --profile-hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Aliases */
  --border-radius-sm: var(--profile-radius-sm);
  --border-radius-md: var(--profile-radius-md);
  --border-radius-lg: var(--profile-radius-lg);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

button { font-family: inherit; }

::selection { background: var(--color-pale-orange); color: var(--color-dark); }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .text-title {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 7vw, var(--font-size-h1));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h1);
  letter-spacing: 0;
}

h2, .text-title {
  font-size: clamp(1.875rem, 4.5vw, var(--font-size-h2));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h2);
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.375rem, 3vw, var(--font-size-h3));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h3);
  letter-spacing: 0;
}

h4 {
  font-size: clamp(1.125rem, 2vw, var(--font-size-h4));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h4);
  letter-spacing: 0;
}

h5 {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h5);
  letter-spacing: 0;
  color: var(--color-secondary);
}

h6 {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h6);
  letter-spacing: 0;
  color: var(--color-secondary);
}

p { margin: 0 0 var(--space-sm); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.small-title {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  line-height: var(--line-height-snug);
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 var(--space-xs);
}

.text-highlight {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  color: var(--color-dark);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-snug);
}

/* On dark backgrounds */
.dark h1, .dark h2, .dark h3, .dark h4,
.dark .text-title, .dark .text-highlight,
.dark p, .dark li,
.accent h1, .accent h2, .accent h3, .accent h4,
.accent .text-title, .accent .text-highlight,
.accent p, .accent li { color: var(--color-white); }
.dark h5, .dark .text-muted,
.accent h5, .accent .text-muted { color: rgba(255, 255, 255, 0.75); }
.dark .small-title,
.accent .small-title { color: var(--color-pale-orange); }

/* ==========================================================================
   LISTS
   Applies to bare ul/ol so WYSIWYG content is styled without needing
   classes. Structural lists opt out via .list-reset — see the bottom.
   ========================================================================== */

ul, ol {
  margin: 0 0 var(--space-sm);
  padding-left: 0;
  list-style: none;
}
ul:last-child, ol:last-child { margin-bottom: 0; }

li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  line-height: var(--line-height-base);
}
li:last-child { margin-bottom: 0; }

/* Ordered — orange numeral, tabular so multi-digit lists stay aligned */
ol { counter-reset: list-item-counter; }
ol > li { counter-increment: list-item-counter; }
ol > li::before {
  content: counter(list-item-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

/* Nesting — second level reads as a hollow marker / lettered counter */
li > ul, li > ol { margin-top: 0.6rem; margin-bottom: 0; }

ul ul > li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}
ol ol > li::before { content: counter(list-item-counter, lower-alpha) ')'; }

/* On dark and orange sections */
.dark ul > li::before { background: var(--color-pale-orange); }
.dark ul ul > li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-pale-orange); }
.dark ol > li::before { color: var(--color-pale-orange); }

.accent ul > li::before { background: var(--color-white); }
.accent ul ul > li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-white); }
.accent ol > li::before { color: var(--color-white); }

/* Structural lists keep no marker and no indent */
.list-reset,
.select-options { list-style: none; }
.list-reset > li,
.select-options > li { padding-left: 0; margin-bottom: 0; }
.list-reset > li::before,
.select-options > li::before { content: none; }

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

.body-section {
  position: relative;
  padding: var(--profile-section-padding) 0;
  background: var(--color-white);
  overflow: hidden;
}

.body-section:has(.with-sidebar) {
  overflow: unset;
}

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

.body-section.dark {
  background: var(--color-faded-black);
  color: var(--color-white);
}

.body-section.dark.image { background: var(--color-faded-black); }

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

.body-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--profile-container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.body-container.narrow { max-width: 900px; }

.text-restrict { max-width: 720px; margin: 0 auto; }
.text-restrict.left { margin-left: 0; }
.text-restrict._2-cols { columns: 2; column-gap: var(--space-lg); }

/* 12-column grid — 24px gutter */
.body-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: var(--grid-gutter);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.columns {
  display: grid;
  gap: var(--grid-gutter);
}

/* Homepage only (the page with the home_header block) */
body:has(.home-header) .column:nth-of-type(2){
  margin-top: 75px;
}
@media (max-width: 1440px) {
  body:has(.home-header) .column:nth-of-type(2){
    margin-top: 0;
  }
}
.columns._2-col { grid-template-columns: repeat(2, 1fr); }
.columns._3-col { grid-template-columns: repeat(3, 1fr); }
.columns._4-col { grid-template-columns: repeat(4, 1fr); }

/* === Title holder === */
.title-holder {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.title-holder.left { text-align: left; }
.title-holder.center { text-align: center; }

.title-border {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: var(--space-sm);
  margin-inline: auto;
}
.title-holder.left .title-border { margin-inline: 0; }

/* === Backgrounds wrapper: corner border === */
.corner-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--profile-radius-lg);
  z-index: 1;
  pointer-events: none;
}
.corner-border.white { background: var(--color-white); }
.corner-border.blue { background: var(--color-pale-orange); }
.corner-border.grey { background: var(--color-off-white); }
.corner-border.dark { background: var(--color-faded-black); }

.corner-border-inner {
  position: absolute;
  inset: 0;
  border-top-left-radius: var(--profile-radius-lg);
  border-top-right-radius: var(--profile-radius-lg);
  background: var(--color-white);
}
.corner-border-inner.light { background: var(--color-off-white); }
.corner-border-inner.dark { background: var(--color-faded-black); }
.corner-border-inner.image { background: var(--color-faded-black); }

.background-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}
/* Lighter tier for photographs that are already mid-tone. White text over
   the B1G1 banner image measures 5.3:1 unaided; 25% lifts that to 7.1:1
   while protecting against bright highlights, without flattening the photo
   the way the 55% default would. */
.background-overlay.light { background: rgba(32, 32, 32, 0.25); }
.background-overlay.heavy { background: rgba(32, 32, 32, 0.7); }

/* Centre-weighted scrim. A flat overlay cannot serve a photograph with a
   wide tonal range: on the B1G1 banner, white on the mean tone is 5.5:1 but
   only 1.3:1 against the sunlit highlights. This darkens where centred text
   actually sits (5.1:1 even over the brightest pixels) and eases off at the
   edges so the photograph is not flattened. */
.background-overlay.scrim {
  background: radial-gradient(
    ellipse 85% 65% at 50% 45%,
    rgba(32, 32, 32, 0.6) 0%,
    rgba(32, 32, 32, 0.3) 62%,
    rgba(32, 32, 32, 0.15) 100%
  );
}

.background-image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === Decoration: circles === */
.circ1, .circ2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--profile-decoration-opacity);
  pointer-events: none;
  z-index: 0;
}
.circ1 {
  background: var(--profile-decoration-colour-1);
  width: 380px;
  height: 380px;
  top: -120px;
  left: -100px;
}
.circ2 {
  background: var(--profile-decoration-colour-2);
  width: 460px;
  height: 460px;
  bottom: -180px;
  right: -140px;
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.button-holder {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.button-holder.left { justify-content: flex-start; }
.button-holder.center { justify-content: center; }
.button-holder.short { margin-top: var(--space-sm); }
.button-holder.left.short { justify-content: flex-start; margin-top: var(--space-sm); }

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--profile-button-radius);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--profile-hover-transition);

  /* Blue/Secondary — solid dark */
  background: var(--color-dark);
  color: var(--color-white);
}

.main-button:hover {
  background: var(--color-dark-lighter);
  color: var(--color-white);
  transform: var(--profile-hover-transform);
}

.main-button.pink {
  background: var(--color-accent);
  color: var(--color-white);
}
.main-button.pink:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: var(--profile-hover-transform);
}

.main-button.outlined {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.main-button.outlined:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.main-button.small { padding: 0.6rem 1.25rem; font-size: var(--font-size-sm); }

.main-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-orange) 40%, transparent);
  outline-offset: 2px;
}

/* On dark sections */
.dark .main-button.outlined,
.accent .main-button.outlined {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}
.dark .main-button.outlined:hover {
  background: var(--color-white);
  color: var(--color-dark);
}
.accent .main-button.outlined:hover {
  background: var(--color-white);
  color: var(--color-accent-dark);
}

/* White — for orange or image sections */
.main-button.white { background: var(--color-white); color: var(--color-accent-dark); }
.main-button.white:hover { background: var(--color-white); color: var(--color-dark); transform: var(--profile-hover-transform); }

/* Icon button — slider controls, compact actions */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: var(--profile-button-radius);
  background: var(--color-accent);
  color: var(--color-white);
  cursor: pointer;
  transition: var(--profile-hover-transition);
}
.icon-button:hover { background: var(--color-accent-dark); }
.icon-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-orange) 40%, transparent); outline-offset: 2px; }
.icon-button svg,
.main-button svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }
.icon-button.large { width: 4rem; height: 4rem; }
.icon-button.large svg { width: 22px; height: 22px; }
.icon-button[disabled] { opacity: 0.35; cursor: not-allowed; }

/* Text link — tertiary, inline with content */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
}
.text-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--transition-base); }
.text-link:hover { color: var(--color-accent-dark); }
.text-link:hover svg { transform: translateX(3px); }
.dark .text-link,
.accent .text-link { color: var(--color-white); }

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--profile-radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-white);
}
.badge.light { background: var(--color-dark-offwhite); color: var(--color-dark); }
.badge.outline { background: transparent; border-color: var(--color-border); color: var(--color-secondary); }
.badge.dark { background: var(--color-faded-black); color: var(--color-white); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: var(--space-md);
}
.breadcrumbs a { color: var(--color-secondary); transition: color var(--transition-fast); }
.breadcrumbs span { color: var(--color-white); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-secondary); opacity: 0.5; }
.breadcrumb-current { color: var(--color-text); font-weight: var(--font-weight-semibold); }
.dark .breadcrumbs a,
.accent .breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.dark .breadcrumbs a:hover,
.accent .breadcrumbs a:hover { color: var(--color-pale-orange); }
.dark .breadcrumb-sep,
.accent .breadcrumb-sep { color: rgba(255, 255, 255, 0.5); }
.dark .breadcrumb-current,
.accent .breadcrumb-current { color: var(--color-white); }

/* --- Star ratings --- */
.star-rating { display: inline-flex; gap: 2px; align-items: center; }
.star { width: 18px; height: 18px; fill: var(--color-light); transition: fill var(--transition-fast); }
.star.filled { fill: var(--color-accent); }
.star-rating.small .star { width: 14px; height: 14px; }
.star-rating.large .star { width: 24px; height: 24px; }
.star-rating.xl .star { width: 30px; height: 30px; }

/* ==========================================================================
   CARDS
   ========================================================================== */

.card-base {
  border: var(--profile-card-border);
  box-shadow: var(--profile-card-shadow);
  background: var(--profile-card-bg);
  border-radius: var(--border-radius-md);
  transition: var(--profile-hover-transition);
  overflow: hidden;
}
.card-base:hover {
  box-shadow: var(--profile-card-hover-shadow);
  transform: var(--profile-hover-transform);
}

.card-image {
  aspect-ratio: var(--profile-image-aspect);
  border-radius: var(--profile-image-radius);
  overflow: hidden;
  background: var(--color-dark-offwhite);
  filter: var(--profile-image-filter);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: var(--space-md); }
.card-body h3 { margin-bottom: var(--space-xs); }
.card-body p { font-size: 0.92rem; color: var(--color-text-muted); }

/* Cards that sit inside a padded shell keep their image inset */
.card-base > .card-image { margin: var(--space-sm) var(--space-sm) 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
}
.card-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--transition-base); }
.card-base:hover .card-link svg { transform: translateX(3px); }

/* Service / area card — full card is an anchor */
.service-card { display: block; color: inherit; }
.service-card:hover { color: inherit; }
.service-card .card-image { position: relative; }
.service-card .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 32, 32, 0.55), transparent 60%);
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.form-field { margin-bottom: var(--space-md); position: relative; }

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.text-field {
  width: 100%;
  height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--profile-radius-sm);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition-base);
}
.text-field::placeholder { color: var(--color-secondary); opacity: 0.7; }
.text-field:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-orange) 10%, transparent);
}
.text-field.has-error,
.form-field.has-error .text-field {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-orange) 3%, transparent);
}
.text-field.area { height: 8rem; resize: vertical; }

select.text-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2358595B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-top: 0.25rem;
}
.form-field.has-error .form-error { display: block; }

/* --- Media — rounded image frame, profile aspect --- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--profile-image-radius);
  aspect-ratio: var(--profile-image-aspect);
  background: var(--color-light);
}
.media img, .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: var(--profile-image-filter);
}
.media.square { aspect-ratio: 1 / 1; }
.media.portrait { aspect-ratio: 3 / 4; }
.media.landscape { aspect-ratio: 1 / 1; }
.media.wide { aspect-ratio: 21 / 9; }
.media.landscape-wide { aspect-ratio: 1 / 1; }
.media.auto { aspect-ratio: auto; }
.media.auto img { height: auto; }
.media.gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 32, 32, 0.6), transparent 55%);
}

/* Floating pill over an image — the rating badge treatment */
.media-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--profile-radius-sm);
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
}
.media-badge.top-left { top: var(--space-sm); left: var(--space-sm); }
.media-badge.top-right { top: var(--space-sm); right: var(--space-sm); }
.media-badge.bottom-left { bottom: var(--space-sm); left: var(--space-sm); }
.media-badge.bottom-right { bottom: var(--space-sm); right: var(--space-sm); }
.media-badge.outlined { border: 1px solid var(--color-accent); }
/* Height governs; width follows the artwork's own aspect so nothing distorts */
.media-badge img, .media-badge svg { height: 1rem; width: auto; flex-shrink: 0; }
.media-badge svg { fill: var(--color-accent); }
.media-badge img.large { height: 2.25rem; }

/* Offset pair — the about-section overlap. padding-bottom reserves the room
   the offset image hangs into so the section's overflow:hidden never clips it.
   The offset is 388px wide (59% of the primary at most) and overhangs it by 25% below;
   the right overhang is held to 8% so it stays inside the column gutter. */
.media-pair { position: relative; padding-bottom: 25%; }
.media-pair .media + .media {
  position: absolute;
  right: -23%;
  bottom: 0;
  width: min(388px, 59%);
  border-radius: var(--profile-image-radius);
}
@media (max-width: 991px) {
  .media-pair {
    padding-bottom: 0;
  }
  .media-pair .media.landscape {
    display: none;
  }
}

/* --- Play trigger over a video placeholder --- */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: var(--profile-hover-transition);
}
.play-button svg { width: 20px; height: 20px; fill: var(--color-accent); stroke: none; margin-left: 3px; }
.play-button:hover { background: var(--color-accent); transform: translate(-50%, -50%) scale(1.06); }
.play-button:hover svg { fill: var(--color-white); }
.play-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--color-orange) 40%, transparent); outline-offset: 3px; }

/* --- FAQ accordion --- */
.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-base);
}
.faq-question:hover { color: var(--color-accent); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--color-secondary);
  fill: none;
  stroke-width: 2.5;
  transition: transform var(--transition-base);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding-bottom: var(--space-md);
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: var(--line-height-base);
}

/* --- Search bar --- */
.search-bar { display: flex; align-items: center; position: relative; }

.search-bar-icon {
  position: absolute;
  left: 0.875rem;
  width: 18px;
  height: 18px;
  stroke: var(--color-secondary);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.search-bar-input {
  width: 100%;
  height: 2.75rem;
  padding: 0.5rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--profile-radius-sm);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition-base);
}
.search-bar-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-orange) 10%, transparent);
}

.search-bar-clear {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-secondary);
  padding: 0.25rem;
  display: flex;
}
.search-bar-clear svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* --- Checklist --- */
.check-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}
.check-list-icon-wrap {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-orange) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-list-icon { width: 12px; height: 12px; stroke: var(--color-accent); fill: none; stroke-width: 3; }
.dark .check-list-icon-wrap { background: rgba(255, 255, 255, 0.12); }
.dark .check-list-icon { stroke: var(--color-pale-orange); }

/* --- Icon list — the services rows, hairline-separated --- */
.icon-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-accent); }
.icon-list > li {
  display: grid;
  /* 44px icon column with a 44px gutter — taken from the design */
  grid-template-columns: 2.75rem 1fr;
  column-gap: 2.75rem;
  align-items: center;
  padding: var(--space-md) 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-accent);
}
.icon-list > li::before { content: none; }

/* Icons vary in aspect, so each is contained in the same square box and
   centred in it; otherwise every icon scales to the column width and the
   taller ones sit lower and look larger */
.icon-list-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; }
.icon-list-icon img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.icon-list-icon svg { width: 100%; height: auto; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }
.icon-list-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); margin: 0 0 0.25rem; }
.icon-list-text { font-size: 0.95rem; color: var(--color-text); margin: 0; }
.dark .icon-list-text { color: rgba(255, 255, 255, 0.8); }

/* --- Watermark — oversized mark bleeding off a corner behind the content.
   mark-large.svg carries opacity 0.207 inside the file, so 0.4 here gives the
   ~0.08 the design renders at. Use .watermark.solid for a full-opacity asset. --- */
.watermark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  width: clamp(320px, 48vw, 760px);
}
.watermark.solid { opacity: 0.08; }
.watermark.bottom-left { left: -6%; bottom: 0%; }
.watermark.top-right { right: -6%; top: -14%; }

/* Fade the mark out towards the corner it bleeds off, so it dissolves into
   the band rather than being cut by the section edge. Masked rather than
   overlaid with a white gradient, so it works on the off-white and dark
   bands too — an actual white overlay would haze the off-white background. */
.watermark.bottom-left {
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 100%);
          mask-image: linear-gradient(to top, transparent 0%, #000 100%);
}
.watermark.top-right {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
}

/* --- Numbered stat grid — hairline dividers, oversized numerals --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
}
.stat {
  padding: var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.stat:nth-child(3n) { border-right: none; }
.stat:first-child { padding-left: 0; }

/* 13% white — measured off the design, where the rules read #ED7240 on orange */
.accent .stat-grid, .dark .stat-grid { border-top-color: rgba(255, 255, 255, 0.13); }
.accent .stat, .dark .stat { border-bottom-color: rgba(255, 255, 255, 0.13); border-right-color: rgba(255, 255, 255, 0.13); }

.stat-number {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-light);
  line-height: 1;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  font-variant-numeric: tabular-nums;
}
.accent .stat-number, .dark .stat-number { color: var(--color-pale-orange); }

.stat-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  margin: 0 0 0.5rem;
}
.stat-text { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.accent .stat-text, .dark .stat-text { color: rgba(255, 255, 255, 0.8); }

/* --- Accreditation logos: full colour, on a light band --- */
.accreditation-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}
.accreditation-row img { height: clamp(52px, 6vw, 84px); width: auto; }

/* --- Avatar --- */
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-white);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  color: var(--color-dark);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.large { width: 4rem; height: 4rem; font-size: 1rem; }

/* --- Rating summary — oversized score beside stars --- */
.rating-summary { display: flex; align-items: center; gap: var(--space-sm); }
.rating-score {
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-dark);
}
.rating-detail { font-size: 0.85rem; font-weight: var(--font-weight-semibold); color: var(--color-text); }
.dark .rating-score, .accent .rating-score { color: var(--color-white); }

/* --- Review card internals --- */
.review-quote { font-size: var(--font-size-md); line-height: var(--line-height-snug); margin: 0 0 var(--space-md); }
.review-divider { height: 1px; background: color-mix(in srgb, var(--color-faded-black) 28%, transparent); margin: var(--space-md) 0; border: none; }
.review-meta { display: flex; align-items: center; gap: 0.75rem; }
.review-name { font-size: 0.85rem; font-weight: var(--font-weight-bold); margin: 0; }
.review-place { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }

.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.verified svg { width: 13px; height: 13px; stroke: var(--color-success); fill: none; stroke-width: 3; }

/* --- Horizontal rule --- */
.divider { height: 1px; background: var(--color-border); border: none; margin: var(--space-lg) 0; }
.divider.accent-rule { background: var(--color-accent); }
.dark .divider, .accent .divider { background: rgba(255, 255, 255, 0.25); }

/* ==========================================================================
   SITE HEADER  (components/blocks/parts/nav.php + js/main.js)
   Dark bar, floating inset over the hero. Sticky variant for inner pages.
   ========================================================================== */

.site-header {
  position: fixed;
  top: var(--space-sm);
  left: 0;
  right: 0;
  z-index: 50;
  /* Keeps the floating bar off the viewport edges below the wide container */
  padding: 0 var(--container-padding);
}
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.is-solid { position: relative; top: 0; background: var(--color-dark); }

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  /* Same width as .body-container so the bar lines up with the page content */
  max-width: var(--profile-container-max);
  margin: 0 auto;
  padding: 0.75rem var(--space-md);
  border-radius: var(--profile-radius-sm);
  /* Fades in as .on-scroll arrives, and back out at the top */
  transition: background-color var(--transition-base);
  background: rgba(32, 32, 32, 0.85);
}
.site-nav.on-scroll {
  /* Stays slightly see-through on scroll; the blur keeps links readable */
  background: rgba(32, 32, 32, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.is-solid .site-nav { border-radius: 0; }

.site-logo { flex: 0 0 auto; display: block; }
.site-logo img { height: 34px; width: auto; }

.nav-links {
  /* Static on purpose: the pill and the mega menu position against .site-nav,
     so the mega panel can span the whole bar. The nav script measures the
     pill against its offset parent, whichever element that is. */
  position: static;
  display: flex;
  align-items: center;
  /* Padding on the links now carries most of the spacing, so the flex gap
     is reduced to keep the same text-to-text rhythm as before. */
  gap: 0.5rem;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.nav-links > li { padding-left: 0; margin-bottom: 0; }
.nav-links > li::before { content: none; }

.nav-link {
  position: relative;
  z-index: 1;
  display: block;
  /* Always present, so nothing shifts when the pill arrives */
  padding: 10px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--color-white); }
/* Current page: slightly heavier label only; the pill is hover-only */
.nav-link.is-current { color: var(--color-white); font-weight: var(--font-weight-semibold); }

/* Sliding pill — one element that moves and resizes between items.
   Injected by the nav script; width/height are set inline as it moves. */
.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 10px;
  background: var(--color-accent);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 420ms cubic-bezier(0.4, 0, 0.2, 1),
    width 420ms cubic-bezier(0.4, 0, 0.2, 1),
    height 420ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 200ms ease;
}
.nav-pill.is-visible { opacity: 1; }

/* No sliding for anyone who has asked for reduced motion — it still appears,
   it just does not travel. */
@media (prefers-reduced-motion: reduce) {
  .nav-pill { transition: opacity 180ms ease; }
}

.nav-actions { display: flex; align-items: center; gap: var(--space-md); flex: 0 0 auto; }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  white-space: nowrap;
}
.nav-phone svg { width: 17px; height: 17px; stroke: var(--color-accent); fill: none; stroke-width: 2; }
.nav-phone:hover { color: var(--color-pale-orange); }

@media (max-width: 1190px) {
  .nav-phone span {
    display: none;
  }
}

/* Mobile toggle — needs a small JS handler to flip aria-expanded */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--color-white);
  transition: var(--transition-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Dropdown and mega menus ---------------------------------------------
   A parent item is a link plus a caret button inside .nav-item; the pill
   covers both. Panels sit below the bar, dark, and fade up when the item
   has .is-open (set by the nav script). --- */
.nav-item { display: flex; align-items: center; }
.has-dropdown .nav-link { padding-right: 4px; }
/* The mega panel spans the bar, so its parent must not be a containing block */
.nav-links > li.has-mega { position: static; }

.nav-caret {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 44px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--color-white);
  cursor: pointer;
}
.nav-caret svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--transition-base); }
.nav-caret:focus-visible { outline: 2px solid var(--color-pale-orange); outline-offset: -2px; }
.has-dropdown.is-open .nav-caret svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  z-index: 60;
  min-width: 15rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--color-dark);
  border-radius: var(--profile-radius-sm);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}
.has-dropdown.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
/* Simple dropdown hangs off its item, which ends 0.75rem above the bar */
.has-dropdown:not(.has-mega) > .nav-dropdown { top: calc(100% + 1.5rem); }

.nav-dropdown > li { padding-left: 0; margin-bottom: 0; }
.nav-dropdown > li::before { content: none; }
.nav-dropdown > li > a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  white-space: nowrap;
}
.nav-dropdown > li > a:hover,
.nav-dropdown > li > a:focus-visible { background: rgba(255, 255, 255, 0.08); color: var(--color-white); outline: none; }

/* Mega panel — centred under the bar rather than spanning it. Three parts:
   an intro column, the six services in two columns, and a photo card. */
.nav-mega {
  left: 50%;
  right: auto;
  width: min(74rem, calc(100vw - 2 * var(--container-padding)));
  min-width: 0;
  padding: var(--space-md);
  /* Centring lives on `translate` so the fade-up on `transform` still runs */
  translate: -50% 0;
}
.nav-mega-inner {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) 14rem;
  gap: var(--space-md);
  align-items: stretch;
}
/* Menus without an intro column or feature card collapse to the parts they have */
.nav-mega-inner.no-intro { grid-template-columns: minmax(0, 1fr) 14rem; }
.nav-mega-inner.no-feature { grid-template-columns: 13rem minmax(0, 1fr); }
.nav-mega-inner.no-intro.no-feature { grid-template-columns: minmax(0, 1fr); }
.nav-mega-inner.no-intro .nav-mega-grid { border-left: 0; padding-left: 0; }

.nav-mega-intro { display: flex; flex-direction: column; padding: 0.5rem 0 0.5rem 0.5rem; }
.nav-mega-intro .small-title { margin-bottom: 0.6rem; }
.nav-mega-heading {
  margin: 0 0 0.5rem;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-white);
}
.nav-mega-lead { margin: 0 0 auto; padding-bottom: var(--space-sm); font-size: 0.9rem; line-height: var(--line-height-snug); color: rgba(255, 255, 255, 0.7); }
.nav-mega-intro .text-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-mega-intro .text-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform var(--transition-base); }
.nav-mega-intro .text-link:hover svg { transform: translateX(3px); }

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0 0 0 var(--space-md);
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-mega-grid > li { padding-left: 0; margin-bottom: 0; }
.nav-mega-grid > li::before { content: none; }

.nav-mega-card {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  height: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: var(--color-white);
  transition: background-color var(--transition-fast);
}
.nav-mega-card:hover,
.nav-mega-card:focus-visible { background: rgba(255, 255, 255, 0.08); color: var(--color-white); outline: none; }

/* Icons come in different proportions; the circle gives them one footprint */
.nav-mega-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color var(--transition-fast);
}
.nav-mega-card:hover .nav-mega-icon { background: rgba(230, 93, 37, 0.18); }
.nav-mega-icon img,
.nav-mega-icon svg { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.nav-mega-icon svg { fill: none; stroke: var(--color-accent); stroke-width: 2.25; }

.nav-mega-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.nav-mega-title { font-size: 0.95rem; font-weight: var(--font-weight-semibold); line-height: var(--line-height-snug); text-wrap: balance; }
.nav-mega-text { font-size: 0.8rem; line-height: var(--line-height-snug); color: rgba(255, 255, 255, 0.65); }

/* Photo card — the whole card is the quote link */
.nav-mega-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 15rem;
  border-radius: 10px;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-dark-lighter);
}
.nav-mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.nav-mega-feature:hover img { transform: scale(1.04); }
.nav-mega-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 32, 32, 0.92) 0%, rgba(32, 32, 32, 0.55) 55%, rgba(32, 32, 32, 0.15) 100%);
}
.nav-mega-feature-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem; }
.nav-mega-feature-body .small-title { color: var(--color-pale-orange); margin: 0; }
.nav-mega-feature-title { font-size: 0.95rem; font-weight: var(--font-weight-semibold); line-height: var(--line-height-snug); }
.nav-mega-feature .main-button { align-self: flex-start; margin-top: 0.35rem; }
.nav-mega-feature .main-button svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown, .nav-caret svg, .nav-mega-icon, .nav-mega-feature img { transition: none; }
}

/* Stacked menu: panels become inline accordions under their parent */
@media (max-width: 1100px) {
  .nav-links.is-open .nav-item { justify-content: space-between; }
  .nav-links.is-open .nav-item .nav-link { flex: 1 1 auto; }
  .nav-links.is-open .nav-caret { width: 44px; margin: 0; }
  .nav-links.is-open .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.25rem 0 0.5rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-links.is-open .has-dropdown.is-open > .nav-dropdown { display: block; }
  .nav-links.is-open .nav-mega { width: auto; translate: none; }
  .nav-links.is-open .nav-mega-inner { grid-template-columns: 1fr; gap: 0; }
  .nav-links.is-open .nav-mega-grid { grid-template-columns: 1fr; border-left: 0; padding-left: 0; }
  .nav-links.is-open .nav-mega-card { grid-template-columns: 2.25rem minmax(0, 1fr); padding: 0.5rem 0.75rem; }
  .nav-links.is-open .nav-mega-icon { width: 2.25rem; height: 2.25rem; }
  .nav-links.is-open .nav-mega-icon img,
  .nav-links.is-open .nav-mega-icon svg { width: 1.25rem; height: 1.25rem; }
  .nav-links.is-open .nav-mega-text,
  .nav-links.is-open .nav-mega-intro,
  .nav-links.is-open .nav-mega-feature { display: none; }
}

/* Stacked menu below 1100px: links hide behind the toggle and open as a panel */
@media (max-width: 1100px) {
  .site-nav {
    justify-content: space-between;
  }
  .nav-links { display: none; margin: 0; }
  .nav-pill { display: none; }
  .nav-toggle { display: flex; }

  .nav-phone {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: var(--space-xs);
    border-radius: var(--profile-radius-sm);
    background: var(--color-dark);
    box-shadow: var(--shadow-xl);
  }
  .nav-links.is-open .nav-link {
    display: block;
    padding: 0.7rem 0.75rem;
    border-radius: var(--profile-radius-sm);
  }
  .nav-links.is-open .nav-link:hover { background: rgba(255, 255, 255, 0.08); }
}

.nav-cta-mobile {
    display: none;
}

@media (max-width: 767px) {
  .site-nav { padding: 0.6rem var(--space-sm); }
  .nav-phone span { display: none; }
  .site-nav .main-button {
    display: none;
  }
  .nav-cta-mobile {
    display: block;
  }

  .nav-cta-mobile .main-button{
    display: block!important;
  }
}

/* ==========================================================================
   SITE FOOTER  (footer.php)
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-lg) var(--grid-gutter);
  position: relative;
  z-index: 2;
  /* Clear ground on the right for the mark */
  padding-right: clamp(200px, 16vw, 300px);
}
.site-footer.no-mark .footer-grid { padding-right: 0; }
.footer-grid.cols-1 { grid-template-columns: 2fr 1fr; }
.footer-grid.cols-2 { grid-template-columns: 2fr repeat(2, 1fr); }
.footer-grid.cols-3 { grid-template-columns: 2fr repeat(3, 1fr); }

.footer-intro { max-width: 34ch; }
.footer-intro .site-logo img { height: 38px; width: auto; margin-bottom: var(--space-md); }
.footer-intro p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
/* Optional second logo under the intro (Site Content → Footer) */
.footer-second-logo { margin-top: var(--space-md); }
.footer-second-logo a { display: inline-block; }
.footer-second-logo img { display: block; height: 48px; width: auto; max-width: 100%; }

.footer-heading {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin: 0 0 var(--space-sm);
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links > li { padding-left: 0; margin-bottom: 0.5rem; }
.footer-links > li::before { content: none; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--color-white);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-pale-orange); }

.footer-legal {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal p { margin: 0; color: inherit; font-size: inherit; }
.footer-legal-links { display: flex; gap: var(--space-md); margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.footer-legal-links > li { padding-left: 0; margin-bottom: 0; }
.footer-legal-links > li::before { content: none; }
.footer-legal-links a { color: rgba(255, 255, 255, 0.5); transition: color var(--transition-fast); }
.footer-legal-links a:hover { color: var(--color-pale-orange); }

/* Orange mark on the right, centred on the footer's height and held to the
   container's right edge, as the design shows */
.footer-mark {
  position: absolute;
  top: 50%;
  right: max(var(--container-padding), calc((100% - var(--profile-container-max)) / 2 + var(--container-padding)));
  height: clamp(160px, 12vw, 230px);
  width: auto;
  translate: 0 -50%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   6. UTILITIES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable:focus {
  position: static;
  width: auto; height: auto;
  margin: 0; overflow: visible; clip: auto; white-space: normal;
}

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

.stack > * + * { margin-top: var(--space-sm); }
.stack.tight > * + * { margin-top: var(--space-xs); }
.stack.loose > * + * { margin-top: var(--space-md); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.relative { position: relative; }
.hidden { display: none !important; }

/* Legacy container — still used by the nav, 404 and search templates */
.container {
  width: 100%;
  max-width: var(--profile-container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 4;
}

/* ==========================================================================
   7. RESPONSIVE (base rules only — block/header/footer rules live with them)
   ========================================================================== */

@media (max-width: 991px) {
  :root { --profile-section-padding: calc(var(--space-2xl) * var(--profile-space-multiplier)); }
  .footer-grid, .footer-grid.cols-3, .footer-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 0; }
  .footer-mark { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3n) { border-right: 1px solid var(--color-border); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:first-child { padding-left: var(--space-md); }
  .accent .stat:nth-child(3n), .dark .stat:nth-child(3n) { border-right-color: rgba(255, 255, 255, 0.13); }
  .columns._3-col, .columns._4-col { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-4 { grid-column: span 6; }
  .span-5, .span-7 { grid-column: span 12; }
}

@media (max-width: 767px) {
  :root { --container-padding: 1rem; }
  .footer-grid, .footer-grid.cols-1, .footer-grid.cols-2, .footer-grid.cols-3 { grid-template-columns: 1fr; }
  .footer-intro { max-width: none; }
  .rating-score { font-size: var(--font-size-2xl); }
  .stat-grid { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2n), .stat:nth-child(3n) { border-right: none; padding-left: 0; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .columns._2-col, .columns._3-col, .columns._4-col { grid-template-columns: 1fr; }
  .text-restrict._2-cols { columns: 1; }
  .button-holder { flex-direction: column; align-items: stretch; }
  .main-button { width: 100%; }
}

@media (max-width: 479px) {
  :root { --profile-section-padding: var(--space-xl); }
  .card-body { padding: var(--space-sm); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .card-base:hover, .main-button:hover { transform: none; }
}
