/* ============================================================
   SWEETGRASS INSTITUTE — THEME STYLES
   ============================================================ */

:root {
  --cream: #f4ede0;
  --cream-light: #f7f1e6;
  --cream-warm: #ede4d3;
  --ink: #1f2418;
  --ink-soft: #2c3324;
  --olive: #4a5230;
  --olive-dark: #3d4628;
  --olive-deep: #2f3620;
  --gold: #b08838;
  --gold-light: #c89c4a;
  --gold-soft: #d4ad5e;
  --muted: #6b6a5e;
  --line: rgba(75, 82, 48, 0.18);
  --container: 1280px;
  --gutter: 48px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
img[width][height] { height: auto; }
a { transition: color 0.25s ease; }

/* Skip link for accessibility (PageSpeed audit) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--olive-dark);
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ============== SCREEN READER ============== */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* ============== TOP BAR (STICKY) ============== */
.topbar {
  padding: 20px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.topbar.is-scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  background: rgba(244,237,224,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.topbar.is-scrolled .brand-logo { width: 52px; height: 52px; }
.topbar.is-scrolled .brand-name { font-size: 24px; }
.topbar.is-scrolled .brand-tagline { display: none; }
.topbar.is-scrolled .brand-divider { display: none; }

.topbar-inner { display: flex; justify-content: space-between; align-items: center; }

/* Body offset for fixed header */
body { padding-top: 120px; }
body.page-home { padding-top: 0; }

.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand-logo { width: 78px; height: 78px; flex-shrink: 0; transition: width 0.3s ease, height 0.3s ease; }

/* Image-based logo (Customizer / ACF upload): respect aspect-ratio, don't squash.
   !important is needed because <img> also carries the shared .brand-logo class
   which sets fixed width/height — without !important the fixed values win at
   tighter breakpoints. */
.brand-logo-image {
  width: auto !important;
  height: auto !important;
  max-height: 78px;
  max-width: 260px;
  object-fit: contain;
}
/* Image logos usually contain the wordmark + tagline at small print, so they
   need a larger sticky size than the icon-only SVG fallback to stay legible.
   IMPORTANT: must reset width/height explicitly because .brand-logo (shared
   class) sets fixed 78px / 52px values that would otherwise squash the image. */
.topbar.is-scrolled .brand-logo-image {
  width: auto !important;
  height: auto !important;
  max-height: 66px;
}
@media (max-width: 600px) {
  .brand-logo-image {
    width: auto !important;
    height: auto !important;
    max-height: 54px;
    max-width: 200px;
  }
  .topbar.is-scrolled .brand-logo-image {
    width: auto !important;
    height: auto !important;
    max-height: 48px;
  }
}

/* When brand is just an image logo, no text — center vertically, no awkward gap */
.brand--image { gap: 0; }

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.16em;
  color: var(--ink);
  line-height: 1;
}
.brand-tagline {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.5;
}
.brand-divider { display: flex; align-items: center; margin-top: 8px; max-width: 240px; }
.brand-divider::before, .brand-divider::after { content: ''; flex: 1; height: 1px; background: var(--olive); opacity: 0.45; }
.brand-divider svg { width: 18px; height: 9px; margin: 0 5px; }

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

.nav-link {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 10px 2px;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--olive); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.current-menu-item { color: var(--olive); }
.nav-link.current-menu-item::after { transform: scaleX(1); }

.nav-caret { width: 10px; height: 6px; opacity: 0.7; transition: transform 0.25s ease; }

/* ---- Dropdown ---- */
.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown:hover .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 320px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(31, 36, 24, 0.12);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* Invisible hover bridge so the dropdown doesn't close when moving mouse from trigger to menu */
.nav-item.has-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 16px;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--cream-light);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.nav-dropdown-item {
  display: block;
  padding: 12px 24px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  text-transform: none;
  border-left: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}
.nav-dropdown-item::after { display: none; }
.nav-dropdown-item:hover {
  background: rgba(176, 136, 56, 0.08);
  color: var(--olive);
  border-left-color: var(--gold);
  padding-left: 28px;
}
.nav-dropdown-footer {
  margin-top: 8px;
  padding: 12px 24px 4px;
  border-top: 1px solid var(--line);
}
.nav-dropdown-footer a {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}
.nav-dropdown-footer a:hover { color: var(--olive); }

/* ---- Header CTA button ---- */
.nav-cta {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 26px;
  background: var(--olive-dark);
  color: var(--cream) !important;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--olive-deep); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: 8px; }
