/* Corporate HR Advisory Partners, LLC brand styling */

:root {
  /* Brand palette from updated pages 1-2 */
  --primary: #0f2a44;
  --primary-dark: #0b1f33;
  --primary-bright: #1f4e8c;
  --primary-light: rgba(31, 78, 140, 0.18);
  --primary-solid-bg: #eaf0f7;
  --accent-gold: #d7262e;
  --accent-gold-soft: #f8d7d9;
  --accent-green: #2e8b57;
  --accent-slate: #c5ccd6;
  --accent-slate-soft: #edf1f5;
  --cream: #f4f6f8;
  --cream-mid: #f4f6f8;
  --cream-dark: #e2e8ef;
  --cream-border: #c5ccd6;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f5efe4;
  --surface-strong: #ede6da;
  --text: #0f2a44;
  --text-muted: #23374a;
  --text-muted-alt: #6b7280;
  --border: #c5ccd6;
  --border-strong: #6b7280;
  --font-head: "Sora", "Libre Franklin", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max-width: 1200px;
  --cream-band-width: 1280px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 8px 28px rgba(15, 42, 68, 0.1);
  --shadow-lift: 0 20px 50px rgba(15, 42, 68, 0.14), 0 0 0 1px rgba(197, 204, 214, 0.4);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* Logo is now tightly cropped (400×123, ratio 3.25:1) — these heights are the actual visual mark heights */
  --navbar-padding-y: 0.625rem;
  --nav-logo-max-height: 3.5rem;
  --nav-logo-max-height-mobile: 2.875rem;
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--primary-bright);
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Sticky footer: main grows so footer sits at bottom on short pages (About, Thank you, etc.) */
main {
  flex: 1 1 auto;
  min-width: 0;
}

/* ---- Disable pseudo margin paint; body is solid brand blue ---- */
body::before {
  content: none;
}

/* ---- Solid cream band (slightly wider than content; gradient shows at edges) ---- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--cream-band-width);
  background: var(--cream);
  z-index: -1;
  pointer-events: none;
}

@keyframes meshShift {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); }
  100% { transform: scale(1.15) translate(-3%, -2%) rotate(2deg); }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ---- Animated underline links ---- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-smooth);
  position: relative;
}

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

/* Animated underline for nav and footer links */
.nav-link,
.footer-link {
  color: inherit;
}

.nav-link::after,
.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-slate));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-smooth);
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Scope fluid images: exclude nav logo so flex shrink + height:auto cannot collapse it */
img:not(.nav-logo__img) {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Navbar – glass, white ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--navbar-padding-y) 1.5rem;
  transition: all var(--transition-smooth);
  border-bottom: 2px solid var(--cream-border);
  box-shadow: 0 1px 0 0 var(--primary);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(46, 139, 94, 0.08), 0 1px 0 0 var(--primary);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: min-content;
}

/*
 * Nav logo assets are landscape (~320×213). Never use a tight max-height here:
 * height caps shrink the used WIDTH (width ≈ height × 320/213) and the wordmark
 * stays illegible. Size by width; cap height only high enough for a readable mark.
 */
.navbar .nav-container .nav-logo a.nav-logo__brand img.nav-logo__img {
  position: relative;
  z-index: 0;
  display: block;
  box-sizing: border-box;
  aspect-ratio: 400 / 123;
  width: min(320px, 52vw);
  height: auto;
  max-width: none;
  max-height: var(--nav-logo-max-height);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.nav-logo__brand picture {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  width: fit-content;
}

.nav-logo a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo a::after {
  content: none;
}

.nav-logo a:hover { color: var(--primary); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Equal row height: each link block is vertically centered inside its li so
   single-line and wrapped labels align cleanly across the bar. */
.nav-menu > li {
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  text-align: center;
  line-height: 1.3;
  max-width: 10.5rem;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Wider nav labels = less wrapping; wrapped links set row height (often taller than logo) */
@media (min-width: 1100px) {
  .nav-link {
    max-width: 12.75rem;
  }
}
@media (min-width: 1280px) {
  .nav-link {
    max-width: 14rem;
  }
}

/* Mid-width desktop: slightly tighter type + gaps so labels stay one line more often */
@media (min-width: 769px) and (max-width: 1180px) {
  .nav-menu {
    gap: clamp(0.75rem, 1.2vw, 1.25rem);
  }
  .nav-link {
    font-size: 0.875rem;
    padding: 0.3rem 0.45rem;
    max-width: 11rem;
  }
  .nav-menu .cta-button {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.25;
    text-align: center;
  }
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  background: var(--primary-solid-bg);
  color: var(--primary-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger .bar {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Hero: full-screen, image + video background, variable-weight headline, shimmer CTA ----
   Background stack (center column max cream-band-width; side gutters = body --primary-bright only):
   1) .hero-video-wrap → .hero-video-fallback: animated mesh (radial-gradients), decorative only
   2) .hero-photo-wrap: photo <picture>
   3) .hero-overlay: light wash over photo for legibility
   4) .testimonials-in-hero: solid cream strip (must match body::after --cream to avoid seams)
   Previously .hero-video-wrap, .hero-overlay, and testimonials used full viewport width, so mesh
   and cream washes tinted the blue rails; below the hero those rails are plain body — that read as a “seam”. */
.main-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-logo-max-height-mobile) + var(--navbar-padding-y) * 2 + 1.25rem) 1.5rem 0;
  overflow: hidden;
}

