/* =============================================================================
   Hunston Grove — main.css v2.0
   =============================================================================
   1.  Custom Properties (design tokens)
   2.  Reset & Base
   3.  Typography Scale  (H1–H6, P, utility classes)
   4.  Section Utilities (padding + background colour system)
   5.  Layout Utilities  (container, grid helpers)
   6.  Global Components (buttons, links, dots, forms)
   7.  Site Logo
   8.  Site Header  (sticky, transparent→solid, mobile nav)
   9.  Layout: Hero
   10. Layout: Solutions
   11. Layout: Stats & World Map
   12. Layout: Clients
   13. Layout: Capabilities
   14. Layout: Insights
   15. Layout: CTA Banner
   16. Site Footer
   17. Inner Pages
   18. Scroll Reveal & Counter Animations
   19. Responsive ≤1024px
   20. Responsive ≤860px  (mobile nav)
   21. Responsive ≤640px
   22. Responsive ≤420px
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   1. CUSTOM PROPERTIES
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Colours */
  --clr-dark:       #1c1918;
  --clr-dark-80:    rgba(28, 25, 24, 0.8);
  /*--clr-text:       #3a3530;*/
  --clr-text:       #2C2825;
  --clr-muted:      #7d7268;
  --clr-border:     #ddd5c8;
  --header-default-bg:  var(--clr-dark);    /* Customizer: Header & Footer → Header Background (default) */
  --header-scrolled-bg: var(--clr-white);   /* Customizer: Header & Footer → Header Background (scrolled) */
  --footer-bg:          var(--clr-dark);    /* Customizer: Header & Footer → Footer Background */

  /* Navigation — all overridden by Customizer → Header & Footer → Navigation */
  --nav-color-default:  var(--clr-white);  /* Link colour — default header */
  --nav-color-sticky:   var(--clr-text);   /* Link colour — sticky header */
  --nav-hover-default:  var(--clr-gold);   /* Hover text colour — default header */
  --nav-hover-sticky:   var(--clr-gold);   /* Hover text colour — sticky header */
  --nav-border-default: var(--clr-gold);   /* Underline colour on hover — default header */
  --nav-border-sticky:  var(--clr-gold);   /* Underline colour on hover — sticky header */
  --nav-fs:             var(--fs-xs);      /* Menu item font size */
  --clr-gold:       #b8915a;
  --clr-gold-hover: #c9a46d;
  --clr-white:      #ffffff;
  /* --clr-cream:      #f5f0e8; */
  --clr-cream:      #EBE4D4;
  --clr-cream-alt:  #faf7f2;
  --clr-sand:       #e8ddd0;
  --clr-green:      #3A4A3F;
  --clr-green-dark: #2e3d34;
  --clr-map:        #d4c9b8;   /* SVG world map continent fill */

  /* Typography */
  --ff-serif:  "arno-pro-caption",serif;
  --ff-sans:   "proxima-nova",sans-serif;

  /* Type scale */
  --fs-h1:  clamp(2.6rem, 5vw, 4rem); 
  --fs-h2:  clamp(2rem, 3.5vw, 3rem);
  --fs-h3:  clamp(1.4rem, 2.5vw, 1.9rem);
  --fs-h4:  clamp(1.15rem, 2vw, 1.4rem);
  --fs-h5:  1.1rem;
  --fs-h6:  0.95rem;
  --fs-xl:  clamp(1.1rem, 1.8vw, 1.25rem);
  --fs-base: 1rem;
  --fs-sm:  0.9rem;
  --fs-xs:  0.8rem;

  /* Spacing scale */
  --sp-1:  4px;   --sp-2:  8px;   --sp-3:  12px;  --sp-4:  16px;
  --sp-5:  20px;  --sp-6:  24px;  --sp-8:  32px;  --sp-10: 40px;
  --sp-12: 48px;  --sp-14: 56px;  --sp-16: 64px;  --sp-20: 80px; 
  --sp-24: 96px;  --sp-28: 112px; --sp-32: 128px; --sp-35: 140px; --sp-40: 160px;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Easing */
  --ease-base:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:  0.5s  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slide: 0.5s  cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-h: 72px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }
hr { border: none; }

.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;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY SCALE
   ───────────────────────────────────────────────────────────────────────────── */

/* Headings — serif */
h1, .h1 { font-family: var(--ff-serif); font-size: var(--fs-h1); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--ff-serif); font-size: var(--fs-h2); font-weight: 400; line-height: 1.18; }
h3, .h3 { font-family: var(--ff-serif); font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; }
h4, .h4 { font-family: var(--ff-sans);  font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; }
h5, .h5 { font-family: var(--ff-sans);  font-size: var(--fs-h5); font-weight: 600; line-height: 1.4; }
h6, .h6 { font-family: var(--ff-sans);  font-size: var(--fs-h6); font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; }

p { font-size: var(--fs-base); line-height: 1.72; }
p + p { margin-top: var(--sp-4); }

.text-accent { font-style: italic; color: var(--clr-gold); }
.text-muted  { color: var(--clr-muted); }

/* Section heading variant used across sections */
.section-heading {
  font-family: var(--ff-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.18;
  color: var(--clr-dark);
}
.section-heading--centered { text-align: center; }
.section-heading .text-accent { display: block; }

.section-divider {
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-10) 0;
}

/* Two-column section header */
.section-header--two-col {
  display: grid;
  grid-template-columns: 1fr 49%;
  gap: 106px;
  align-items: start;
  margin-bottom: var(--sp-12);
}
.section-intro { color: var(--clr-muted); font-size: var(--fs-sm); line-height: 1.8; }

/* Entry content (inner pages) */
.entry-content h2 { margin: var(--sp-10) 0 var(--sp-4); }
.entry-content h3 { margin: var(--sp-8) 0 var(--sp-3); }
.entry-content p  { margin-bottom: var(--sp-4); }
.entry-content ul, .entry-content ol { padding-left: var(--sp-8); margin-bottom: var(--sp-4); }
.entry-content li { margin-bottom: var(--sp-2); }

/* ─────────────────────────────────────────────────────────────────────────────
   4. SECTION UTILITY SYSTEM
   Padding utilities:  pt-{none|xs|sm|md|lg|xl}  pb-{…}
   Background utilities: bg-{white|cream|cream-alt|sand|dark|green|custom}
   ───────────────────────────────────────────────────────────────────────────── */

/* Padding top */
.pt-none { padding-top: 0 !important; }
.pt-xs   { padding-top: var(--sp-8)  !important; }
.pt-sm   { padding-top: var(--sp-14) !important; }
.pt-md   { padding-top: var(--sp-20) !important; }
.pt-lg   { padding-top: var(--sp-28) !important; }
.pt-xl   { padding-top: var(--sp-40) !important; }

/* Padding bottom */
.pb-none { padding-bottom: 0 !important; }
.pb-xs   { padding-bottom: var(--sp-8)  !important; }
.pb-sm   { padding-bottom: var(--sp-14) !important; }
.pb-md   { padding-bottom: var(--sp-20) !important; }
.pb-lg   { padding-bottom: var(--sp-28) !important; }
.pb-xl   { padding-bottom: var(--sp-40) !important; }

/* Background colours */
.bg-white     { background-color: var(--clr-white); }
.bg-cream     { background-color: var(--clr-cream); }
.bg-cream-alt { background-color: var(--clr-cream-alt); }
.bg-sand      { background-color: var(--clr-sand); }
.bg-dark      { background-color: var(--clr-dark);      color: var(--clr-white); }
.bg-green     { background-color: var(--clr-green);     color: var(--clr-white); }
.bg-custom    { /* background-color set inline */ }