.menu-btn svg { width: 32px; height: 26px; stroke: var(--ink); }

/* ============== MOBILE MENU ============== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { display: flex; opacity: 1; }

.mobile-menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 36px;
  color: var(--ink);
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mobile-menu-close:hover { color: var(--olive); }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 96px 32px 60px;
  gap: 4px;
}

.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: none; border-right: none; border-top: none;
  cursor: pointer;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.mm-link:hover, .mm-link:focus { color: var(--olive); padding-left: 8px; }

.mm-toggle .nav-caret { width: 14px; height: 8px; transition: transform 0.3s ease; }
.mm-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.mm-submenu {
  display: none;
  flex-direction: column;
  padding: 8px 0 16px 16px;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.mm-toggle[aria-expanded="true"] + .mm-submenu { display: flex; }

.mm-sublink {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: none;
  padding: 12px 0;
  border-left: 2px solid transparent;
  padding-left: 16px;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}
.mm-sublink:hover, .mm-sublink:focus {
  color: var(--olive);
  border-left-color: var(--gold);
  padding-left: 20px;
}
.mm-sublink.mm-overview { font-weight: 700; color: var(--ink); }

.mm-cta {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 18px 24px;
  text-align: center;
}

/* ============== BUTTONS ============== */
.btn {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  padding: 20px 38px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
}
.btn-primary { background: var(--olive-dark); color: var(--cream); border-color: var(--olive-dark); }
.btn-primary:hover { background: var(--olive-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--olive-dark); }
.btn-outline:hover { background: rgba(75,82,48,0.06); }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ============== SECTION TYPOGRAPHY ============== */
.section-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 54px);
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 12px;
}

.section-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
}

.title-divider { display: flex; align-items: center; justify-content: center; margin: 0 auto 64px; width: 100px; }
.title-divider .line { flex: 1; height: 1px; background: var(--olive); opacity: 0.4; }
.title-divider svg { width: 24px; height: 12px; margin: 0 6px; }

.divider-leaf { display: flex; align-items: center; gap: 8px; margin: 14px 0 22px; max-width: 240px; }
.divider-leaf .line { flex: 1; height: 1px; background: var(--gold); opacity: 0.6; }
.divider-leaf svg { width: 24px; height: 12px; flex-shrink: 0; }

/* ============== HERO (HOME) ============== */
.hero {
  position: relative;
  padding: 80px 0 110px;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
/* On the homepage, hero starts at the very top (under the fixed header) */
body.page-home .hero {
  padding-top: 200px;
  min-height: 760px;
}

.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  /* Full-width so the photo sits behind buttons too — the gradient mask still
     fades the left side into the cream background where the text lives. */
  width: 100%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.05) 18%, rgba(0,0,0,0.35) 38%, rgba(0,0,0,0.85) 58%, #000 78%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.05) 18%, rgba(0,0,0,0.35) 38%, rgba(0,0,0,0.85) 58%, #000 78%);
  mask-repeat: no-repeat;
}
.hero-bg img,
.hero-bg svg {
  /* Absolute fill of the parent — ignores intrinsic aspect-ratio of the file,
     so the photo always stretches behind the entire hero section (even when
     the text column is taller than the image's natural ratio). */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--olive);
  line-height: 1.6;
  margin-bottom: 22px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-title .italic {
  font-style: italic;
  font-weight: 400;
  display: block;
  color: var(--olive-dark);
  margin-top: 6px;
}

.hero-desc {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 30px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }

/* ============== PAGE HERO (Inner pages) ============== */
.page-hero {
  padding: 100px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: var(--line);
}
.page-hero .hero-eyebrow { margin-bottom: 18px; }
.page-hero .hero-title {
  font-size: clamp(42px, 5vw, 68px);
  max-width: 800px;
  margin: 0 auto 20px;
}
.page-hero .hero-desc {
  max-width: 640px;
  margin: 0 auto 30px;
  text-align: center;
}
.page-hero .hero-buttons { justify-content: center; }

/* ============== PATHWAYS ============== */
.pathways { padding: 110px 0 100px; text-align: center; }

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

.pathway-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 12px;
  transition: transform 0.3s ease;
}
.pathway-card:hover { transform: translateY(-3px); }

.pathway-card:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  right: -25px;
  top: 10%; bottom: 10%;
  width: 1px;
  background: var(--line);
}

.pathway-icon { width: 110px; height: 110px; margin-bottom: 22px; }
.pathway-icon img { width: 100%; height: 100%; object-fit: contain; }

.pathway-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 18px;
  min-height: 36px;
}