@media (min-width: 769px) {
  /* Grid: copy block vertically centered in upper band; testimonials row stays at bottom */
  .main-hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    justify-items: stretch;
    padding-top: calc(var(--nav-logo-max-height) + var(--navbar-padding-y) * 2 + 1.75rem);
    padding-bottom: 0;
  }

  .main-hero-content {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    width: 100%;
    flex: unset;
  }

  .testimonials-in-hero {
    grid-row: 2;
    grid-column: 1;
    margin-top: 0;
  }
}

.main-hero-content {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--cream-band-width);
  z-index: 0;
}

/* Hero background photo: self-hosted responsive WebP (see index.html <picture>) */
.hero-photo-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--cream-band-width);
  z-index: 0;
  pointer-events: none;
}

.hero-photo-wrap picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo-wrap .hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fallback: bright cream mesh (hero background when no video) */
.hero-video-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 20%, rgba(46, 139, 94, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 80% 60%, rgba(95, 99, 150, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 20% 80%, rgba(201, 189, 58, 0.14) 0%, transparent 50%);
  animation: meshShift 14s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--cream-band-width);
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(252, 247, 240, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 85% 75% at 50% 45%, rgba(252, 247, 240, 0.82) 0%, rgba(252, 247, 240, 0.4) 50%, transparent 75%);
  pointer-events: none;
}

.main-hero .main-hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: left;
}

.main-hero-text { max-width: 820px; margin: 0; }

.main-hero-subtitle {
  max-width: 780px;
  margin: 0.25rem auto 0.75rem;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

/* Hero text fly-in from sides on load */
.hero-slide-in {
  opacity: 0;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

.main-hero-content .main-hero-title.hero-slide-in {
  animation-name: heroFlyInRight;
  animation-delay: 0.1s;
}
.main-hero-content .main-hero-buttons-wrapper.hero-slide-in {
  animation-name: heroFlyInRight;
  animation-delay: 0.25s;
}

.main-hero-content .main-hero-subtitle.hero-slide-in {
  animation-name: heroFlyInRight;
  animation-delay: 0.18s;
}

@keyframes heroFlyInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroFlyInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tagline {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Hero headline: line 1 left, line 2 right; much larger on desktop */
.main-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: #0f0f0e;
  text-align: left;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(255, 255, 255, 0.9);
}

.main-hero-title .hero-line-1 {
  display: block;
  text-align: left;
}

.main-hero-title .hero-line-2 {
  display: block;
  text-align: left;
  margin-top: 0.34em;
  color: var(--primary-dark);
}

.main-hero-title .hero-line-3 {
  display: block;
  text-align: left;
  margin-top: 0.34em;
  color: var(--primary-dark);
}

.hero-highlight {
  background: transparent !important;
  box-shadow: none !important;
  color: #0f0f0e;
  text-shadow:
    0 0 8px rgba(46, 139, 87, 0.5),
    0 0 16px rgba(46, 139, 87, 0.4),
    0 0 26px rgba(46, 139, 87, 0.3);
}

.main-hero-title .hero-title-emphasis {
  display: inline-block;
  font-size: 1em;
  font-weight: 800;
  color: var(--primary-dark);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 1px rgba(255, 255, 255, 0.6);
}

.main-hero-title .weight-light { font-weight: 300; }
.main-hero-title .weight-normal { font-weight: 500; }
.main-hero-title .weight-bold { font-weight: 800; }

.main-hero-buttons-wrapper {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  padding: 0.25rem 0;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.main-hero-buttons-wrapper .cta-button {
  font-size: 0.9375rem;
  padding: 0.65rem 1.35rem;
}

/* ---- Buttons: scale on hover ---- */
.cta-button {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth), color var(--transition-smooth);
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46, 139, 94, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 0 6px 0 0;
  opacity: 0.9;
}

.cta-button:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(46, 139, 94, 0.4);
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.cta-button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--accent-slate);
}