/* Dark / green section text overrides */
.bg-dark .section-heading,
.bg-green .section-heading  { color: var(--clr-white); }
.bg-dark .section-intro,
.bg-green .section-intro     { color: rgba(255,255,255,0.65); }
.bg-dark hr, .bg-green hr    { border-color: rgba(255,255,255,0.15); }

/* Base section block */
.hg-section { position: relative; overflow: hidden; }

/* ─────────────────────────────────────────────────────────────────────────────
   5. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. GLOBAL COMPONENTS
   ───────────────────────────────────────────────────────────────────────────── */

/* Discover more link */
.link-discover, .team-card__link {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--clr-dark);
  position: relative;
  padding-bottom: 2px;
  margin-top: var(--sp-4);
  transition: color var(--ease-base);
}
.link-discover::after, .team-card__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--clr-gold);
  transition: width var(--ease-base);
}
.link-discover:hover , .team-card__link:hover{ color: var(--clr-gold); }
.link-discover:hover::after,
.link-discover:focus::after,
.team-card__link:hover::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transition: background var(--ease-base), color var(--ease-base);
  cursor: pointer;
}
.btn--outline-light {
  color: var(--clr-white);
  border-color: var(--clr-white);
}
.btn--outline-light:hover {
  background: var(--clr-white);
  color: var(--clr-dark);
}
.btn--gold {
  background: var(--clr-gold);
  color: var(--clr-white);
  border-color: var(--clr-gold);
}
.btn--gold:hover {
  background: var(--clr-gold-hover);
  border-color: var(--clr-gold-hover);
}

/* Slider dots */
.slider-dots {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  align-items: center;
}
.slider-dots--light .slider-dot { border-color: rgba(255,255,255,0.5); }
.slider-dots--light .slider-dot.is-active { background: var(--clr-gold); border-color: var(--clr-gold); }

.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border);
  background: transparent;
  transition: background var(--ease-base), border-color var(--ease-base), transform var(--ease-base);
  cursor: pointer;
  padding: 0;
}
.slider-dot.is-active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  transform: scale(1.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. SITE LOGO
   ───────────────────────────────────────────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--clr-white);
  text-decoration: none;
  transition: opacity var(--ease-base);
}
.site-logo:hover { opacity: 0.85; }

.site-logo__mark {
  width: 34px;
  height: 40px;
  flex-shrink: 0;
}
.site-logo__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-logo__name  { color: inherit; }
.site-logo__grove { color: var(--clr-gold); }

/* Dark context override (footer uses dark background, logo inverted separately) */
.site-footer .site-logo { color: var(--clr-white); }

/* When header is scrolled and has light bg */
.site-header.is-scrolled .site-logo { color: var(--clr-dark); }
.site-header.is-scrolled .site-logo__grove { color: var(--clr-gold); }

/* ─────────────────────────────────────────────────────────────────────────────
   8. SITE HEADER
   Default: sticky, uses --header-default-bg (set in Customizer).
   On scroll: .is-scrolled applied by JS → --header-scrolled-bg + smaller logo.
   ───────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;              /* was sticky — fixed lifts it out of flow so
                                   the hero can sit underneath it */
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-default-bg);
  transition: background var(--ease-base), box-shadow var(--ease-base), height var(--ease-base);
}
.site-header.is-scrolled {
  background: var(--header-scrolled-bg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  height: calc(var(--header-h) - 16px); /* Slightly shorter when sticky */
}

/* Hero sections sit naturally below the header — no overlap */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Primary nav */
.nav-primary__list {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}
.nav-primary__link {
  font-family: var(--ff-sans);
  font-size: var(--nav-fs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-color-default);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--ease-base);
}
.site-header.is-scrolled .nav-primary__link { color: var(--nav-color-sticky); }

.nav-primary__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--nav-border-default);
  transition: width var(--ease-base);
}
.site-header.is-scrolled .nav-primary__link::after {
  background: var(--nav-border-sticky);
}
.nav-primary__link:hover,
.nav-primary__item--active .nav-primary__link { color: var(--nav-hover-default); }
.site-header.is-scrolled .nav-primary__link:hover,
.site-header.is-scrolled .nav-primary__item--active .nav-primary__link { color: var(--nav-hover-sticky); }
.nav-primary__link:hover::after,
.nav-primary__item--active .nav-primary__link::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 910;
}
.nav-toggle__bar {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--nav-color-default);
  transition: transform var(--ease-base), opacity var(--ease-base), background var(--ease-base);
  transform-origin: center;
}
.site-header.is-scrolled .nav-toggle__bar { background: var(--nav-color-sticky); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

body.nav-is-open { overflow: hidden; }

/* ─────────────────────────────────────────────────────────────────────────────
   9. LAYOUT: HERO
   ───────────────────────────────────────────────────────────────────────────── */
.hg-section--hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-20);
  color: var(--clr-white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__overlay {
  position: absolute;
  background: linear-gradient(180deg, rgba(58, 74, 63, 0) 0%, #3A4A3F 100%), linear-gradient(180deg, rgba(58, 74, 63, 0) 0%, #3A4A3F 100%), linear-gradient(180deg, rgba(58, 74, 63, 0) 0%, #3A4A3F 100%);
  height: 275px;
  bottom: 0;
  top: auto;
	width: 100%;
}
.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__heading { color: var(--clr-white); }
/*.hero__line1   { display: block; }
.hero__line2   { display: block; }*/

/* ─────────────────────────────────────────────────────────────────────────────
   10. LAYOUT: SOLUTIONS
   ───────────────────────────────────────────────────────────────────────────── */
.solutions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.solution-card {
  padding: var(--sp-10) var(--sp-8);
  border-right: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.solution-card:nth-child(2n) { border-right: none; }
.solution-card:nth-last-child(-n+2) { border-bottom: none; }

.solution-card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
}
.solution-card__text {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.72;
  margin-bottom: var(--sp-4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. LAYOUT: STATS & WORLD MAP
   ───────────────────────────────────────────────────────────────────────────── */
.stats__header { text-align: center; margin-bottom: var(--sp-14); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
  text-align: center;
}
.stat-item { padding: var(--sp-6); }
.stat-item__number {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.stat-item__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clr-muted);
  text-transform: uppercase;
}

/* World map */
.stats__map-wrap { margin-top: var(--sp-4); }
.stats-map {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 2 / 1;
  overflow: visible;
}
.stats-map__img,
.stats-map__svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stats-map__svg path { transition: opacity var(--ease-base); }

.stats-map__pins { position: absolute; inset: 0; pointer-events: none; }

/* Map pin */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.map-pin__dot {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clr-dark);
  border: 2px solid var(--clr-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.map-pin__pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--clr-gold);
  opacity: 0;
  animation: map-pulse 2.4s ease-out infinite;
  z-index: 1;
}
@keyframes map-pulse {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

.map-pin__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 3px;
  padding: var(--sp-2) var(--sp-4);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-base);
  z-index: 10;
}
.map-pin__tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--clr-white);
}
.map-pin:hover .map-pin__tooltip { opacity: 1; }
.map-pin__client { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--clr-dark); }
.map-pin__desc   { display: block; font-size: 0.72rem; color: var(--clr-muted); }

/* ─────────────────────────────────────────────────────────────────────────────
   12. LAYOUT: CLIENTS
   ───────────────────────────────────────────────────────────────────────────── */
