/* ============================================================
   RGLNI — Regional Grand Lodge of Northern India
   Design System & Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:        #0A1628;
  --navy-mid:    #122040;
  --navy-light:  #1B2F50;
  --navy-card:   #162540;
  --gold:        #C4973A;
  --gold-light:  #E5C06A;
  --gold-pale:   #F5E6C8;
  --cream:       #F7F4EE;
  --cream-dark:  #EDE8DC;
  --white:       #FFFFFF;
  --off-white:   #FAF8F4;
  --text-dark:   #131926;
  --text-body:   #3E4A5F;
  --text-cream:  #DDD8CC;
  --text-muted:  #7A8FA8;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  --nav-h:       80px;
  --pad-x:       clamp(20px, 5vw, 80px);
  --max-w:       1280px;
  --section-y:   clamp(64px, 9vw, 128px);
  --radius:      3px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --t:           0.28s var(--ease);
  --t-slow:      0.55s var(--ease);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem,   4.5vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 3vw,   2.4rem); }
h4 { font-size: clamp(1.1rem, 2vw,   1.5rem); }

p { font-size: 1rem; line-height: 1.75; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: var(--section-y) 0; }
.section--dark    { background: var(--navy);      color: var(--text-cream); }
.section--darker  { background: var(--navy-mid);  color: var(--text-cream); }
.section--cream   { background: var(--cream); }
.section--cream-dark { background: var(--cream-dark); }
.section--white   { background: var(--white); }
.section--off-white { background: var(--off-white); }

/* Section header */
.section-header {
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-header--center { text-align: center; }
.section-header .eyebrow { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 560px;
}
.section-header--center p { margin: 0 auto; }

/* On dark backgrounds */
.section--dark .section-header h2,
.section--darker .section-header h2 { color: var(--white); }
.section--dark .section-header p,
.section--darker .section-header p  { color: var(--text-muted); }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--navy);
  box-shadow: 0 4px 60px rgba(0,0,0,.4);
  transition: background var(--t), box-shadow var(--t);
}
/* Homepage only: transparent until scrolled */
.nav--home {
  background: transparent;
  box-shadow: none;
}
.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 60px rgba(0,0,0,.4);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--pad-x);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}
.nav__logo-img { height: 46px; width: auto; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav__logo-region {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Desktop menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__item { position: relative; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  transition: color var(--t);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--gold); }
.nav__link svg {
  width: 11px; height: 11px;
  transition: transform var(--t);
}
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--navy-light);
  border: 1px solid rgba(196,151,58,.15);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t);
  padding: 8px 0;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-cream);
  transition: all var(--t);
}
.nav__dropdown a:hover {
  color: var(--gold);
  padding-left: 28px;
}
.nav__dropdown hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin: 5px 16px;
}

/* CTA */
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--t), transform var(--t);
  white-space: nowrap;
  margin-left: 12px;
}
.nav__cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all var(--t);
  border-radius: 2px;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: calc(var(--nav-h) + 24px) var(--pad-x) 40px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}
.nav__mobile.open { transform: translateX(0); }
.nav__mobile-link {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--t);
}
.nav__mobile-link:hover { color: var(--gold); }
.nav__mobile-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color var(--t);
}
.nav__mobile-sub:hover { color: var(--gold-light); }
.nav__mobile-cta {
  display: inline-flex;
  margin-top: 32px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--t);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,151,58,.3); }

.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--outline-gold { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn--outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn--outline-dark { background: transparent; color: var(--navy); border: 1px solid rgba(10,22,40,.3); }
.btn--outline-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/masonic-centres-of-northern-india/Janpath_1.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  animation: heroBg 18s ease-out forwards;
}
@keyframes heroBg {
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(10,22,40,.94) 0%,
    rgba(10,22,40,.80) 55%,
    rgba(10,22,40,.5)  100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 var(--pad-x);
  animation: heroUp 1.1s ease forwards;
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}
.hero__eyebrow-line { width: 44px; height: 1px; background: var(--gold); }
.hero__eyebrow-text {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 5.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.03;
  margin-bottom: 32px;
}
.hero__title span { color: var(--gold-light); font-style: normal; }
.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.72;
  max-width: 540px;
  margin-bottom: 14px;
}
.hero__subtitle strong { color: var(--white); font-weight: 500; }
.hero__support {
  font-size: 0.88rem;
  color: rgba(255,255,255,.42);
  margin-bottom: 44px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: scrollBob 2.2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}
.hero__scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(196,151,58,.7), transparent);
}