.pathway-desc {
  font-family: 'Lato', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 280px;
}

.pathway-link {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--olive);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.pathway-link:hover { gap: 12px; color: var(--gold); }
.pathway-link .arrow { font-size: 16px; line-height: 1; }

/* ============== ABOUT PREVIEW (Home) ============== */
.about-preview {
  padding: 100px 0;
  position: relative;
}
.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-preview-image {
  position: relative;
  overflow: hidden;
}
.about-preview-image img {
  width: 100%; height: 480px;
  object-fit: cover;
}
.about-preview-image::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid var(--gold);
  opacity: 0.4;
  z-index: -1;
}
.about-preview-content .section-eyebrow { margin-bottom: 14px; }
.about-preview-content .section-title { margin-bottom: 18px; }
.about-preview-content .section-subtitle { margin-bottom: 28px; }
.about-preview-list {
  list-style: none;
  margin-bottom: 36px;
}
.about-preview-list li {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.5;
}
.about-preview-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

/* ============== FRAMEWORK PREVIEW (Home) ============== */
.framework-preview {
  background: var(--cream-warm);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.framework-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.framework-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.framework-item {
  background: var(--cream-light);
  padding: 28px 24px;
  border-left: 2px solid var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.framework-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.framework-item h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.framework-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============== DIFFERENT PATH / WHY SWEETGRASS ============== */
.different-path {
  background: var(--cream-warm);
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dp-grass-left, .dp-grass-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 200px;
  pointer-events: none;
  opacity: 0.6;
}
.dp-grass-left { left: 0; }
.dp-grass-right { right: 0; transform: scaleX(-1); }

.dp-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.dp-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.dp-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 auto 32px;
}

.dp-divider { display: flex; justify-content: center; margin-bottom: 24px; }
.dp-divider svg { width: 30px; height: 16px; }

.dp-tags {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 2;
}
.dp-tags .sep { color: var(--gold); margin: 0 14px; font-weight: 400; }

/* ============== VALUES ============== */
.values { background: var(--cream-light); padding: 60px 0 70px; border-top: 1px solid rgba(75,82,48,0.08); }

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

.value-card { display: flex; align-items: flex-start; gap: 18px; }
.value-icon { width: 72px; height: 72px; flex-shrink: 0; }
.value-icon img { width: 100%; height: 100%; object-fit: contain; }
.value-text { padding-top: 4px; }

.value-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.value-desc {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============== VALUES GRID (About page, expanded) ============== */
.values-section { padding: 100px 0; text-align: center; }
.values-section .values-grid { margin-top: 60px; }

.values-section-expanded {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto 0;
}
.value-card-expanded {
  background: var(--cream-light);
  padding: 40px 32px;
  text-align: center;
  border-top: 2px solid var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card-expanded:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.value-card-expanded h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.value-card-expanded p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============== CTA BANNER ============== */
.cta-banner {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(176,136,56,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.cta-banner .section-eyebrow { color: var(--gold-soft); margin-bottom: 16px; }
.cta-banner .section-title { color: var(--cream); margin-bottom: 18px; }
.cta-banner .section-subtitle { color: rgba(244,237,224,0.8); margin: 0 auto 20px; }

.cta-banner-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-bottom: 36px;
}
.cta-banner-list li {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: rgba(244,237,224,0.75);
  padding-left: 16px;
  position: relative;
}
.cta-banner-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 1px;
  background: var(--gold-soft);
  transform: translateY(-50%);
}

.cta-banner .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.cta-banner .btn-primary:hover { background: var(--gold-light); }

/* ============== CONTENT SECTIONS (About, Framework) ============== */
.content-section {
  padding: 90px 0;
  position: relative;
}
.content-section:nth-child(even) { background: var(--cream-light); }
.content-section-inner {
  max-width: 800px;
  margin: 0 auto;
}
.content-section .section-title { margin-bottom: 24px; }
.content-section .section-text {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.content-section .btn { margin-top: 8px; }

/* Two-column content */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.content-split.reverse { direction: rtl; }
.content-split.reverse > * { direction: ltr; }
.content-image { position: relative; }
.content-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ============== TEAM SECTION ============== */
.team-section { padding: 100px 0; text-align: center; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto 0;
}
.team-card {
  text-align: center;
  transition: transform 0.25s ease;
}
.team-card:hover { transform: translateY(-3px); }
.team-card-photo {
  width: 200px; height: 200px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.team-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 6px;
}
.team-card .team-role {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.team-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 280px;
  margin: 0 auto;
}

/* ============== FRAMEWORK ACCORDION ============== */
.framework-accordion { padding: 100px 0; }
.framework-accordion-inner { max-width: 860px; margin: 60px auto 0; }

.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item:first-child { border-top: 1px solid var(--line); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.25s ease;
}
.accordion-header:hover { color: var(--olive); }
.accordion-header h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
}
.accordion-header .accordion-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--gold);
  margin-right: 20px;
  min-width: 36px;
}
.accordion-header .accordion-icon {
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding: 0 0 28px 56px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============== SERVICES GRID ============== */
.services-section { padding: 100px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 1100px;
  margin: 60px auto 0;
}
.service-card {
  background: var(--cream-light);
  padding: 48px 40px;
  border-top: 2px solid var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}
.service-card-icon {
  width: 80px; height: 80px;
  margin-bottom: 24px;
}
.service-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 28px;
  flex-grow: 1;
}
.service-card .btn { align-self: flex-start; }

/* ============== SINGLE SERVICE ============== */
.single-service-content {
  padding: 80px 0 100px;
}
.single-service-inner {
  max-width: 800px;
  margin: 0 auto;
}
.single-service-inner .entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.single-service-inner .entry-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin: 48px 0 20px;
}
.single-service-inner .entry-content h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 36px 0 16px;
}
.single-service-inner .entry-content p { margin-bottom: 20px; }
.single-service-inner .entry-content ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.single-service-inner .entry-content ul li {
  padding: 6px 0 6px 24px;
  position: relative;
}
.single-service-inner .entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

