/* ============================================================
   Jerusalem Unity Center — Header + Hero
   Values extracted from assets/full-mockup.png (864px render,
   scaled ×5/3 to a 1440px desktop reference)
   ============================================================ */

:root {
  /* Colors sampled from mockup */
  --navy: #0A0F23;            /* deep navy under header/nav */
  --navy-soft: #13162B;       /* hero far-left base */
  --gold: #C4923F;            /* dominant gold accent */
  --gold-hi: #CD9C4C;         /* gold gradient top */
  --gold-lo: #BC8C3E;         /* gold gradient bottom */
  --btn-gold-top: #A87836;    /* button gradient, measured profile */
  --btn-gold-bottom: #724E1D;
  --btn-text-cream: #F3EDDC;  /* cream text on gold, dark shadow under */
  --btn-bevel: rgba(226, 185, 115, 0.6);
  --white: #FFFFFF;
  --text-body: #E9E9EE;       /* hero paragraph */
  --text-nav: #E6E2E6;        /* nav links */
  --ghost-border: rgba(201, 155, 92, 0.55);

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   HERO BACKGROUND
   herobg.png is taller than the mockup crop; 50% 23% vertical
   position reproduces the mockup framing (dome + skyline +
   building on the right), verified by image matching.
   ============================================================ */

.hero {
  position: relative;
  min-height: 578px;
  background-image: url("assets/herobg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 23%;
  background-color: var(--navy-soft);
  overflow: hidden;
}

/* Left-side dark overlay — alphas computed from mockup-vs-raw
   zone differences (~0.28 at left third fading to ~0.09 right) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 11, 26, 0.55) 0%,
    rgba(9, 11, 26, 0.30) 35%,
    rgba(9, 11, 26, 0.08) 100%
  );
  pointer-events: none;
}

/* ============================================================
   HEADER — transparent bar over the hero
   ============================================================ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-top: 28px;
}

.header-inner {
  display: flex;
  align-items: flex-start;
}

/* --- Brand ------------------------------------------------- */

.brand {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

/* PNG already carries its own gold circular emblem — no frame.
   The image content fills only ~60% of its frame, so scale it up
   visually (layout box stays 88px) to match the mockup emblem. */
.logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  transform: scale(1.66);
  transform-origin: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  margin-top: 3px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
}

.brand-sub {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 17px;
  text-transform: uppercase;
  color: var(--text-nav);
  margin-top: 9px;
}

/* --- Nav ---------------------------------------------------- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-left: auto;
  margin-top: 10px;
  white-space: nowrap;
}

.site-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 35px;
  text-transform: uppercase;
  color: var(--text-nav);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold-hi);
}

/* --- Header actions ----------------------------------------- */

.header-actions {
  display: flex;
  align-items: center;
  margin-left: 26px;
  margin-top: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  text-transform: uppercase;
  cursor: pointer;
}

.btn-support {
  height: 35px;
  padding: 0 19px;
  border: 1px solid var(--btn-bevel);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--btn-gold-top), var(--btn-gold-bottom));
  color: var(--btn-text-cream);
  text-shadow: 0 1px 2px rgba(61, 32, 6, 0.55);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  transition: filter 0.2s ease;
}

.btn-support:hover {
  filter: brightness(1.12);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-left: 16px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-nav);
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-btn:hover {
  color: var(--gold-hi);
}

.search-btn svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   HERO CONTENT
   ============================================================ */

/* Header is absolute over the hero and the scaled emblem reaches
   ~145px down, so the content must start well below that to leave
   a clear gap between the nav bar and the heading. */
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 200px;
  padding-bottom: 40px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-heading .gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin-top: 14px;
  font-size: 17px;
  font-weight: 300;
  line-height: 29px;
  color: var(--text-body);
}

/* --- Scripture quote ------------------------------------------ */

.hero-quote {
  max-width: 560px;
  margin-top: 14px;
}

.hero-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  line-height: 30px;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.hero-quote-text .qmark {
  opacity: 0.55;
}

.hero-quote-cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 146, 63, 0.8);
}

/* --- CTAs ---------------------------------------------------- */

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 24px;
}

.hero-ctas .btn {
  height: 47px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
}