.clients__track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-10) var(--sp-14);
  margin-top: var(--sp-12);
}
.clients__item { display: flex; align-items: center; }
.clients__logo {
  max-height: 95px;
  max-width: 160px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /*filter: grayscale(100%) opacity(0.55);*/
  transition: filter var(--ease-base);
}
.clients__item:hover .clients__logo { filter: grayscale(0%) opacity(1); }
.clients__placeholder-text {
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--clr-sand);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 var(--sp-6);
}
/* Hide the marquee fade-edges until real logos are uploaded */
.clients__item--placeholder ~ .clients__item--placeholder ~ .clients__item--placeholder .clients__placeholder-text {
  opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. LAYOUT: CAPABILITIES
   ───────────────────────────────────────────────────────────────────────────── */
.hg-section--capabilities {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--clr-white);
}
.capabilities__media {
  position: absolute;
  inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}
.capabilities__media.is-active { opacity: 1; }
.capabilities__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.capabilities__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,25,24,0.88) 0%, rgba(28,25,24,0.55) 55%, rgba(28,25,24,0.15) 100%);
  z-index: 1;
}
.capabilities__content { position: relative; z-index: 3; max-width: 520px; padding: var(--sp-20) 0; }
.capabilities__slide { display: none; }
.capabilities__slide.is-active { display: block; animation: fadeInUp 0.5s ease forwards; }
.capabilities__label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-gold); margin-bottom: var(--sp-5); }
.capabilities__heading { font-family: var(--ff-serif); font-size: var(--fs-h2); font-weight: 400; color: var(--clr-white); margin-bottom: var(--sp-5); line-height: 1.2; }
.capabilities__text { font-size: var(--fs-sm); color: rgba(255,255,255,0.72); line-height: 1.78; margin-bottom: var(--sp-8); }
.slider-dots--light { margin-top: var(--sp-6); }

/* ─────────────────────────────────────────────────────────────────────────────
   14. LAYOUT: INSIGHTS
   ───────────────────────────────────────────────────────────────────────────── */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10) var(--sp-8);
  margin-top: var(--sp-10);
}
.insight-card { display: flex; flex-direction: column; border-bottom: 1px solid var(--clr-green); padding-bottom: 30px; }
.insight-card__img-link { overflow: hidden; display: block; }
.insight-card__figure { overflow: hidden; margin: 0; }
.insight-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform var(--ease-slow);
}
.insight-card:hover .insight-card__img { transform: scale(1.04); }
.insight-card__img-placeholder {
  aspect-ratio: 3/2;
  background: var(--clr-cream);
  border: 1px dashed var(--clr-border);
}
.insight-card__body { padding-top: var(--sp-5); flex: 1; }
.insight-card__category {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-2);
}
.insight-card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.3;
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
}
.insight-card__title a { transition: color var(--ease-base); }
.insight-card__title a:hover { color: var(--clr-gold); }
.insight-card__excerpt { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.7; }

/* ─────────────────────────────────────────────────────────────────────────────
   15. LAYOUT: CTA BANNER
   ───────────────────────────────────────────────────────────────────────────── */
.hg-section--cta-banner {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--clr-white);
}
.cta-banner__media { position: absolute; inset: 0; margin: 0; }
.cta-banner__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,25,24,0.80) 0%, rgba(28,25,24,0.45) 65%, rgba(28,25,24,0.15) 100%);
}
.cta-banner__content { position: relative; z-index: 2; max-width: 560px; padding: var(--sp-16) 0; }
.cta-banner__heading { font-family: var(--ff-serif); font-size: var(--fs-h2); font-weight: 400; line-height: 1.2; color: var(--clr-white); margin-bottom: var(--sp-6); }
.cta-banner__text { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); line-height: 1.78; margin-bottom: var(--sp-8); }

/* ─────────────────────────────────────────────────────────────────────────────
   16. SITE FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--clr-white);
  padding: var(--sp-16) 0 var(--sp-8);
}
.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__nav-list { display: flex; gap: var(--sp-8); flex-wrap: wrap; align-items: flex-start; }
.site-footer__nav-link {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--ease-base);
}
.site-footer__nav-link:hover { color: var(--clr-gold); }

.site-footer__newsletter { padding: var(--sp-12) 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer__newsletter-label {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}
.newsletter-form__group { display: flex; max-width: 480px; }
.newsletter-form__input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  color: var(--clr-white);
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--ease-base);
}
.newsletter-form__input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form__input:focus { border-color: var(--clr-gold); }
.newsletter-form__submit {
  padding: 12px 24px;
  background: var(--clr-gold);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--clr-gold);
  cursor: pointer;
  transition: background var(--ease-base);
  white-space: nowrap;
}
.newsletter-form__submit:hover { background: var(--clr-gold-hover); border-color: var(--clr-gold-hover); }
.newsletter-form__message { margin-top: var(--sp-3); font-size: var(--fs-xs); min-height: 1.4em; }
.newsletter-form__message--success { color: #86efac; }
.newsletter-form__message--error   { color: #fca5a5; }

.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-8);
}
.site-footer__copyright { font-size: var(--fs-xs); color: rgba(255,255,255,0.4); }

/* ─────────────────────────────────────────────────────────────────────────────
   17. INNER PAGES
   ───────────────────────────────────────────────────────────────────────────── */
.page-hero {
  position: relative; min-height: 380px;
  display: flex; align-items: flex-end;
  padding-bottom: var(--sp-16); overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; margin: 0; }
.page-hero__img   { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay, .team-hero__overlay { position: absolute; inset: 0; background: rgba(28,25,24,0.5); }
.page-hero__content { position: relative; z-index: 2; }
.page-hero__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-h1);
  color: var(--clr-white);
  font-weight: 400;
}
.page-header { padding: var(--sp-20) 0 var(--sp-10); }
.page-header__title { font-family: var(--ff-serif); font-size: var(--fs-h2); color: var(--clr-dark); }
.page-body { padding: var(--sp-14) 0 var(--sp-20); }

/* Single insight */
/*.insight-single { margin-top: var(--header-h); }*/
.insight-single__hero { position: relative; height: 460px; overflow: hidden; margin: 0; }
.insight-single__hero-img { width: 100%; height: 100%; object-fit: cover; }
.insight-single__hero-overlay { position: absolute; inset: 0; background: rgba(28,25,24,0.35); }
.insight-single__inner { max-width: 780px; margin: 0 auto; padding: var(--sp-14) 0 var(--sp-24); }
.insight-single__header { margin-bottom: var(--sp-10); }
.insight-single__title { font-family: var(--ff-serif); font-size: var(--fs-h2); font-weight: 400; color: var(--clr-dark); margin: var(--sp-4) 0 var(--sp-3); }
.insight-single__meta  { font-size: var(--fs-xs); color: var(--clr-muted); }
.insight-single__body  { font-size: var(--fs-base); line-height: 1.8; }
.insight-single__footer { margin-top: var(--sp-14); padding-top: var(--sp-10); border-top: 1px solid var(--clr-border); }

