/* ==========================================================================
   RASFA GLOBAL HOLDINGS — Stylesheet
   Table of contents:
     1.  Custom Properties / Design Tokens
     2.  Reset & Base
     3.  Layout Utilities
     4.  Animations
     5.  Header / Navigation
     6.  Hero Section
     7.  About Section
     8.  Investments Section (Stacked Card Deck)
     9.  Approach Section (Pillars + Looking Ahead)
     10. Leadership Section
     11. Contact Section
     12. Footer
     13. Accessibility & Media Queries
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colour ramp */
  --color-primary: #024F2D;
  --color-primary-mid: #037A47;
  --color-primary-light: #10B981;
  --color-primary-10: rgba(2, 79, 45, 0.10);
  --color-primary-20: rgba(2, 79, 45, 0.20);
  --color-primary-30: rgba(2, 79, 45, 0.30);

  /* Text colours */
  --color-heading: #141517;
  --color-heading-alt: #1A1E1C;
  --color-text: #17181A;
  --color-text-secondary: #2C302E;
  --color-text-muted: #4A524D;
  --color-text-muted-2: #585C60;
  --color-text-muted-3: #5A625D;
  --color-text-faint: #6E7570;
  --color-text-faint-2: #7A827D;
  --color-text-hero-sub: #555C57;

  /* Surfaces & borders */
  --color-bg: #FAFAF8;
  --color-surface: #ffffff;
  --color-surface-alt: #FCFDFB;
  --color-surface-muted: #ECEEEA;
  --color-border: #E3E6E0;
  --color-border-alt: #E3E5E0;
  --color-border-soft: #F0F2EE;
  --color-border-grey: #e5e7eb;
  --color-border-input: #d1d5db;

  /* Gradients */
  --gradient-brand: linear-gradient(120deg, #024F2D 0%, #037A47 45%, #10B981 100%);
  --gradient-brand-btn: linear-gradient(110deg, #024F2D 0%, #037A47 50%, #10B981 100%);
  --gradient-body-bg: linear-gradient(180deg, #FAFAF8 0%, #F5F7F3 35%, #F0F3ED 70%, #F9FAF7 100%);
  --gradient-about-bg: linear-gradient(165deg, #FAFAF8 0%, #F3F5F0 50%, #E9EEE5 100%);
  --gradient-approach-bg: linear-gradient(180deg, #F3F5F0 0%, #F8FAF7 45%, #EDF1E8 100%);
  --gradient-footer-bg: linear-gradient(180deg, #F5F7F3 0%, #EEF2EB 60%, #E8EDE4 100%);
  --gradient-btn-success: linear-gradient(90deg, #0A7A44 0%, #0DA85F 100%);

  /* Shadows */
  --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.03);
  --shadow-nav-scrolled: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-card-deck: 0 20px 45px -15px rgba(2, 79, 45, 0.08);
  --shadow-btn: 0 4px 20px -2px rgba(2, 79, 45, 0.35), 0 0 12px rgba(16, 185, 129, 0.20);

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing (matches original Stitch tokens) */
  --space-section-y: clamp(76px, 7vw, 104px);
  --space-block: 64px;
  --space-element: 32px;
  --space-inner: 16px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Container */
  --container-max: 1360px;
}

@media (max-width: 767px) {
  :root {
    --space-section-y: 72px;
    --space-block: 40px;
    --space-element: 24px;
    --space-inner: 12px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

body {
  font-family: var(--font-body);
  background: var(--gradient-body-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  padding-top: var(--space-section-y);
  padding-bottom: var(--space-section-y);
  position: relative;
  z-index: 10;
  /* Offset anchor scroll so top of section clears the fixed nav.
     Section padding-top (120px) already provides the breathing room —
     scroll-margin-top only needs to clear the nav bar itself. */
  scroll-margin-top: var(--header-h, 80px);
}

#hero { scroll-margin-top: 0; }

/* Section dividers removed per design direction —
   no borders or background separators between sections */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-10);
  border: 1px solid var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.text-gradient-brand {
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand-btn);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-btn);
  transition: box-shadow 0.3s ease, filter 0.3s ease, transform 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 28px -4px rgba(2, 79, 45, 0.4), 0 0 16px rgba(16, 185, 129, 0.25);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-primary__arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-primary__arrow {
  transform: translateX(4px);
}

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

/* --------------------------------------------------------------------------
   4. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

.scroll-indicator-pulse {
  animation: scrollPulse 2.4s ease-in-out infinite;
}

/* Scroll-reveal (toggled by main.js via IntersectionObserver / ScrollTrigger) */
/* Progressive enhancement: content remains visible if JS cannot run. */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-reveal-pending:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}


/* Form field focus underline */
.form-field {
  position: relative;
}

.form-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-field:focus-within::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 16px 0;
  z-index: 50;
  transition: padding-top 0.3s ease;
}

@media (min-width: 640px) {
  .site-header {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.site-header.is-scrolled {
  padding-top: 8px;
}

.site-nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-alt);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  box-shadow: var(--shadow-nav);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Logo stays left, links sit in the true centre, CTA goes right */
.site-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  justify-self: end;
}

.site-header.is-scrolled .site-nav {
  box-shadow: var(--shadow-nav-scrolled);
  background: rgba(255, 255, 255, 0.95);
}

.site-logo .logo-svg {
  height: 36px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover .logo-svg {
  transform: scale(1.05);
}

/* Logo / icon-mark wave reveal — plays once on page load.
   Paths are defined once in the sprite (see index.html) and referenced
   via <use>; each wave fades/rises in turn, with the wordmark settling
   in last on the full logo variant. */
.logo-svg {
  display: block;
  color: var(--color-primary);
  overflow: visible;
}

.logo-wave,
.logo-letters {
  fill: currentColor;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(10%);
  animation: logoReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-wave:nth-of-type(1) { animation-delay: 0ms; }
.logo-wave:nth-of-type(2) { animation-delay: 110ms; }
.logo-wave:nth-of-type(3) { animation-delay: 220ms; }
.logo-wave:nth-of-type(4) { animation-delay: 330ms; }
.logo-letters { animation-delay: 480ms; }

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-secondary);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--color-heading-alt);
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle line {
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile drawer */
.mobile-drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  margin-top: 8px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-drawer.is-open {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer__panel {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-alt);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-heading-alt);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
  background: #fafaf9;
}

.mobile-drawer__cta-wrap {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--color-border-soft);
}

.mobile-drawer__cta-wrap .btn-primary {
  width: 100%;
  height: 44px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .nav-toggle-wrap {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav-toggle-wrap {
    display: flex;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 144px 24px 48px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__watermark {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 820px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
}

.hero__content {
  position: relative;
  z-index: 10;
  margin: auto 0;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading-alt);
  margin-bottom: 24px;
  padding-bottom: 8px;
}

.hero__subtitle {
  font-size: 16px;
  color: var(--color-text-hero-sub);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 500;
}

.hero__footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  gap: 48px;
  padding-top: 8px;
}

.hero__locations {
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: var(--color-text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero__locations span {
  color: var(--color-primary);
  margin: 0 8px;
  font-weight: 400;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}

.hero__scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.hero__scroll-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #2C302E;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.hero__scroll-link:hover .hero__scroll-label {
  color: var(--color-primary);
}

.hero__scroll-track {
  position: relative;
  width: 1px;
  height: 32px;
  background: var(--color-primary-20);
  overflow: hidden;
}

.hero__scroll-thumb {
  width: 100%;
  height: 16px;
  background: var(--color-primary);
}

@media (min-width: 768px) {
  .hero__headline {
    font-size: 60px;
  }

  .hero__subtitle {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   7. About Section
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.about__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.about__eyebrow-wrap {
  margin-bottom: 16px;
}

.about__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  margin-bottom: 24px;
}

.about__body {
  font-weight: 400;
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.stat-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-sm);
  transition: box-shadow 0.3s ease;
  text-align: left;
}

.stat-card:hover {
  box-shadow: var(--shadow-card-md);
}

.stat-card__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.stat-card__label {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.stat-card__desc {
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.about__media {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about__media-frame {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 460px;
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-md);
  border-radius: var(--radius-lg);
  flex-grow: 1;
}

.about__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}

.about__media-frame:hover img {
  transform: scale(1.05);
}

.about__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

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

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

  .about__copy {
    grid-column: span 7;
  }

  .about__media {
    grid-column: span 5;
  }

  .about__media-frame {
    min-height: 580px;
  }
}

/* --------------------------------------------------------------------------
   8. Investments Section — CSS Sticky Scroll Deck
   ─────────────────────────────────────────────────
   Pattern (same as all the references you linked):
     .deck-scroll-outer  — tall container; height = slides × 100vh
     .deck-sticky-panel  — position:sticky; stays on screen while outer scrolls
     .deck-card-front    — the visible card inside the sticky panel
     .deck-slide-trigger — one 100vh div per slide stacked inside outer
                           (invisible); their scroll position drives JS switch
   No GSAP pin needed. CSS does the sticky; JS reads scroll position.
   -------------------------------------------------------------------------- */

.investments__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 896px;
  margin: 0 auto clamp(36px, 4vw, 56px);
}

.investments__eyebrow-wrap {
  margin-bottom: 16px;
}

.investments__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  margin-bottom: 24px;
  text-align: center;
}

.investments__intro {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   DECK — CSS Sticky Scroll with stacked card animation
   Structure:
     .deck-scroll-outer      — tall scrollable container (height set by JS)
       .deck-sticky-panel    — position:sticky; locks to viewport
         .deck-card-front    — explicit height set by JS; stacking context
           .deck-card-back   — decorative shadow card #3 (furthest)
           .deck-card-mid    — decorative shadow card #2
           .dossier-slide    — all three slides, absolutely positioned same spot
         .deck-controls      — counter + arrows; below the card, in normal flow
       .deck-slide-trigger   — invisible spacers, one per slide (desktop only)
   ========================================================================== */

/* Scroll container */
.deck-scroll-outer {
  position: relative;
  width: 100%;
  /* JS sets explicit height on desktop */
}

/* Sticky wrapper — holds card + controls together */
.deck-sticky-panel {
  /* Sticky on ALL screen sizes — full viewport height */
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Card container ── */
/* ── Card container ─────────────────────────────────────────────────────────
   padding-bottom = the gap where shadow cards peek out below the active slide.
   Both values (here + .dossier-slide bottom:) must stay in sync.
   ── */
.deck-card-front {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 480px;
  border-radius: var(--radius-lg);
  padding-bottom: 56px;  /* gap where card-back/mid peek out */
  overflow: visible;
  isolation: isolate;
}

/* ── Stacked card peekout ───────────────────────────────────────────────────
   Shadow cards anchor to the BOTTOM of deck-card-front (bottom:0).
   translateY shifts them further down into the padding-bottom gap so a
   horizontal strip of each card is clearly visible below the active slide.
   Neutral grey fills (no green tint) — matches reference style.
   ── */
.deck-card-back,
.deck-card-mid {
  position: absolute;
  left: 50%;
  top: 0;
  /* Match the active slide height exactly — same top/bottom as .dossier-slide */
  height: calc(100% - 56px);
  border-radius: var(--radius-lg);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-card-back {
  /* Card 3 — furthest back, narrowest */
  width: 88%;
  z-index: 0;
  transform: translateX(-50%) translateY(18px) scaleX(0.93);
  background: #d8d8d8;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.deck-card-mid {
  /* Card 2 — middle layer */
  width: 94%;
  z-index: 1;
  transform: translateX(-50%) translateY(9px) scaleX(0.965);
  background: #ebebeb;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

/* On card change: stack fans out then springs back */
.deck-card-front.is-animating .deck-card-back {
  transform: translateX(-50%) translateY(26px) scaleX(0.91);
}
.deck-card-front.is-animating .deck-card-mid {
  transform: translateX(-50%) translateY(14px) scaleX(0.95);
}

/* ── Slides: all stacked absolutely in the same position ──
   Inactive: scaled down + pushed back, invisible, no pointer events.
   Active: full scale, fully visible, interactive.
   GSAP animates from/to these states for a smooth physical feel. ── */
.dossier-slide {
  position: absolute;
  /* Don't use inset:0 — that fills the padding-bottom peek zone.
     Set explicit edges: top/left/right flush, bottom leaves room for shadow cards. */
  top: 0;
  left: 0;
  right: 0;
  bottom: 56px; /* matches deck-card-front padding-bottom — shadow cards peek here */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-deck);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Default state: hidden behind */
  opacity: 0;
  transform: scale(0.93) translateY(20px);
  pointer-events: none;
  z-index: 2;
  /* CSS transition as fallback when GSAP not available */
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active slide: on top, fully visible */
.dossier-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  z-index: 3;
}

/* ── Slide layout internals ── */
.dossier-slide__tab {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border-soft);
  flex-shrink: 0;
  background: var(--color-surface);
}

.dossier-slide__category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  font-weight: 700;
}

/* Mobile body: stacked column */
.dossier-slide__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  gap: 24px;
  min-height: 0;
}

.dossier-slide__media {
  flex-shrink: 0;
}

.dossier-slide__media-frame {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--color-surface-muted);
  border-radius: var(--radius-md);
}

.dossier-slide__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dossier-slide__media-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.3) 55%, transparent);
  padding: 12px 16px 18px;
  display: flex;
  align-items: flex-end;
}