/* ─── TRIGGER MOMENT ─────────────────────────────────────── */
.trigger {
  background: var(--navy-mid);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.trigger::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(196,151,58,.06) 0%, transparent 70%);
}
.trigger__inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.trigger__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.trigger__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-style: italic;
  color: var(--text-cream);
  line-height: 1.42;
  margin-bottom: 24px;
}
.trigger__quote strong {
  color: var(--gold-light);
  font-style: normal;
}
.trigger__sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── STATS ──────────────────────────────────────────────── */
.stats {
  background: var(--navy);
  padding: 60px 0;
  border-top: 1px solid rgba(196,151,58,.12);
  border-bottom: 1px solid rgba(196,151,58,.12);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  padding: 8px 20px;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 15%;
  width: 1px; height: 70%;
  background: rgba(255,255,255,.08);
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── WELCOME (RGM) ──────────────────────────────────────── */
.welcome {
  background: var(--cream);
  padding: var(--section-y) 0;
}
.welcome__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.welcome__img-wrap { position: relative; }
.welcome__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  filter: grayscale(15%);
}
.welcome__img-border {
  position: absolute;
  bottom: -22px; right: -22px;
  width: 64%; height: 56%;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.welcome__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
}
.welcome__content .eyebrow { margin-bottom: 14px; }
.welcome__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.welcome__role {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 32px;
}
.welcome__quote {
  padding: 18px 24px;
  margin-bottom: 28px;
}
.welcome__quote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}
.welcome__quote cite {
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.welcome__body { color: var(--text-body); margin-bottom: 36px; }

/* ─── PILLARS ─────────────────────────────────────────────── */
.pillars { background: var(--navy); padding: var(--section-y) 0; }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.pillar {
  background: var(--navy-card);
  padding: clamp(36px, 4vw, 60px);
  position: relative;
  overflow: hidden;
  transition: background var(--t);
}
.pillar:hover { background: var(--navy-light); }
.pillar__ghost {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(196,151,58,.05);
  position: absolute;
  top: -16px; right: 12px;
  line-height: 1;
  transition: color var(--t);
  user-select: none;
}
.pillar:hover .pillar__ghost { color: rgba(196,151,58,.12); }
.pillar__icon {
  width: 44px; height: 44px;
  color: var(--gold);
  margin-bottom: 24px;
}
.pillar h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  color: var(--white);
  margin-bottom: 16px;
}
.pillar p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.72; }

/* ─── CHARITY GRID ────────────────────────────────────────── */
.charity { background: var(--cream-dark); padding: var(--section-y) 0; }
.charity__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.charity-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.charity-card--tall { grid-row: span 2; }
.charity-card--tall .charity-card__img { height: 100%; }
.charity-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.charity-card:hover .charity-card__img { transform: scale(1.06); }
.charity-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.92) 0%, rgba(10,22,40,.2) 55%, transparent 100%);
}
.charity-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
}
.charity-card__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 10px;
}
.charity-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--white);
  margin-bottom: 8px;
}
.charity-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,.68);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── FAMOUS FREEMASONS ───────────────────────────────────── */
.famous { background: var(--navy); padding: var(--section-y) 0; }
.famous__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.famous-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 2/3;
  cursor: pointer;
  background: var(--navy-light);
}
.famous-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(65%) contrast(1.1);
  transition: filter var(--t-slow), transform var(--t-slow);
}
.famous-card:hover .famous-card__img {
  filter: grayscale(10%) contrast(1.05);
  transform: scale(1.05);
}
.famous-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.93) 0%, transparent 55%);
}
.famous-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
}
.famous-card__name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 3px;
}
.famous-card__title {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── NEWS / EVENTS ───────────────────────────────────────── */
.news { background: var(--off-white); padding: var(--section-y) 0; }
.news__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.news-featured {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 500px;
  cursor: pointer;
}
.news-featured__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.news-featured:hover .news-featured__img { transform: scale(1.04); }
.news-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.95) 0%, rgba(10,22,40,.25) 60%, transparent 100%);
}
.news-featured__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
}
.news-featured__meta {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.news-featured h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 12px;
}
.news-featured p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}

.news-list { display: flex; flex-direction: column; }
.news-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--cream-dark);
  cursor: pointer;
  transition: all var(--t);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; }
.news-item__meta {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.news-item__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color var(--t);
}
.news-item:hover .news-item__title { color: var(--gold); }
.news-item__excerpt { font-size: 0.85rem; color: var(--text-body); line-height: 1.55; }