/* Insights archive */
.insights-archive { }
.insights-archive__grid { margin-top: var(--sp-10); }
.insights-archive__pagination { margin-top: var(--sp-16); }
.insights-archive__filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.insights-archive__filter-link {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  transition: background var(--ease-base), color var(--ease-base), border-color var(--ease-base);
}
.insights-archive__filter-link:hover {
  background: var(--clr-gold); color: var(--clr-white); border-color: var(--clr-gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   18. SCROLL REVEAL & COUNTER ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.insights__grid .insight-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.insights__grid .insight-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.solutions__grid .solution-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.solutions__grid .solution-card.reveal:nth-child(3) { transition-delay: 0.14s; }
.solutions__grid .solution-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.stats__grid .stat-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.stats__grid .stat-item.reveal:nth-child(3) { transition-delay: 0.14s; }
.stats__grid .stat-item.reveal:nth-child(4) { transition-delay: 0.2s; }

/* ─────────────────────────────────────────────────────────────────────────────
   19. RESPONSIVE ≤1024px
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .insights__grid { grid-template-columns: repeat(2, 1fr); }
  .pt-lg { padding-top: var(--sp-20) !important; }
  .pt-xl { padding-top: var(--sp-28) !important; }
  .pb-lg { padding-bottom: var(--sp-20) !important; }
  .pb-xl { padding-bottom: var(--sp-28) !important; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   20. RESPONSIVE ≤860px — MOBILE NAV
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-primary {
    position: fixed;
    inset: 0;
    background: var(--clr-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease-base);
    z-index: 800;
  }
  .nav-primary.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-primary__list {
    flex-direction: column;
    gap: var(--sp-6);
    text-align: center;
  }
  .nav-primary__link {
    font-size: var(--fs-h4);
    font-family: var(--ff-serif);
    color: var(--clr-white) !important;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .section-header--two-col {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   21. RESPONSIVE ≤640px
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .solutions__grid { grid-template-columns: 1fr; }
  .solution-card { border-right: none !important; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .insights__grid { grid-template-columns: 1fr; }

  .clients__track { gap: var(--sp-8); }

  .site-footer__top { flex-direction: column; }
  .site-footer__nav-list { flex-direction: column; gap: var(--sp-3); }
  .newsletter-form__group { flex-direction: column; }
  .newsletter-form__input { border-right: 1px solid rgba(255,255,255,0.2); border-bottom: none; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   22. RESPONSIVE ≤420px
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat-item__number { font-size: 2.4rem; }
  .hg-section--hero { min-height: 75vh; }
}

/* =============================================================================
   ADDITIONS v2.1
   1. Hero Slider
   2. Map Popup
   3. Logo Marquee
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   1. HERO SLIDER
   ───────────────────────────────────────────────────────────────────────────── */

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide.is-active { opacity: 1; }

.hero__slide .hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

/* Position the heading container at the bottom — mirrors the single-image layout */
.hero__slide > .container {
  position: absolute;
  bottom: var(--sp-20);
  left: 0;
  right: 0;
  z-index: 3;
}

/* ── Slide effect variants ───────────────────────────────────────────────── */

/* SLIDE — horizontal */
.hg-slider--slide .hero__slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.hg-slider--slide .hero__slide.is-active  { transform: translateX(0); }
.hg-slider--slide .hero__slide.is-leaving {
  transform: translateX(-100%);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* ZOOM — next slide scales in */
.hg-slider--zoom .hero__slide {
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.1s ease, transform 1.4s ease;
}
.hg-slider--zoom .hero__slide.is-active { opacity: 1; transform: scale(1); }

/* KEN BURNS — cinematic slow zoom on the background image */
.hg-slider--kenburns .hero__slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hg-slider--kenburns .hero__slide.is-active { opacity: 1; }
.hg-slider--kenburns .hero__slide.is-active .hero__bg-img {
  animation: hg-kenburns 10s ease-out forwards;
}
@keyframes hg-kenburns {
  from { transform: scale(1.0)  translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, -1%); }
}

/* Slider dot nav — bottom right corner inside hero */
.hero__slider-nav {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--gutter);
  z-index: 4;
}

.hero__dots {
  justify-content: flex-end;
  margin-top: 0;
}

/* Dots on dark hero background */
.hero__dots .slider-dot {
  border-color: rgba(255,255,255,0.5);
}
.hero__dots .slider-dot.is-active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. MAP PINS — CLICKABLE BUTTON STYLE
   ───────────────────────────────────────────────────────────────────────────── */

/* Override: pin is now a <button> */
button.map-pin {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* override .stats-map__pins { pointer-events: none } */
}

button.map-pin:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: 50%;
}

button.map-pin:hover .map-pin__dot {
  background: var(--clr-gold);
  transform: scale(1.3);
}

.map-pin__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-dark);
  border: 2px solid var(--clr-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  transition: background var(--ease-base), transform var(--ease-base);
}

/* ── MAP POPUP ─────────────────────────────────────────────────────────────── */

.map-popup {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--sp-6);
}

.map-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.map-popup__card {
  background: var(--clr-white);
  padding: var(--sp-12) var(--sp-10);
  max-width: 460px;
  width: 100%;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-popup.is-open .map-popup__card {
  transform: translateY(0);
}

.map-popup__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--clr-muted);
  cursor: pointer;
  transition: background var(--ease-base), color var(--ease-base);
}

.map-popup__close:hover {
  background: var(--clr-cream);
  color: var(--clr-dark);
}

.map-popup__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-3);
}

.map-popup__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.map-popup__desc {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.72;
  margin-bottom: var(--sp-8);
  min-height: 1.4em;
}

.map-popup__link {
  display: inline-block;
  color: var(--clr-white);
}

/* Hide link button when no URL is set */
.map-popup__link[href="#"],
.map-popup__link[href=""] {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. LOGO MARQUEE
   ───────────────────────────────────────────────────────────────────────────── */

.clients__marquee {
  margin-top: var(--sp-12);
  overflow: hidden;
  /* Fade edges to transparent for a clean entry/exit */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients__track {
  display: flex;
  /* Override the old static flex layout */
  flex-wrap: nowrap;
  gap: 0;
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
  margin-top: 0;
}

.clients__track-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-14);
  flex-shrink: 0;
  padding-right: var(--sp-14); /* gap after last item before loop */
  animation: hg-marquee 28s linear infinite;
  will-change: transform;
}

/* Pause on hover for accessibility */
.clients__marquee:hover .clients__track-inner {
  animation-play-state: paused;
}

@keyframes hg-marquee {
  0%   { transform: translateX(50%); }
  100% { transform: translateX(-50%); }
}

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

/* Responsive: slow down on mobile */
@media (max-width: 640px) {
  .clients__track-inner { animation-duration: 20s; }
}

/* =============================================================================
   ADDITIONS v2.2 — New layouts & templates
   1.  Page Hero (inner pages)
   2.  Text + Image
   3.  Team Grid
   4.  Feature Columns
   5.  Testimonial Slider
   6.  Role List
   7.  Case Study Cards header
   8.  Contact Section
   9.  Footer (two-column nav)
   10. Insights Archive (featured slider, filter, pagination)
   11. Insight Single (hero, body blocks, post nav)
   ============================================================================= */

/* ── 1. PAGE HERO ─────────────────────────────────────────────────────────── */
.hg-section--page-hero, .hg-section--team-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-12);
  overflow: hidden;
  color: var(--clr-white);
  background: var(--clr-cream);
  margin-top: 0; /* header is fixed so no push needed */
}
.page-hero__media, .team-hero__media{
  position: absolute;
  inset: 0; margin: 0;
}
.page-hero__bg-img, .team-hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.page-hero__overlay, .team-hero__overlay {
  position: absolute;
  background: linear-gradient(180deg, rgba(58, 74, 63, 0) 0%, #3A4A3F 100%), linear-gradient(180deg, rgba(58, 74, 63, 0) 0%, #3A4A3F 100%), linear-gradient(180deg, rgba(58, 74, 63, 0) 0%, #3A4A3F 100%);
  height: 215px;
  bottom: 0;
  top: auto;
	
}
.page-hero__content, .team-hero__content { position: relative; z-index: 2; }
.page-hero__title, .team-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--clr-white);
  line-height: 1.1;
}

/* ── 2. TEXT + IMAGE ──────────────────────────────────────────────────────── */
.text-image__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.text-image__grid--text-only { grid-template-columns: 1fr; max-width: 720px; }
.text-image--img-left .text-image__grid { direction: rtl; }
.text-image--img-left .text-image__grid > * { direction: ltr; }
.text-image__body { margin-top: var(--sp-6); }
.text-image__body p { color: var(--clr-muted); margin-bottom: var(--sp-4); }
.text-image__figure { margin: 0; }
.text-image__img { width: 100%; display: block; }