.cta-button.secondary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* Shimmer animation for hero CTA */
.cta-shimmer {
  position: relative;
}

.cta-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.cta-shimmer:hover::before {
  left: 100%;
}

.cta-hero {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* ---- Sections: transparent so body vibrant mesh shows through ---- */
.section {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  overflow: hidden;
}

.section::before,
.section-alt::before {
  content: none;
}

.section-alt {
  background: var(--primary-solid-bg);
}

main > .section:first-of-type {
  padding-top: clamp(6.5rem, 12vw, 8rem);
}

/* Extra headroom for fixed navbar on non-landing pages (match tall logo bar) */
.inner-page main > .section:first-of-type {
  padding-top: calc(var(--nav-logo-max-height-mobile) + var(--navbar-padding-y) * 2 + 0.75rem);
}

@media (min-width: 769px) {
  .inner-page main > .section:first-of-type {
    padding-top: calc(var(--nav-logo-max-height) + var(--navbar-padding-y) * 2 + 1rem);
  }
}

/* Cream fill only within the content band — full-width would paint over the blue side margins */
.inner-page main {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: var(--cream-band-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  background: var(--cream);
}

/* Inner pages: last section used to include long blocks (e.g. team); without them, default section bottom padding leaves a huge gap before the footer */
.inner-page main > .section:last-of-type {
  padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.inner-page .section-header,
.contact-page .section-header {
  text-align: left;
  max-width: 860px;
}

.inner-page .section-header .section-title::after,
.contact-page .section-header .section-title::after {
  left: 0;
  transform: none;
}

/* Services spread headers: fly in from viewport edge on scroll (from the side where text is) */
.spread__text h3 {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.spread--image-left .spread__text h3 {
  transform: translateX(50vw);
  opacity: 0;
}

.spread--image-right .spread__text h3 {
  transform: translateX(-50vw);
  opacity: 0;
}

.spread--image-left .spread__text h3.in-view,
.spread--image-right .spread__text h3.in-view {
  transform: translateX(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .spread__text h3 {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---- What we do: magazine spreads within cream band, alternating image left/right, decorative numbers ---- */
.what-we-do {
  max-width: var(--cream-band-width);
  margin: 0 auto;
  overflow: hidden;
  /* Same fill as testimonials + body band so no paint change at hero → spreads handoff */
  background: var(--cream);
}

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 42.5vh;
  position: relative;
}

.spread--image-left {
  grid-template-areas: "media text";
}

.spread--image-right {
  grid-template-areas: "text media";
}

.spread--image-left .spread__media { grid-area: media; }
.spread--image-left .spread__text { grid-area: text; }
.spread--image-right .spread__media { grid-area: media; }
.spread--image-right .spread__text { grid-area: text; }

.spread__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 25vh;
}

.spread__media img {
  width: 100%;
  height: 100%;
  min-height: 42.5vh;
  object-fit: cover;
  display: block;
}

.spread__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem);
  max-width: 560px;
  margin: 0 auto;
}

.spread__text h3 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.spread__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-bright);
}

.spread__text p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.spread__text ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.spread__text li {
  margin-bottom: 0.35rem;
}

.spread__text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.spread__text a:hover {
  color: var(--primary-dark);
}

.spread__text a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-smooth);
}

.spread__text a:hover::after {
  width: 3em;
}

@media (max-width: 900px) {
  .spread {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "text";
    min-height: auto;
  }

  .spread--image-left,
  .spread--image-right {
    grid-template-areas: "media" "text";
  }

  .spread__media { min-height: 22vh; }
  .spread__media img { min-height: 22vh; }

  .spread__text {
    padding: 2.5rem 1.5rem;
  }
}

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

/* ---- Testimonials: full-bleed marquee (always in motion) ---- */
.testimonials-marquee-section {
  width: 100%;
  max-width: var(--cream-band-width);
  margin: 0 auto;
  padding: 4rem 0;
  background: var(--cream-mid);
  overflow: hidden;
}

/* Temporarily hidden — remove this rule to show the landing-page testimonial marquee again */
.testimonials-marquee-section.testimonials-in-hero {
  display: none !important;
}

