/* base template imported via globals.css cascade (as ./base.css) */

html, body {
  overflow-x: hidden;
}

.faq .section-head {
  margin-bottom: 2.25rem;
}

.faq-list {
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.25rem;
  line-height: 1.3;
  gap: 1rem;
}

.faq-q span:first-child {
  flex: 1;
}

.faq-q .service-plus {
  margin-left: 0;
  width: 34px;
  height: 34px;
}

.testimonial-carousel--editorial {
  position: relative;
}

.testimonial-carousel--editorial .carousel-slide {
  padding: 0 !important;
}

.testimonial-carousel--editorial .carousel-controls {
  position: static;
  margin: 0;
  background: var(--white);
  border: none;
  border-top: 1px solid var(--border);
  box-shadow: none;
}

.hero-portrait {
  margin: 1.5rem 0 1.75rem;
  max-width: 18rem;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.cta-banner {
  margin-bottom: 0;
}

.testimonials {
  padding-bottom: 0.5rem !important;
  margin-bottom: 0 !important;
}

.faq {
  padding-top: 2.5rem !important;
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .testimonials {
    padding-bottom: 0 !important;
  }

  .faq {
    padding-top: 1rem !important;
  }
}

.cta-banner {
  margin-bottom: 0 !important;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.88) !important; /* Made even brighter for maximum readability */
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--white) !important;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
  color: var(--white) !important;
}

@media (max-width: 900px) {
  .hero-portrait {
    max-width: 15rem;
  }
}

.hero-image {
  padding-right: clamp(28px, 5vw, 80px) !important;
}