/* ── 3. TEAM GRID ─────────────────────────────────────────────────────────── */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8) var(--sp-6);
  margin-top: var(--sp-10);
}
.team-card { display: flex; flex-direction: column; }
.team-card__photo-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-4);
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform var(--ease-slow);
}
.team-card:hover .team-card__photo{ transform: scale(1.03); }
.team-card__photo--placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--clr-cream);
  border: 1px dashed var(--clr-border);
}
.team-card__linkedin {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 32px; height: 32px;
  background: var(--clr-white);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  transition: background var(--ease-base), color var(--ease-base);
}
.team-card__linkedin:hover {
  background: #0a66c2;
  color: var(--clr-white);
}
.team-card__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-h4);
  font-weight: 400;
  color: var(--clr-dark);
  margin-bottom: var(--sp-1);
}
.team-card__title {
  font-style: italic;
  color: var(--clr-gold);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}
.team-card__bio {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ── 4. FEATURE COLUMNS ──────────────────────────────────────────────────── */
.feature-cols__grid {
  display: grid;
  gap: var(--sp-8) var(--sp-10);
}
.feature-cols__grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-cols__grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-cols__grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-col { padding-top: var(--sp-6); border-top: 1px solid var(--clr-border); }
.feature-col__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-h4);
  font-weight: 400;
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
}
.feature-col__text { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.72; }
.bg-dark .feature-col, .bg-green .feature-col { border-top-color: rgba(255,255,255,0.15); }
.bg-dark .feature-col__title, .bg-green .feature-col__title { color: var(--clr-white); }

/* ── 5. TESTIMONIAL SLIDER ───────────────────────────────────────────────── */
.hg-section--testimonial {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--clr-white);
}
.testimonial__media { position: absolute; inset: 0; margin: 0; }
.testimonial__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.testimonial__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(28,25,24,0.88) 0%, rgba(28,25,24,0.55) 55%, rgba(28,25,24,0.15) 100%);
}
.testimonial__content { position: relative; z-index: 2; max-width: 520px; padding: var(--sp-20) 0; }
.testimonial__slide { display: none; }
.testimonial__slide.is-active { display: block; animation: fadeInUp 0.5s ease forwards; }
.testimonial__mark {
  display: block;
  font-family: var(--ff-serif);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--clr-gold);
  margin-bottom: var(--sp-4);
}
.testimonial__quote {
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}
.testimonial__attribution { margin-top: var(--sp-5); }
.testimonial__name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-white);
}
.testimonial__role {
  display: block;
  font-size: var(--fs-xs);
  color: var(--clr-gold);
  font-style: italic;
  margin-top: 2px;
}

/* ── 6. ROLE LIST ─────────────────────────────────────────────────────────── */
.role-list__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--sp-4);
}
.role-list__item {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: var(--fs-base);
  color: var(--clr-text);
}

/* ── 7. CASE STUDY CARDS ─────────────────────────────────────────────────── */
.case-study-cards__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-10);
  gap: var(--sp-6);
}
.case-study-cards__grid {
  display: grid;
  gap: var(--sp-10) var(--sp-8);
}
.case-study-cards__grid--2 { grid-template-columns: repeat(2, 1fr); }
.case-study-cards__grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── 8. CONTACT SECTION ──────────────────────────────────────────────────── */
.contact-layout__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-info__item { margin-bottom: var(--sp-8); }
.contact-info__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-2);
}
.contact-info__value {
  font-size: var(--fs-sm);
  color: var(--clr-text);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  line-height: 1.6;
}
.contact-info__value a { color: inherit; transition: color var(--ease-base); }
.contact-info__value a:hover { color: var(--clr-gold); }

.contact-form-wrap {
  background: var(--clr-cream);
  padding: var(--sp-10);
}
.contact-form__intro { margin-bottom: var(--sp-8); }
.contact-form__heading {
  font-family: var(--ff-serif);
  font-size: var(--fs-h4);
  color: var(--clr-dark);
  line-height: 1.4;
  margin-bottom: var(--sp-3);
}
.contact-form__subtext { font-size: var(--fs-sm); color: var(--clr-muted); }

/* Gravity Forms reset to match brand */
.contact-form-wrap .gform_wrapper input,
.contact-form-wrap .gform_wrapper textarea,
.contact-form-wrap .gform_wrapper select {
  background: var(--clr-white) !important;
  border: 1px solid var(--clr-white) !important;
  border-radius: 5px !important;
  padding: 25px 20px !important;
  font-family: var(--ff-sans) !important;
  font-size: var(--fs-xl) !important;
  color: var(--clr-green) !important;
  box-shadow: none !important;
}
.contact-form-wrap .gform_wrapper .gform_submit_button,
.contact-form-wrap .gform_wrapper input[type="submit"] {
  background: var(--clr-green) !important;
  color: var(--clr-white) !important;
  border: none !important;
  padding: 14px 36px !important;
  font-family: var(--ff-sans) !important;
  font-size: var(--fs-xl) !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: capitalize !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: background var(--ease-base) !important;
}
.contact-form-wrap .gform_wrapper .gform_submit_button:hover, .contact-form-wrap .gform_wrapper input[type="submit"]:hover { background: var(--clr-gold) !important; }

/* ── 9. FOOTER — TWO-COLUMN NAV ──────────────────────────────────────────── */
.site-footer__brand { flex-shrink: 0; }
.site-footer__nav-cols {
  display: flex;
  gap: var(--sp-12);
  align-items: flex-start;
}
.site-footer__nav-col { min-width: 100px; }
.site-footer__nav-heading {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-5);
}
.site-footer__nav-list {
  flex-direction: column;
  gap: var(--sp-3);
  display: flex;
}
.site-footer__nav-link {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  transition: color var(--ease-base);
}
.site-footer__nav-link:hover { color: var(--clr-gold); }

/* ── 10. INSIGHTS ARCHIVE ────────────────────────────────────────────────── */

/* Featured slider */
.insights-featured__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
}
.insights-featured__slide { display: none; }
.insights-featured__slide.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  animation: fadeInUp 0.5s ease forwards;
}
.insights-featured__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-5);
}
.insights-featured__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--clr-white);
  margin-bottom: var(--sp-5);
}
.insights-featured__title a { color: inherit; transition: color var(--ease-base); }
.insights-featured__title a:hover { color: var(--clr-gold); }
.insights-featured__excerpt { font-size: var(--fs-sm); color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: var(--sp-5); }
.insights-featured__media { }
.insights-featured__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* Category filter */
.insights-filter {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
  justify-content: space-between;
}
.insights-filter__label {
  font-size: var(--fs-sm);
  color: var(--clr-text);
  font-weight: 500;
}
.insights-filter__tabs { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.insights-filter__tab {
  font-size: var(--fs-sm);
  color: var(--clr-cream);
  transition: color var(--ease-base);
  position: relative;
  padding-bottom: 2px;
}
.insights-filter__tab:hover,
.insights-filter__tab.is-active { color: var(--clr-green); }
.insights-filter__tab.is-active::after { width: 100%; }

/* Pagination */
.insights-pagination { margin-top: var(--sp-14); }
.insights-pagination__nav {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  padding-top: var(--sp-6);
}
.insights-pagination__nums {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}
.insights-pagination__num,
.insights-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  border-radius: 2px;
  transition: color var(--ease-base), background var(--ease-base);
}
.insights-pagination__num:hover,
.insights-pagination__arrow:hover { color: var(--clr-dark); background: var(--clr-cream); }
.insights-pagination__num.is-active {
  background: var(--clr-gold);
  color: var(--clr-white);
}
.insights-pagination__arrow--disabled { opacity: 0.25; pointer-events: none; }