.dossier-slide__media-caption span {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.dossier-slide__info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.dossier-slide__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.dossier-slide__desc {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.dossier-slide__stats {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.dossier-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.dossier-stat:last-child { border-bottom: none; }

.dossier-stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.dossier-stat__label {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-align: right;
}

/* ── Deck controls: below the card, in normal flow ── */
.deck-controls {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  flex-shrink: 0;
}

.deck-counter-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.deck-counter {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--color-heading);
}

.deck-progress-track {
  width: 80px;
  height: 2px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}

.deck-progress-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.deck-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deck-nav-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.deck-nav-btn:hover {
  background: var(--color-primary-10);
  border-color: var(--color-primary);
}

.deck-nav-btn:active { transform: scale(0.9); }

/* Invisible scroll-distance spacers (desktop only) */
.deck-slide-trigger { display: none; }

/* ── Desktop overrides ── */
@media (min-width: 768px) {
  .deck-sticky-panel {
    /* top value refined by JS on desktop (accounts for nav height) */
    top: 0;
    justify-content: flex-start;
  }

  .deck-slide-trigger {
    display: block; /* JS sets height */
  }

  /* Two-column body: image fills left, stats/copy fill right */
  .dossier-slide__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 28px 32px;
    gap: 36px;
    align-items: stretch;
  }

  .dossier-slide__media {
    flex-shrink: unset;
    height: 100%;
  }

  .dossier-slide__media-frame {
    height: 100%;
    min-height: 300px;
  }

  .dossier-slide__title { font-size: 26px; }
  .dossier-slide__desc  { font-size: 15px; }
  .dossier-stat__value  { font-size: 34px; }
  .dossier-stat__label  { font-size: 11px; }

  .dossier-slide__tab   { padding: 16px 32px; }
  .dossier-slide__category { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   9. Approach Section (Pillars + Looking Ahead)
   -------------------------------------------------------------------------- */

/* Approach section: remove bottom padding — Looking Ahead block
   carries its own padding so doubling up creates the big gap. */
#approach {
  padding-bottom: 0;
}

.approach__intro {
  text-align: center;
  max-width: 896px;
  margin: 0 auto 48px;
}

.approach__eyebrow-wrap {
  margin-bottom: 16px;
}

.approach__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 24px;
}

.approach__quote {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.approach__quote p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-style: italic;
  text-align: center;
}

.pillars {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pillar {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-grey);
  padding: 24px;
  box-shadow: var(--shadow-card-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-md);
}

.pillar__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.pillar__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.pillar__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.looking-ahead {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f0f4f1;
  padding: 72px 32px;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.looking-ahead__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.looking-ahead__eyebrow {
  margin-bottom: 24px;
}

.looking-ahead__heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.looking-ahead__body {
  font-weight: 400;
  font-size: 17px;
  color: #262626;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

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

  .pillar {
    padding: 32px;
  }

  .looking-ahead {
    padding: 112px 32px;
  }
}

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

/* --------------------------------------------------------------------------
   10. Leadership Section
   -------------------------------------------------------------------------- */
.leadership {
  border-color: var(--color-primary-30);
}

.leadership__intro {
  text-align: center;
  max-width: 896px;
  margin: 0 auto 64px;
}

.leadership__eyebrow-wrap {
  margin-bottom: 16px;
}

.leadership__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 24px;
}

.leadership__subtitle {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-muted-2);
  max-width: 672px;
  margin: 0 auto;
  text-align: center;
}