/* ============== CONTACT FORM ============== */
.contact-section { padding: 80px 0 100px; }
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form-wrap {}
.contact-form-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 28px;
}

.sg-form {}
.sg-form .form-row {
  margin-bottom: 22px;
}
.sg-form label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.sg-form input[type="text"],
.sg-form input[type="email"],
.sg-form input[type="tel"],
.sg-form select,
.sg-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--cream-light);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
  outline: none;
  appearance: none;
}
.sg-form input:focus,
.sg-form select:focus,
.sg-form textarea:focus {
  border-color: var(--olive);
}
.sg-form textarea { min-height: 140px; resize: vertical; }
.sg-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5230' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ============================================================
   CONTACT FORM 7 (.sg-form-cf7 wraps the CF7 shortcode output)
   Maps CF7's default markup to the existing .sg-form look.
   ============================================================ */

.sg-form-cf7 .wpcf7-form,
.sg-form-cf7 form.wpcf7-form {
  margin: 0;
  padding: 0;
}

/* CF7 wraps each row in a <p>. Use it as our .form-row spacing. */
.sg-form-cf7 .wpcf7-form > p {
  margin: 0 0 22px;
  padding: 0;
}
.sg-form-cf7 .wpcf7-form > p:last-of-type { margin-bottom: 0; }

/* Labels — CF7 nests the input inside the <label>, so we keep label block
   but separate the text from the control. */
.sg-form-cf7 .wpcf7-form label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0;
}
.sg-form-cf7 .wpcf7-form label > .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}
.sg-form-cf7 .wpcf7-form label .required,
.sg-form-cf7 .wpcf7-form label .req {
  color: var(--gold);
  font-weight: 600;
  margin-left: 2px;
}

