/* ==========================================================================
   Shri Halai Lohana Mahajan, Mumbai — site stylesheet
   Palette drawn from the Mahajan emblem: sindoor red, haldi gold, white.
   ========================================================================== */

:root {
  /* Colour */
  --sindoor: #9E1B22;
  --sindoor-deep: #6B1016;
  --sindoor-wash: #F8ECEA;
  --haldi: #E8A317;
  --haldi-bright: #F4C04A;
  --haldi-soft: #FCF1D8;
  --haldi-ink: #7D5100;
  --ink: #2B1B17;
  --ink-soft: #67544E;
  --line: #EADFD2;
  --ground: #FFFFFF;
  --wash: #FDF8EF;
  --on-dark: #FFF8EC;
  --on-dark-soft: #F2D9C8;

  /* Type */
  --font-display: "Rasa", "Noto Serif Gujarati", Georgia, "Times New Roman", serif;
  --font-body: "Mukta Vaani", "Noto Sans Gujarati", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.95rem;
  --step-4: clamp(2rem, 1.6rem + 1.6vw, 2.6rem);
  --step-5: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);

  /* Space & shape */
  --wrap: 74rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --radius: 6px;
  --shadow: 0 10px 30px -12px rgba(75, 20, 15, 0.28);
}

/* --------------------------------------------------------------------------
   Language switching: every bilingual pair is marked lang="en" / lang="gu".
   -------------------------------------------------------------------------- */
html:not([data-lang="gu"]) body [lang="gu"] { display: none !important; }
html[data-lang="gu"] body [lang="en"] { display: none !important; }
html[data-lang="gu"] body { line-height: 1.8; }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }

/* One slow rotation, shared by the sun and every ray pattern on the site. */
@keyframes spin { to { transform: rotate(360deg); } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0; }

a { color: var(--sindoor); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sindoor-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haldi-ink);
}
html[data-lang="gu"] .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: var(--step-0); }