/* Header readability fixes */
header.site-header.is-hero-dark:not(.is-scrolled) {
  background: var(--primary-dark, #142720) !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

header.site-header.is-hero-dark:not(.is-scrolled) .logo,
header.site-header.is-hero-dark:not(.is-scrolled) .logo span,
header.site-header.is-hero-dark:not(.is-scrolled) .nav-links a {
  color: var(--white) !important;
}

header.site-header.is-scrolled {
  background: rgba(246, 241, 236, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid var(--border) !important;
}

header.site-header.is-scrolled .logo,
header.site-header.is-scrolled .nav-links a {
  color: var(--charcoal, var(--text, #2a211c)) !important;
}

header.site-header.is-scrolled .logo span {
  color: var(--sage-dark, var(--primary-dark, #3b5a6c)) !important;
}

/* Custom logo badge styles */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img.logo-img {
  display: block;
  width: 56px;
  height: 56px;
  max-height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover img.logo-img {
  transform: scale(1.08);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.logo span.logo-title {
  font-family: var(--serif) !important;
  font-size: 1.12rem !important;
  font-weight: 500 !important;
  font-style: normal !important;
  color: var(--charcoal, var(--text, #2a211c)) !important;
  display: block;
}

.logo span.logo-subtitle {
  font-family: var(--serif) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: var(--sage-dark, var(--primary-dark, #3b5a6c)) !important;
  display: block;
}

/* Compact mobile logo footprint — keeps the header inside its 54–62px
   height budget on small viewports. */
@media (max-width: 980px) {
  .logo img.logo-img {
    width: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
  }
}

@media (max-width: 768px) {
  .logo img.logo-img {
    width: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
  }

  .logo span.logo-title {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 640px) {
  .logo span.logo-subtitle {
    display: none !important;
  }
}

/* Scrolled state overrides */
header.site-header.is-scrolled .logo span.logo-title {
  color: var(--charcoal, var(--text, #2a211c)) !important;
}

header.site-header.is-scrolled .logo span.logo-subtitle {
  color: var(--sage-dark, var(--primary-dark, #3b5a6c)) !important;
}

.site-footer .logo span.logo-title {
  color: var(--white) !important;
}

.site-footer .logo span.logo-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Mobile Navigation & Header UX Optimizations */
.nav-mobile-cta {
  display: none !important;
}

@media (max-width: 980px) {
  /* Hide standard header CTA on mobile */
  .nav-cta .btn {
    display: none !important;
  }

  /* Position toggle container above overlay */
  .nav-cta {
    position: relative !important;
    z-index: 1000 !important;
  }

  /* Full-screen mobile drawer — pure CSS, driven by the .nav-open class
     toggled in site.js (no inline styles). */
  .nav-links.nav-open {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    background: var(--cream, #f6f1ec);
    z-index: 999;
    padding: 2rem 1.5rem;
    text-align: center;
    animation: nmc-nav-fade-in 0.3s ease forwards;
  }

  body.nav-is-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
  }

  @keyframes nmc-nav-fade-in {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hamburger touch target and stacking */
  .nav-toggle {
    z-index: 1001 !important;
    position: relative !important;
  }
  
  .nav-toggle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }

  /* Styled Book Consultation button inside the mobile drawer */
  .nav-mobile-cta {
    display: inline-flex !important;
    background: var(--primary-dark, #2b4a44) !important;
    color: var(--white, #ffffff) !important;
    padding: 14px 36px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-top: 1.5rem !important;
    box-shadow: 0 10px 24px rgba(43, 74, 68, 0.22) !important;
    text-align: center;
    transition: all 0.3s ease !important;
  }

  .nav-mobile-cta:hover,
  .nav-mobile-cta:focus {
    background: var(--primary, #3f6b62) !important;
    transform: translateY(-2px) !important;
  }

  /* Mobile menu active link overrides */
  header.site-header .nav-links.nav-open a:not(.nav-mobile-cta) {
    font-family: var(--serif, 'Bodoni Moda', serif) !important;
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    font-weight: 500 !important;
    color: var(--ink, #232b27) !important;
    letter-spacing: 0.02em !important;
    transition: color 0.25s ease !important;
  }

  header.site-header .nav-links.nav-open a:not(.nav-mobile-cta):hover {
    color: var(--primary, #3f6b62) !important;
  }

  header.site-header .nav-links.nav-open a[aria-current="page"]:not(.nav-mobile-cta) {
    color: var(--sage-dark, var(--primary, #3f6b62)) !important;
  }

  /* Hamburger colors for scrolled and unscrolled states */
  header.site-header.is-hero-dark:not(.is-scrolled) .nav-toggle {
    color: var(--white, #ffffff) !important;
  }

  header.site-header.is-scrolled .nav-toggle {
    color: var(--charcoal, #282828) !important;
  }

  /* Shift hamburger color to dark on open menu to stay visible */
  header.site-header .nav-links.nav-open + .nav-cta .nav-toggle {
    color: var(--ink, #232b27) !important;
  }

  /* Hamburger to 'X' animation */
  .nav-links.nav-open + .nav-cta .nav-toggle span {
    background: transparent !important;
  }

  .nav-links.nav-open + .nav-cta .nav-toggle span::before {
    transform: translate(-50%, 8px) rotate(45deg) !important;
  }

  .nav-links.nav-open + .nav-cta .nav-toggle span::after {
    transform: translate(-50%, -8px) rotate(-45deg) !important;
  }
}

/* ==========================================================
   NEW HERO EDITORIAL LAYOUT
   ========================================================== */

:root {
  /* Colors are sourced from assets/css/theme.css; only non-color convenience
     aliases live here. */
  --ink: var(--charcoal);
  --ink-soft: var(--text-muted);
  --line: rgba(40, 40, 40, .08);
  --line-strong: rgba(40, 40, 40, .18);
  --transition: .55s cubic-bezier(.22, 1, .36, 1);
  --shadow-book: 0 16px 32px -8px rgba(40, 40, 40, 0.22), 0 4px 12px -2px rgba(40, 40, 40, 0.08);
}

/* HERO SECTION OVERRIDES */
section.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 170px;
  padding-bottom: 120px;
  background: linear-gradient(180deg, var(--white), var(--cream)) !important;
  color: var(--ink) !important;
}

section.hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: min(8vw, 120px);
  position: relative;
  z-index: 5;
  width: 100% !important;
  max-width: var(--container, 1240px) !important;
}

/* LEFT CONTENT */
.hero-content {
  max-width: 600px;
}

.hero-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--sage-dark);
}

.hero-content .eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--sage-dark);
}

.hero-content h1 {
  font-family: var(--font-display, serif) !important;
  font-weight: 700 !important;
  font-size: clamp(42px, 4.6vw, 64px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.03em !important;
  margin-bottom: 30px !important;
  color: var(--ink) !important;
}

.hero-content h1 span {
  font-style: italic !important;
  font-weight: 500 !important;
  color: var(--primary-dark) !important;
}

.hero-content p {
  max-width: 500px;
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 42px;
  opacity: .9;
  color: var(--ink-soft) !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-actions .btn-primary {
  background: var(--primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 20px 40px rgba(43, 74, 68, .22) !important;
  border: none !important;
}

.hero-actions .btn-primary:hover {
  background: var(--ink) !important;
  transform: translateY(-4px);
}

.hero-actions .btn-outline {
  border: 1px solid var(--line-strong) !important;
  background: transparent !important;
  color: var(--ink) !important;
}

.hero-actions .btn-outline:hover {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: #fff !important;
}

/* RIGHT SIDE (EDITORIAL) */
.hero-editorial {
  position: relative;
  height: 760px;
}

.hero-main-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  box-shadow: 0 60px 120px rgba(35, 43, 39, .16);
}

.hero-main-image img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 10% !important;
  transform: scale(1.05);
  transition: 1.2s var(--ease);
  display: block !important;
}

.hero-quote {
  position: absolute;
  right: -20px;
  bottom: 40px;
  width: 290px;
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .78) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 35px 80px rgba(35, 43, 39, .12);
  z-index: 10;
}

.hero-quote span {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  color: var(--primary-dark) !important;
}

.hero-quote h3 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
}

.hero-editorial:hover .hero-main-image img {
  transform: scale(1.1);
}

/* BACKGROUND DECORATIONS */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.glow-left {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -180px;
  background: rgba(217, 188, 139, .2);
}

.glow-right {
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: -120px;
  background: rgba(63, 107, 98, .12);
}

.hero-thread {
  position: absolute;
  top: 0;
  right: 4%;
  width: 42%;
  height: 100%;
  opacity: .3;
  pointer-events: none;
}

.hero-thread path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.4;
  stroke-dasharray: 8 10;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft) !important;
}

.hero-scroll-line {
  width: 1px;
  height: 54px;
  background: rgba(35, 43, 39, .15);
  overflow: hidden;
  position: relative;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--sage);
  animation: scrollLine 2.2s infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* RESPONSIVE HERO OVERRIDES */
@media (max-width: 1000px) {
  section.hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-editorial {
    height: 640px;
    margin-top: 70px;
  }

  .hero-main-image {
    width: 100%;
  }

  .hero-quote {
    right: 30px;
    bottom: 30px;
  }
}

@media (max-width: 768px) {
  section.hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .hero-content h1 {
    font-size: 40px !important;
  }

  .hero-editorial {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin-top: 40px !important;
  }

  .hero-main-image {
    position: relative !important;
    width: 100% !important;
    height: 380px !important;
    border-radius: 28px !important;
  }

  .hero-quote {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-scroll {
    display: none;
  }
}

/* About Section Stats Spacing & Layout overrides */
@media (min-width: 981px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr !important;
  }

  .about-left-col .stat-row {
    margin-top: clamp(3.5rem, 8vw, 5.5rem) !important;
    grid-template-columns: 1fr 1.4fr 0.9fr !important;
    gap: 20px !important;
  }
}

/* Soften the white -> dark emerald -> white background rhythm on /about so
   sections don't cut abruptly into the dark DEIB Credentials panel. */
.page-template-page-about-php .why {
  box-shadow:
    inset 0 60px 60px -60px rgba(0, 0, 0, 0.25),
    inset 0 -60px 60px -60px rgba(0, 0, 0, 0.25);
}

/* Professional Background — two-column copy + portrait layout */
.background-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.background-media {
  position: relative;
}

.background-media-frame {
  position: relative;
  z-index: 1;
  border-radius: 6px 120px 6px 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card, 0 4px 24px rgba(26, 26, 26, 0.08));
}

.background-media-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
}

.background-contour {
  position: absolute;
  top: -10%;
  right: -14%;
  width: 60%;
  height: auto;
  color: var(--sage, #8a9a8b);
  opacity: 0.35;
  z-index: 0;
}

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

  .background-media {
    order: -1;
    max-width: 420px;
    margin: 0 auto 1rem;
  }
}

/* Booking navigation mobile balance */
@media (max-width: 768px) {
  .booking-nav {
    display: flex !important;
    gap: 12px !important;
  }

  .booking-nav .btn {
    flex: 1 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    font-size: 0.72rem !important;
  }
}

/* ==========================================================
   CORE INNER PAGES — About, Services, Process, Outcomes
   ========================================================== */

/* Simple intro band used by pages that skip the full home-style hero */
.page-intro {
  padding: clamp(150px, 20vw, 190px) 0 clamp(2.5rem, 6vw, 4rem);
}

.page-intro .section-head {
  max-width: 720px;
}

h1.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--sage-dark);
}

/* Credential / pillar card grid, reusing .pillar-card styling */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why .pillar-grid .pillar-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.why .pillar-grid .pillar-card h3,
.why .pillar-grid .pillar-num {
  color: var(--white, #fff);
}

.why .pillar-grid .pillar-card p {
  color: rgba(255, 255, 255, 0.72);
}

/* Service block CTA inside the accordion detail */
.service-cta {
  margin-top: 0.85rem;
}

/* Book showcase — vertical card layout, equal heights, pinned CTA baseline */
.publication-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: stretch;
}

.publication-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 180ms var(--ease, ease), box-shadow 180ms var(--ease, ease);
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(40, 40, 40, 0.16);
}

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

  .publication-card:hover {
    transform: none;
  }
}

.publication-cover {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 2 / 3;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-book, 0 16px 32px -8px rgba(40, 40, 40, 0.22), 0 4px 12px -2px rgba(40, 40, 40, 0.08));
}

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

.publication-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  min-width: 0;
}

.publication-details .eyebrow {
  white-space: nowrap;
  margin-bottom: 0;
}

.publication-details h3 {
  margin: 0;
}

.publication-meta {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.publication-description {
  flex: 1;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft, var(--text-muted, #5c5c5c));
  margin: 0;
}

.publication-action {
  margin-top: 1.25rem;
}

.publication-action .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.publication-action .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Bottom "Ask about speaking & publications" action bar */
.publication-cta-bar {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--off-white);
  border: 1px solid var(--line, var(--border, #e5e1da));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.publication-cta-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.publication-cta-content .eyebrow {
  margin-bottom: 0;
}

.publication-cta-heading {
  font-family: var(--serif, var(--font-display));
  font-size: 1.25rem;
  color: var(--ink, var(--charcoal, #282828));
  margin: 0;
}

.publication-cta-bar .btn {
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .publication-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .publication-showcase {
    grid-template-columns: 1fr;
  }

  .publication-cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .publication-cta-bar .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .about-left-col .stat-row {
    margin-top: 2rem !important;
  }
}

/* ==========================================================
   Standardized subpage hero — background image, overlay,
   breadcrumb, and a sawtooth divider into the page content.
   ========================================================== */
.subpage-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 46vh;
  padding: clamp(150px, 20vw, 190px) 0 clamp(72px, 9vw, 108px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white, #fff);
  text-align: center;
}

.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85));
  z-index: 0;
}

.subpage-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.subpage-hero h1 {
  font-family: var(--font-display, serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--white, #fff);
  margin-bottom: 1rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs a:hover {
  color: var(--white, #fff);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.45);
}

.breadcrumb-current {
  color: var(--white, #fff);
}

.subpage-hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(28px, 4vw, 44px);
  z-index: 1;
  display: block;
}

.subpage-hero-divider polygon {
  fill: #F6F1EC;
}

.subpage-lede {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0.5rem;
}

/* ==========================================================
   Custom 404 page
   ========================================================== */
.not-found {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

.not-found-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.not-found-badge {
  display: block;
  font-family: var(--font-display, serif);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  font-weight: 600;
  color: var(--primary-dark, var(--sage-dark, #6f7f70));
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.not-found-inner .lede {
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.not-found-search {
  max-width: 460px;
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
}

.not-found-search .search-form {
  display: flex;
  gap: 0.5rem;
}

.not-found-search .search-field {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border, #e5e1da);
  background: var(--white, #fff);
  font-family: inherit;
  font-size: 0.95rem;
  color: inherit;
}

.not-found-search .search-submit {
  padding: 0.85rem 1.5rem;
  border: none;
  background: var(--primary-dark, var(--primary-dark, #324e5d));
  color: var(--white, #fff);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}

.not-found-search .search-submit:hover {
  background: var(--ink, var(--charcoal, #232b27));
}

.not-found-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  text-align: left;
}

.not-found-card {
  position: relative;
  display: block;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border, #e5e1da);
  background: var(--white, #fff);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.not-found-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-dark, var(--primary-dark, #324e5d));
  box-shadow: var(--shadow-soft, 0 8px 32px rgba(26, 26, 26, 0.06));
}

.not-found-card h3 {
  font-family: var(--font-display, serif);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.not-found-card p {
  font-size: 0.9rem;
  color: var(--text-muted, #5c5c5c);
  margin: 0;
}

.not-found-card-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  color: var(--primary-dark, var(--primary-dark, #324e5d));
}

@media (max-width: 640px) {
  .not-found-search .search-form {
    flex-direction: column;
  }
}