.leadership-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.leader-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

.leader-card:hover {
  transform: translateY(-8px);
}

.leader-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-sm);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.5s ease;
  position: relative;
}

.leader-card:hover .leader-card__photo {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Full-photo LinkedIn link — fills the entire frame */
.leader-card__photo-link {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  z-index: 1;
}

.leader-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.7s ease-out;
}

.leader-card:hover .leader-card__photo img {
  transform: scale(1.05);
}

/* No-photo fallback — shows initials inside the same photo frame */
.leader-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: linear-gradient(160deg, #EEF2EB 0%, #E4EBE0 100%);
  border-radius: var(--radius-lg);
  user-select: none;
  /* Subtle brand watermark behind the letters */
  background-image:
    linear-gradient(160deg, #EEF2EB 0%, #E4EBE0 100%),
    radial-gradient(circle at 70% 80%, var(--color-primary-10) 0%, transparent 60%);
  background-blend-mode: normal;
}

.leader-card:hover .leader-card__initials {
  color: var(--color-primary-mid);
  background: linear-gradient(160deg, #E8EEE4 0%, #DCE5D7 100%);
  background-image:
    linear-gradient(160deg, #E8EEE4 0%, #DCE5D7 100%),
    radial-gradient(circle at 70% 80%, var(--color-primary-20) 0%, transparent 60%);
  background-blend-mode: normal;
}

.leader-card__social {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  z-index: 2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(227, 230, 224, 0.8);
  box-shadow: var(--shadow-card-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.leader-card__social:hover {
  color: var(--color-primary);
  background: #fff;
  transform: scale(1.1);
}

.leader-card__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.leader-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
}

.leader-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  transition: color 0.2s ease;
}

.leader-card:hover .leader-card__name {
  color: var(--color-primary);
}

.leader-card__role {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-top: 8px;
}

.leader-card__rule {
  background: var(--color-primary);
  height: 2px;
  width: 32px;
  margin-top: 10px;
  transition: width 0.3s ease;
}

@media (min-width: 768px) {
  .leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
  }

  .leader-card {
    max-width: none;
    margin: 0;
  }

  .leadership__subtitle {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.contact__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  margin-top: 24px;
  margin-bottom: 24px;
}

.contact__para {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact__para--small {
  font-size: 15px;
  color: var(--color-text-muted-3);
  margin-bottom: 40px;
}

.contact__details {
  padding-top: 32px;
  border-top: 1px solid var(--color-primary-20);
  display: flex;
  flex-direction: column;
}

.contact__link {
  display: block;
  font-weight: 600;
  font-size: 17px;
  color: #1a1a1a;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.contact__link:hover {
  color: var(--color-primary);
}

.contact__link--tel {
  margin-bottom: 16px;
}

.contact__locations {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint-2);
  font-weight: 500;
}

.contact__form-panel {
  background: var(--color-surface);
  padding: 32px;
  box-shadow: var(--shadow-card-sm);
  border: 1px solid var(--color-border-grey);
  border-radius: 0;
}

.contact__form-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
}

.inquiry-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.inquiry-form__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  width: 100%;
}

.inquiry-form__field--row {
  margin-bottom: 0;
}

.inquiry-form__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.inquiry-form__input,
.inquiry-form__textarea {
  border: 1px solid var(--color-border-input);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  outline: none;
  /* No border-color change on focus — the ::after underline handles it */
  transition: none;
  width: 100%;
  font-family: inherit;
}

.inquiry-form__input:focus,
.inquiry-form__textarea:focus {
  /* Keep border as-is; only the bottom underline (form-field::after) animates */
  border-color: var(--color-border-input);
}

.inquiry-form__textarea {
  resize: none;
}

.inquiry-form__consent {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.inquiry-form__consent input {
  margin-top: 4px;
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.inquiry-form__consent label {
  font-size: 12px;
  color: var(--color-text-muted-3);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.inquiry-form__submit {
  width: 100%;
  background: var(--gradient-brand-btn);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
  border-radius: 0;
  box-shadow: var(--shadow-btn);
}

.inquiry-form__submit:hover {
  background: #013B22;
}

.inquiry-form__submit:disabled {
  opacity: 0.8;
  cursor: progress;
}

.inquiry-form__submit.is-success {
  background: var(--gradient-btn-success);
}

.inquiry-form__note {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-faint-2);
  margin-top: 12px;
}

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

  .contact__form-panel {
    border-radius: var(--radius-md);
  }

  .inquiry-form__submit {
    border-radius: var(--radius-sm);
  }
}

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

  .contact__copy {
    grid-column: span 5;
  }

  .contact__form-panel {
    grid-column: span 7;
    padding: 40px;
  }
}

/* --------------------------------------------------------------------------
   11b. CF7 Overrides — neutralise CF7's injected markup so it doesn't
        fight the existing .inquiry-form* rules above — neutralise CF7's injected markup so it doesn't
        fight the existing .inquiry-form* rules above
   -------------------------------------------------------------------------- */

/* Hide the screen-reader error list at the top — it's for AT only */
.wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Hide CF7's hidden fields container — it has no default display:none */
.wpcf7-form fieldset.hidden-fields-container {
  display: none !important;
}

/* Two-column first row — CF7 wraps fields in <p> tags which break
   the grid. Make the row itself the grid and span both inner <p>s */
.inquiry-form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.inquiry-form__row--two .inquiry-form__field {
  margin-bottom: 0;
}

/* Single-column rows — full width */
.inquiry-form__row:not(.inquiry-form__row--two):not(.inquiry-form__row--submit) {
  display: block;
}

/* Response output — error (red) and success (green), readable size */
.wpcf7-form .wpcf7-response-output {
  font-size: 15px !important;
  font-weight: 500;
  padding: 12px 16px !important;
  margin: 16px 0 0 !important;
  border-radius: var(--radius-sm);
  border: none !important;
  text-align: left !important;
  line-height: 1.5;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  background: rgba(192, 57, 43, 0.07);
  color: #c0392b !important;
  border-left: 3px solid #c0392b !important;
}

.wpcf7-form.sent .wpcf7-response-output {
  background: rgba(2, 79, 45, 0.07);
  color: var(--color-primary) !important;
  border-left: 3px solid var(--color-primary) !important;
}

/* CF7 wraps each field in a <p> — strip its default margin/padding */
.inquiry-form .wpcf7-form p {
  margin: 0;
  padding: 0;
}

/* The <br> CF7 injects between label and input adds a gap — remove it */
.inquiry-form .wpcf7-form br {
  display: none;
}

/* wpcf7-form-control-wrap is a span CF7 adds around every input —
   make it a block so it fills the field width properly */
.inquiry-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Ensure all CF7 inputs/textarea inherit our existing styles fully */
.inquiry-form .wpcf7-form-control.inquiry-form__input,
.inquiry-form .wpcf7-form-control.inquiry-form__textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Textarea height — CF7 default rows="10" is too tall, cap it */
.inquiry-form .inquiry-form__textarea {
  height: 140px;
  min-height: 140px;
}

/* Inline validation tip ("Please fill out this field.") —
   small, muted, tucked directly under the input */
.inquiry-form .wpcf7-not-valid-tip {
  display: block;
  font-size: 11px;
  color: #c0392b;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Invalid field border — subtle red tint, not aggressive */
.inquiry-form .wpcf7-not-valid {
  border-color: rgba(192, 57, 43, 0.5) !important;
}

/* CF7 response bar at the bottom of the form */
.inquiry-form .wpcf7-response-output {
  font-size: 12px;
  color: var(--color-text-muted-3);
  border: none;
  padding: 8px 0 0;
  margin: 8px 0 0;
  text-align: center;
}

/* Success state */
.wpcf7-form.sent .wpcf7-response-output {
  color: var(--color-primary);
}

/* Error state */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  color: #c0392b;
}

/* CF7 spinner — align with the submit button */
.inquiry-form .wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

/* Submit row — the <p> CF7 wraps it in */
.inquiry-form .inquiry-form__row--submit p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Offices
   -------------------------------------------------------------------------- */

.offices__intro {
  text-align: center;
  margin-bottom: 56px;
}

.offices__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 12px 0 0;
  line-height: 1.2;
}