/* ─── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(196,151,58,.07) 0%, transparent 65%);
}
.cta-banner__inner { position: relative; z-index: 2; }
.cta-banner__eyebrow { margin-bottom: 20px; }
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.cta-banner p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 44px;
  font-size: 1rem;
}
.cta-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer { background: #060d18; padding: 80px 0 40px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 64px);
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer__brand-logo img { height: 40px; }
.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--white);
}
.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 24px;
}
.footer__col-heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.footer__links a:hover { color: var(--gold); }
.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.footer__contact-item svg {
  width: 15px; height: 15px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer__contact-item a { color: var(--text-muted); transition: color var(--t); }
.footer__contact-item a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,.22);
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a {
  color: rgba(255,255,255,.22);
  transition: color var(--t);
}
.footer__bottom-links a:hover { color: var(--text-muted); }

/* ─── PAGE HEADER (inner pages) ──────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 64px) 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--navy) 0%, rgba(10,22,40,.7) 100%);
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.page-hero h1 {
  color: var(--white);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 18px;
  max-width: 800px;
}
.page-hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
}
.page-hero__gold-line {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 28px 0;
}

/* ─── INNER PAGE CONTENT ─────────────────────────────────── */
.prose {
  color: var(--text-body);
}
.prose h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  color: var(--navy);
  margin: 60px 0 20px;
  font-weight: 500;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  color: var(--navy);
  margin: 40px 0 14px;
  font-weight: 500;
}
.prose p { margin-bottom: 20px; font-size: 1rem; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose ul, .prose ol { margin-bottom: 20px; padding-left: 24px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 10px; font-size: 1rem; }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(196,151,58,.3); transition: border-color var(--t); }
.prose a:hover { border-color: var(--gold); }
.prose blockquote {
  padding: 20px 28px;
  margin: 36px 0;
}
.prose blockquote p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--navy);
  margin: 0;
  line-height: 1.45;
}

/* ─── PERSON CARD ─────────────────────────────────────────── */
.person-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.person-grid__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  filter: grayscale(12%) contrast(1.05);
}
.person-grid__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 500;
}
.person-grid__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 32px;
}
.person-grid__quote {
  padding: 16px 24px;
  margin-bottom: 32px;
}
.person-grid__quote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  margin: 0;
  line-height: 1.5;
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; margin: 32px 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cream-dark);
  align-items: start;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item__year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  padding-top: 2px;
}
.timeline-item__content { font-size: 0.95rem; color: var(--text-body); line-height: 1.65; }
.timeline-item__content strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* ─── TABLES ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 32px 0; border-radius: var(--radius); box-shadow: 0 2px 24px rgba(0,0,0,.06); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid var(--cream-dark); background: var(--white); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--off-white); }
tbody td { padding: 14px 20px; font-size: 0.9rem; color: var(--text-body); }
tbody td strong { color: var(--navy); font-weight: 600; }

/* Info card */
.info-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.info-card h4 { color: var(--navy); margin-bottom: 16px; }

/* Step cards (How to Join) */
.steps { display: flex; flex-direction: column; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--white);
  padding: 32px 36px;
  transition: background var(--t);
}
.step:hover { background: var(--off-white); }
.step__num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(196,151,58,.25);
  line-height: 1;
}
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--text-body); font-size: 0.95rem; }

/* Contact form */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--t);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,151,58,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ─── CARD GRIDS ──────────────────────────────────────────── */
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.simple-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
  transition: transform var(--t), box-shadow var(--t);
}
.simple-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.simple-card__img { width: 100%; height: 200px; object-fit: cover; }
.simple-card__body { padding: 24px; }
.simple-card h4 { color: var(--navy); margin-bottom: 8px; }
.simple-card p { color: var(--text-body); font-size: 0.88rem; line-height: 1.6; }

/* RGM portrait grid */
.rgm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.rgm-card { text-align: center; }
.rgm-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  filter: grayscale(30%);
  margin-bottom: 16px;
  transition: filter var(--t-slow);
}
.rgm-card:hover .rgm-card__img { filter: grayscale(0%); }
.rgm-card__period {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.rgm-card__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.rgm-card__note { font-size: 0.78rem; color: var(--text-body); }

/* City cards (Masonic Centres) */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.city-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.city-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.city-card:hover .city-card__img { transform: scale(1.06); }
.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.88) 0%, transparent 60%);
}
.city-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
}
.city-card__city {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 4px;
}
.city-card__lodges {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* Gold separator line */
.gold-line {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 0 0 28px;
}
.gold-line--center { margin: 0 auto 28px; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat:nth-child(2)::after { display: none; }

  .welcome__grid { grid-template-columns: 1fr; max-width: 560px; }
  .welcome__img-border { display: none; }

  .pillars__grid { grid-template-columns: 1fr; gap: 3px; }
  .charity__grid { grid-template-columns: 1fr; }
  .charity-card--tall { grid-row: auto; }
  .charity-card--tall .charity-card__img { height: 280px; }
  .famous__grid { grid-template-columns: repeat(3, 1fr); }
  .news__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .person-grid { grid-template-columns: 1fr; max-width: 500px; }
  .rgm-grid { grid-template-columns: repeat(3, 1fr); }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .famous__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rgm-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 0; }
  .step__num { font-size: 2rem; margin-bottom: 8px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .famous__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}
