/*
 Theme Name:   ADAPT Child Theme
 Description:  Custom coded theme for Alliance for Development and Progressive Transformation
 Author:       Alex Chen
 Template:     twentytwentyfour
 Version:      1.0.0
*/

/* Your custom CSS starts below this line */
/*
Theme Name: ADAPT Theme
Theme URI: https://theadapt.in
Author: ADAPT
Author URI: https://theadapt.in
Description: Custom theme for Alliance for Development and Progressive Transformation
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: adapt-theme
*/
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');
/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --clr-earth-dark:   #1C1A14;
  --clr-earth-mid:    #3B3220;
  --clr-earth-warm:   #6B5B3E;
  --clr-terracotta:   #C4622D;
  --clr-sage:         #5C7A5A;
  --clr-sage-light:   #8FAF8B;
  --clr-cream:        #F5F0E8;
  --clr-cream-dark:   #EAE3D5;
  --clr-parchment:    #D9CEBC;
  --clr-white:        #FDFBF8;
  --clr-text:         #1C1A14;
  --clr-text-muted:   #6B5B3E;

  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', system-ui, sans-serif;
  --font-mono:        'DM Mono', monospace;

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;
  --space-2xl:  11rem;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  20px;
  --radius-pill:9999px;

  --shadow-card: 0 2px 16px rgba(28,26,20,0.08);
  --shadow-hover: 0 8px 40px rgba(28,26,20,0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--clr-white);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--clr-earth-dark);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { font-size: 1.05rem; color: var(--clr-earth-warm); max-width: 68ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
  display: block;
  margin-bottom: 1rem;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--cream  { background: var(--clr-cream); }
.section--dark   { background: var(--clr-earth-dark); color: var(--clr-cream); }
.section--dark p { color: var(--clr-parchment); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--clr-cream); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* =========================================================
   BUTTONS
   ========================================================= */
/* This forces ALL buttons on the site to perfectly match */
body .btn,
body .nav-cta .btn,
body .wp-block-button__link,
body .is-style-fill .wp-block-button__link {
  border-radius: 9999px !important; /* The pill shape */
  padding: 0.85rem 2rem !important;
  background-color: var(--clr-terracotta) !important;
  color: var(--clr-white) !important;
  text-decoration: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border: none !important;
  box-shadow: none !important;
}
.btn-primary {
  background: var(--clr-terracotta);
  color: var(--clr-white);
}
.btn-primary:hover {
  background: #a8501f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,98,45,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--clr-terracotta);
  color: var(--clr-terracotta);
}
.btn-outline:hover {
  background: var(--clr-terracotta);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-cream);
  border: 2px solid rgba(245,240,232,0.4);
}
.btn-ghost:hover {
  border-color: var(--clr-cream);
  background: rgba(245,240,232,0.1);
}

.btn svg { width: 18px; height: 18px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(253,251,248,0.98); 
  box-shadow: 0 1px 0 var(--clr-parchment);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#site-header.scrolled {
  background: rgba(253,251,248,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-parchment);
  padding: 0.85rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo .logo-name {
  font-family: var(--font-display);
  /* Uses 'clamp' to make it massive on desktops but scale down safely on phones */
  font-size: clamp(2.5rem, 4vw, 3.5rem) !important; 
  font-weight: 700;
  color: var(--clr-earth-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.site-logo .logo-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem !important; /* Bumped up for readability */
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  color: var(--clr-terracotta);
}

#site-header.header-transparent .logo-name { color: var(--clr-white); }
#site-header.header-transparent .logo-sub  { color: var(--clr-parchment); }
#site-header.header-transparent.scrolled .logo-name { color: var(--clr-earth-dark); }
#site-header.header-transparent.scrolled .logo-sub  { color: var(--clr-terracotta); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* INCREASED from 0.25rem for better spacing */
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-earth-dark);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  /* ADDED: This stops the words from stacking/wrapping */
  white-space: nowrap; 
}

#site-header.header-transparent:not(.scrolled) .nav-menu > li > a {
  color: var(--clr-cream);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--clr-terracotta);
  background: rgba(196,98,45,0.07);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--clr-white);
  border: 1px solid var(--clr-cream-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--clr-earth-warm);
  transition: var(--transition);
}
.nav-menu .sub-menu li a:hover {
  background: var(--clr-cream);
  color: var(--clr-terracotta);
}