.offices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.office-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
  border-color: var(--color-primary-20);
  box-shadow: 0 8px 32px rgba(2, 79, 45, 0.08);
}

.office-card__index {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.office-card__city {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 16px;
  line-height: 1.2;
}

.office-card__rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  margin-bottom: 20px;
}

.office-card__address {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 20px;
}

.office-card__address--placeholder {
  color: var(--color-text-muted-3);
  font-style: italic;
}

.office-card__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.office-card__details li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.office-card__detail-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  min-width: 32px;
  flex-shrink: 0;
}

.office-card__detail-value {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.office-card__detail-value:hover {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .offices__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background: var(--gradient-footer-bg);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  padding-top: var(--space-section-y);
  padding-bottom: clamp(40px, 4vw, 56px);
}

.site-footer__watermark {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
  overflow: hidden;
}

.site-footer__watermark .logo-svg {
  width: 580px;
  max-width: none;
  opacity: 0.05;
  user-select: none;
}

.site-footer__inner {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 384px;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.site-footer__logo .logo-svg {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.site-footer__mission {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-top: 4px;
}

.site-footer__nav {
  display: none; /* hidden on mobile — top sticky nav is sufficient */
  flex-wrap: wrap;
  gap: 32px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-secondary);
}

.site-footer__nav a {
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--color-primary);
}

.site-footer__locations {
  position: relative;
  padding: 32px 0;
  margin: 16px 0;
  text-align: center;
  z-index: 10;
}

.site-footer__locations p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;      /* small enough to fit one line on mobile */
  letter-spacing: 0.18em;
  color: var(--color-heading);
  text-transform: uppercase;
  white-space: nowrap;  /* force single line */
}