.btn-primary {
  padding: 0 22px;
  border: 1px solid var(--btn-bevel);
  background: linear-gradient(180deg, var(--btn-gold-top), var(--btn-gold-bottom));
  color: var(--btn-text-cream);
  text-shadow: 0 1px 2px rgba(61, 32, 6, 0.55);
  transition: filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.12);
}

.icon-arrow {
  width: 22px;
  height: 11px;
  margin-left: 12px;
}

.btn-ghost {
  padding: 0 18px;
  border: 1px solid var(--ghost-border);
  background: rgba(7, 9, 24, 0.35);
  color: #E3E3E6;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--gold-hi);
  background: rgba(7, 9, 24, 0.55);
}

.icon-play {
  width: 19px;
  height: 19px;
  margin-right: 12px;
}

/* ============================================================
   SECTION 2 — 7-PILLAR NAVY STRIP
   Values measured on assets/full-mockup.png (strip y347–515 in
   the 864px render, scaled ×5/3 to the 1440px reference).
   Background: gradient in the mockup spans the full range of
   section2-bg.png compressed into the strip → 100% 100% size.
   ============================================================ */

:root {
  --s2-hairline: #7E5C3D;     /* bronze line atop strip */
  --s2-title: #DEDCE3;        /* pillar titles */
  --s2-desc: #C8C4CC;         /* muted descriptions */
}

/* Navy overlay desaturates the raw bg toward the mockup's tone
   (render rgb(42,21,78) vs mockup rgb(26,21,52) at the bright zone) */
.pillars {
  border-top: 2px solid var(--s2-hairline);
  background:
    linear-gradient(rgba(12, 17, 36, 0.32), rgba(12, 17, 36, 0.32)),
    #150F31 url("assets/section2-bg.png") no-repeat;
  background-size: 100% 100%;
  padding: 32px 20px 50px;
}

.pillars-row {
  display: flex;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.pillar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The gold ring is baked into each icon PNG at a different scale
   within its 1254px frame (ring spans 892–1080px depending on the
   file). Per-icon widths normalize every ring to exactly 80px. */
.pillar-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon img {
  height: auto;
}

.icon-learn      { width: 100px; }
.icon-library    { width: 106px; }
.icon-community  { width: 112px; }
.icon-event      { width: 93px; }
.icon-institutes { width: 93px; }
.icon-research   { width: 95px; }
.icon-global     { width: 96px; }

.pillar-title {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--s2-title);
}

.pillar-desc {
  max-width: 180px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  color: var(--s2-desc);
}

/* ============================================================
   SECTION 3 — DISCOVER OUR INSTITUTES
   Measured on assets/full-mockup.png (section y516–869 in the
   864px render, scaled ×5/3 to the 1440px reference).
   Cream: #EBDFD4 (section3-bg.png paper texture, avg #EEE0D3).
   Cards: #0A0E25, ~212×442px, radius 15px, gap 14px.
   Image block 193px fading into card navy; 100px icon ring
   centered 212px from card top (31px overlap into the image).
   ============================================================ */

:root {
  --s3-cream: #EBDFD4;
  --s3-heading: #262242;      /* section heading + view-all link */
  --s3-card-navy: #0A0E25;
  --s3-orn-gold: #BFA075;     /* heading side ornaments */
  --s3-title: #EEEDED;        /* card titles */
  --s3-desc: #CBC8D2;         /* card descriptions */
}

.institutes {
  background: var(--s3-cream) url("assets/section3-bg.png") center / cover no-repeat;
  padding: 30px 0 28px;
}

/* --- Heading with gold side ornaments ----------------------- */

.institutes-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s3-heading);
}

/* Thin gold line with a small diamond at the text-side end */
.heading-orn {
  position: relative;
  width: 96px;
  height: 1px;
  background: var(--s3-orn-gold);
  flex-shrink: 0;
}

.heading-orn::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--s3-orn-gold);
  transform: rotate(45deg);
}

.orn-left::after  { right: 0; }
.orn-right::after { left: 0; }

/* --- Card row ------------------------------------------------ */

.institutes-row {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.institute-card {
  flex: 1 1 0;
  min-width: 0;
  height: 442px;
  background: var(--s3-card-navy);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
}

/* Photo fades into the card navy over its lower third */
.card-media {
  position: relative;
  height: 193px;
}

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

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 37, 0) 50%,
    rgba(10, 14, 37, 0.55) 80%,
    var(--s3-card-navy) 100%
  );
}