/* Inputs / selects / textarea — same look as .sg-form */
.sg-form-cf7 .wpcf7-form input[type="text"],
.sg-form-cf7 .wpcf7-form input[type="email"],
.sg-form-cf7 .wpcf7-form input[type="tel"],
.sg-form-cf7 .wpcf7-form input[type="url"],
.sg-form-cf7 .wpcf7-form input[type="number"],
.sg-form-cf7 .wpcf7-form input[type="date"],
.sg-form-cf7 .wpcf7-form select,
.sg-form-cf7 .wpcf7-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--cream-light);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
}
.sg-form-cf7 .wpcf7-form input:focus,
.sg-form-cf7 .wpcf7-form select:focus,
.sg-form-cf7 .wpcf7-form textarea:focus {
  border-color: var(--olive);
}
.sg-form-cf7 .wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}
.sg-form-cf7 .wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5230' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Submit button — match .btn-primary */
.sg-form-cf7 .wpcf7-form .wpcf7-submit,
.sg-form-cf7 .wpcf7-form input[type="submit"] {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 34px;
  background: var(--olive-dark);
  color: var(--cream);
  border: 1px solid var(--olive-dark);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  width: auto;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.sg-form-cf7 .wpcf7-form .wpcf7-submit:hover,
.sg-form-cf7 .wpcf7-form input[type="submit"]:hover {
  background: var(--olive-deep);
  transform: translateY(-1px);
}
.sg-form-cf7 .wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* CF7 spinner — sits next to the submit button */
.sg-form-cf7 .wpcf7-spinner {
  background-color: var(--gold);
  margin-left: 14px;
  vertical-align: middle;
}

/* Validation tip (red box under invalid field) */
.sg-form-cf7 .wpcf7-not-valid-tip {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #b3261e;
  margin-top: 6px;
}
.sg-form-cf7 .wpcf7-form input.wpcf7-not-valid,
.sg-form-cf7 .wpcf7-form select.wpcf7-not-valid,
.sg-form-cf7 .wpcf7-form textarea.wpcf7-not-valid {
  border-color: #b3261e;
  background: #fff5f4;
}

/* Response output — success/error message after submit */
.sg-form-cf7 .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 18px 22px !important;
  border: 0 !important;
  border-left: 3px solid var(--gold) !important;
  background: var(--cream-light);
  font-family: 'Lato', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.sg-form-cf7 .wpcf7 form.sent .wpcf7-response-output,
.sg-form-cf7 form.sent .wpcf7-response-output {
  border-left-color: var(--olive-dark) !important;
  background: var(--cream-light);
  color: var(--ink);
}
.sg-form-cf7 .wpcf7 form.invalid .wpcf7-response-output,
.sg-form-cf7 .wpcf7 form.failed .wpcf7-response-output,
.sg-form-cf7 form.invalid .wpcf7-response-output,
.sg-form-cf7 form.failed .wpcf7-response-output {
  border-left-color: #b3261e !important;
  background: #fff5f4;
  color: #7a1d18;
}

/* CF7 acceptance / checkbox / radio — minor cleanup */
.sg-form-cf7 .wpcf7-form .wpcf7-list-item {
  margin: 0 16px 0 0;
  display: inline-block;
}
.sg-form-cf7 .wpcf7-form .wpcf7-list-item-label {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-soft);
  margin-left: 6px;
}

.contact-info {}
.contact-info h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.contact-info-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-item:first-of-type { border-top: 1px solid var(--line); }
.contact-info-item h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-info-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}
.contact-social a {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  text-decoration: none;
}
.contact-social a:hover { color: var(--gold); }

/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--olive-deep);
  color: var(--cream);
  padding: 20px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner p {
  font-size: 14px;
  color: rgba(244,237,224,0.85);
}
.cookie-banner-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner .btn { padding: 12px 24px; font-size: 11px; }

/* ============== FORM SUCCESS ============== */
.form-success {
  text-align: center;
  padding: 60px 20px;
}
.form-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 12px;
}
.form-success p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============== FLOATING MOBILE CTA ============== */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 900;
}
.floating-cta .btn {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 14px 24px;
}