@media (min-width: 480px) {
  .site-footer__locations p {
    font-size: 13px;
    letter-spacing: 0.22em;
  }
}

@media (min-width: 768px) {
  .site-footer__locations p {
    font-size: 15px;
    letter-spacing: 0.25em;
  }
}

.site-footer__locations span {
  color: var(--color-primary);
  margin: 0 8px;
  font-weight: 400;
}

.site-footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-primary-20);
}

.site-footer__bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;   /* smaller so copyright fits one line on mobile */
  color: var(--color-text-secondary);
  font-weight: 500;
}

@media (min-width: 768px) {
  .site-footer__bottom-row {
    font-size: 14px;
    gap: 16px;
  }
}

.site-footer__copyright {
  font-weight: 400;
  color: var(--color-text-secondary);
  white-space: nowrap;  /* keep copyright on one line */
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer__legal a {
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: var(--color-primary);
}

.site-footer__legal-sep {
  opacity: 0.4;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .site-footer__watermark .logo-svg {
    width: 720px;
  }

  .site-footer__top {
    flex-direction: row;
  }

  .site-footer__links {
    align-items: flex-end;
    width: auto;
  }

  .site-footer__nav {
    display: flex; /* restore on tablet/desktop */
  }

  .site-footer__bottom-row {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   13. Shared Responsive Section Headings
   -------------------------------------------------------------------------- */
.about__heading,
.investments__heading,
.approach__heading,
.leadership__heading,
.contact__heading {
  font-size: 30px;
}

@media (min-width: 640px) {
  .about__heading,
  .investments__heading,
  .approach__heading,
  .leadership__heading,
  .contact__heading {
    font-size: 36px;
  }
}

@media (min-width: 768px) {
  .about__heading,
  .investments__heading,
  .approach__heading,
  .leadership__heading,
  .contact__heading {
    font-size: 48px;
  }
}

/* --------------------------------------------------------------------------
   14. Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Inputs and textareas use the bottom-border underline only — no outline ring */
input:focus-visible,
textarea:focus-visible {
  outline: none;
}

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


/* ==============================================================
   Approved V2: navigation clearance, sticky layout and spacing
   ============================================================== */
/* Custom navigation handles anchor animation, not CSS scroll-behavior. */
html { scroll-behavior: auto; scroll-padding-top: var(--nav-clearance, 104px); }
.section[id] { scroll-margin-top: var(--nav-clearance, 104px); }
/* Avoid a containing-block transform around position: sticky. */
.investments { opacity: 1; transform: none; transition: none; }
.deck-sticky-panel {
  height: var(--deck-viewport, calc(100dvh - 104px));
  min-height: 0;
  justify-content: center;
}
.deck-card-front { min-height: 0; }
.deck-scroll-outer { isolation: isolate; }
.dossier-slide__body--no-image { grid-template-columns: 1fr; }
.deck-nav-btn:disabled { opacity: .38; cursor: default; pointer-events: none; }
/* Same breathing-room adjustments as standalone V2. */
.looking-ahead { margin-top: clamp(48px, 5vw, 72px); padding-block: clamp(64px, 6vw, 92px); }
@media (max-width: 767px) {
  .section { padding-inline: 20px; }
  .deck-sticky-panel { height: var(--deck-viewport, calc(100dvh - 94px)); }
  .deck-card-front { padding-bottom: 40px; }
  .deck-card-back, .deck-card-mid { height: calc(100% - 40px); }
  .dossier-slide { bottom: 40px; }
}
/* Anchor navigation bypasses deck pinning only while travelling
   between sections; normal scroll remains fully sticky. */
html.is-anchor-navigating .deck-sticky-panel {
  position: relative !important;
  top: 0 !important;
}
.section.about { padding-top: clamp(42px, 5vw, 68px); }
@media (max-width: 767px) {
  .section.about { padding-top: 40px; }
}

/* V5: GSAP owns slide transforms while active; CSS remains fallback-only. */
.deck-scroll-outer.has-gsap-deck .dossier-slide { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll, .reveal-on-scroll.is-reveal-pending { opacity: 1; transform: none; transition: none; }
}