/* Testimonials inside hero: sits at bottom of .main-hero (flex space-between) as separator before #advisory-services */
.testimonials-in-hero {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  max-width: var(--cream-band-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  padding: clamp(1rem, 2.5vw, 1.5rem) 0 clamp(1rem, 2.5vw, 1.35rem);
  background: var(--cream);
  border-top: 1px solid var(--cream-border);
  box-shadow: 0 1px 0 0 rgba(15, 42, 68, 0.06);
}

@media (max-width: 768px) {
  .testimonials-in-hero {
    width: calc(100% + 3rem);
    max-width: 100vw;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
}

.testimonials-marquee {
  display: flex;
  width: max-content;
  animation: testimonialsScroll 45s linear infinite reverse;
}

.testimonials-marquee:hover {
  animation-play-state: paused;
}

.testimonials-track {
  display: flex;
  flex-shrink: 0;
  gap: 2rem;
  padding: 0 2rem;
}

.testimonial-tick {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-width: 320px;
  max-width: 380px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.testimonial-tick__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.testimonial-tick__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-tick__stars {
  flex-shrink: 0;
  color: var(--accent-gold);
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
}

.testimonial-tick__quote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}

.testimonial-tick__attribution {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-muted-alt);
  font-weight: 500;
}

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

@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .testimonials-track:last-child {
    display: none;
  }
}

/* ---- Resources: flip cards in a grid, minimal padding ---- */
.resources-section {
  padding: 1rem 0 1.25rem;
}

.resources-section__container {
  max-width: var(--max-width);
}

.resources-section__header {
  margin-bottom: 1rem;
}

.resources-section__header .section-subtitle {
  margin: 0;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.resource-card {
  cursor: pointer;
  perspective: 1000px;
  min-height: 300px;
  outline: none;
}

.resource-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.resource-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.resource-card.flipped .resource-card__inner {
  transform: rotateY(180deg);
}

.resource-card__front,
.resource-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(46, 139, 94, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.resource-card__front::before,
.resource-card__back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
}

.resource-card[data-type="checklist"] .resource-card__front::before,
.resource-card[data-type="checklist"] .resource-card__back::before {
  background: var(--primary);
}

.resource-card[data-type="assessment"] .resource-card__front::before,
.resource-card[data-type="assessment"] .resource-card__back::before {
  background: var(--accent-gold);
}

.resource-card[data-type="guide"] .resource-card__front::before,
.resource-card[data-type="guide"] .resource-card__back::before {
  background: var(--accent-slate);
}

.resource-card__back {
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 1.25rem;
  min-height: 100%;
  box-sizing: border-box;
}

.resource-card__back .resource-card__desc {
  flex: 0 1 auto;
  text-align: center;
  margin-top: auto;
}

.resource-card__back .resource-card__cta {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-bottom: auto;
}

.resource-card__type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.resource-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.resource-card__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
  min-height: 0;
}

.resource-card__cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  margin-top: auto;
  display: inline-block;
  transition: color var(--transition-smooth);
  cursor: pointer;
}

.resource-card__cta:hover {
  color: var(--primary-dark);
}

@media (prefers-reduced-motion: reduce) {
  .resource-card__inner {
    transition: none;
  }
}

.about-story {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-page .about-story {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.about-story p {
  margin: 0 0 0.95rem;
  color: var(--text-muted);
}

.about-story p:first-child {
  font-weight: 700;
  color: var(--text);
}

.about-story p:last-child {
  margin-bottom: 0;
}

/* Service details modal – multi-screen, Next service button */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 29, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.service-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(31, 31, 29, 0.2);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.service-modal.is-open .service-modal__dialog {
  transform: scale(1);
}

.service-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition-smooth), background var(--transition-smooth);
}

.service-modal__close:hover {
  color: var(--text);
  background: var(--cream-mid);
}

.service-modal__screens {
  overflow-y: auto;
  padding: 2rem 2rem 1.5rem;
}

.service-modal__screen {
  outline: none;
}

.service-modal__screen[hidden] {
  display: none;
}

.service-modal__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem;
}

.service-modal__screen p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.service-modal__screen ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.service-modal__screen li {
  margin-bottom: 0.25rem;
}

.service-modal__next {
  margin-top: 1rem;
}

/* CTA strip */
.cta-strip {
  background: var(--accent-slate-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.cta-strip:hover {
  transform: translateY(-2px);
}

.cta-strip h2 { margin-bottom: 0.5rem; }
.cta-strip p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .cta-button:hover {
  transform: scale(1.04);
}

/* Persistent Contact Us button – fixed on scroll, snaps to contact form */
.contact-us-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--surface);
  background: var(--accent-green);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(46, 139, 87, 0.38);
  transition: background var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.contact-us-fab:hover {
  background: #246e45;
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(36, 110, 69, 0.42);
}

.contact-page .contact-us-fab {
  display: none;
}

#contact {
  scroll-margin-top: 5rem;
}

