/* ============================================================
   MCESP INDIA — design system
   Tokens: Field (paper) is the default surface; Soil (ink) is the
   rare, heavy surface reserved for heritage/occupational bands.
   Indigo is the working accent (links, CTAs, status). Terracotta
   is a special-zone accent only — never a background wash.
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: local('Fraunces');
}

:root{
  /* --- color --- */
  --field:      #F2EEE3;   /* paper — default background */
  --field-dim:  #E9E3D3;   /* slightly deeper paper, for cards on field */
  --soil:       #1D1A14;   /* heritage/occupational band background */
  --soil-line:  #38332A;   /* hairline on soil */
  --ink:        #201C16;   /* primary text on field */
  --ink-soft:   #57503F;   /* secondary text on field */
  --paper-text: #EFE9DB;   /* primary text on soil */
  --paper-soft: #B7AE99;   /* secondary text on soil */
  --indigo:     #2B3A67;   /* working accent — links, CTAs, nav */
  --indigo-deep:#1C2748;
  --indigo-tint:#DDE1EC;
  --clay:       #B75B2E;   /* heritage accent — special zones only */
  --clay-tint:  #EFD9C8;
  --olive:      #5E6B3E;   /* status: active/live */
  --olive-tint: #E1E5D0;
  --amber:      #92661F;   /* status: under development */
  --amber-tint: #EEE0C4;
  --line:       #D9D2BE;   /* hairline on field */
  --line-soft:  #E3DDCB;

  /* --- type --- */
  --display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --text: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;

  /* --- layout --- */
  --content-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }

h1, h2, h3, h4{
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 500; }
h2{ font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; max-width: 62ch; }
.lede{ font-size: 1.2rem; color: var(--ink-soft); max-width: 54ch; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- layout shells --- */
.wrap{
  max-width: var(--content-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section{ padding: clamp(56px, 9vw, 108px) 0; }
section.tight{ padding: clamp(36px, 6vw, 64px) 0; }
.soil{ background: var(--soil); color: var(--paper-text); }
.soil h2, .soil h3{ color: var(--paper-text); }
.soil p{ color: var(--paper-soft); }
.soil a{ color: var(--paper-text); }

/* --- header --- */
.site-header{
  position: sticky; top: 0; z-index: 40;
  background: rgba(242,238,227,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark{
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--indigo);
  position: relative; flex: none;
}
.brand-mark::after{
  content: ''; position: absolute; inset: 8px;
  border-radius: 50%; background: var(--clay);
}
.brand-word{ font-family: var(--display); font-size: 1.18rem; font-weight: 600; }
.brand-tag{ font-size: 0.72rem; color: var(--ink-soft); }

nav.primary-nav{ display: flex; align-items: center; gap: 30px; }
nav.primary-nav a{
  text-decoration: none; font-size: 0.95rem; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.primary-nav a:hover, nav.primary-nav a.current{
  color: var(--ink); border-color: var(--clay);
}
.nav-global{
  font-size: 0.85rem; color: var(--indigo);
  padding: 8px 16px; border: 1px solid var(--indigo);
  border-radius: var(--radius); text-decoration: none;
  white-space: nowrap;
}
.nav-global:hover{ background: var(--indigo); color: var(--field); }

.nav-toggle{
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span{
  display: block; width: 100%; height: 2px; background: var(--ink);
  margin: 6px 0; transition: transform .2s, opacity .2s;
}

@media (max-width: 880px){
  nav.primary-nav{
    position: fixed; inset: 76px 0 0 0; background: var(--field);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    overflow-y: auto;
  }
  nav.primary-nav.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.primary-nav a{ width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-global{ margin-top: 14px; }
  .nav-toggle{ display: block; }
}

/* --- eyebrow / labels --- */
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow::before{
  content: ''; width: 22px; height: 1px; background: var(--clay);
}
.soil .eyebrow{ color: var(--paper-soft); }

/* --- buttons --- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--text); font-size: 0.98rem; font-weight: 500;
  padding: 13px 24px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary{ background: var(--indigo); color: var(--field); }
.btn-primary:hover{ background: var(--indigo-deep); }
.btn-ghost{ border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--field); }
.soil .btn-ghost{ border-color: var(--paper-text); color: var(--paper-text); }
.soil .btn-ghost:hover{ background: var(--paper-text); color: var(--soil); }
.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* --- status tags --- */
.tag{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; padding: 5px 11px; border-radius: 999px;
  font-weight: 500;
}
.tag::before{ content:''; width: 6px; height: 6px; border-radius: 50%; }
.tag-active{ background: var(--olive-tint); color: var(--olive); }
.tag-active::before{ background: var(--olive); }
.tag-progress{ background: var(--amber-tint); color: var(--amber); }
.tag-progress::before{ background: var(--amber); }
.tag-planned{ background: var(--indigo-tint); color: var(--indigo); }
.tag-planned::before{ background: var(--indigo); }

/* --- hairline divider --- */
.hr{ border: none; border-top: 1px solid var(--line); margin: 0; }
.soil .hr{ border-top-color: var(--soil-line); }

/* --- charter strip --- */
.charter-strip{
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.charter-strip .wrap{
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px;
}
.charter-strip p{ margin: 0; max-width: 56ch; color: var(--ink-soft); }
.charter-strip a.link-arrow{ white-space: nowrap; }

/* --- link arrow --- */
.link-arrow{
  text-decoration: none; color: var(--indigo); font-weight: 500;
  border-bottom: 1px solid var(--indigo-tint);
  padding-bottom: 2px;
}
.link-arrow:hover{ border-color: var(--indigo); }

/* --- grid utilities --- */
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px){
  .grid-2{ grid-template-columns: 1fr; gap: 32px; }
  .grid-3{ grid-template-columns: 1fr; }
}

/* --- card --- */
.card{
  background: var(--field-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.soil .card{
  background: rgba(239,233,219,0.05);
  border-color: var(--soil-line);
}
.card h3{ margin-bottom: 10px; }
.card .tag{ margin-bottom: 14px; }

/* --- numbered / sequence list (only for genuine sequences) --- */
.seq{ counter-reset: seq; }
.seq-item{
  counter-increment: seq;
  position: relative;
  padding-left: 52px;
  padding-bottom: 34px;
  border-left: 1px solid var(--line);
  margin-left: 15px;
}
.soil .seq-item{ border-left-color: var(--soil-line); }
.seq-item:last-child{ border-left-color: transparent; padding-bottom: 0; }
.seq-item::before{
  content: counter(seq);
  position: absolute; left: -15px; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--field); border: 1px solid var(--indigo);
  color: var(--indigo); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
}
.soil .seq-item::before{ background: var(--soil); border-color: var(--clay); color: var(--clay-tint); }

/* --- stat --- */
.stat{ display: flex; flex-direction: column; gap: 4px; }
.stat .num{ font-family: var(--display); font-size: 2.3rem; color: var(--indigo); }
.soil .stat .num{ color: var(--clay-tint); }
.stat .label{ font-size: 0.9rem; color: var(--ink-soft); max-width: 26ch; }
.soil .stat .label{ color: var(--paper-soft); }

/* --- heritage band texture (special zones only) --- */
.pathways-band{
  background:
    repeating-linear-gradient(45deg, rgba(183,91,46,0.10) 0, rgba(183,91,46,0.10) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(-45deg, rgba(239,233,219,0.05) 0, rgba(239,233,219,0.05) 1px, transparent 1px, transparent 22px),
    var(--soil);
  color: var(--paper-text);
  position: relative; overflow: hidden;
}

/* --- footer --- */
footer.site-footer{
  background: var(--soil); color: var(--paper-soft);
  padding: 64px 0 28px;
}
footer.site-footer h4{ color: var(--paper-text); font-size: 0.95rem; font-family: var(--text); font-weight: 600; margin-bottom: 14px; }
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--soil-line);
}
.footer-grid a{ display:block; text-decoration:none; color: var(--paper-soft); padding: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover{ color: var(--paper-text); }
.footer-tagline{ max-width: 32ch; color: var(--paper-soft); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* --- hero reveal (single orchestrated entrance) --- */
.hero-reveal > *{ opacity: 0; transform: translateY(14px); }
.hero-reveal.reveal-run > *{
  animation: reveal-up 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-reveal.reveal-run > *:nth-child(1){ animation-delay: .02s; }
.hero-reveal.reveal-run > *:nth-child(2){ animation-delay: .12s; }
.hero-reveal.reveal-run > *:nth-child(3){ animation-delay: .22s; }
.hero-reveal.reveal-run > *:nth-child(4){ animation-delay: .32s; }
@keyframes reveal-up{ to{ opacity: 1; transform: translateY(0); } }

/* --- forms --- */
.form-field{ margin-bottom: 20px; }
.form-field label{ display: block; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea{
  width: 100%; font-family: var(--text); font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--field); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: 2px solid var(--indigo); outline-offset: 1px;
}

/* --- table --- */
table.plain{ width: 100%; border-collapse: collapse; }
table.plain th, table.plain td{
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.94rem; vertical-align: top;
}
table.plain th{ color: var(--ink-soft); font-weight: 500; }

/* --- icon sprite usage --- */
.icon{
  width: 30px; height: 30px; display: block; color: var(--clay-tint);
}
.soil .icon{ color: var(--clay-tint); }
.icon-row{ display:flex; flex-wrap:wrap; gap: 28px; margin-top: 28px; }
.icon-item{ display:flex; align-items:center; gap: 12px; }
.icon-item .icon{ color: var(--clay-tint); flex: none; }
.icon-item span{ font-size: 0.92rem; color: var(--paper-soft); }
.region-card .icon{ color: var(--clay-tint); margin-bottom: 10px; }

/* --- tricolour accent line: a quiet national nod, not the flag itself --- */
.tricolor-line{
  height: 3px;
  background: linear-gradient(90deg, #C8792B 0%, #C8792B 33.3%, #EFE9DB 33.3%, #EFE9DB 66.6%, #4E6B47 66.6%, #4E6B47 100%);
}

/* --- terrain banner --- */



.terrain-banner .wrap{ position: relative; z-index: 2; }
.pathways-band{ position: relative; }



/* ---- Logo brand ---- */
.brand-logo{
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}
.brand-mark{ display: none; }

/* ---- Mobile nav panel ---- */
.mobile-nav{
  display: none;
  flex-direction: column;
  padding: 8px 28px 28px;
  border-top: 1px solid var(--line);
  background: var(--field);
}
.mobile-nav.open{ display: flex; }
.mobile-nav a{
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft, var(--line));
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--indigo-deep, var(--indigo));
}
body.menu-open{ overflow: hidden; }
@media (min-width: 1024px){
  .mobile-nav{ display: none !important; }
}

/* ---- CTA buttons — cleaner ---- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease, box-shadow .18s ease;
}
.btn-primary{
  background: var(--indigo);
  color: var(--field);
  border-color: var(--indigo);
  box-shadow: 0 6px 16px -8px rgba(43, 58, 103, 0.55);
}
.btn-primary:hover{
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
  color: var(--field);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(28, 39, 72, 0.5);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{
  background: var(--ink);
  color: var(--field);
}
.soil .btn-primary{
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(183, 91, 46, 0.45);
}
.soil .btn-primary:hover{
  background: #9a4c26;
  border-color: #9a4c26;
  color: #fff;
}
.soil .btn-ghost{
  border-color: var(--paper-text);
  color: var(--paper-text);
  background: transparent;
}
.soil .btn-ghost:hover{
  background: var(--paper-text);
  color: var(--soil);
}
.btn-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

/* ---- Pathways band without bottom terrain image ---- */
.pathways-band.terrain-banner,
.pathways-band{
  position: relative;
  overflow: hidden;
  background: var(--soil);
  color: var(--paper-text);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--soil-line);
  border-bottom: 1px solid var(--soil-line);
}
.pathways-band .terrain-img{ display: none !important; }
.pathways-band::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(183, 91, 46, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(94, 107, 62, 0.15), transparent 50%);
  pointer-events: none;
}
.pathways-band::after{ display: none !important; }
.pathways-band .wrap{ position: relative; z-index: 2; }
.pathways-band h2{ color: var(--paper-text); }
.pathways-band p{ color: var(--paper-soft); }

/* Motif rail under header — subtle */
.motif-rail{
  height: 10px;
  background-image: url('../img/pattern-border.svg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.75;
}


/* ========== Visual corrections ========== */

/* Hide tricolor + motif rail */
.tricolor-line,
.motif-rail{ display: none !important; }

/* Brand alignment — logo + text vertically centered as a unit */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.brand > span{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.brand-logo{
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-word{
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
}
.brand-tag{
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: block;
}

/* Header — slightly denser, distinct surface */
.site-header{
  background: #F7F3E9;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(32 28 22 / 0.03);
}
.site-header .wrap{
  min-height: 4.25rem;
  padding-block: 0.35rem;
}

/* Global charter control */
.nav-global{
  margin-left: 0.35rem;
  padding: 0.45rem 0.9rem !important;
  border: 1.5px solid var(--indigo) !important;
  border-radius: 999px !important;
  border-bottom: 1.5px solid var(--indigo) !important;
  color: var(--indigo) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: transparent !important;
}
.nav-global:hover{
  background: var(--indigo) !important;
  color: var(--field) !important;
}

/* Tighter page rhythm — less empty air */
.tight{ padding-block: clamp(1.75rem, 3.5vw, 2.5rem) !important; }
section{ padding-block: clamp(2rem, 4vw, 3rem); }
.page-hero, .hero, section.tight:first-of-type{
  padding-block: clamp(2rem, 4.5vw, 3.25rem) !important;
}

/* Text links — no thin blue underlines */
a.link-arrow,
.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.45rem 0.85rem 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color .15s, background .15s, color .15s;
}
a.link-arrow:hover,
.link-arrow:hover{
  border-color: var(--clay);
  background: var(--clay-tint);
  color: var(--ink) !important;
}
a.link-arrow::after,
.link-arrow::after{
  content: "→";
  color: var(--clay);
  font-weight: 600;
}

/* Pathways band layout fix */
.pathways-band .wrap{
  display: grid;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 900px){
  .pathways-band .wrap{
    grid-template-columns: 1.35fr 0.65fr;
    gap: 3rem;
    align-items: center;
  }
}
.pathways-band .icon-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  margin-top: 1.5rem;
  max-width: 28rem;
}
.pathways-band .stat{
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--soil-line);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.04);
}
.pathways-band .stat .num{
  font-size: 3rem;
  line-height: 1;
  color: var(--clay-tint);
}
.pathways-band .stat .label{
  margin-top: 0.5rem;
  color: var(--paper-soft);
}

/* Cards denser */
.card{ padding: 1.25rem 1.2rem; }
.grid-2{ gap: 28px !important; }
.grid-3{ gap: 20px !important; }
@media (max-width: 860px){
  .grid-2, .grid-3{ grid-template-columns: 1fr !important; }
}

/* Team groups */
.team-group{
  margin-bottom: 2rem;
  padding: 1.35rem 1.35rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
}
.team-group h3{
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.team-group .team-lead{
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.team-group .team-lead strong{ color: var(--clay); font-weight: 600; }
.member-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.member-chip{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field-dim);
  font-size: 0.88rem;
}
.member-chip .av{
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--indigo-tint);
  color: var(--indigo-deep);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--display);
}

/* Footer redesign */
.site-footer{
  background: var(--soil) !important;
  color: var(--paper-text);
  border-top: none !important;
  padding-block: 2.75rem 1.5rem !important;
}
.site-footer h4{
  color: var(--paper-text) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem !important;
  font-family: var(--text) !important;
  font-weight: 600 !important;
}
.site-footer a{
  color: var(--paper-soft) !important;
}
.site-footer a:hover{ color: var(--paper-text) !important; }
.site-footer .footer-tagline,
.site-footer p{
  color: var(--paper-soft) !important;
}
.footer-bottom{
  border-top: 1px solid var(--soil-line) !important;
  color: var(--paper-soft) !important;
}
.footer-brand-row{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.footer-brand-row img{
  width: 2rem;
  height: 2rem;
}
.footer-brand-row span{
  font-family: var(--display);
  font-weight: 600;
  color: var(--paper-text);
  font-size: 1.05rem;
}

/* Soft heritage wash behind main (optional class on body) */
body.has-heritage{
  background-color: var(--field);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgb(183 91 46 / 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at -10% 30%, rgb(94 107 62 / 0.06), transparent 45%);
  background-attachment: fixed;
}

/* Why India denser */
.why-block p{ margin-bottom: 0.75rem; }


/* ========== Mobile menu — fixed to viewport (global-style) ========== */
.mobile-nav{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 60 !important;
  display: flex !important;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem !important;
  background: var(--field) !important;
  border-top: none !important;
  transform: translateX(100%);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.mobile-nav.open{
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-nav a{
  display: block;
  padding: 1rem 0.15rem !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 1.1rem !important;
  font-weight: 500;
  color: var(--indigo-deep) !important;
  text-decoration: none !important;
}
.site-header{ z-index: 70 !important; }
.nav-toggle{ z-index: 80 !important; position: relative; }
body.menu-open{ overflow: hidden; }
@media (min-width: 1024px){
  .mobile-nav{ display: none !important; }
}

/* ========== Visual media blocks ========== */
.media-pair{
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (min-width: 800px){
  .media-pair{ grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.media-card{
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--field);
}
.media-card img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.media-card figcaption{
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--field-dim);
}

/* Section photo washes */
.band-photo{
  position: relative;
  background-color: var(--field-dim);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.band-photo::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgb(242 238 227 / 0.92), rgb(242 238 227 / 0.88));
}
.band-photo > .wrap{ position: relative; z-index: 1; }

.band-photo-fields{ background-image: url('../img/theme-fields.jpg'); }
.band-photo-leaves{ background-image: url('../img/theme-leaves.jpg'); }
.band-photo-dance{ background-image: url('../img/theme-dance.jpg'); }
.band-photo-mandala{
  background-image: url('../img/theme-mandala.jpg');
  background-position: right center;
}

.pathways-band{
  background-image: linear-gradient(120deg, rgb(29 26 20 / 0.92), rgb(29 26 20 / 0.85)), url('../img/theme-fields.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Footer logo size + socials */
.footer-brand-row img{
  width: 2.75rem !important;
  height: 2.75rem !important;
  object-fit: contain;
}
.footer-socials{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.footer-socials a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--soil-line);
  color: var(--paper-soft) !important;
  background: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.footer-socials a:hover{
  background: rgb(255 255 255 / 0.08);
  color: var(--paper-text) !important;
  border-color: var(--paper-soft);
}
.footer-socials svg{
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}


/* Nav Join as button */
.primary-nav a.nav-join{
  margin-left: 0.15rem;
  padding: 0.42rem 0.95rem !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--indigo) !important;
  border-bottom: 1.5px solid var(--indigo) !important;
  background: var(--indigo) !important;
  color: var(--field) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.primary-nav a.nav-join:hover{
  background: var(--indigo-deep) !important;
  border-color: var(--indigo-deep) !important;
  color: var(--field) !important;
}
.primary-nav a.nav-join.current{
  border-bottom-color: var(--indigo) !important;
}
.mobile-nav a.nav-join{
  margin-top: 1rem !important;
  text-align: center !important;
  border-radius: 999px !important;
  border: none !important;
  background: var(--indigo) !important;
  color: var(--field) !important;
  font-weight: 600 !important;
  padding: 0.9rem !important;
}
.mobile-nav a.nav-join:hover{
  background: var(--indigo-deep) !important;
  color: var(--field) !important;
}
.brand-tag{
  letter-spacing: 0.02em;
}


/* Google Form embed */
.form-embed-wrap{
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--field);
  max-width: 720px;
}
.form-embed{
  display: block;
  width: 100%;
  min-height: 1200px;
  border: 0;
  background: #fff;
}
.form-fallback{
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 40rem;
}
.form-fallback a{
  color: var(--indigo-deep);
  font-weight: 500;
}


/* ========== Team showcase (photo + bio) ========== */
.team-hero{
  padding-block: clamp(2.5rem, 6vw, 4rem) !important;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgb(183 91 46 / 0.08), transparent 55%),
    var(--field);
}
.team-hero-inner{ max-width: 40rem; }
.team-section-label{
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.5rem;
}
.team-section-note{
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 42rem;
  margin: 0 0 2rem;
}
.team-showcase{
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.team-gallery{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px){
  .team-gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .team-gallery{ grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .person-card-feature{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 0;
    align-items: stretch;
  }
  .person-card-feature .person-photo{
    min-height: 100%;
    aspect-ratio: auto;
  }
  .person-card-feature .person-body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.25rem;
  }
}

.person-card{
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--field);
  box-shadow: 0 10px 28px -18px rgb(32 28 22 / 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.person-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgb(32 28 22 / 0.4);
  border-color: rgb(183 91 46 / 0.35);
}
.person-photo{
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--field-dim);
  overflow: hidden;
}
.person-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.person-photo-placeholder{
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, var(--indigo-tint) 0%, var(--field-dim) 45%, var(--clay-tint) 100%);
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.person-photo-placeholder span{
  padding: 0.5rem 0.9rem;
  border: 1px dashed rgb(32 28 22 / 0.25);
  border-radius: 999px;
  background: rgb(242 238 227 / 0.55);
}
.person-body{
  padding: 1.15rem 1.2rem 1.35rem;
}
.person-name{
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.person-role{
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.person-bio{
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: none;
}
.person-meta{
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.team-invite{
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--field-dim), var(--field));
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.team-invite-inner{ max-width: 36rem; }
.team-invite h2{ margin-bottom: 0.75rem; }

.person-photo-placeholder.person-initials span{
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: none;
  background: transparent;
  color: var(--indigo-deep);
}


/* ========== Footer layout (desktop + mobile) ========== */
.site-footer{
  background: var(--soil) !important;
  color: var(--paper-text);
  border-top: none !important;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem !important;
  margin-top: 0;
}
.footer-top{
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 900px){
  .footer-top{
    grid-template-columns: minmax(200px, 1.15fr) minmax(0, 1.6fr);
    gap: 3rem;
    align-items: start;
  }
}
.footer-brand-block{ max-width: 28rem; }
.footer-brand-row{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none !important;
  color: var(--paper-text) !important;
  margin-bottom: 0.85rem;
}
.footer-brand-row img{
  width: 2.5rem !important;
  height: 2.5rem !important;
  object-fit: contain;
}
.footer-brand-row span{
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--paper-text);
}
.footer-tagline{
  color: var(--paper-soft) !important;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36ch;
  margin: 0 0 1.15rem;
}
.footer-nav-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
}
@media (min-width: 700px){
  .footer-nav-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.footer-col h4{
  color: var(--paper-text) !important;
  font-family: var(--text) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem !important;
}
.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li{ margin: 0; }
.footer-links a{
  display: block;
  padding: 0.35rem 0;
  color: var(--paper-soft) !important;
  text-decoration: none !important;
  font-size: 0.92rem;
}
.footer-links a:hover{ color: var(--paper-text) !important; }
.footer-socials{
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}
.footer-socials a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--soil-line);
  color: var(--paper-soft) !important;
  background: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.footer-socials a:hover{
  background: rgb(255 255 255 / 0.08);
  color: var(--paper-text) !important;
  border-color: var(--paper-soft);
}
.footer-socials svg{ width: 1.05rem; height: 1.05rem; fill: currentColor; }
.footer-bottom{
  margin-top: 2.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--soil-line) !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.footer-copy{
  margin: 0;
  font-size: 0.82rem;
  color: var(--paper-soft) !important;
  max-width: 40rem;
}
.footer-legal-links{
  margin: 0;
  font-size: 0.82rem;
}
.footer-legal-links a{
  color: var(--paper-soft) !important;
  text-decoration: none !important;
}
.footer-legal-links a:hover{ color: var(--paper-text) !important; text-decoration: underline !important; }

/* Privacy prose */
.prose-privacy h2{
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
}
.prose-privacy p, .prose-privacy li{
  color: var(--ink-soft);
  max-width: 42rem;
}
.prose-privacy ul{ padding-left: 1.2rem; margin: 0 0 1rem; }
.prose-privacy a{ color: var(--indigo-deep); }