/* Gold ring is baked into each icon PNG; the emblem circle adds
   the mockup's translucent navy disc behind it. Per-icon widths
   normalize every ring to exactly 100px (ring bbox / 1254 frame). */
.card-emblem {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  margin: -31px auto 0;
  border-radius: 50%;
  background: rgba(10, 14, 37, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-emblem img {
  height: auto;
}

.emblem-consciousness { width: 120px; }
.emblem-spiritual     { width: 127px; }
.emblem-human         { width: 114px; }
.emblem-moral         { width: 118px; }
.emblem-global        { width: 126px; }
.emblem-science       { width: 115px; }

.card-title {
  margin-top: 13px;
  padding: 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--s3-title);
}

.card-desc {
  margin-top: 12px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 300;
  line-height: 23px;
  color: var(--s3-desc);
}

/* --- View all link -------------------------------------------
   Mockup renders this link dark navy (avg #2E294A), not gold. */

.institutes-viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 22px auto 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s3-heading);
  transition: color 0.2s ease;
}

.institutes-viewall:hover {
  color: var(--gold);
}

.institutes-viewall .icon-arrow {
  width: 26px;
  height: 12px;
  margin-left: 14px;
}

/* ============================================================
   SECTION 4 — A FUTURE GATHERING PLACE FOR HUMANITY
   section4-bg.png (1672x941) already carries the flat navy
   field on its left half; cover-cropping at 50% 38% reproduces
   the mockup framing (campus terraces on the right), verified
   by template match against the mockup (offset 89/234). The
   mockup runs slightly darker on the left, so only a light
   navy wash fades out toward the image side.
   ============================================================ */

.future-banner {
  position: relative;
  height: 420px;
  background-image: url("assets/section4-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 38%;
  background-color: #150C31;
  overflow: hidden;
}

.future-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 7, 35, 0.38) 0%,
    rgba(13, 7, 35, 0.20) 30%,
    rgba(13, 7, 35, 0) 48%
  );
  pointer-events: none;
}

.future-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 102px; /* text starts x61 in the 864px mockup */
}

.future-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 52px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
}

/* HUMANITY gold — brighter than the hero gold; interior glyph
   pixels measure rgb(251,229,149) top -> rgb(228,188,122) bottom */