/* ── 11. INSIGHT SINGLE ──────────────────────────────────────────────────── */
.hg-section--insight-hero, .hg-section--case-study-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-12);
  overflow: hidden;
  color: var(--clr-white);
}
.insight-hero__media, .case-study-hero__media { position: absolute; inset: 0; margin: 0; }
.insight-hero__img, .case-study-hero__img { width: 100%; height: 100%; object-fit: cover; }
.insight-hero__overlay, .case-study-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,25,24,0.80) 0%,
    rgba(28,25,24,0.35) 55%,
    rgba(28,25,24,0.10) 100%
  );
}
.insight-hero__content, .case-study-hero__content { position: relative; z-index: 2; }
.insight-hero__byline, .case-study-hero__byline {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-3);
}
.insight-hero__byline span, .case-study-hero__byline span { margin-right: var(--sp-2); }
.insight-hero__title, .case-study-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}
.insight-hero__subtitle, .case-study-hero__subtitle {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--clr-gold);
  margin-bottom: var(--sp-6);
  display: block;
}
.insight-hero__meta, .case-study-hero__meta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.insight-meta__tag, .case-study-meta__tag {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  color: var(--clr-white);
}

/* Article body */
.insight-single__body, .case-study-single__body { padding: var(--sp-16) 0; }
.insight-single__inner, .case-study-single__inner { max-width: 760px; margin: 0 auto; }
.insight-block, .case-study-block { margin-bottom: var(--sp-8); }
.insight-block--text, .case-study-block--text { font-size: var(--fs-base); line-height: 1.8; color: var(--clr-text); }
.insight-block--heading, .case-study-block--heading { font-family: var(--ff-serif); color: var(--clr-dark); margin-bottom: var(--sp-4); }
.insight-block--image img, .case-study-block--image img { width: 100%; display: block; }
.insight-block--image figcaption, .case-study-block--image figcaption { font-size: var(--fs-xs); color: var(--clr-muted); margin-top: var(--sp-2); }

/* Pull quote */
.insight-block--pullquote, .case-study-block--pullquote {
  margin: var(--sp-12) 0;
  padding-left: var(--sp-6);
  border-left: 3px solid var(--clr-gold);
}
.pullquote__mark { font-size: 3rem; color: var(--clr-gold); line-height: 0.8; display: block; }
.pullquote__text {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--clr-dark);
  line-height: 1.5;
  margin: var(--sp-4) 0;
}
.pullquote__cite { font-size: var(--fs-sm); color: var(--clr-muted); }

/* Inline stats */
.insight-block--stats, .case-study-block--stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-10) 0;
  text-align: center;
}

/* Post navigation */
.insight-nav, .case-study-nav { border-top: 1px solid var(--clr-border); padding: var(--sp-10) 0; }
.insight-nav__inner, .case-study-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.insight-nav__arrow, .case-study-nav__arrow {
  font-size: var(--fs-xl);
  color: var(--clr-muted);
  transition: color var(--ease-base);
  min-width: 32px;
  text-align: center;
}
.insight-nav__arrow:hover, .case-study-nav__arrow:hover { color: var(--clr-gold); }

/* ── RESPONSIVE ADDITIONS ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cols__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-layout__grid { grid-template-columns: 1fr; }
  .insights-featured__slide.is-active { grid-template-columns: 1fr; }
  .insight-block--stats, .case-study-block--stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .text-image__grid { grid-template-columns: 1fr; direction: ltr !important; }
  .team__grid { grid-template-columns: 1fr; }
  .feature-cols__grid--2,
  .feature-cols__grid--3,
  .feature-cols__grid--4 { grid-template-columns: 1fr; }
  .role-list__grid { grid-template-columns: 1fr; }
  .case-study-cards__grid--2,
  .case-study-cards__grid--3 { grid-template-columns: 1fr; }
  .site-footer__nav-cols { flex-direction: column; gap: var(--sp-8); }
  .case-study-cards__header { flex-direction: column; align-items: flex-start; }
}

/* ── Footer Gravity Form styles ────────────────────────────────────────── */
.footer-gf-wrap { max-width: 480px; }

/* Reset GF inputs to match footer aesthetic */
.footer-gf-wrap .gform_wrapper,
.footer-gf-wrap .gform_wrapper * { box-sizing: border-box; }

.footer-gf-wrap .gform_wrapper ul.gform_fields { list-style: none; margin: 0; padding: 0; }
.footer-gf-wrap .gform_wrapper .gfield { margin-bottom: 0 !important; padding-bottom: 0 !important; }

.footer-gf-wrap .gform_wrapper input[type="email"],
.footer-gf-wrap .gform_wrapper input[type="text"] {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: var(--clr-white) !important;
  padding: 12px 16px !important;
  font-family: var(--ff-sans) !important;
  font-size: var(--fs-sm) !important;
  border-radius: 0 !important;
  width: 100% !important;
}

.footer-gf-wrap .gform_wrapper input::placeholder { color: rgba(255,255,255,0.4) !important; }
.footer-gf-wrap .gform_wrapper input:focus { border-color: var(--clr-gold) !important; outline: none !important; }

/* Submit button */
.footer-gf-wrap .gform_wrapper .gform_footer,
.footer-gf-wrap .gform_wrapper .gform_page_footer { margin-top: 0 !important; padding: 0 !important; }

.footer-gf-wrap .gform_wrapper input[type="submit"],
.footer-gf-wrap .gform_wrapper .gform_submit_button {
  background: var(--clr-gold) !important;
  color: var(--clr-white) !important;
  border: 1px solid var(--clr-gold) !important;
  padding: 12px 24px !important;
  font-family: var(--ff-sans) !important;
  font-size: var(--fs-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background var(--ease-base) !important;
  width: auto !important;
}
.footer-gf-wrap .gform_wrapper input[type="submit"]:hover,
.footer-gf-wrap .gform_wrapper .gform_submit_button:hover {
  background: var(--clr-gold-hover) !important;
  border-color: var(--clr-gold-hover) !important;
}

/* Inline layout: input + button side by side */
.footer-gf-wrap .gform_wrapper .gform_body,
.footer-gf-wrap .gform_wrapper form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  align-items: stretch !important;
}
.footer-gf-wrap .gform_wrapper .gform_fields { flex: 1 !important; }
.footer-gf-wrap .gform_wrapper .gform_footer { flex-shrink: 0 !important; }

/* Validation / error messages */
.footer-gf-wrap .gform_wrapper .gfield_description,
.footer-gf-wrap .gform_wrapper .validation_message {
  color: #fca5a5 !important;
  font-size: var(--fs-xs) !important;
  margin-top: var(--sp-2) !important;
}
.footer-gf-wrap .gform_wrapper .gform_confirmation_message {
  color: #86efac !important;
  font-size: var(--fs-sm) !important;
  margin-top: var(--sp-3) !important;
}

@media (max-width: 480px) {
  .footer-gf-wrap .gform_wrapper form { flex-direction: column !important; }
  .footer-gf-wrap .gform_wrapper .gform_footer { padding-top: var(--sp-2) !important; }
}

/* ── Footer Gravity Form — deep overrides (v2) ─────────────────────────────
   Gravity Forms loads its own CSS with high specificity. These rules use
   the footer context (.site-footer) as an extra specificity layer to win.
   ─────────────────────────────────────────────────────────────────────── */