/* ============== FOOTER ============== */
.footer { background: var(--olive-deep); color: var(--cream); padding: 56px 0 28px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.footer-about {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(244, 237, 224, 0.75);
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: rgba(244, 237, 224, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(244, 237, 224, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: rgba(244, 237, 224, 0.55);
  letter-spacing: 0.06em;
}
.footer-bottom a {
  color: rgba(244, 237, 224, 0.55);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold-soft); }

.footer-developer {
  border-top: 1px solid rgba(244, 237, 224, 0.08);
  padding-top: 16px;
  margin-top: 16px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: rgba(244, 237, 224, 0.4);
  letter-spacing: 0.06em;
}
.footer-developer a {
  color: rgba(244, 237, 224, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-developer a:hover { color: var(--gold-soft); }

/* ============== BACK TO TOP ============== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 800;
  width: 48px; height: 48px;
  background: var(--olive-dark);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--olive-deep); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============== 404 PAGE ============== */
.page-404 {
  padding: 120px 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-404 h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 120px;
  color: var(--line);
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 36px;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-404 p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* ============== WP SPECIFIC ============== */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
}

/* ============== PERFORMANCE: content-visibility ============== */
/* Lazy-render off-screen sections (Chrome 85+, supported gracefully) */
.pathways,
.about-preview,
.framework-preview,
.different-path,
.values,
.values-section,
.team-section,
.framework-accordion,
.services-section,
.contact-section,
.cta-banner,
.content-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

/* ============== RESPONSIVE ============== */

@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav-link { font-size: 10.5px; letter-spacing: 0.16em; padding: 10px 0; }
  .nav-cta { padding: 12px 20px; }
  .nav-dropdown { min-width: 280px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 36px; }
  .nav { gap: 18px; }
  .nav-link { font-size: 10px; }
  body { padding-top: 110px; }
  .hero { padding: 60px 0 80px; min-height: 540px; }
  body.page-home .hero { padding-top: 180px; min-height: 660px; }
  .hero-inner { gap: 40px; }
  .hero-bg { width: 100%; }
  .pathway-grid { gap: 50px 36px; }
  .pathway-card:not(:nth-child(3n))::after { right: -18px; }
  .values-grid { gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-preview-inner { gap: 50px; }
  .content-split { gap: 50px; }
  .services-grid { gap: 28px; }
  .contact-inner { gap: 50px; }
}

@media (max-width: 820px) {
  :root { --gutter: 28px; }
  body { padding-top: 100px; }

  /* Hide desktop nav, show hamburger */
  .nav .nav-link,
  .nav .nav-cta,
  .nav .nav-item.has-dropdown { display: none; }
  .menu-btn { display: block; }

  .hero { padding: 30px 0 60px; min-height: 0; display: block; }
  body.page-home .hero { padding-top: 130px; }
  .hero-bg {
    position: relative;
    width: 100%; height: 380px;
    margin-bottom: 30px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }

  .pathway-grid { grid-template-columns: repeat(2, 1fr); gap: 50px 32px; }
  .pathway-card::after { display: none !important; }
  .pathway-card:nth-child(odd)::after {
    content: ''; display: block !important;
    position: absolute; right: -16px;
    top: 10%; bottom: 10%;
    width: 1px; background: var(--line);
  }

  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }

  .about-preview-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-preview-image img { height: 340px; }
  .about-preview-image::after { display: none; }

  .framework-preview-inner { grid-template-columns: 1fr; gap: 40px; }
  .content-split { grid-template-columns: 1fr; gap: 40px; }
  .content-split.reverse { direction: ltr; }

  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }

  .contact-inner { grid-template-columns: 1fr; gap: 50px; }

  .values-section-expanded { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }

  body { padding-top: 80px; }
  .topbar { padding: 14px 0; }
  .topbar.is-scrolled { padding: 10px 0; }
  .topbar.is-scrolled .brand-logo { width: 40px; height: 40px; }
  .brand-logo { width: 50px; height: 50px; }
  .brand-name { font-size: 20px; letter-spacing: 0.14em; }
  .brand-tagline { font-size: 8px; display: none; }
  .brand-divider { display: none; }

  .nav .nav-link,
  .nav .nav-cta,
  .nav .nav-item.has-dropdown { display: none; }
  .menu-btn { display: block; }

  .hero { padding: 24px 0 50px; }
  body.page-home .hero { padding-top: 110px; }
  .hero-bg { height: 280px; margin-bottom: 24px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 16px; }
  .hero-desc { font-size: 15px; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .btn { padding: 18px 28px; font-size: 11px; width: 100%; }

  .mobile-menu-inner { padding: 88px 24px 50px; }
  .mm-link { font-size: 14px; padding: 16px 4px; }
  .mm-sublink { font-size: 13px; padding: 11px 0 11px 16px; }
  .mm-cta { padding: 18px 20px; font-size: 12px; margin-top: 20px; }

  .pathways { padding: 70px 0 60px; }
  .title-divider { margin-bottom: 44px; }
  .pathway-grid { grid-template-columns: 1fr; gap: 44px; max-width: 360px; }
  .pathway-card::after, .pathway-card:nth-child(odd)::after { display: none !important; }
  .pathway-icon { width: 96px; height: 96px; }

  .different-path { padding: 60px 0 56px; }
  .dp-grass-left, .dp-grass-right { width: 90px; opacity: 0.5; }
  .dp-tags .sep { margin: 0 8px; }

  .values { padding: 44px 0 50px; }
  .values-grid { grid-template-columns: 1fr; gap: 24px; max-width: 360px; }
  .value-card { gap: 16px; }
  .value-icon { width: 60px; height: 60px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .page-hero { padding: 70px 0 50px; }
  .about-preview { padding: 60px 0; }
  .framework-preview { padding: 60px 0; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card-photo { width: 160px; height: 160px; }

  .values-section-expanded { grid-template-columns: 1fr; }
  .value-card-expanded { padding: 28px 24px; }

  .accordion-header { padding: 20px 0; }
  .accordion-header h3 { font-size: 12px; }

  .framework-visual { grid-template-columns: 1fr; }

  .floating-cta { display: block; bottom: 20px; right: 20px; left: 20px; }
  .floating-cta .btn { width: 100%; display: block; text-align: center; }

  .back-to-top { bottom: 90px; right: 20px; width: 40px; height: 40px; }
  .back-to-top svg { width: 16px; height: 16px; }

  .cta-banner { padding: 60px 0; }
  .cta-banner-list { flex-direction: column; align-items: center; gap: 6px; }
}

/* ============================================================
   ADDITIONS — section icons, service fees & CTAs, newsletter
   ============================================================ */

/* Inline decorative section icon */
.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-icon svg { width: 100%; height: 100%; }

/* Decorative icon panel (replaces a photo when none is set) */
.content-icon-panel {
  position: relative;
  min-height: 420px;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.content-icon-panel::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid var(--gold);
  opacity: 0.35;
  pointer-events: none;
}
.content-icon-panel-inner {
  width: 120px;
  height: 120px;
  opacity: 0.7;
}
.content-icon-panel-inner svg { width: 100%; height: 100%; }

/* Service section meta: fees + per-section CTAs */
.service-section-meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.service-fees {
  background: var(--cream-light);
  border-left: 2px solid var(--gold);
  padding: 16px 22px;
  margin-bottom: 22px;
}
.service-fees-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.service-fees p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.service-section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.service-section-cta .btn { padding: 15px 30px; }

/* Newsletter card on Contact page */
.contact-newsletter {
  margin-top: 32px;
  padding: 28px 26px;
  background: var(--olive-deep);
  color: var(--cream);
}
.contact-newsletter h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 8px;
}
.contact-newsletter p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 237, 224, 0.78);
  margin-bottom: 20px;
}
.contact-newsletter .btn-gold { width: 100%; }

/* Service grid card icon fallback uses inline SVG */
.service-card-icon svg { width: 100%; height: 100%; }
.pathway-icon svg { width: 100%; height: 100%; }

@media (max-width: 820px) {
  .content-icon-panel { min-height: 300px; }
  .content-icon-panel-inner { width: 90px; height: 90px; }
}

@media (max-width: 600px) {
  .content-icon-panel { min-height: 220px; }
  .service-section-cta .btn { width: 100%; }
  .contact-newsletter { padding: 24px 20px; }
}

/* ============================================================
   FOUNDER BLOCK (Team page)
   ============================================================ */
.founder-block {
  align-items: start;
}
.founder-photo { position: relative; }
.founder-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}
.founder-photo::after {
  content: '';
  position: absolute;
  top: 18px; left: 18px; right: -18px; bottom: -18px;
  border: 1px solid var(--gold);
  opacity: 0.35;
  z-index: -1;
}
.founder-photo-placeholder {
  width: 100%;
  height: 620px;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.founder-photo-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  color: var(--gold);
  opacity: 0.5;
}
.founder-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 8px;
}
.founder-role {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.founder-bio p { margin-bottom: 18px; }
.founder-bio p:last-child { margin-bottom: 0; }

/* ============================================================
   BREADCRUMBS (sg_breadcrumbs) — centered, premium, brand-styled
   ============================================================ */
.sg-breadcrumbs {
  padding: 26px 0 0;
  text-align: center;
  background: transparent;
}
.sg-breadcrumbs .container { padding-top: 0; padding-bottom: 0; }

.sg-breadcrumbs-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.4;
}