.future-heading .gold-bright {
  background: linear-gradient(180deg, #F3DF93, #DDB874);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.future-sub {
  max-width: 388px;
  margin-top: 22px;
  font-size: 16px;
  font-weight: 300;
  line-height: 27.5px;
  color: #E5E2EA;
}

.future-cta {
  margin-top: 25px;
  height: 47px;
  padding: 0 26px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ============================================================
   SECTION 5 — FIVE PATHWAYS OF EXPLORATION
   Measured on assets/full-mockup.png (section y1122–1289 in the
   864px render, scaled ×5/3 to the 1440px reference).
   Cream matches the Institutes section; section5-bg.png texture.
   Heading identical to Institutes (29px / 0.12em / #262242) with
   the same diamond-tipped ornaments at 42px line length.
   Icons are plain gold outlines with NO circular frame; content
   bottoms align across the row (~57–65px art heights). Dividers:
   1px soft gold, 168px tall, between columns only.
   ============================================================ */

:root {
  --s5-title: #3A3552;        /* pathway titles */
  --s5-desc: #5C5566;         /* muted descriptions */
  --s5-divider: #D6BDA6;      /* thin vertical gold lines */
}

.pathways {
  background: var(--s3-cream) url("assets/section5-bg.png") center / cover no-repeat;
  padding: 28px 0 25px;
}

/* Same cap height as the Institutes heading but tighter tracking:
   mockup text width 478px = natural glyphs (463px) + ~0.02em */
.pathways-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--s3-heading);
}

/* Same ornament as Institutes, shortened to the mockup's 42px */
.orn-short {
  width: 42px;
}

/* --- Column row ---------------------------------------------- */

.pathways-row {
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
}

.pathway {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pathway-divider {
  flex-shrink: 0;
  width: 1px;
  height: 168px;
  margin-top: 10px;
  background: var(--s5-divider);
}

/* Icon art bottoms align across the row in the mockup; each PNG
   carries different transparent padding within its 2048px frame,
   so per-icon heights normalize the visible art to 57–65px. */
.pathway-icon {
  height: 66px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pathway-icon img {
  width: auto;
  object-fit: contain;
}

.pw-consciousness { height: 91px; margin-bottom: -13px; }
.pw-spiritual     { height: 102px; margin-bottom: -22px; }
.pw-human         { height: 92px; margin-bottom: -13px; }
.pw-dialogue      { height: 81px; margin-bottom: -10px; }
.pw-culture       { height: 85px; margin-bottom: -12px; }

.pathway-title {
  max-width: 165px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s5-title);
}

.pathway-desc {
  max-width: 195px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--s5-desc);
}

/* ============================================================
   SECTION 6 — JOIN A GLOBAL MOVEMENT
   Measured on assets/full-mockup.png (band y1290–1418 in the
   864px render, ×5/3 to the 1440px reference → 213px tall).
   section6-bg.png IS the banner background — base navy #150E30
   with the faint gold network clusters already baked in at the
   far left and right edges.
   Button fill/text measured identical to the header button
   (#AF7F35→#7F5721 fill, cream text over a dark shadow), so it
   reuses the shared --btn-gold-* / --btn-text-cream vars.
   The button is NOT flush right: its right edge sits 179px
   inside the shell, leaving textured space beyond it.
   ============================================================ */

:root {
  --s6-navy: #150E30;         /* banner base under the bg image */
  --s6-para: #DFE1E3;         /* paragraph grey-white */
}

/* section6-bg.png carries a bright radial glow at its center that
   the mockup suppresses to a flat dark navy; the horizontal overlay
   below reproduces the mockup's measured darkening (strongest at
   the band center, none at the outer edges where the gold network
   clusters sit). */
.join-banner {
  height: 213px;
  background:
    linear-gradient(90deg,
      rgba(7, 3, 26, 0)    2%,
      rgba(7, 3, 26, 0.75) 25%,
      rgba(7, 3, 26, 0.86) 50%,
      rgba(7, 3, 26, 0.55) 68%,
      rgba(7, 3, 26, 0.10) 95%),
    var(--s6-navy) url("assets/section6-bg.png") center / cover no-repeat;
}

.join-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

/* bird-icon.png is a 1254px square canvas whose art occupies a
   1052×898 box inside it (transparent padding: 123L/79R/154T/202B).
   A 248px square at scale 0.198 puts the visible art at the
   mockup's 208×178, art left edge at x100, art center ~12px below
   the band center. The canvas overflows the 213px band top/bottom
   but only with transparent padding. */
.join-dove {
  width: 248px;
  height: 248px;
  margin-left: 28px;
  margin-top: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.join-copy {
  margin-left: 46px;
  flex-shrink: 0;
}

.join-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 35px;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFFFFF;
}

.join-desc {
  max-width: 480px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0.01em;
  color: var(--s6-para);
}

.btn-member {
  width: 293px;
  height: 60px;
  margin-left: auto;
  margin-right: 179px;
  margin-bottom: 13px;
  flex-shrink: 0;
  border: 1px solid var(--btn-bevel);
  border-radius: 4px;
  /* measured #AA7932→#855B23 across the mockup button — a touch
     lighter than the shared header-button gradient */
  background: linear-gradient(180deg, #B28136, #7B5420);
  color: var(--btn-text-cream);
  text-shadow: 0 1px 2px rgba(61, 32, 6, 0.55);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: filter 0.2s ease;
}

.btn-member:hover {
  filter: brightness(1.12);
}

/* ============================================================
   FOOTER
   Measured on assets/full-mockup.png (864px wide = 5/3 of the
   1440px reference; footer band y1551–1732 → 302px tall:
   220px top row + 1px divider + 81px bottom bar).
   footer-bg.png (1672×941) anchored 50% 100% — its bottom slice
   (#151139→#0C0E2D) matches the mockup navy (#161230→#100F2A).
   Faint 1px vertical dividers verified at mockup x271/379/473/
   619 → 452/632/788/1032 at 1440.
   ============================================================ */

:root {
  --footer-heading: #C0965C;    /* gold column headings */
  --footer-link: #C0BCC8;       /* muted lavender-white links */
  --footer-quote: #E7B559;      /* bright quote gold */
  --footer-qmark: #D9A445;      /* decorative quotation marks */
  --footer-attr: #C39C60;       /* attribution gold-tan */
  --footer-muted: #ACA9B8;      /* bottom-bar grey-lavender */
  --footer-line: rgba(255, 255, 255, 0.12);
}

.site-footer {
  background: #100F2A url("assets/footer-bg.png") 50% 100% / cover no-repeat;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  height: 220px;
  padding-top: 24px;
}

/* Zone widths = divider-to-divider spans at 1440 */
.fcol-brand    { width: 404px; flex-shrink: 0; }
.fcol-center   { width: 180px; flex-shrink: 0; }
.fcol-resources{ width: 156px; flex-shrink: 0; }
.fcol-involved { width: 244px; flex-shrink: 0; }
.fcol-quote    { flex: 1; min-width: 0; }

.footer-vline {
  width: 1px;
  height: 170px;
  background: var(--footer-line);
  flex-shrink: 0;
}

/* --- Column 1: brand + social ------------------------------- */

.footer-brand {
  display: flex;
  align-items: flex-start;
  padding-left: 34px;
}

/* Same treatment as the header .logo: the PNG's art fills only
   ~61% of its 1024px frame (alpha bbox 193–813), so the 88px
   layout box is scaled up visually to render the mockup's
   header-sized emblem. */
.footer-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  transform: scale(1.66);
  transform-origin: center;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 17px;
  margin-top: 4px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-brand-sub {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

.footer-brand-tagline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 17px;
  text-transform: uppercase;
  color: #D3D3DC;
  margin-top: 9px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 27px;
  padding-left: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--footer-heading);
  border-radius: 50%;
  color: #DFB05C;
  transition: filter 0.2s ease;
}

.social-link:hover {
  filter: brightness(1.25);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* --- Columns 2–4: link lists -------------------------------- */

.fcol-links {
  padding-top: 8px;
}

.fcol-center    { padding-left: 41px; }
.fcol-resources { padding-left: 43px; }
.fcol-involved  { padding-left: 45px; }

.fcol-heading {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--footer-heading);
}

.fcol-list {
  list-style: none;
  margin-top: 14px;
}

/* 27px row pitch (18px line + 9px gap), measured 16px rows in
   the 864px mockup */
.fcol-list li {
  font-size: 14px;
  line-height: 18px;
}

.fcol-list li + li {
  margin-top: 9px;
}

.fcol-list a {
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--footer-link);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.fcol-list a:hover {
  color: var(--gold-hi);
}

/* --- Column 5: quote ----------------------------------------- */

.fcol-quote {
  padding-left: 48px;
  padding-top: 6px;
}

.footer-quote {
  position: relative;
  max-width: 300px; /* wraps as in mockup: within / path / for all. */
  padding-left: 38px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 29px;
  line-height: 42px;
  color: var(--footer-quote);
}

.qmark {
  font-style: normal;
  font-weight: 600;
  font-size: 46px;
  line-height: 1;
  color: var(--footer-qmark);
}

.qmark-open {
  position: absolute;
  left: 0;
  top: -2px;
}

/* line-height 0 so the 46px mark doesn't inflate the last
   line's box; nudged down to sit just over "all." as in the
   mockup */
.qmark-close {
  line-height: 0;
  position: relative;
  top: 8px;
  margin-left: 8px;
}

.footer-quote-attr {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-attr);
}