/* ── Input field ──────────────────────────────────────────────────────── */
.site-footer .footer-gf-wrap input[type="email"],
.site-footer .footer-gf-wrap input[type="text"],
.site-footer .footer-gf-wrap input[type="tel"],
.site-footer .footer-gf-wrap .ginput_container input,
.site-footer .footer-gf-wrap .gfield input:not([type="submit"]):not([type="button"]) {
  background-color: rgba(255,255,255,0.08) !important;
  background:       rgba(255,255,255,0.08) !important;
  border:           1px solid rgba(255,255,255,0.2) !important;
  border-radius:    0 !important;
  color:            #fff !important;
  font-family:      var(--ff-sans) !important;
  font-size:        var(--fs-sm) !important;
  padding:          12px 16px !important;
  height:           auto !important;
  box-shadow:       none !important;
  outline:          none !important;
  width:            100% !important;
}
.site-footer .footer-gf-wrap input::placeholder,
.site-footer .footer-gf-wrap input::-webkit-input-placeholder {
  color: rgba(255,255,255,0.4) !important;
}
.site-footer .footer-gf-wrap input:focus {
  border-color: var(--clr-gold) !important;
  box-shadow:   none !important;
}

/* Error state input — keep dark, add gold border instead of red */
.site-footer .footer-gf-wrap .gfield_error input,
.site-footer .footer-gf-wrap .gfield--error input {
  background-color: rgba(255,255,255,0.08) !important;
  background:       rgba(255,255,255,0.08) !important;
  border-color:     var(--clr-gold) !important;
  color:            #fff !important;
}

/* ── Submit button ────────────────────────────────────────────────────── */
.site-footer .footer-gf-wrap input[type="submit"],
.site-footer .footer-gf-wrap button[type="submit"],
.site-footer .footer-gf-wrap .gform_button,
.site-footer .footer-gf-wrap .gform_submit_button,
.site-footer .footer-gf-wrap .gform_next_button {
  background:    var(--clr-gold) !important;
  background-color: var(--clr-gold) !important;
  color:         #fff !important;
  border:        1px solid var(--clr-gold) !important;
  border-radius: 0 !important;
  font-family:   var(--ff-sans) !important;
  font-size:     var(--fs-xs) !important;
  font-weight:   700 !important;
  letter-spacing:0.08em !important;
  text-transform:uppercase !important;
  padding:       12px 24px !important;
  height:        auto !important;
  cursor:        pointer !important;
  box-shadow:    none !important;
  width:         auto !important;
  display:       inline-block !important;
  transition:    background var(--ease-base) !important;
}
.site-footer .footer-gf-wrap input[type="submit"]:hover,
.site-footer .footer-gf-wrap button[type="submit"]:hover,
.site-footer .footer-gf-wrap .gform_button:hover {
  background:       var(--clr-gold-hover) !important;
  background-color: var(--clr-gold-hover) !important;
  border-color:     var(--clr-gold-hover) !important;
}

/* ── Error / validation messages ──────────────────────────────────────── */
/* Top-level error notification bar */
.site-footer .footer-gf-wrap .gform_submission_error,
.site-footer .footer-gf-wrap .validation_error,
.site-footer .footer-gf-wrap [class*="gform_submission_error"],
.site-footer .footer-gf-wrap .gform-body .gform_submission_error {
  background:   rgba(255,255,255,0.06) !important;
  border:       1px solid rgba(255,255,255,0.15) !important;
  border-radius:2px !important;
  color:        rgba(255,255,255,0.75) !important;
  font-size:    var(--fs-xs) !important;
  padding:      10px 14px !important;
  margin-bottom:var(--sp-5) !important;
}
/* Inline field error text */
.site-footer .footer-gf-wrap .gfield_description.validation_message,
.site-footer .footer-gf-wrap .gfield_validation_message,
.site-footer .footer-gf-wrap [class*="validation_message"],
.site-footer .footer-gf-wrap .gfield--error .gfield_validation_message {
  color:      rgba(255,200,100,0.85) !important;
  font-size:  var(--fs-xs) !important;
  background: transparent !important;
  border:     none !important;
  padding:    4px 0 0 !important;
  margin:     0 !important;
}

/* ── Confirmation / success ───────────────────────────────────────────── */
.site-footer .footer-gf-wrap .gform_confirmation_message,
.site-footer .footer-gf-wrap .gform_confirmation_wrapper {
  color:     #86efac !important;
  font-size: var(--fs-sm) !important;
  padding:   var(--sp-4) 0 !important;
}

/* ── Layout: inline input + button on desktop ──────────────────────────── */
.site-footer .footer-gf-wrap .gform_wrapper,
.site-footer .footer-gf-wrap form {
  max-width: 480px;
}
.site-footer .footer-gf-wrap .gform_body { display: block !important; }
.site-footer .footer-gf-wrap ul.gform_fields {
  list-style: none !important;
  margin:     0 !important;
  padding:    0 !important;
  display:    flex !important;
  gap:        0 !important;
  align-items:stretch !important;
  flex:       1 !important;
}
.site-footer .footer-gf-wrap .gfield { flex: 1 !important; margin-bottom: 0 !important; }
.site-footer .footer-gf-wrap .ginput_container { height: 100% !important; }
.site-footer .footer-gf-wrap .gform_footer,
.site-footer .footer-gf-wrap .gform_page_footer {
  margin:  0 !important;
  padding: 0 !important;
}
.site-footer .footer-gf-wrap form > .gform_body,
.site-footer .footer-gf-wrap form > .gform_footer {
  display: inline-flex !important;
  vertical-align: top !important;
}

/* Stack on mobile */
@media (max-width: 560px) {
  .site-footer .footer-gf-wrap ul.gform_fields { flex-direction: column !important; }
  .site-footer .footer-gf-wrap .gform_button,
  .site-footer .footer-gf-wrap input[type="submit"] { width: 100% !important; margin-top: var(--sp-2) !important; }
}

/* ── Footer GF form — inline layout fix (v3) ───────────────────────────
   Forces email input and Submit button onto one line.
   Error notification spans full width above the input row.
   ─────────────────────────────────────────────────────────────────────── */

/* 1. Form itself is a flex-wrap container */
.site-footer .footer-gf-wrap .gform_wrapper form,
.site-footer .footer-gf-wrap form {
  display:         flex !important;
  flex-wrap:       wrap !important;
  align-items:     flex-start !important;
  gap:             0 !important;
  max-width:       480px;
}

/* 2. Submission error bar — full-width first row */
.site-footer .footer-gf-wrap .gform_submission_error,
.site-footer .footer-gf-wrap .validation_error,
.site-footer .footer-gf-wrap h2.gform_submission_error {
  flex:            0 0 100% !important;
  width:           100% !important;
  order:           0 !important;
  margin-bottom:   var(--sp-4) !important;
}

/* 3. Input area (gform_body) — grows to fill remaining space */
.site-footer .footer-gf-wrap .gform_body,
.site-footer .footer-gf-wrap .gform-body {
  flex:            1 1 0% !important;
  min-width:       0 !important;
  order:           1 !important;
}

/* 4. Button area (gform_footer) — fixed width, sits beside input */
.site-footer .footer-gf-wrap .gform_footer,
.site-footer .footer-gf-wrap .gform_page_footer {
  flex:            0 0 auto !important;
  width:           auto !important;
  order:           2 !important;
  padding:         0 !important;
  margin:          0 !important;
}

/* 5. Remove all inner list spacing so nothing pushes down */
.site-footer .footer-gf-wrap ul.gform_fields,
.site-footer .footer-gf-wrap .gform_fields {
  list-style:      none !important;
  margin:          0 !important;
  padding:         0 !important;
  display:         block !important;
}
.site-footer .footer-gf-wrap .gfield,
.site-footer .footer-gf-wrap li.gfield {
  margin-top:      0 !important;
  margin-bottom:   0 !important;
  padding-top:     0 !important;
  padding-bottom:  0 !important;
}