/* Footer – same max width & fill as the cream page band; flex-shrink:0 + symmetric padding keeps band height consistent site-wide */
.footer {
  width: 100%;
  max-width: var(--cream-band-width);
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  background: var(--cream);
  color: var(--text);
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--cream-border);
  margin-top: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-bright) 45%, var(--accent-slate) 100%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-text { order: 1; }
.footer-text p {
  margin: 0.25rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.footer-text a {
  color: var(--primary);
}
.footer-text a:hover { color: var(--primary-dark); }

.footer-middle {
  order: 2;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

.footer-link:hover {
  color: var(--text);
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  order: 3;
}

/* Nav CTA button */
.nav-menu .cta-button {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

/* Contact page — match .contact-grid width so intro text shares left edge with columns below */
.contact-page .section-header.contact-intro {
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.contact-intro {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 2rem;
}
.contact-intro p { color: var(--text-muted); }
.contact-intro .contact-intro__follow {
  margin-top: 1rem;
}

.contact-form__intro {
  margin-bottom: 1.25rem;
}
.contact-form__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.contact-form__lede {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-form__book {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-form__fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
  min-width: 0;
}
.contact-form__category {
  padding: 0;
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.35;
}

.contact-form__submit-note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h3 { margin-bottom: 0.5rem; }
.contact-info p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.12rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

.contact-field-note {
  margin: -0.5rem 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Page hero (services/contact) – mesh, no flat */
.page-hero {
  padding: clamp(5rem, 10vw, 6rem) 1.5rem clamp(3rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(46, 139, 94, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(201, 189, 58, 0.12) 0%, transparent 50%);
  animation: meshShift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.page-hero .main-hero-title { margin-bottom: 0.5rem; }
.page-hero .main-hero-subtitle { margin-bottom: 0; }

/* FutureSpeak page */
.futurespeak-page {
  padding-top: clamp(6rem, 12vw, 8rem);
}

.futurespeak-seer,
.how-we-work-lead {
  margin: 0 auto 1.5rem;
  max-width: 860px;
}

.how-we-work-page .futurespeak-block .how-we-work-lead {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.futurespeak-seer picture,
.futurespeak-seer img,
.how-we-work-lead picture,
.how-we-work-lead img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.futurespeak-block {
  --fs-block-pad: clamp(1.1rem, 2.6vw, 1.8rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--fs-block-pad);
  margin: 0 auto 1rem;
  max-width: 860px;
}

.futurespeak-block h2,
.futurespeak-block h3 {
  margin-bottom: 0.55rem;
}

.futurespeak-block p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
}

.futurespeak-block ul {
  margin: 0 0 0.7rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.futurespeak-block li {
  margin-bottom: 0.3rem;
}

/* How We Work page: borderless sections + image placeholders */
.how-we-work-page .futurespeak-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.futurespeak-page--plain .futurespeak-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0.35rem;
}

/* Second heading inside one plain block (e.g. Outcomes): match rhythm of two stacked .futurespeak-block sections */
.futurespeak-page--plain .futurespeak-block ul:has(+ h2) {
  margin-bottom: 0;
}

.futurespeak-page--plain .futurespeak-block ul + h2 {
  margin-top: calc(2 * var(--fs-block-pad) + 0.35rem);
}

.section-image-placeholder {
  width: 100%;
  min-height: 180px;
  margin: 0 0 0.9rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-muted-alt);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

/* FAQ accordion */
.faq-section {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  margin: 0;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 1rem 1.1rem;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-toggle::after {
  content: "+";
  float: right;
  font-weight: 600;
}

.faq-toggle[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: max(
      4.5rem,
      calc(var(--nav-logo-max-height-mobile) + var(--navbar-padding-y) * 2 + 0.35rem)
    );
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    padding: 1.5rem;
    gap: 0.5rem;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(44, 44, 42, 0.1);
    border-bottom: 1px solid var(--cream-border);
  }
  .nav-menu.active { left: 0; }
  .nav-menu > li {
    display: block;
    width: 100%;
  }
  .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    min-height: 44px;
    max-width: none;
    text-align: left;
  }
  .nav-menu .cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }
  .hamburger { display: flex; }
  .navbar .nav-container .nav-logo a.nav-logo__brand img.nav-logo__img {
    width: min(260px, 80vw);
    max-height: var(--nav-logo-max-height-mobile);
  }
  .main-hero-buttons-wrapper { flex-direction: column; align-items: center; }
  .main-hero .main-hero-content,
  .main-hero-title,
  .main-hero-title .hero-line-1,
  .main-hero-title .hero-line-2,
  .main-hero-buttons-wrapper {
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .contact-grid { grid-template-columns: 1fr; }
}