/* --- Bottom bar ---------------------------------------------- */

.footer-divider {
  max-width: 1344px;
  margin: 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Copyright starts at x63; legal links end ~107px inside the
   right edge (measured at 1440) */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 81px;
  padding: 0 107px 17px 63px;
}

.footer-copy {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--footer-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 26px;
}

.footer-legal a {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--footer-muted);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--footer-link);
}

.legal-sep {
  width: 1px;
  height: 14px;
  background: rgba(172, 169, 184, 0.5);
}

/* ============================================================
   MOBILE-ONLY ELEMENTS — base state
   These two rules exist solely to hide the NEW hamburger button
   and the NEW cloned Support link on desktop. They style no
   pre-existing element and change nothing in the approved
   desktop design.
   ============================================================ */

.nav-toggle {
  display: none;
}

.site-nav .nav-support {
  display: none;
}

/* ============================================================
   IN-PAGE NAVIGATION — smooth scrolling to section anchors.
   New behavior only; no visual change to approved elements.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* Breathing room above a scrolled-to section (header is not
   fixed, so a small comfort margin is enough). */
#hero,
#explore,
#institutes,
#vision,
#pathways,
#join,
#footer {
  scroll-margin-top: 24px;
}

/* ============================================================
   BECOME A MEMBER — email signup modal (new element; matches
   the site's navy/gold/serif language and 4px button radius)
   ============================================================ */

