
/* =========================================================
   YOGIRAJ SHRI SADGURU SHANKAR MAHARAJ
   SAMADHI SANRAKSHAN ABHIYAN
   Theme: Saffron & Ivory
   ========================================================= */

:root {
  --saffron: #b94d16;
  --saffron-dark: #85330e;
  --saffron-light: #f8e4d1;
  --cream: #fffaf2;
  --ivory: #fffdf8;
  --paper: #ffffff;
  --ink: #34241d;
  --muted: #75665e;
  --border: #ead9ca;
  --green: #416b4a;
  --shadow: 0 12px 32px rgba(83, 43, 20, 0.09);
  --radius: 18px;
  --max-width: 1160px;
}

/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family:
    "Noto Sans Devanagari",
    "Nirmala UI",
    "Mangal",
    system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

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

a {
  color: var(--saffron-dark);
  text-decoration: none;
}

a:hover {
  color: var(--saffron);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #d78b48;
  outline-offset: 3px;
}

p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0 0 16px;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-top: 76px;
  padding-bottom: 76px;
}

.tint {
  background: var(--cream);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 auto;
  max-width: 760px;
}

.eyebrow {
  color: var(--saffron-dark);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.message {
  margin: 12px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.brand:hover {
  color: var(--saffron-dark);
}

.brand .mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--saffron);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  min-width: 0;
}

.brand-text b {
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.8rem;
}

#nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

#nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

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

#menuToggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.header-cta {
  flex-shrink: 0;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--saffron);
  color: white;
  box-shadow: 0 6px 16px rgba(185, 77, 22, 0.18);
}

.btn.primary:hover {
  background: var(--saffron-dark);
  color: white;
}

.btn.light {
  background: white;
  color: var(--saffron-dark);
  border-color: var(--border);
}

.btn.light:hover {
  background: var(--saffron-light);
}

.btn.outline {
  background: transparent;
  color: var(--saffron-dark);
  border-color: var(--saffron);
}

.btn.outline:hover {
  background: var(--saffron-light);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* HERO */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0;
  background:
    radial-gradient(
      circle at 8% 15%,
      rgba(255, 224, 181, 0.7),
      transparent 35%
    ),
    linear-gradient(120deg, #fff8ed, #f9e6d1 58%, #fffaf2);
}

/*
  When the real Samadhi Math photo is uploaded,
  use it as the hero background by adding this file:
  assets/samadhi-math-background.jpg

  The image is deliberately not referenced until that
  actual photo is available. No generic temple image is used.
*/

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy .lead {
  color: #59483e;
  font-size: 1.12rem;
  line-height: 1.95;
  max-width: 720px;
}

.hero-photo {
  justify-self: center;
  width: min(100%, 340px);
  padding: 12px;
  border: 1px solid rgba(185, 77, 22, 0.25);
  border-radius: 190px 190px 24px 24px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-photo img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: center;
  border-radius: 180px 180px 16px 16px;
  background: var(--saffron-light);
}

.hero-photo p {
  margin: 12px 4px 3px;
  color: var(--saffron-dark);
  font-weight: 800;
}

/* CARDS */

.three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

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

.card h3 {
  margin-top: 8px;
}

.card p {
  color: #5e5048;
  overflow-wrap: anywhere;
}

#demandText p + p {
  margin-top: 16px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  font-size: 1.6rem;
  font-weight: 800;
}

/* MAP SECTION */

.map-card {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.map-image-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffaf2;
}

.metro-map-image {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: center;
  background: #fffaf2;
  transition: transform 180ms ease;
}

.map-image-link:hover .metro-map-image {
  transform: scale(1.01);
}

.map-card > .small {
  margin: 16px 0 0;
}

/* VIDEO */

.video-box {
  min-width: 0;
}

.video-box h3 {
  margin-bottom: 16px;
}

.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  border: 1px dashed #d9b79d;
  border-radius: 14px;
  background:
    radial-gradient(circle at center, #fffaf2, #f8e4d1);
  text-align: center;
  color: var(--muted);
}

.video-placeholder p {
  max-width: 400px;
  margin: 0;
}

.video-placeholder iframe,
#mapVideoContainer iframe,
#mapVideoContainer video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}

#map-video {
  max-width: 1000px;
  margin: 28px auto 0;
}

/* VOTE SECTION */

.vote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.vote-layout > * {
  min-width: 0;
}

.vote-card > p {
  color: var(--muted);
}

.vote-options {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
  min-width: 0;
}

.vote-options legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--saffron);
  background: var(--saffron-light);
}

.choice input {
  flex: 0 0 auto;
  margin-top: 8px;
  accent-color: var(--saffron);
}

.field {
  margin: 18px 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9c6b7;
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

.field input::placeholder {
  color: #95867d;
}

.field input:focus {
  border-color: var(--saffron);
  outline: 2px solid rgba(185, 77, 22, 0.12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.consent input {
  flex: 0 0 auto;
  margin-top: 8px;
  accent-color: var(--saffron);
}

.vote-card form > .btn {
  width: 100%;
}

.share-vote {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.share-vote p {
  color: var(--muted);
}

/* DOCUMENTS */

.documents-grid,
#documentsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.document-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.document-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.document-card p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.document-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.document-card a {
  overflow-wrap: anywhere;
}

.document-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  font-weight: 900;
}

/* TIMELINE */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 28px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #e7c6ad;
}

.timeline-item {
  position: relative;
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: -28px;
  top: 27px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 2px var(--saffron);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--saffron-dark);
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 8px;
}

