/* ─────────────────────────────────────────
   Editorial New is a commercial font by Pangram Pangram.
   Add a @font-face block here once you have the font files.
   Playfair Display (Google Fonts) is used as fallback.
   ───────────────────────────────────────── */

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

:root {
  --green:       #1B3028;
  --cream:       #F2EDE3;
  --green-dim:   rgba(27, 48, 40, 0.45);
  --cream-dim:   rgba(242, 237, 227, 0.45);
  --cream-mid:   rgba(242, 237, 227, 0.70);
  --font-display: 'Poppins', -apple-system, sans-serif;
  --font-serif:   'Editorial New', 'Playfair Display', Georgia, serif;
  --font-ui:      'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.dark  { background: var(--green); color: var(--cream); }
.light { background: var(--cream); color: var(--green); }


/* ─── FIXED HEADER ───────────────────────── */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#site-header.detached {
  background: rgba(27, 48, 40, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(242, 237, 227, 0.1);
}


/* ─── ABOVE FOLD ─────────────────────────── */

.above-fold {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


/* ─── NAV ────────────────────────────────── */

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2.5rem;
}

.nav-left {
  display: flex;
  gap: 2.5rem;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}

.nav-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.4rem; /* contain both overlapping labels */
}

nav a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-mid);
  transition: color 0.15s;
}

nav a:hover { color: var(--cream); }

/* default quote */
.nav-title-default {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--cream-mid);
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

/* scrolled-in display title */
.nav-title-scrolled {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}


/* ─── HERO ───────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 2rem 2rem; /* 60px = approx fixed nav height */
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 9rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: clamp(1rem, 2.5vh, 2.5rem);
  transform-origin: center top;
  will-change: transform, opacity;
}

.hero-sub {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: clamp(1rem, 2vh, 2rem);
  will-change: opacity;
}

.pill-btn {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  border-radius: 100px;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: var(--cream);
  color: var(--green);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.pill-btn:hover { opacity: 0.8; }

.pill-btn-dark {
  background: var(--green);
  color: var(--cream);
}


/* ─── SHARED SECTION LAYOUT ──────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.dark  .section-label { color: var(--cream-dim); }
.light .section-label { color: var(--green-dim); }




/* ─── ABOUT ──────────────────────────────── */

.about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.about h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 3rem;
  max-width: 820px;
}

.section-body {
  max-width: 680px;
}

.section-body p {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.dark  .section-body p { color: var(--cream-mid); }
.light .section-body p { color: rgba(27, 48, 40, 0.72); }

.callout-belief {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem) !important;
  line-height: 1.55 !important;
  color: var(--green) !important;
  border-left: 3px solid var(--green);
  padding-left: 1.25rem;
  margin-top: 2rem !important;
  opacity: 1 !important;
}


/* ─── SERVICES ───────────────────────────── */

.services {
  padding: 8rem 0 4rem;
}

.services h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 3rem;
}

.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 5rem;
  border-top: 1px solid rgba(27, 48, 40, 0.14);
}

.offering {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid rgba(27, 48, 40, 0.14);
}

.offering:nth-child(3n) { border-right: none; }
.offering:not(:nth-child(-n+3)) { border-top: 1px solid rgba(27, 48, 40, 0.14); }
.offering:not(:nth-child(3n+1)) { padding-left: 2rem; }

.offering-num {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--green-dim);
  margin-bottom: 1rem;
}

.offering h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--green);
}

.offering p {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.72;
  color: rgba(27, 48, 40, 0.72);
}

.not-a-lawyer {
  margin-top: 4rem;
  padding: 2.5rem 3rem;
  border: 1px solid rgba(27, 48, 40, 0.2);
  border-radius: 8px;
}

.not-a-lawyer p {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.78;
  color: rgba(27, 48, 40, 0.72);
}

.not-a-lawyer em {
  font-style: italic;
  color: var(--green);
}

.clients {
  padding: 0 0 6rem;
}

.who {
  padding-top: 0;
  padding-bottom: 0;
}

.who-callout {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--green);
  max-width: 820px;
  margin-bottom: 3rem;
}

.who-ideal {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.78;
  color: rgba(27, 48, 40, 0.72);
  max-width: 680px;
  margin-top: 3rem;
}

.who ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 5rem;
}

.who li {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--green);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.who li::before {
  content: '—';
  flex-shrink: 0;
  font-weight: 400;
  color: var(--green-dim);
}


/* ─── LIFECYCLE DIAGRAM ──────────────────── */

.lifecycle {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(242, 237, 227, 0.14);
}

.lifecycle-graph {
  position: relative;
}

#lc-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.lifecycle-labels {
  position: relative;
  height: 2.5rem;
  margin-top: 0.75rem;
}

.lifecycle-labels span {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, 0.45);
  line-height: 1.4;
  white-space: nowrap;
}



.lifecycle-caption {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--cream-mid);
  max-width: 680px;
  margin-top: 2.5rem;
}


/* ─── PROCESS ────────────────────────────── */

.process {
  padding: 8rem 0;
}

.process h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 3rem;
}

.process-getting-started {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cream);
  margin-top: 5rem;
  margin-bottom: 3rem;
}