body.modal-open {
  overflow: hidden;
}

.member-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 9, 24, 0.72);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.member-overlay.is-open {
  display: flex;
}

.member-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 44px 40px 40px;
  border: 1px solid var(--btn-bevel);
  border-radius: 4px;
  background: linear-gradient(180deg, #13162B, #0A0F23);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.member-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.member-close:hover {
  color: var(--gold-hi);
}

.member-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  color: var(--white);
}

.member-sub {
  margin-top: 10px;
  font-size: 13px;
  line-height: 21px;
  color: var(--text-body);
}

.member-form {
  margin-top: 24px;
}

.member-email {
  display: block;
  width: 100%;
  height: 47px;
  padding: 0 16px;
  border: 1px solid var(--ghost-border);
  border-radius: 4px;
  background: rgba(7, 9, 24, 0.55);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.member-email::placeholder {
  color: rgba(233, 233, 238, 0.55);
}

.member-email:focus {
  border-color: var(--gold-hi);
}

.member-error {
  margin-top: 10px;
  font-size: 12px;
  color: #E0A9A0;
  text-align: left;
}

.member-submit {
  width: 100%;
  height: 47px;
  margin-top: 16px;
  border: 1px solid var(--btn-bevel);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--btn-gold-top), var(--btn-gold-bottom));
  color: var(--btn-text-cream);
  text-shadow: 0 1px 2px rgba(61, 32, 6, 0.55);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  transition: filter 0.2s ease;
}

.member-submit:hover {
  filter: brightness(1.12);
}

.member-confirm {
  margin-top: 22px;
  font-size: 14px;
  line-height: 23px;
  color: var(--gold-hi);
}

/* ============================================================
   MOBILE — TABLET / PHONE (max-width: 768px)
   All responsive overrides live inside this block and the
   480px block below. Desktop rules above are untouched.
   ============================================================ */