.nav-cta { 
  margin-left: 1.5rem; 
  flex: 0 0 auto !important; 
  display: flex;
  align-items: center;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--clr-earth-dark);
  border-radius: 2px;
  transition: var(--transition);
}
#site-header.header-transparent:not(.scrolled) .nav-toggle span { background: var(--clr-white); }

/* =========================================================
   HERO
   ========================================================= */
/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1C1A14 0%,
    #3B3220 40%,
    #4a5c3a 70%,
    #1C1A14 100%
  );
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(92,122,90,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(196,98,45,0.12) 0%, transparent 50%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(196,98,45,0.15);
  border: 1px solid rgba(196,98,45,0.3);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8a07a;
  margin-bottom: 2rem;
}

.hero__kicker::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--clr-terracotta);
  border-radius: 50%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  max-width: 16ch;
}

.hero__title em {
  font-style: italic;
  color: #e8a07a;
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(245,240,232,0.8);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 2.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245,240,232,0.5);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  animation: scrollBob 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(245,240,232,0.4));
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Hero stats bar */
.hero__stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: rgba(28,26,20,0.7);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(245,240,232,0.08);
}

.hero__stats-inner {
  display: flex;
  align-items: stretch;
}

.hero__stat {
  flex: 1;
  padding: 1.5rem var(--space-md);
  border-right: 1px solid rgba(245,240,232,0.08);
  text-align: center;
}
.hero__stat:last-child { border-right: none; }

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-cream);
  line-height: 1;
}

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-top: 0.25rem;
}

/* =========================================================
   MISSION STRIP
   ========================================================= */
.mission-strip {
  background: var(--clr-terracotta);
  padding: var(--space-lg) 0;
  overflow: hidden;
}

.mission-strip__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: center;
}

.mission-strip__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(253,251,248,0.6);
  margin-bottom: 0.5rem;
}

.mission-strip__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--clr-white);
  font-weight: 600;
  line-height: 1.2;
}

.mission-strip p {
  font-size: 1.05rem;
  color: rgba(253,251,248,0.85);
  line-height: 1.75;
  max-width: 60ch;
}

/* =========================================================
   PILLARS / APPROACH
   ========================================================= */
.pillars__header {
  margin-bottom: var(--space-lg);
  max-width: 50ch;
}

.pillar-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-cream-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--clr-terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pillar-card:hover::before { transform: scaleX(1); }

.pillar-card__icon {
  width: 56px; height: 56px;
  background: var(--clr-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--clr-sage);
}

.pillar-card__num {
  position: absolute;
  top: 2rem; right: 2rem;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--clr-cream-dark);
  line-height: 1;
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================================
   OUR WORK / ACTIVITIES
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-item {
  background: var(--clr-cream);
  padding: 3rem;
  position: relative;
  transition: var(--transition);
}

.work-item:hover { background: var(--clr-earth-dark); }
.work-item:hover h3,
.work-item:hover .eyebrow { color: var(--clr-cream); }
.work-item:hover p { color: var(--clr-parchment); }

.work-item .eyebrow { transition: color var(--transition); }
.work-item h3 { transition: color var(--transition); margin-bottom: 0.75rem; }
.work-item p { transition: color var(--transition); font-size: 0.95rem; }

.work-item--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--clr-sage);
  color: var(--clr-white);
}
.work-item--featured h3 { color: var(--clr-white); font-size: 1.8rem; }
.work-item--featured p  { color: rgba(245,240,232,0.85); max-width: 45ch; }
.work-item--featured .eyebrow { color: #c5e0c2; }

/* =========================================================
   IMPACT NUMBERS
   ========================================================= */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--clr-parchment);
  border: 1px solid var(--clr-parchment);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.impact-item {
  background: var(--clr-white);
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.impact-item:hover { background: var(--clr-cream); }

.impact-item__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--clr-terracotta);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.impact-item__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-earth-warm);
}

/* =========================================================
   CARDS (Publications / News)
   ========================================================= */
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--clr-cream);
}

.card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--clr-cream) 0%, var(--clr-cream-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__thumb-placeholder svg {
  width: 48px; height: 48px;
  color: var(--clr-parchment);
}

.card__body { padding: 1.75rem; }

.card__tag {
  display: inline-block;
  background: var(--clr-cream);
  color: var(--clr-terracotta);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--clr-earth-dark);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.card:hover .card__title { color: var(--clr-terracotta); }

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--clr-earth-warm);
  margin-bottom: 0.75rem;
}

.card p { font-size: 0.9rem; line-height: 1.65; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-terracotta);
  transition: gap var(--transition);
}