.timeline-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.timeline-status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--saffron-light);
  color: var(--saffron-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

/* PARTICIPANTS */

.people-section {
  margin-bottom: 38px;
}

.people-section:last-child {
  margin-bottom: 0;
}

.people-section h3 {
  margin-bottom: 18px;
}

.people-grid,
.person-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.person-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.person-photo {
  width: 124px;
  height: 124px;
  margin: 0 auto 16px;
  border: 4px solid var(--saffron-light);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: var(--cream);
}

.person-card h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.person-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* GALLERY */

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--saffron-light);
}

.media-card h3 {
  padding: 16px 18px 0;
  margin: 0;
  font-size: 1rem;
}

.media-card p {
  padding: 0 18px 16px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* FINAL CTA */

.final-cta {
  padding: 68px 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 224, 181, 0.3), transparent 35%),
    linear-gradient(135deg, #7c2f10, #b94d16);
  color: white;
  text-align: center;
}

.final-cta h2,
.final-cta p {
  color: white;
}

.final-cta h2 {
  max-width: 850px;
  margin: 0 auto 16px;
}

.final-cta p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
}

.final-cta .eyebrow {
  color: #ffe0b5;
}

.final-cta .actions {
  justify-content: center;
}

.final-cta .btn.primary {
  background: white;
  color: var(--saffron-dark);
}

.final-cta .btn.primary:hover {
  background: var(--saffron-light);
}

.final-cta .btn.light {
  border-color: rgba(255, 255, 255, 0.5);
}

/* FOOTER */

footer {
  padding: 38px 0 22px;
  background: #2e2019;
  color: #f7e9df;
}

footer .brand {
  color: white;
}

footer .brand-text small {
  color: #e4cabc;
}

footer p {
  max-width: 600px;
  color: #e4cfc2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  color: #f7e9df;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffc78e;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #d8c3b6;
}

/* RESPONSIVE: TABLETS */

@media (max-width: 1000px) {
  .head {
    flex-wrap: wrap;
  }

  #nav {
    gap: 12px;
  }

  #nav a {
    font-size: 0.82rem;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    gap: 30px;
  }

  .three-grid {
    grid-template-columns: 1fr 1fr;
  }

  .three-grid .card:last-child {
    grid-column: 1 / -1;
  }

  .documents-grid,
  #documentsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-grid,
  .person-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* RESPONSIVE: MOBILE */

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .wrap {
    width: min(100% - 28px, var(--max-width));
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .head {
    position: relative;
    min-height: 72px;
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 10px;
  }

  .brand {
    gap: 9px;
    flex: 1;
  }

  .brand .mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .brand-text b {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .brand-text small {
    font-size: 0.72rem;
  }

  #menuToggle {
    display: inline-flex;
    flex: 0 0 44px;
  }

  #nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: -14px;
    right: -14px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  #nav.open {
    display: flex;
  }

  #nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 0.94rem;
  }

  #nav a:hover {
    background: var(--saffron-light);
  }

  .hero {
    padding: 48px 0;
  }

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

  .hero-copy .lead {
    font-size: 1rem;
  }

  .hero-photo {
    width: min(80%, 300px);
  }

  .hero-photo img {
    height: 330px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .three-grid,
  .vote-layout,
  .documents-grid,
  #documentsGrid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .three-grid .card:last-child {
    grid-column: auto;
  }

  .card {
    padding: 21px;
  }

  .map-card {
    padding: 14px;
  }

  .metro-map-image {
    max-height: 560px;
  }

  .video-placeholder {
    min-height: 210px;
  }

  .people-grid,
  .person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .person-card {
    padding: 14px 10px;
  }

  .person-photo {
    width: 100px;
    height: 100px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item {
    padding: 18px;
  }

  .timeline-item:before {
    left: -24px;
  }

  .final-cta {
    padding: 50px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .copyright {
    grid-column: auto;
  }
}

/* RESPONSIVE: SMALL PHONES */

@media (max-width: 380px) {
  .brand-text b {
    font-size: 0.74rem;
  }

  .people-grid,
  .person-grid {
    grid-template-columns: 1fr;
  }

  .person-photo {
    width: 116px;
    height: 116px;
  }

  .eyebrow {
    font-size: 0.82rem;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* समाधीस्थळाचे महत्त्व, उपस्थित प्रश्न आणि आमची मागणी
   हे तीन विभाग horizontal cards मध्ये दाखवा. */

#aboutText,
#concernText,
#demandText {
  min-width: 0;
}

#aboutText p,
#concernText p,
#demandText p {
  line-height: 1.8;
}

/* तीन कार्ड्सच्या parent container ला horizontal layout */
.about-cards,
.intro-cards,
#aboutCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* प्रत्येक कार्ड */
.about-cards > *,
.intro-cards > *,
#aboutCards > * {
  min-width: 0;
  height: 100%;
}

/* Mobile वर कार्ड्स एका खाली एक */
@media (max-width: 768px) {
  .about-cards,
  .intro-cards,
  #aboutCards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