@media (max-width: 768px) {

  /* ---- Global safety ---------------------------------------- */

  html,
  body {
    overflow-x: hidden;
  }

  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ---- Header / nav ------------------------------------------ */

  .site-header {
    padding-top: 14px;
  }

  .header-inner {
    align-items: center;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .brand-text {
    margin-left: 14px;
    margin-top: 0;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-sub {
    font-size: 13px;
    margin-top: 5px;
  }

  .brand-tagline {
    font-size: 9px;
    line-height: 14px;
    margin-top: 6px;
  }

  /* Desktop pill button + search hidden; Support lives in the
     dropdown (cloned .nav-support) */
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-nav);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Nav becomes a full-width dropdown under the header bar */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 12px 0 0;
    padding: 6px 0 18px;
    white-space: normal;
    background: rgba(9, 12, 30, 0.97);
    border-top: 1px solid rgba(196, 146, 63, 0.4);
    border-bottom: 1px solid rgba(196, 146, 63, 0.4);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0 24px;
    font-size: 13px;
    line-height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-header .site-nav .nav-support {
    display: inline-flex;
    align-self: flex-start;
    height: 44px;
    margin: 16px 24px 0;
    padding: 0 22px;
    font-size: 11.5px;
    line-height: 1;
    border-bottom: 1px solid var(--btn-bevel);
  }

  /* ---- Hero --------------------------------------------------- */

  .hero {
    height: auto;
    min-height: 560px;
    background-position: 60% 25%;
  }

  /* Stronger, more even overlay so white text reads over the
     portrait crop */
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(9, 11, 26, 0.55) 0%,
      rgba(9, 11, 26, 0.38) 55%,
      rgba(9, 11, 26, 0.55) 100%
    );
  }

  /* Scaled 56px emblem reaches ~88px down; keep a clear gap
     below it before the heading starts */
  .hero-content {
    padding-top: 140px;
    padding-bottom: 56px;
  }

  .hero-heading {
    font-size: 42px;
    line-height: 48px;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 15px;
    line-height: 26px;
  }

  .hero-quote {
    max-width: 100%;
    margin-top: 22px;
    margin-bottom: 30px;
    text-align: center;
  }

  /* Scales with the viewport so the quote always lands as a clean
     1–2 line centered block; balance splits the two lines evenly
     instead of leaving a short widow line */
  .hero-quote-text {
    font-size: clamp(15px, 4.6vw, 18px);
    line-height: 1.5;
    text-wrap: balance;
  }

  /* The footer's decorative .qmark sizing (46px/38px, line-height 1)
     leaks onto the hero quote marks and makes them wrap onto their
     own lines on narrow screens; flow them inline with the text */
  .hero-quote-text .qmark {
    font-size: 1em;
    line-height: inherit;
    font-style: inherit;
    font-weight: inherit;
    vertical-align: baseline;
  }

  .hero-quote-cite {
    display: block;
    margin-top: 8px;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 26px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  /* ---- Section 2: seven-icon strip ---------------------------- */

  .pillars {
    padding: 28px 20px 40px;
    background-size: cover;
  }

  .pillars-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  /* 7th item (Global Chapters) centers across both columns */
  .pillar:last-child {
    grid-column: 1 / -1;
  }

  .pillar-title {
    white-space: normal;
    font-size: 18px;
  }

  .pillar-desc {
    font-size: 13px;
    line-height: 20px;
  }

  /* ---- Section 3: institutes cards ----------------------------- */

  .institutes {
    padding: 34px 0 32px;
  }

  .institutes-heading {
    font-size: 22px;
    gap: 12px;
  }

  .heading-orn {
    width: 36px;
  }

  .institutes-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 14px;
    margin-top: 22px;
  }

  .institute-card {
    height: auto;
    padding-bottom: 22px;
  }

  .card-media {
    height: 160px;
  }

  .card-title {
    font-size: 19px;
  }

  .card-desc {
    font-size: 14px;
    line-height: 21px;
  }

  .institutes-viewall {
    margin-top: 26px;
    font-size: 16px;
  }

  /* ---- Section 4: future-gathering banner ---------------------- */

  .future-banner {
    height: auto;
    background-position: 66% 50%;
  }

  /* Full-bleed navy wash: portrait crop puts text over the campus
     image, so the overlay must cover the whole banner */
  .future-banner::before {
    background: linear-gradient(
      180deg,
      rgba(13, 7, 35, 0.66) 0%,
      rgba(13, 7, 35, 0.55) 100%
    );
  }

  .future-inner {
    padding: 52px 20px 56px;
  }

  .future-heading {
    font-size: 32px;
    line-height: 40px;
  }

  .future-sub {
    max-width: 100%;
    font-size: 15px;
    line-height: 25px;
    margin-top: 18px;
  }

  /* ---- Section 5: five pathways --------------------------------- */

  .pathways {
    padding: 32px 0 36px;
  }

  .pathways-heading {
    font-size: 22px;
    gap: 12px;
  }

  .pathways-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 16px;
    margin-top: 26px;
  }

  /* Vertical gold dividers make no sense in a stacked grid */
  .pathway-divider {
    display: none;
  }

  /* 5th item centers across both columns */
  .pathway:last-child {
    grid-column: 1 / -1;
  }

  /* ---- Section 6: join-a-movement dove banner ------------------- */

  .join-banner {
    height: auto;
    /* Even overlay keeps the gold-network texture subtly visible
       across the whole stacked banner */
    background:
      linear-gradient(rgba(7, 3, 26, 0.78), rgba(7, 3, 26, 0.78)),
      var(--s6-navy) url("assets/section6-bg.png") center / cover no-repeat;
  }

  .join-inner {
    flex-direction: column;
    height: auto;
    padding-top: 34px;
    padding-bottom: 42px;
    text-align: center;
  }

  .join-dove {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .join-copy {
    margin-left: 0;
    margin-top: 4px;
    flex-shrink: 1;
  }

  .join-heading {
    white-space: normal;
    font-size: 27px;
    line-height: 1.2;
  }

  .join-desc {
    max-width: 440px;
    margin: 14px auto 0;
    font-size: 15px;
    line-height: 24px;
  }

  .btn-member {
    width: 100%;
    max-width: 293px;
    height: 54px;
    margin: 26px auto 0;
  }

  /* ---- Footer ---------------------------------------------------- */

  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 16px;
    height: auto;
    padding-top: 32px;
    padding-bottom: 12px;
  }

  .footer-vline {
    display: none;
  }

  .fcol-brand,
  .fcol-center,
  .fcol-resources,
  .fcol-involved {
    width: auto;
  }

  .fcol-brand {
    grid-column: 1 / -1;
  }

  .fcol-quote {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 10px;
    padding-bottom: 6px;
    text-align: center;
  }

  .footer-brand {
    padding-left: 16px;
  }

  .footer-logo {
    width: 64px;
    height: 64px;
  }

  .footer-brand-text {
    margin-left: 14px;
    margin-top: 2px;
  }

  .footer-brand-name {
    font-size: 24px;
  }

  .footer-brand-sub {
    font-size: 15px;
  }

  .footer-brand-tagline {
    font-size: 10px;
    line-height: 15px;
  }

  .footer-social {
    padding-left: 0;
    margin-top: 22px;
    flex-wrap: wrap;
  }

  .fcol-links {
    padding-top: 0;
  }

  .fcol-center,
  .fcol-resources,
  .fcol-involved {
    padding-left: 0;
  }

  /* Comfortable tap pitch on the link lists */
  .fcol-list li + li {
    margin-top: 12px;
  }

  .fcol-list a {
    white-space: normal;
  }

  /* Wide enough (and small enough) that the sentence wraps once at
     most; balance splits the two lines evenly */
  .footer-quote {
    max-width: 30ch;
    margin: 0 auto;
    padding-left: 0;
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.5;
    text-wrap: balance;
  }

  .qmark {
    font-size: 34px;
  }

  /* Quote marks flow inline with the centered text; same
     line-height-0 + downward nudge the desktop close mark uses,
     so neither mark inflates or floats off its line */
  .qmark-open {
    position: relative;
    top: 7px;
    line-height: 0;
    margin-right: 6px;
  }

  .qmark-close {
    top: 7px;
    margin-left: 6px;
  }

  .footer-quote-attr {
    margin-top: 14px;
  }

  /* Bottom bar: copyright above, legal links below */
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: auto;
    padding: 20px 20px 26px;
    text-align: center;
  }

  /* ---- Member signup modal ------------------------------------ */

  .member-overlay {
    padding: 16px;
  }

  .member-modal {
    padding: 38px 24px 30px;
  }

  .member-title {
    font-size: 26px;
  }

}