.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 62ch; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.55rem 1.25rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font: 600 var(--step-0)/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sindoor); color: #fff; }
.btn-primary:hover { background: var(--sindoor-deep); color: #fff; }
.btn-gold { background: var(--haldi); color: var(--ink); }
.btn-gold:hover { background: var(--haldi-bright); color: var(--ink); }
.btn-outline { border-color: var(--sindoor); color: var(--sindoor); background: transparent; }
.btn-outline:hover { background: var(--sindoor); color: #fff; }
.btn-ghost { border-color: rgba(255, 248, 236, .6); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .08); color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* The whole header stays on screen while the page scrolls. */
#site-header { min-height: 8.5rem; position: sticky; top: 0; z-index: 60; }

.topbar { background: var(--sindoor-deep); color: var(--on-dark-soft); font-size: var(--step--1); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.4rem; flex-wrap: wrap; }
.topbar-motto { letter-spacing: .08em; }
.topbar-links { display: flex; align-items: center; gap: 1.25rem; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.lang-toggle { display: inline-flex; border: 1px solid rgba(255, 248, 236, .45); border-radius: 999px; padding: 2px; }
.lang-toggle a {
  font: 600 0.8125rem/1 var(--font-body); color: var(--on-dark); text-decoration: none;
  background: transparent; border: 0; border-radius: 999px; padding: .35rem .75rem; cursor: pointer;
}
.lang-toggle a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.lang-toggle a[aria-current="true"] { background: var(--haldi); color: var(--ink); }

.draft-banner {
  background: var(--haldi-soft); color: var(--haldi-ink);
  font-size: var(--step--1); text-align: center; padding: .35rem var(--gutter);
}

.masthead {
  background: var(--ground); position: relative;
  border-bottom: 3px solid var(--sindoor);
  transition: box-shadow .2s ease;
}
.masthead .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 5.5rem; transition: min-height .2s ease; }
#site-header.is-stuck .masthead { box-shadow: 0 6px 18px -10px rgba(75, 20, 15, .45); }
#site-header.is-stuck .masthead .wrap { min-height: 4.4rem; }
#site-header.is-stuck .brand img { width: 62px; }
.masthead::after { /* hanging toran edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 7px; z-index: 5;
  background: radial-gradient(circle at 50% 0, var(--haldi) 0 4.5px, transparent 5px) 0 0 / 14px 7px repeat-x;
  pointer-events: none;
}
.brand img { transition: width .2s ease; }

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 84px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; display: block; max-width: 13ch; }
.brand-place { font-size: var(--step--1); color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; display: block; }
html[data-lang="gu"] .brand-place { letter-spacing: 0; text-transform: none; }
.brand:hover { color: var(--ink); }

.menu-button {
  display: none; align-items: center; gap: .5rem;
  background: transparent; border: 2px solid var(--line); border-radius: var(--radius);
  padding: .5rem .8rem; font: 600 var(--step--1)/1 var(--font-body); color: var(--ink); cursor: pointer;
}
.menu-button-bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-button-bars::before, .menu-button-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-button-bars::before { top: -6px; }
.menu-button-bars::after { top: 6px; }

/* Primary navigation */
.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }

.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .5rem; border: 0; background: transparent; border-radius: var(--radius); white-space: nowrap;
  font: 600 .98rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav-toggle::after {
  content: ""; width: .4em; height: .4em; margin-left: .15rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.nav-link:hover, .nav-toggle:hover { color: var(--sindoor); background: var(--sindoor-wash); }
.nav-item.is-active > .nav-link,
.nav-item.is-active > .nav-toggle { color: var(--sindoor); box-shadow: inset 0 -3px 0 var(--haldi); border-radius: var(--radius) var(--radius) 0 0; }

.nav-donate { margin-left: .5rem; }
.nav-donate .btn { min-height: 2.5rem; padding-inline: 1.1rem; white-space: nowrap; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  min-width: 17rem; padding: .5rem;
  background: var(--ground); border: 1px solid var(--line); border-top: 3px solid var(--sindoor);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  display: none;
}
.nav-item:last-of-type .dropdown { left: auto; right: 0; }
.nav-toggle[aria-expanded="true"] + .dropdown { display: block; }
@media (min-width: 1201px) {
  /* Desktop: dropdowns stay rendered but hidden, so they can wait a moment
     before closing when the pointer briefly leaves them. */
  .dropdown {
    display: block; visibility: hidden; opacity: 0; transform: translateY(4px);
    transition: opacity .15s ease .25s, transform .15s ease .25s, visibility 0s linear .4s;
  }
  /* Invisible bridge over the gap between the menu item and its dropdown */
  .dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
  .nav-toggle[aria-expanded="true"] + .dropdown { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
@media (hover: hover) and (min-width: 1201px) {
  .nav-item.has-menu:hover > .dropdown { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-item.has-menu:hover > .nav-toggle { color: var(--sindoor); }
  /* Moving onto another menu item closes the previous dropdown at once */
  .primary-nav > ul:hover > .nav-item.has-menu:not(:hover) > .dropdown { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1201px) {
  .dropdown { transform: none; }
}
.dropdown a {
  display: block; padding: .5rem .75rem; border-radius: 4px;
  color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35;
}
.dropdown a:hover { background: var(--sindoor-wash); color: var(--sindoor); }
.dropdown a[aria-current="page"] { background: var(--haldi-soft); color: var(--sindoor-deep); font-weight: 600; }
.dropdown .sub { margin: 0 0 .25rem .75rem; padding-left: .5rem; border-left: 2px solid var(--haldi-soft); }
.dropdown .sub a { font-size: .95rem; padding-block: .35rem; color: var(--ink-soft); }

@media (max-width: 1200px) {
  #site-header { min-height: 7.9rem; }
  .menu-button { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
    background: var(--ground); border-top: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 8rem); overflow-y: auto; padding: .75rem var(--gutter) 1.25rem;
  }
  .masthead.nav-open .primary-nav { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; padding: .85rem .25rem; font-size: 1.05rem; }
  .nav-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .nav-item.is-active > .nav-link, .nav-item.is-active > .nav-toggle { box-shadow: none; }
  .dropdown { position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 .75rem .5rem; }
  .nav-donate { margin: 1rem 0 0; border: 0; }
  .nav-donate .btn { width: 100%; }
  .masthead::after { display: none; }
}
@media (max-width: 520px) {
  .brand img { width: 64px; }
  .brand-name { font-size: 1.05rem; }
  .topbar-motto { display: none; }
  .topbar .wrap { justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Home: hero with the rising sun
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--sindoor); color: var(--on-dark);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 2rem + 7vw, 8rem);
}
.hero-sun {
  position: absolute; z-index: -1;
  right: -14rem; bottom: -30rem; width: 60rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--haldi-bright) 0 16%, var(--haldi) 16.2% 18.5%, transparent 18.8%);
  -webkit-mask: radial-gradient(circle, #000 18%, rgba(0,0,0,.85) 30%, transparent 68%);
          mask: radial-gradient(circle, #000 18%, rgba(0,0,0,.85) 30%, transparent 68%);
  animation: sunrise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-sun::before { /* the rays, turning slowly around the disc */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(244, 192, 74, .42) 0deg 3.2deg, transparent 3.2deg 9deg);
  animation: spin 120s linear infinite;
}
@keyframes sunrise { from { transform: translateY(5rem); } to { transform: none; } }
@media (max-width: 760px) { .hero-sun { right: -24rem; bottom: -34rem; opacity: .7; } }

.hero-copy { max-width: 40rem; display: grid; gap: 1.25rem; }
.hero .eyebrow { color: var(--haldi-bright); }
.hero h1 { color: #fff; }
.hero-lede { font-size: var(--step-1); color: var(--on-dark-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-wash { background: var(--wash); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head > div { display: grid; gap: .5rem; max-width: 44rem; }

/* Intro + stats */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.intro-grid .prose { max-width: none; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .15rem; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 1.25rem; }
.stat-figure { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); color: var(--sindoor); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat-figure sup { font-size: .45em; vertical-align: top; position: relative; top: .3em; }
.stat-label { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.4; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tile { display: grid; grid-template-rows: auto 1fr auto; gap: .75rem; }
.tile h3 { font-size: var(--step-2); }
.tile p { color: var(--ink-soft); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* Heritage band */
.heritage-band { background: var(--sindoor-deep); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.heritage-band::before {
  content: ""; position: absolute; z-index: -1; left: -18rem; top: 50%; width: 36rem; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(232, 163, 23, .16) 0deg 2.5deg, transparent 2.5deg 8deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
  animation: spin 180s linear infinite;
}
.heritage-band .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.heritage-band h2 { color: #fff; }
.heritage-band .eyebrow { color: var(--haldi-bright); }
.heritage-band p { color: var(--on-dark-soft); }
.heritage-band .heritage-line { margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.3; color: var(--haldi-bright); }
.heritage-band .stack { display: grid; gap: 1rem; }
@media (max-width: 860px) { .heritage-band .wrap { grid-template-columns: 1fr; } }

/* Call-to-action band */
.cta-band { background: var(--haldi-soft); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: 3rem; }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { color: var(--ink-soft); max-width: 44rem; margin-top: .5rem; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Split feature (Lohana Shakti etc.) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .stack { display: grid; gap: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.newsletter form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input { flex: 1 1 14rem; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Interior pages
   -------------------------------------------------------------------------- */
.page-banner {
  background: var(--sindoor); color: var(--on-dark);
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
}
.page-banner::after {
  content: ""; position: absolute; z-index: -1; right: -12rem; bottom: -22rem; width: 34rem; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 192, 74, .55) 0 15%, transparent 15.5%),
    repeating-conic-gradient(rgba(244, 192, 74, .28) 0deg 3deg, transparent 3deg 9deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
}
.page-banner h1 { color: #fff; font-size: var(--step-5); max-width: 22ch; }
.page-banner .lede { color: var(--on-dark-soft); margin-top: .75rem; }

.breadcrumb ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: var(--step--1); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; color: var(--on-dark-soft); }
.breadcrumb li + li::before { content: "›"; color: var(--haldi-bright); }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--haldi-bright); }

.page-layout {
  display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.page-layout.no-subnav { grid-template-columns: minmax(0, 1fr); }

.subnav { align-self: start; position: sticky; top: 1.5rem; }
.subnav-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); padding-bottom: .6rem; margin-bottom: .5rem; border-bottom: 2px solid var(--sindoor); }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav a { display: block; padding: .45rem .6rem; border-radius: 4px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.subnav a:hover { background: var(--sindoor-wash); color: var(--sindoor); }
.subnav a[aria-current="page"], .subnav a.is-parent { background: var(--haldi-soft); color: var(--sindoor-deep); font-weight: 600; }
.subnav .sub { margin-left: .75rem; padding-left: .5rem; border-left: 2px solid var(--haldi-soft); }
.subnav .sub a { font-size: .95rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .subnav { position: static; }
  .subnav-title { display: none; }
  .subnav > ul { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
  .subnav > ul > li { flex: none; }
  .subnav .sub { display: contents; }
  .subnav .sub li { flex: none; }
  .subnav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; }
  .subnav .sub a { font-size: inherit; color: var(--ink); }
  .subnav ul ul { display: flex; gap: .4rem; }
}

/* Long-form content */
.prose { max-width: 68ch; display: grid; gap: 1.1rem; align-content: start; }
.prose h2 { font-size: var(--step-3); margin-top: 1.5rem; }
.prose h3 { font-size: var(--step-2); margin-top: 1rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.prose strong { color: var(--ink); }
.content { display: grid; gap: 2.5rem; align-content: start; min-width: 0; }
.content > section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.content > section > h2 { font-size: var(--step-3); }
.content > section > p, .content > section > ul { max-width: 68ch; }
.content ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; }

.divider { border: 0; height: 12px; margin: 1rem 0; background: radial-gradient(circle, var(--haldi) 0 3px, transparent 3.5px) center / 18px 12px repeat-x; max-width: 7.5rem; }

/* Notes & review markers */
.note {
  background: var(--haldi-soft); border-radius: var(--radius); padding: 1rem 1.25rem;
  color: var(--ink); font-size: var(--step--1); display: grid; gap: .25rem; max-width: 68ch;
}
.note-label { font-weight: 700; color: var(--haldi-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
html[data-lang="gu"] .note-label { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.tbc { background: var(--haldi-soft); color: var(--haldi-ink); padding: 0 .35em; border-radius: 3px; font-weight: 600; font-size: .92em; }

/* Photo placeholders */
.ph {
  position: relative; overflow: hidden;
  margin: 0; aspect-ratio: var(--ar, 4 / 3); border-radius: var(--radius);
  display: grid; place-items: end start; padding: 1rem;
  background: linear-gradient(160deg, var(--haldi-soft), var(--sindoor-wash));
  color: var(--ink-soft); font-size: var(--step--1); border: 1px dashed #DCC8B3;
}
.ph::before { /* slowly turning rays, so a waiting photo still feels alive */
  content: ""; position: absolute; right: -30%; bottom: -60%; width: 150%; aspect-ratio: 1;
  background: repeating-conic-gradient(rgba(158, 27, 34, .07) 0deg 4deg, transparent 4deg 10deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 160s linear infinite;
}
.ph > * { position: relative; }
.ph span::before { content: "◌ "; color: var(--sindoor); }

/* People — large portraits with the name beneath */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 2.25rem 1.5rem; }
.person { display: grid; gap: .75rem; align-content: start; }
.person-photo {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--radius);
  display: grid; place-items: center; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--haldi-soft), var(--sindoor-wash));
}
.person-photo::before { /* same turning rays as the other photo placeholders */
  content: ""; position: absolute; right: -40%; bottom: -60%; width: 170%; aspect-ratio: 1;
  background: repeating-conic-gradient(rgba(158, 27, 34, .07) 0deg 4deg, transparent 4deg 10deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 160s linear infinite;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-initials {
  position: relative; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem); color: var(--sindoor); opacity: .45; letter-spacing: .02em;
}
.person-name { font-weight: 600; line-height: 1.3; }
.person-role { font-size: var(--step--1); color: var(--haldi-ink); font-weight: 600; }
.people-lead { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }

/* Quotes carried down the generations */
.pull-quote {
  display: grid; gap: .6rem; max-width: 46rem;
  padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--haldi); margin-block: .5rem;
}
.pull-quote p {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: var(--step-2); line-height: 1.35; color: var(--sindoor-deep);
}
.pull-quote cite {
  font-style: normal; font-size: var(--step--1); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--haldi-ink);
}
html[data-lang="gu"] .pull-quote cite { letter-spacing: 0; text-transform: none; }
html[data-lang="gu"] .pull-quote p { font-style: normal; }

.quote-band { background: var(--wash); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.quote-band .pull-quote { border-left-color: var(--sindoor); }
.quote-band .pull-quote p { font-size: var(--step-3); }
.hero .pull-quote, .heritage-band .pull-quote { border-left-color: var(--haldi); }
.hero .pull-quote p, .heritage-band .pull-quote p { color: var(--on-dark); }
.hero .pull-quote cite, .heritage-band .pull-quote cite { color: var(--haldi-bright); }

/* Stories across the community */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 1.5rem; }
.story-card { display: grid; gap: .75rem; align-content: start; }
.story-card .ph, .story-card img { --ar: 4 / 3; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; width: 100%; }
.story-card h3 { font-size: var(--step-1); }
.story-card h3 a { color: var(--ink); text-decoration: none; }
.story-card h3 a:hover { color: var(--sindoor); text-decoration: underline; }
.story-city {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--haldi-ink);
  display: flex; align-items: center; gap: .45rem;
}
html[data-lang="gu"] .story-city { letter-spacing: 0; text-transform: none; }
.story-city::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--haldi); flex: none; }
.story-card p { color: var(--ink-soft); }
.story-lead { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.story-lead .ph { --ar: 3 / 2; }
@media (max-width: 860px) { .story-lead { grid-template-columns: 1fr; } }

/* Nothing moves for visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  .hero-sun, .hero-sun::before, .heritage-band::before, .ph::before, .person-photo::before { animation: none; }
  .masthead, .masthead .wrap, .brand img { transition: none; }
}

/* Simple name list (members) */
.name-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2rem; }
.name-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* Facilities */
.facilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.facility { padding: 1.4rem 0; border-top: 1px solid var(--line); display: grid; gap: .4rem; align-content: start; }
.facility h3 { font-size: var(--step-1); display: flex; align-items: baseline; gap: .6rem; }
.facility h3::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--haldi); flex: none; translate: 0 -.1em; }
.facility p { color: var(--ink-soft); }
@media (max-width: 700px) { .facilities { grid-template-columns: 1fr; } }

/* Samiti directory */
.samitis { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; }
.samiti { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .55rem; align-content: start; }
.samiti h3 { font-size: var(--step-1); }
.samiti p { color: var(--ink-soft); font-size: .98rem; }
.samiti-chair { font-size: var(--step--1); color: var(--haldi-ink); font-weight: 600; }

/* Timeline (history) — a real sequence of dated events */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.timeline-year { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: var(--sindoor); line-height: 1; font-variant-numeric: lining-nums; }
.timeline-year small { display: block; font-family: var(--font-body); font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; margin-top: .35rem; }
.timeline-body { display: grid; gap: .4rem; max-width: 60ch; }
.timeline-body h3 { font-size: var(--step-1); }
.timeline-body p { color: var(--ink-soft); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: .5rem; } }

/* Heritage chapters */
.chapters { display: grid; gap: 3rem; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 2rem; align-items: start; }
.chapter .prose { gap: 1rem; }
.chapter-divider { border: 0; border-top: 2px solid var(--sindoor); margin: .5rem 0 0; }
@media (max-width: 1000px) { .chapter { grid-template-columns: 1fr; } .chapter .ph { max-width: 26rem; } }

/* Events */
.events { display: grid; gap: 0; }
.event { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); align-items: start; }
.events-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.events-grid .event { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
@media (max-width: 860px) { .events-grid { grid-template-columns: 1fr; gap: 0; } .events-grid .event { border-width: 1px 0 0; border-radius: 0; padding-inline: 0; } }
.datebox {
  display: grid; justify-items: center; align-content: start; text-align: center;
  border: 2px solid var(--sindoor); border-radius: var(--radius); overflow: hidden; line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}
.datebox .m { display: block; width: 100%; background: var(--sindoor); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem 0 .25rem; }
.datebox .d { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; color: var(--sindoor); padding-top: .35rem; }
.datebox .y { font-size: .75rem; color: var(--ink-soft); padding: .1rem 0 .4rem; }
.datebox .d.approx { font-size: 1.15rem; padding-top: .55rem; }
.event-body { display: grid; gap: .3rem; }
.event-samiti { font-size: var(--step--1); font-weight: 600; color: var(--haldi-ink); }
.event h3 { font-size: var(--step-1); }
.event-meta { color: var(--ink-soft); font-size: .98rem; }
.event-flags { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .2rem; }
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: var(--haldi-soft); color: var(--haldi-ink); }
.chip-sample { background: var(--sindoor-wash); color: var(--sindoor); }
.events-empty { color: var(--ink-soft); padding: 1rem 0; border-top: 1px solid var(--line); }

/* Report article */
.report-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--on-dark-soft); margin-top: .75rem; font-size: var(--step--1); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--wash); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
html[data-lang="gu"] thead th { text-transform: none; letter-spacing: 0; font-size: var(--step-0); }
tbody tr:last-child > * { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody th { font-weight: 600; }
.table-group th { background: var(--sindoor-wash); color: var(--sindoor-deep); font-family: var(--font-display); font-size: var(--step-0); }

/* Cards (used sparingly: magazine issues, downloads, gallery) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.5rem; }
.issue { display: grid; gap: .6rem; }
.issue .ph { --ar: 3 / 4; }
.issue-title { font-weight: 600; }
.issue-meta { font-size: var(--step--1); color: var(--ink-soft); }

.downloads { list-style: none; margin: 0; padding: 0; display: grid; }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.downloads .dl-name { font-weight: 600; }
.downloads .dl-meta { display: block; font-size: var(--step--1); color: var(--ink-soft); font-weight: 400; }

.gallery-group { display: grid; gap: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.gallery .ph { --ar: 1; }

/* Key facts list */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts > div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--ink-soft); }
.facts dd { margin: .15rem 0 0; font-weight: 600; }

/* Steps (admissions) — a real ordered process */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; max-width: 60ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  content: counter(step); width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sindoor); color: #fff; font-weight: 700;
}
.steps strong { display: block; }