.sg-breadcrumbs-list li {
  list-style: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.sg-breadcrumbs-list li::marker { content: '' !important; } /* belt-and-braces */

.sg-breadcrumbs-list a,
.sg-breadcrumbs-list a:link,
.sg-breadcrumbs-list a:visited {
  color: var(--olive) !important;
  text-decoration: none !important;
  transition: color 0.25s ease;
  padding: 4px 0;
}
.sg-breadcrumbs-list a:hover,
.sg-breadcrumbs-list a:focus {
  color: var(--gold) !important;
}

.sg-breadcrumbs-list li.is-current span {
  color: var(--gold);
  font-weight: 700;
}

.sg-breadcrumbs-sep {
  display: inline-flex;
  align-items: center;
  margin: 0 14px;
  color: var(--gold);
  opacity: 0.55;
}
.sg-breadcrumbs-sep svg { width: 14px; height: 8px; display: block; }

@media (max-width: 820px) {
  .sg-breadcrumbs { padding-top: 20px; }
  .sg-breadcrumbs-list { font-size: 10px; letter-spacing: 0.2em; }
  .sg-breadcrumbs-sep { margin: 0 10px; }
  .sg-breadcrumbs-sep svg { width: 12px; height: 7px; }
}
@media (max-width: 600px) {
  .sg-breadcrumbs { padding-top: 14px; }
  .sg-breadcrumbs-list { font-size: 9.5px; letter-spacing: 0.18em; }
  .sg-breadcrumbs-sep { margin: 0 8px; }
}

/* Tighten the gap between breadcrumbs and the hero so they read as one
   integrated block instead of a floating bar. */
.sg-breadcrumbs + .page-hero {
  padding-top: 30px;
}
@media (max-width: 600px) {
  .sg-breadcrumbs + .page-hero { padding-top: 22px; }
}

/* ============================================================
   CONTACT FORM EXTRAS
   ============================================================ */
/* Honeypot: hidden from users, visible (and tempting) to spam bots */
.sg-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success block shown after a successful submission */
.form-success {
  background: var(--cream-light);
  border-left: 3px solid var(--gold);
  padding: 40px 32px;
  text-align: center;
}
.form-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 12px;
}
.form-success p {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   LEGAL PAGES (Privacy Policy / Terms & Conditions)
   ============================================================ */
.legal-hero { padding-bottom: 40px; }
.legal-effective-date {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-top: 6px;
}

.legal-body { padding: 40px 0 100px; }
.legal-article {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal-intro p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.legal-intro {
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-section { margin-bottom: 48px; }
.legal-section-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}
.legal-section-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--gold);
  min-width: 30px;
  flex-shrink: 0;
}
.legal-section-content p { margin-bottom: 16px; }
.legal-section-content p:last-child { margin-bottom: 0; }
.legal-section-content ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.legal-section-content ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 15px;
  line-height: 1.65;
}
.legal-section-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}
.legal-section-content a {
  color: var(--olive);
  text-decoration: underline;
  text-decoration-color: rgba(75,82,48,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.legal-section-content a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.legal-contact {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--cream-light);
  border-left: 3px solid var(--gold);
}
.legal-contact h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.legal-contact p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.legal-contact a {
  color: var(--olive);
  text-decoration: none;
}
.legal-contact a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .legal-section-title { flex-direction: column; gap: 6px; }
  .legal-contact { padding: 22px 24px; }
}