/* ============================================================
   MOBILE — SMALL PHONES (max-width: 480px)
   Refinements on top of the 768px block.
   ============================================================ */

@media (max-width: 480px) {

  /* ---- Header ------------------------------------------------- */

  .logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .brand-tagline {
    display: none;
  }

  /* ---- Hero ---------------------------------------------------- */

  .hero {
    min-height: 520px;
  }

  /* Scaled 48px emblem reaches ~78px down; keep a clear gap
     below it before the heading starts */
  .hero-content {
    padding-top: 128px;
    padding-bottom: 48px;
  }

  .hero-heading {
    font-size: 34px;
    line-height: 40px;
  }

  .hero-quote-text {
    font-size: clamp(14px, 4.5vw, 17px);
    line-height: 1.5;
  }

  .hero-quote-cite {
    font-size: 11px;
  }

  /* ---- Section headings: drop ornaments, keep them clean ------- */

  .institutes-heading,
  .pathways-heading {
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
  }

  .heading-orn {
    display: none;
  }

  /* ---- Section 2 ------------------------------------------------ */

  .pillars-row {
    gap: 28px 12px;
  }

  /* ---- Section 3: single column --------------------------------- */

  .institutes-row {
    grid-template-columns: 1fr;
  }

  .card-media {
    height: 190px;
  }

  /* ---- Section 4 ------------------------------------------------- */

  .future-heading {
    font-size: 28px;
    line-height: 36px;
  }

  /* ---- Section 5: single column ---------------------------------- */

  .pathways-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* ---- Section 6 -------------------------------------------------- */

  .join-dove {
    width: 140px;
    height: 140px;
  }

  .join-heading {
    font-size: 24px;
  }

  /* ---- Footer ------------------------------------------------------ */

  .footer-brand {
    padding-left: 10px;
  }

  .footer-quote {
    font-size: clamp(17px, 5vw, 20px);
    line-height: 1.5;
  }

  .qmark {
    font-size: 28px;
  }

  .qmark-open,
  .qmark-close {
    top: 6px;
  }

  /* ---- Member signup modal ------------------------------------ */

  .member-title {
    font-size: 24px;
  }

}