.card__link:hover { gap: 0.75rem; }
.card__link svg { width: 16px; height: 16px; }

/* =========================================================
   PARTNERS STRIP
   ========================================================= */
.partners {
  padding: var(--space-lg) 0;
  background: var(--clr-cream);
  border-top: 1px solid var(--clr-cream-dark);
  border-bottom: 1px solid var(--clr-cream-dark);
}

.partners__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-earth-warm);
  margin-bottom: 2.5rem;
}

.partners__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.partner-logo {
  height: 40px;
  filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
}

.partner-logo:hover { filter: none; }

/* =========================================================
   GET INVOLVED / CTA
   ========================================================= */
.cta-band {
  background: var(--clr-earth-dark);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(92,122,90,0.15) 0%, transparent 65%);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl) 0;
}

.cta-band h2 { color: var(--clr-cream); font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p  { color: var(--clr-parchment); max-width: 48ch; margin-top: 1rem; }

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

/* =========================================================
   TEAM
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--clr-cream-dark);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.team-card:hover .team-card__photo { transform: scale(1.02); }

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
   .hero {
  position: relative;
  min-height: 100vh !important; /* Forces the section to take up the full screen */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 12rem 0 6rem !important; /* Pushes the text safely down below the navigation bar */
  width: 100%;
}
.page-hero {
  padding: 12rem 0 6rem !important;
  background-color: var(--clr-earth-dark);
  /* Adds a rich image with a dark overlay to match the Home page vibe */
  background-image: linear-gradient(rgba(28,26,20,0.5), rgba(28,26,20,0.9)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2000&auto=format&fit=crop') !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 50%, rgba(92,122,90,0.2) 0%, transparent 60%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 60ch;
}

.page-hero h1 { color: var(--clr-cream); }
.page-hero p  { color: var(--clr-parchment); font-size: 1.15rem; margin-top: 1.25rem; max-width: 52ch; }

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--clr-earth-dark);
  color: var(--clr-cream);
  border-top: 1px solid rgba(245,240,232,0.06);
}

.footer-main {
  padding: var(--space-xl) 0 var(--space-lg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
}

.footer-brand .logo-name { color: var(--clr-cream); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.footer-brand .logo-sub  { color: var(--clr-terracotta); }
.footer-brand p          { font-size: 0.9rem; color: rgba(245,240,232,0.6); margin-top: 1rem; max-width: 34ch; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.7);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--clr-terracotta); }

.footer-newsletter p {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.6);
  max-width: none;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border: 1px solid rgba(245,240,232,0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(245,240,232,0.05);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--clr-cream);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(245,240,232,0.3); }

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--clr-terracotta);
  color: var(--clr-white);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background var(--transition);
  flex-shrink: 0;
}

.newsletter-form button:hover { background: #a8501f; }

.footer-bottom {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(245,240,232,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.35);
  max-width: none;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(245,240,232,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.5);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--clr-terracotta);
  color: var(--clr-terracotta);
}

.footer-social svg { width: 16px; height: 16px; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info h3 { margin-bottom: 2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--clr-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-sage);
}

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-earth-warm);
  margin-bottom: 0.25rem;
}

.contact-item__value {
  font-size: 1rem;
  color: var(--clr-earth-dark);
  font-weight: 500;
}

/* Form */
.contact-form {
  background: var(--clr-cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-earth-warm);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--clr-white);
  border: 1px solid var(--clr-parchment);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-earth-dark);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-sage);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =========================================================
   SINGLE POST / PAGE CONTENT
   ========================================================= */
.entry-content {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
}

.entry-content h2 { margin: 2.5rem 0 1rem; }
.entry-content h3 { margin: 2rem 0 0.75rem; }
.entry-content p  { margin-bottom: 1.5rem; color: var(--clr-earth-warm); max-width: none; }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; color: var(--clr-earth-warm); }
.entry-content blockquote {
  border-left: 4px solid var(--clr-terracotta);
  padding: 1rem 1.5rem;
  background: var(--clr-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--clr-earth-dark);
}

/* =========================================================
   ARCHIVE / LOOP
   ========================================================= */
.archive-header {
  margin-bottom: var(--space-lg);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--clr-parchment);
  color: var(--clr-earth-warm);
  background: var(--clr-white);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--clr-terracotta);
  color: var(--clr-white);
  border-color: var(--clr-terracotta);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.pagination a,