/* ============================================================
   CTA BANNER ICON (visible on dark olive background)
   ============================================================ */
.cta-banner-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  opacity: 0.85;
  filter: brightness(2.6) saturate(0.7);
}
.cta-banner-icon svg { width: 100%; height: 100%; }

/* ============================================================
   VALUE CARD ICON (About / Why SWEETGRASS values)
   ============================================================ */
.value-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}
.value-card-icon svg { width: 100%; height: 100%; }

/* ============================================================
   TEAM BIO CARDS (Team page — full bios with photo)
   ============================================================ */
.team-grid-bio {
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
  max-width: 1100px;
  margin: 60px auto 0;
}
.team-card-bio {
  text-align: left;
  background: var(--cream-light);
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card-bio:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}
.team-card-bio .team-card-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 0 24px;
  border-radius: 0;
  border: none;
  overflow: hidden;
}
.team-card-bio .team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-card-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-photo-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 96px;
  color: var(--gold);
  opacity: 0.5;
}
.team-card-bio h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  margin: 0 28px 6px;
  line-height: 1.2;
}
.team-card-bio .team-role {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 28px 18px;
}
.team-card-bio-text {
  padding: 0 28px 32px;
  max-width: none;
}
.team-card-bio-text p {
  font-family: 'Lato', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.team-card-bio-text p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .team-grid-bio { grid-template-columns: 1fr; gap: 40px; max-width: 560px; }
}
@media (max-width: 600px) {
  .team-card-bio h3,
  .team-card-bio .team-role,
  .team-card-bio-text { margin-left: 22px; margin-right: 22px; }
  .team-card-bio-text { padding-left: 22px; padding-right: 22px; padding-bottom: 26px; }
  .team-card-photo-placeholder span { font-size: 72px; }
}

/* Framework intro (full-width editorial) */
.framework-intro-image {
  max-width: 1000px;
  margin: 0 auto 48px;
}
.framework-intro-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.framework-intro-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
}
.framework-intro-text p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .founder-photo img,
  .founder-photo-placeholder { height: 460px; }
  .founder-photo::after { display: none; }
  .framework-intro-image img { height: 340px; }
}
@media (max-width: 600px) {
  .founder-photo img,
  .founder-photo-placeholder { height: 360px; }
  .founder-photo-placeholder span { font-size: 90px; }
}