/* 6. Inline field error sits below input within gform_body — button unaffected */
.site-footer .footer-gf-wrap .gfield_validation_message,
.site-footer .footer-gf-wrap .gfield_description.validation_message {
  display:         block !important;
  width:           100% !important;
  margin-top:      4px !important;
  padding:         0 !important;
  background:      transparent !important;
  border:          none !important;
  color:           rgba(255, 190, 90, 0.9) !important;
  font-size:       var(--fs-xs) !important;
  line-height:     1.4 !important;
}

/* 7. Match input and button heights exactly */
.site-footer .footer-gf-wrap .ginput_container input[type="email"],
.site-footer .footer-gf-wrap .ginput_container input[type="text"] {
  height:          46px !important;
  line-height:     1 !important;
  box-sizing:      border-box !important;
}
.site-footer .footer-gf-wrap input[type="submit"],
.site-footer .footer-gf-wrap .gform_button {
  height:          46px !important;
  line-height:     1 !important;
  box-sizing:      border-box !important;
  display:         flex !important;
  align-items:     center !important;
  white-space:     nowrap !important;
}

/* 8. Mobile — stack vertically */
@media (max-width: 560px) {
  .site-footer .footer-gf-wrap .gform_body  { flex: 0 0 100% !important; }
  .site-footer .footer-gf-wrap .gform_footer { flex: 0 0 100% !important; margin-top: var(--sp-2) !important; }
  .site-footer .footer-gf-wrap input[type="submit"],
  .site-footer .footer-gf-wrap .gform_button { width: 100% !important; justify-content: center !important; }
}

/* ── Custom logo (Customizer > Site Identity > Logo) ────────────────────── */

/* CSS custom properties for logo sizes — overridden by Customizer output */
:root {
  --logo-h:        48px;  /* Normal header logo height */
  --logo-sticky-h: 34px;  /* Logo height when header is sticky/scrolled */
  --logo-footer-h: 44px;  /* Footer logo height */
}

/* Wrapper */
.site-logo--custom { display:flex; align-items:center; }
.site-logo--custom .custom-logo-link { display:block; line-height:0; }

/* Logo image */
.site-logo--custom .custom-logo {
  max-height: var(--logo-h);
  width: 100%;
  display: block;
  transition: max-height var(--ease-base), filter var(--ease-base), opacity var(--ease-base);
}

/* On scrolled sticky header: original colours + smaller size */
.site-header.is-scrolled .site-logo--custom .custom-logo {
  filter: none;
  max-height: var(--logo-sticky-h);
}

/* SVG logo also shrinks when sticky */
.site-header.is-scrolled .site-logo__mark {
  width: calc(var(--logo-sticky-h) * 0.65);
  height: var(--logo-sticky-h);
}

/* Footer logo — always inverted to white on dark background */
.site-logo--footer .custom-logo {
  filter: brightness(0) invert(1) !important;
  max-height: var(--logo-footer-h);
  width: auto;
  opacity: 0.9;
  transition: opacity var(--ease-base);
}
.site-logo--footer .custom-logo:hover { opacity: 1; }

/* Uploaded footer logo (from Customizer) */
.footer-logo-img {
  max-height: var(--logo-footer-h);
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity var(--ease-base);
}
.site-logo--footer-img:hover .footer-logo-img { opacity: 1; }

/* ── Map inline tooltip ──────────────────────────────────────────────────
   Appended to <body> by initMapTooltip() with position:fixed.
   JS positions via getBoundingClientRect — immune to parent z-index/overflow.
   ─────────────────────────────────────────────────────────────────────── */
.map-tooltip {
  /* position & z-index set inline by JS (position:fixed; z-index:99999) */
  background: var(--clr-white);
  border: 1px solid rgba(28, 25, 24, 0.22);
  padding: 14px 18px 15px;
  min-width: 190px;
  max-width: 250px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  pointer-events: auto;
}

.map-tooltip__city {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: var(--clr-muted);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.map-tooltip__name {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--clr-dark);
  margin: 0 0 0 0;
}

.map-tooltip__rule {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 10px 0 8px;
}

.map-tooltip__link {
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-text);
  text-decoration: none;
  transition: color var(--ease-base);
  display: inline-block;
}
.map-tooltip__link:hover { color: var(--clr-gold); }

/* Active pin when tooltip is open */
button.map-pin.is-active .map-pin__dot {
  background: var(--clr-gold);
  transform: scale(1.4);
  border-color: var(--clr-gold);
}

/* ── Hero slider: heading fades in slightly after the image ─────────────── */
.hero__slide .hero__content { transition: opacity 0.5s ease 0.4s; }
.hero__slide:not(.is-active) .hero__content { opacity: 0; pointer-events: none; }

/* ── General: Accent inline ─────────────────────────────────────────────────
   Section class .accent-inline (ACF toggle) makes italic gold appear inline.
   ─────────────────────────────────────────────────────────────────────────── */
.accent-inline .text-accent,
.accent-inline .text-accent-inline { display: inline; }


/* ── CTA Banner: containerised ──────────────────────────────────────────────
   Whole section inside container — no full-bleed background.
   ─────────────────────────────────────────────────────────────────────────── */
.hg-section--cta-banner { background: var(--clr-white); }

.cta-banner__inner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: var(--sp-20);
}

.cta-banner__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.cta-banner__bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

@media (max-width: 768px) {
  .cta-banner__inner { min-height: 340px; padding: var(--sp-14) var(--sp-6); }
}

/* ── Text + Image: below-title layout ───────────────────────────────────────
   Heading + image stacked on left; body text on right.
   ─────────────────────────────────────────────────────────────────────────── */
.text-image__grid--below-title {
  display: grid;
  grid-template-columns: 1fr 49%;
  gap: var(--sp-35);
  align-items: start;
}
.text-image__left-col { display: flex; flex-direction: column; gap: var(--sp-8); }
.text-image__right-col { padding-top: var(--sp-4); }
.text-image__figure--below-title { margin: 0; }
.text-image__figure--below-title .text-image__img { width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
  .text-image__grid--below-title, .hg-section.team-details .row { grid-template-columns: 1fr; }
}


/* ── Image Card Slider ───────────────────────────────────────────────────────
   2.5 cards visible. Overflow on track-wrap clips partial third card.
   ─────────────────────────────────────────────────────────────────────────── */
.ics { margin-top: var(--sp-12); }

.ics__track-wrap {
  overflow: hidden;
  margin-right: calc(50% - 50vw);
}

.ics__track {
  display: flex;
  gap: var(--sp-6);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ics__card {
  flex: 0 0 calc((100% - var(--sp-6) * 1.5) / 2.5);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ics__card-img-wrap {
  margin: 0 0 var(--sp-5);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-sand);
}
.ics__card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.ics__card:hover .ics__card-img { transform: scale(1.03); }
.ics__card-img-placeholder { width: 100%; aspect-ratio: 4/3; background: var(--clr-sand); }

.ics__card-body { flex: 1; display: flex; flex-direction: column; }

.ics__card-title {
  font-family: var(--ff-serif);
  font-size: var(--fh5);
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: var(--sp-3);
}

.ics__card-text {
  font-size: var(--fs-sm);
  color: var(--clr-text);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  flex: 1;
}

.ics__card-rule {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-4) 0 var(--sp-3);
}

.ics__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.ics__btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  color: var(--clr-dark);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color var(--ease-base), color var(--ease-base);
  flex-shrink: 0;
}
.ics__btn:hover { border-color: var(--clr-gold); color: var(--clr-gold); }
.ics__btn:disabled { opacity: 0.3; cursor: not-allowed; }

.ics__dots { display: flex; gap: var(--sp-3); align-items: center; }

@media (max-width: 768px) {
  .ics__card { flex: 0 0 calc(100% - var(--sp-10)); }
}