/* Sponsorship options */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.option { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: grid; gap: .6rem; align-content: start; }
.option h3 { font-size: var(--step-1); }
.option p { color: var(--ink-soft); }
.option .price { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--sindoor); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 600; font-size: .98rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--ground);
  border: 1.5px solid #D9C9B8; border-radius: var(--radius); padding: .65rem .8rem; min-height: 2.75rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sindoor); outline: 3px solid rgba(232, 163, 23, .45); outline-offset: 0; }
.form-status { font-size: var(--step--1); padding: .75rem 1rem; border-radius: var(--radius); background: var(--haldi-soft); color: var(--haldi-ink); font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }

/* Donation amounts */
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; inset: 0; }
.amounts span {
  display: grid; place-items: center; min-height: 3.25rem; border: 1.5px solid #D9C9B8; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); cursor: pointer; font-variant-numeric: tabular-nums;
}
.amounts input:checked + span { border-color: var(--sindoor); background: var(--sindoor); color: #fff; }
.amounts input:focus-visible + span { outline: 3px solid var(--haldi); outline-offset: 2px; }

.donate-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.donate-aside { display: grid; gap: 1.5rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .75rem; }
.panel h2 { font-size: var(--step-2); }
@media (max-width: 900px) { .donate-layout { grid-template-columns: 1fr; } }

/* Contact */
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }
.location { display: grid; gap: .5rem; align-content: start; }
.location h3 { font-size: var(--step-2); }
.location address { font-style: normal; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--sindoor-deep); color: var(--on-dark-soft); position: relative; margin-top: 0; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px;
  background: radial-gradient(circle at 50% 0, var(--ground) 0 4.5px, transparent 5px) 0 0 / 14px 7px repeat-x;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-brand { display: grid; gap: .75rem; align-content: start; }
.footer-brand .name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: #fff; line-height: 1.15; }
.footer-motto { color: var(--haldi-bright); font-family: var(--font-display); font-size: var(--step-1); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--haldi-bright); margin-bottom: .75rem; }
html[data-lang="gu"] .site-footer h2 { text-transform: none; letter-spacing: 0; font-size: var(--step-0); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer address { font-style: normal; display: grid; gap: .6rem; }
.footer-base { border-top: 1px solid rgba(255, 248, 236, .18); }
.footer-base .wrap { display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; padding-block: 1.25rem; font-size: var(--step--1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Shown only when the page is opened without a web server */
.include-error { background: var(--sindoor); color: #fff; padding: 1rem var(--gutter); font-size: var(--step--1); }
.include-error code { background: rgba(0,0,0,.25); padding: .1rem .4rem; border-radius: 3px; }

/* 404 */
.not-found { display: grid; gap: 1rem; justify-items: start; padding-block: 5rem; }