.pagination span {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--clr-parchment);
  color: var(--clr-earth-warm);
  transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--clr-terracotta);
  color: var(--clr-white);
  border-color: var(--clr-terracotta);
}

/* =========================================================
   SECTION HEADER PATTERN
   ========================================================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.section-header__left { max-width: 50ch; }
.section-header__left h2 { margin-top: 0.5rem; }

/* =========================================================
   ANIMATED ENTRANCE
   ========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .team-grid      { grid-template-columns: repeat(3, 1fr); }
  .footer-main    { grid-template-columns: 1fr 1fr; }
  .impact-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-3         { grid-template-columns: 1fr 1fr; }
  .work-grid      { grid-template-columns: 1fr; }
  .work-item--featured { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .posts-grid     { grid-template-columns: 1fr 1fr; }
  .mission-strip__inner { grid-template-columns: 1fr; }
  .hero__stats-inner { flex-wrap: wrap; }
  .hero__stat     { flex: 1 1 50%; }
}

@media (max-width: 768px) {
  :root { --space-xl: 5rem; --space-2xl: 7rem; }

  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--clr-earth-dark);
    padding: 6rem 2rem 2rem;
    z-index: 999;
    gap: 0.5rem;
  }

  .nav-menu.open > li > a {
    font-size: 1.5rem;
    color: var(--clr-cream);
    padding: 0.75rem 0;
    display: block;
  }

  .nav-menu.open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 1rem;
  }

  .nav-menu.open .sub-menu li a { color: var(--clr-parchment); font-size: 1.1rem; }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero__stats { display: none; }
  .grid-2       { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr 1fr; }
  .footer-main  { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .posts-grid   { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .impact-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .team-grid    { grid-template-columns: 1fr; }
  .impact-grid  { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__stat   { flex: 1 1 100%; }
}

/* ── GLOBAL NAV LOGO OVERRIDE (STACKED FULL NAME) ── */

/* 1. Hide the acronym "ADAPT" entirely */
.nav-logo-name, 
.site-logo .logo-name {
  display: none !important;
}

/* 2. Turn the subtitle into the main, stacked serif logo */
.nav-logo-sub, 
.site-logo .logo-sub {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.15rem !important; 
  font-weight: 800 !important;
  line-height: 1.15 !important; /* Tight line height keeps the stack looking like a single unit */
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  white-space: normal !important; /* CRITICAL: Allows the text to wrap/stack */
  max-width: 280px !important; /* Controls exactly where the text breaks onto the next line */
  display: block !important;
  color: #fff !important; /* White text on the hero image */
  opacity: 1 !important;
}

/* 3. Make sure it turns dark charcoal when you scroll down */
#nav.scrolled .nav-logo-sub {
  color: var(--earth) !important;
}
/* ── FIX NAV STACKING GLOBALLY ── */
.nav-inner { 
  gap: 1rem !important; 
}
.nav-links { 
  gap: 0.5rem !important; 
}
.nav-links a {
  padding: 0.4rem 0.6rem !important;
  white-space: nowrap !important; /* This forces links to NEVER stack */
}
.nav-cta {
  white-space: nowrap !important;
  flex-shrink: 0 !important; /* Protects the button from getting squished */

}

/* ── 1. EDITORIAL TYPOGRAPHY UPGRADE ── */
.mission-strip p {
  font-size: 1.25rem !important; /* Slightly larger for readability */
  font-family: 'Playfair Display', serif !important; /* Sophisticated serif */
  font-style: italic !important;
  color: var(--white) !important;
  border-left: 3px solid rgba(255,255,255,0.4) !important; /* Elegant side line */
  padding-left: 1.5rem !important; /* Space between the line and text */
  line-height: 1.8 !important;
}

/* ── 2. CLEAN DARK SECTIONS & PHOTOGRAPHIC IMPACT SECTION ── */

