/* ============================================================
   Shiv Shakti Jan Seva Sanstha — Amarnath Bhandara
   Modern responsive theme (mobile-first, no external frameworks)
   ============================================================ */

:root {
  --saffron: #ff7a18;
  --saffron-dark: #d35400;
  --deep-red: #b8261b;
  --maroon: #650304;
  --gold: #d4a017;
  --gold-light: #f5d76e;
  --cream: #fff8ec;
  --ink: #1f1b16;
  --ink-soft: #4a4338;
  --muted: #7a7268;
  --line: #e8dec9;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(31, 27, 22, 0.06), 0 1px 3px rgba(31, 27, 22, 0.08);
  --shadow-md: 0 4px 12px rgba(31, 27, 22, 0.08), 0 2px 4px rgba(31, 27, 22, 0.05);
  --shadow-lg: 0 12px 32px rgba(31, 27, 22, 0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --header-h: 72px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--saffron-dark); }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Noto Serif Devanagari', Georgia, serif;
  color: var(--maroon);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TOP STRIP (announcement bar)
   ============================================================ */
.top-strip {
  background: linear-gradient(90deg, var(--maroon), var(--deep-red));
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.top-strip a { color: var(--gold-light); }
.top-strip a:hover { color: #fff; }
.top-strip .contact-quick { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--saffron);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { line-height: 1.15; }
.brand-text .b1 { font-weight: 700; color: var(--maroon); font-size: 1.05rem; }
.brand-text .b2 { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--maroon);
  position: relative;
  transition: var(--transition);
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 500;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--cream);
  color: var(--deep-red);
}
.main-nav .cta {
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.main-nav .cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ============================================================
   ANNOUNCEMENT MARQUEE (CSS-based, replacing <marquee>)
   ============================================================ */
.announce {
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}
.announce-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 32s linear infinite;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
}
.announce-track span { padding-right: 64px; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.announce:hover .announce-track { animation-play-state: paused; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background: #0e1d3f; /* matches the navy in the banner image */
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
}
.hero-cta-bar {
  background: #0e1d3f;
  padding: 22px 16px 30px;
  border-top: 2px solid rgba(255,255,255,0.08);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: #f5d76e; color: #fff8ec; }
.hero-actions .btn-outline:hover { background: #f5d76e; color: #0e1d3f; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--deep-red); }
.btn-ghost {
  background: var(--white);
  color: var(--deep-red);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--cream); }

/* ============================================================
   SECTION DEFAULTS
   ============================================================ */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow {
  color: var(--saffron-dark);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head .lede { color: var(--ink-soft); }

/* ============================================================
   LAYOUT: PAGE WITH SIDEBAR
   ============================================================ */
.page-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0 64px;
}
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.sidebar-card h3 {
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: #fff;
  margin: 0;
  padding: 12px 16px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.sidebar-card .body { padding: 14px 16px; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li + li { border-top: 1px solid var(--line); }
.sidebar-card li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.sidebar-card li a:hover { color: var(--deep-red); }
.sidebar-card li a::before {
  content: "▸";
  color: var(--saffron);
  font-size: 0.85rem;
}
.donate-card { text-align: center; padding: 18px; }
.donate-card img { margin: 0 auto 10px; }

/* ============================================================
   CONTENT CARD
   ============================================================ */
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}
.content-card-header {
  background: linear-gradient(135deg, var(--cream), #fff);
  padding: 18px 24px;
  border-bottom: 2px solid var(--saffron);
}
.content-card-header h2 { margin: 0; font-size: 1.4rem; }
.content-card .body { padding: 24px; }
.content-card .body p { color: var(--ink-soft); }

/* ============================================================
   FACT/INFO LIST
   ============================================================ */
.info-list {
  display: grid;
  gap: 10px;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.info-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--saffron);
}
.info-list li strong { color: var(--maroon); }
@media (max-width: 600px) {
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--cream);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 10px, #f3e8d0 10px, #f3e8d0 20px);
}

/* ============================================================
   MEMBERS GRID
   ============================================================ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.member-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 14px;
  transition: var(--transition);
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.member-photo {
  width: 120px;
  height: 150px;
  margin: 0 auto 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream);
  border: 2px solid var(--saffron);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-weight: 700; color: var(--maroon); font-size: 0.95rem; line-height: 1.25; }
.member-role { color: var(--ink-soft); font-size: 0.82rem; margin-top: 2px; }
.members-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  margin: 32px 0;
  border: 0;
}

/* ============================================================
   FORM
   ============================================================ */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 22px;
}
.form-card h3 { color: var(--maroon); margin-top: 0; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}
.field textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   BUDGET / DATA TABLES
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:nth-child(even) { background: var(--cream); }
.data-table td.right { text-align: right; }

/* ============================================================
   STATS / FACT CARDS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--deep-red);
  display: block;
  line-height: 1.1;
}
.stat-label { color: var(--ink-soft); font-size: 0.85rem; margin-top: 4px; }

/* ============================================================
   PROGRAMS GRID
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.program-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--deep-red));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.program-card h3 { margin: 0 0 6px; color: var(--maroon); font-size: 1.05rem; }
.program-card p { color: var(--ink-soft); margin: 0; font-size: 0.9rem; }

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--saffron);
}
.contact-card h3 { margin: 0 0 12px; color: var(--maroon); }
.contact-card p { margin: 4px 0; color: var(--ink-soft); }
.contact-card .label { font-weight: 600; color: var(--maroon); }

/* ============================================================
   ROUTE MAP
   ============================================================ */
.routemap-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.routemap-wrap img { width: 100%; border-radius: var(--radius-sm); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--maroon), #4a0203);
  color: #f3e0c0;
  padding: 48px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--gold-light);
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer a { color: #f3e0c0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; font-size: 0.92rem; }
.site-footer .footer-about p { color: #e6d4ad; font-size: 0.92rem; }
.footer-bottom {
  margin-top: 36px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #e6d4ad;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.flex-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
  margin: 28px 0;
  border: 0;
}

/* ============================================================
   ALERT/NOTICE
   ============================================================ */
.notice {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid;
}
.notice-success { background: #ecfdf3; border-color: #16a34a; color: #064e2c; }
.notice-error   { background: #fff1f0; border-color: #dc2626; color: #7f1d1d; }
.notice-info    { background: #fff8ec; border-color: var(--saffron); color: #7a4400; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 600px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
  }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .main-nav .cta { text-align: center; margin-top: 6px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .announce, .top-strip, .sidebar { display: none; }
  body { background: #fff; color: #000; }
}