.process-formats {
  margin-top: 5rem;
  border-top: 1px solid rgba(242, 237, 227, 0.14);
}

.process-format {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(242, 237, 227, 0.14);
}

.format-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.format-num {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
}

.format-tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.format-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--cream);
}

.format-body p {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.78;
  color: var(--cream-mid);
  margin-bottom: 1rem;
}

.format-body p:last-child { margin-bottom: 0; }

.format-for {
  font-family: var(--font-serif) !important;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem) !important;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--cream-mid) !important;
  margin-top: 1.25rem;
}

.format-price {
  font-family: var(--font-ui) !important;
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-mid) !important;
  margin-top: 0.5rem;
}

/* ─── TEAM ───────────────────────────────── */

.team {
  padding: 8rem 0;
}

.team h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.team-tile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--green);
  border: 1px solid rgba(27, 48, 40, 0.14);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-photo img:not(.inelda-badge-overlay) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%) brightness(0.85) contrast(1.1) sepia(45%) hue-rotate(95deg);
}

.inelda-badge-overlay {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 22%;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

.sacred-crossings-badge {
  width: 60%;
  filter: brightness(0);
}

.team-photo-danya {
  object-position: center 2%;
  transform: scale(1.65);
  transform-origin: center top;
  filter: grayscale(100%) brightness(0.85) contrast(1.1) sepia(45%) hue-rotate(95deg);
}

.team-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.team-specialty {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dim);
  margin-bottom: 0.85rem;
}

.team-bio {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.72;
  color: rgba(27, 48, 40, 0.72);
}


/* ─── RESOURCES PREVIEW ─────────────────── */

.resources-preview {
  padding: 8rem 0 0;
}

.resources-preview-header {
  padding-bottom: 4rem;
}

.resources-preview h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 3rem;
}

/* ── Carousel ── */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 68%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 260px;
}

.slide-image {
  min-height: 260px;
  overflow: hidden;
}

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

.slide-text {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  background: var(--cream);
  border-left: 1px solid rgba(27, 48, 40, 0.1);
}

.slide-source {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dim);
}

.slide-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--green);
}

.slide-sub {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.75;
  color: rgba(27, 48, 40, 0.65);
}

.slide-link {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  transition: opacity 0.15s;
  margin-top: 0.5rem;
}

.slide-link:hover { opacity: 0.6; }

.carousel-nav {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 227, 0.4);
  background: transparent;
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.carousel-btn:hover {
  background: rgba(242, 237, 227, 0.15);
  border-color: var(--cream);
}

.carousel-dots {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(242, 237, 227, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: var(--cream);
}

.carousel-footer {
  padding-top: 2rem;
  padding-bottom: 4rem;
  text-align: center;
}


/* ─── RESOURCES PAGE ─────────────────────── */

.page-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 6rem;
  text-align: left;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.page-hero .hero-sub,
.page-hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--cream-mid);
  max-width: 560px;
}

.resources-section {
  padding: 6rem 0;
}

.featured-article-section {
  padding: 0;
}

.featured-article {
  display: grid;
  grid-template-columns: 62fr 38fr;
  min-height: 520px;
}

.featured-article-image {
  background: var(--green);
  min-height: 520px;
  overflow: hidden;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.featured-article-text {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  border-left: 1px solid rgba(27, 48, 40, 0.1);
}

.featured-article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--green);
}

.featured-article-excerpt {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: rgba(27, 48, 40, 0.65);
}

.resources-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(27, 48, 40, 0.14);
}

.dark .resources-section h2 {
  border-bottom-color: rgba(242, 237, 227, 0.14);
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.resource-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(27, 48, 40, 0.1);
  text-decoration: none;
  transition: opacity 0.15s;
}

.dark .resource-item {
  border-bottom-color: rgba(242, 237, 227, 0.1);
}

.resource-item:hover { opacity: 0.65; }

.resource-item-body {}

.resource-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: -0.015em;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.dark .resource-item-title { color: var(--cream); }

.resource-item-desc {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(27, 48, 40, 0.6);
}

.dark .resource-item-desc { color: var(--cream-mid); }

.resource-item-source {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dim);
  white-space: nowrap;
}

.dark .resource-item-source { color: var(--cream-dim); }


/* ─── CONTACT ────────────────────────────── */

.contact {
  padding: 8rem 0;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 2.5rem;
}

.contact-sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.75;
  color: var(--cream-mid);
  max-width: 540px;
}


/* ─── CONTACT FORM ───────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

.contact-left h2 {
  margin-bottom: 2rem;
}

.contact-sub a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 0.5rem;
  margin-bottom: 0.25rem;
  align-items: start;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-col-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(242, 237, 227, 0.3);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.15s;
  resize: none;
}

.contact-form textarea {
  border-radius: 1.5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--cream-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cream);
}

.service-pills {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-pill {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.service-pill input[type="checkbox"] {
  display: none;
}

.service-pill span {
  display: inline-block;
  width: 100%;
  padding: 0.65rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(242, 237, 227, 0.3);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--cream);
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}

.service-pill input:checked + span {
  background: var(--cream);
  color: var(--green);
  border-color: var(--cream);
}

.service-pill:hover span {
  border-color: var(--cream);
}


/* ─── FOOTER ─────────────────────────────── */