/* Reset all dark sections to a clean, elegant charcoal gradient (Removes the static) */
.section--dark {
  background-color: var(--earth) !important;
  background-image: linear-gradient(135deg, #1C1A14 0%, #2a2619 100%) !important;
}

/* Apply a parallax photographic background ONLY to the sections containing the Impact numbers */
.section--dark:has(.impact-grid) {
  background-image: linear-gradient(rgba(28,26,20,0.85), rgba(28,26,20,0.95)), url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=2000&auto=format&fit=crop') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important; /* Creates a premium parallax scrolling effect */
}

/* Make the impact cards semi-transparent glass so the photo peeks through */
.impact-grid {
  background: transparent !important;
  border: 1px solid rgba(245,240,232,0.1) !important;
}
.impact-item {
  background: rgba(28,26,20,0.4) !important;
  backdrop-filter: blur(8px) !important; /* Blurs the photo slightly behind the text for readability */
}
.impact-item:hover {
  background: rgba(28,26,20,0.7) !important;
}

/* ── 3. PHOTOGRAPHIC DEPTH FOR FEATURED CARD ── */
.work-featured-visual {
  background-color: var(--sage) !important; /* The tint color */
  background-image: url('https://images.unsplash.com/photo-1574786198875-49f5d09fd2d2?q=80&w=800&auto=format&fit=crop') !important; /* Aerial river shot */
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: multiply !important; /* This blends the photo with the sage green */
}

/* Hide the old placeholder globe icon */
.work-featured-visual svg {
  display: none !important;
}

/* ── GLOBAL TYPOGRAPHY OVERRIDE ── */

/* Set the clean, modern body font */
body, p, a, input, button, textarea, .nav-links a, .form-control {
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* Set the authoritative, editorial heading font */
h1, h2, h3, h4, h5, h6, 
.nav-logo-sub, 
.site-logo .logo-sub, 
.mission-strip p, 
.theme-num, 
.impact-num, 
.card h3 {
  font-family: 'Lora', Georgia, serif !important;
  letter-spacing: -0.01em !important; /* Slightly relaxes the letters for better reading */
}

/* Update the tiny tags and eyebrows to match the new clean look (Removes the old typewriter font) */
.eyebrow, 
.card-tag, 
.theme-tag, 
.impact-lbl, 
.contact-item-label, 
.form-group label {
  font-family: 'Inter', system-ui, sans-serif !important;
  letter-spacing: 0.12em !important;
  font-weight: 600 !important;
}

/* Slightly tweak the stacked logo to accommodate the new Lora font gracefully */
.nav-logo-sub, 
.site-logo .logo-sub {
  line-height: 1.2 !important;
}

/* ── REDUCE HERO TITLE SIZE ── */
.hero-title {
  /* This scales the font smoothly based on screen size, but sets a much smaller maximum limit */
  font-size: clamp(2.2rem, 4.5vw, 3.8rem) !important; 
  line-height: 1.15 !important;
}

/* ── HERO WORD ROTATOR FADE (STABILIZED) ── */
.hero-title em {
  transition: opacity 0.6s ease-in-out !important;
  display: block !important; /* This is the magic: Forces the word onto its own line */
  padding: 0.15rem 0 !important; /* Adds a tiny bit of elegant breathing room */
  
/* ── FIX: KEEP LOGO LIGHT ON DARK ARTICLE HEROES ── */
body.single .site-header .nav-logo-sub, 
body.single .site-header .logo-sub, 
body.single .mobile-header .logo-sub,
body.single .nav-logo-sub {
  color: #F5F0E8 !important; /* Premium Cream */
}

/* ── SINGLE POST HERO: FADED DEPTH IMAGE ── */
body.single .page-hero {
  /* Applies a heavy 85% to 95% dark overlay over the image for deep, subtle texture */
  background-image: linear-gradient(rgba(28, 26, 20, 0.85), rgba(28, 26, 20, 0.95)), url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?q=80&w=2000&auto=format&fit=crop') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ── MOBILE RESPONSIVENESS (THE INLINE GRID FIX) ── */
@media screen and (max-width: 768px) {
  
  /* 1. Smash the hardcoded 2-column grid and force it to stack */
  body.single .container > div[style*="display:grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  /* 2. Ensure text takes up the full width of the new single column */
  body.single .entry-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 3. Fix the invisible white logo on mobile headers */
  .site-header .nav-logo-sub,
  .site-header .logo-sub,
  .mobile-header .logo-sub,
  .mobile-nav-wrap .logo-sub {
    color: var(--clr-earth-dark, #1C1A14) !important;
  }
}

/* ── REPLACE MOUNTAIN HERO ON ALL INTERNAL PAGES ── */

/* Overpower the injected page styles using high specificity */
html body section.page-hero {
  background-image: linear-gradient(135deg, #1C1A14 0%, #2E473B 100%) !important;
  background-color: #1C1A14 !important;
}

/* Ensure headings and text stay crisp */
html body section.page-hero h1,
html body section.page-hero p,
html body section.page-hero .breadcrumbs {
  color: #F5F0E8 !important; 
}