footer {
  border-top: 1px solid rgba(242, 237, 227, 0.1);
}

.footer-main {
  padding: 5rem 2.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Quote column */
.footer-quote-col {
  min-height: 7rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.footer-quote {
  margin: 0;
  padding: 0;
  border: none;
  opacity: 1;
}

.footer-quote-text {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-quote-cite {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-style: normal;
}

/* Nav column */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.15s;
  text-align: left;
}

.footer-nav a:hover {
  color: var(--cream-dim);
}

/* Newsletter column */
.footer-newsletter-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 1rem;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-newsletter-form input[type="email"] {
  background: rgba(242, 237, 227, 0.08);
  border: 1px solid rgba(242, 237, 227, 0.2);
  border-radius: 100px;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.15s;
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: var(--cream-dim);
}

.footer-newsletter-form input[type="email"]:focus {
  border-color: rgba(242, 237, 227, 0.5);
}

.footer-newsletter-form button {
  background: var(--cream);
  color: var(--green);
  border: none;
  border-radius: 100px;
  padding: 0.8rem 2.4rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

.footer-newsletter-form button:hover {
  opacity: 0.8;
}

/* Bottom bar */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid rgba(242, 237, 227, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 227, 0.3);
  color: var(--cream-dim);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.social-icon:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.footer-privacy {
  color: var(--cream-dim);
  cursor: pointer;
  transition: color 0.15s;
}

.footer-privacy:hover {
  color: var(--cream);
}


/* ─── RESPONSIVE ─────────────────────────── */

@media (max-width: 900px) {
  .offerings {
    grid-template-columns: repeat(2, 1fr);
  }
  .offering:nth-child(3n)   { border-right: 1px solid rgba(27, 48, 40, 0.14); }
  .offering:nth-child(2n)   { border-right: none; }
  .offering:not(:nth-child(-n+2)) { border-top: 1px solid rgba(27, 48, 40, 0.14); }

  .who ul { grid-template-columns: 1fr; }
}

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

  .process-format {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .format-meta {
    flex-direction: row;
    gap: 1.5rem;
  }
}

@media (max-width: 860px) and (min-width: 641px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-left { gap: 1rem; }
  .nav-left a:nth-child(n+3) { display: none; } /* hide Team, Resources on small nav */
  .nav-right { display: none; }
  nav { padding: 1rem 1.25rem; }

  /* Carousel */
  .carousel-slide {
    flex: 0 0 88%;
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto;
  }
  .slide-image { min-height: 200px; }
  .slide-text { padding: 1.5rem; }

  /* Featured article */
  .featured-article {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
    min-height: auto;
  }
  .featured-article-image { min-height: 260px; }
  .featured-article-text {
    padding: 2.5rem 1.5rem;
    border-left: none;
    border-top: 1px solid rgba(27, 48, 40, 0.1);
  }

  /* Resources sections */
  .resources-section { padding: 4rem 0; }
  .resource-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .resource-item-source { text-align: left; }

  /* Page hero */
  .page-hero { min-height: auto; padding: 8rem 0 4rem; }

  /* Process */
  .lifecycle { overflow-x: auto; }
  .lifecycle-graph { min-width: 600px; }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem 3rem;
  }
  .footer-quote-col { text-align: left; justify-content: flex-start; }
  .footer-bottom { padding: 1.25rem 1.5rem; flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-bottom-right { justify-content: center; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; grid-template-columns: auto 1fr auto; }
  nav a { font-size: 0.6rem; letter-spacing: 0.06em; }
  .nav-center { font-size: 0.6rem; letter-spacing: 0.06em; }
  .nav-left { gap: 1rem; }
  .nav-right { display: flex; }

  .hero h1 { font-size: clamp(2rem, 11vw, 5rem); margin-bottom: 4vw; }
  .hero-sub { font-size: clamp(1.15rem, 4.5vw, 1.5rem); }

  .container { padding: 0 1.5rem; }
  .about, .services, .contact { padding: 5rem 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-cols { grid-template-columns: 1fr; }

  .offerings { grid-template-columns: 1fr; }
  .offering { border-right: none !important; padding-left: 0 !important; }
  .offering:not(:first-child) { border-top: 1px solid rgba(27, 48, 40, 0.14) !important; }

  /* Team */
  .team-grid { max-width: 100%; padding: 0 1.5rem; }

  /* Process steps */
  .process { padding: 5rem 0; }
  .format-meta { flex-direction: column; gap: 0.5rem; }

  /* FAQ */
  .faq-list { padding: 4rem 1.5rem 6rem; }
  .faq-question { font-size: 1rem; padding: 1.4rem 0; }
  .faq-answer { padding-right: 0; }

  /* Section spacing */
  .resources-preview { padding: 5rem 0 0; }
  .resources-preview-header { padding-bottom: 2.5rem; }
  .carousel-footer { padding-bottom: 3rem; }

  /* Who/clients */
  .who { padding: 4rem 0 3rem; }
}
