/* ══════════════════════════════════════════════════
   SMSS — Suryashakti Mahila Seva Samiti
   Main Stylesheet · smss/assets/css/smss.css
══════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────── */
:root {
  --plum:        #4A1060;
  --plum-mid:    #7B2D8B;
  --plum-light:  #B05CC0;
  --plum-pale:   #f0e8f5;
  --gold:        #D4A017;
  --gold-light:  #F0C040;
  --gold-pale:   #fdf4dc;
  --cream:       #FDF8F0;
  --warm-white:  #FFFBF4;
  --charcoal:    #1A1A2E;
  --soft-gray:   #6B6B7B;
  --light-gray:  #f4f4f6;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', sans-serif;
  --shadow-sm:   0 2px 12px rgba(74,16,96,0.07);
  --shadow-md:   0 8px 32px rgba(74,16,96,0.11);
  --shadow-lg:   0 20px 56px rgba(74,16,96,0.14);
  --radius:      4px;
  --transition:  0.25s ease;
}

/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--plum); }

/* ── Navbar ─────────────────────────────────────── */
.smss-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(74,16,96,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,160,23,0.25);
  padding: 0.7rem 0;
  transition: padding var(--transition), box-shadow var(--transition);
}
.smss-nav.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 24px rgba(74,16,96,0.3);
}
.smss-nav .brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.smss-nav .brand span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.smss-nav .nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem !important;
  transition: color var(--transition);
  position: relative;
}
.smss-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0.85rem; right: 0.85rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.smss-nav .nav-link:hover,
.smss-nav .nav-link.active { color: var(--gold-light) !important; }
.smss-nav .nav-link:hover::after,
.smss-nav .nav-link.active::after { transform: scaleX(1); }
.smss-nav .nav-cta {
  background: var(--gold);
  color: var(--plum) !important;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.4rem 1.1rem !important;
}
.smss-nav .nav-cta:hover { background: var(--gold-light); }
.smss-nav .nav-cta::after { display: none; }
.navbar-toggler { border-color: rgba(212,160,23,0.35); }
.navbar-toggler-icon { filter: invert(1); }

/* ── Page Hero (inner pages) ────────────────────── */
.page-hero {
  padding: 130px 0 70px;
  background: var(--plum);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(176,92,192,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.page-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gold);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.8;
}
/* Breadcrumb */
.smss-breadcrumb {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.smss-breadcrumb a { color: var(--gold); }
.smss-breadcrumb a:hover { color: var(--gold-light); }
.smss-breadcrumb .sep { margin: 0 0.5rem; opacity: 0.4; }

/* ── Section Shared ─────────────────────────────── */
.smss-section { padding: 90px 0; }
.smss-section-alt { background: var(--cream); }

/* ── Option E: Hero stays dark plum — all content sections light ── */
/* Hero gradient (homepage) */
.smss-hero-gradient {
  background: linear-gradient(150deg, #1E0535 0%, #2D0845 30%, #4A1060 65%, #3A0D50 100%);
}
/* Section backgrounds — alternating warm rhythm */
.smss-section       { background: var(--warm-white); padding: 100px 0; }
.smss-section-alt   { background: var(--cream); padding: 100px 0; }
.smss-section-pearl { background: #F7F2EE; }
/* Keep dark sections only where explicitly set */
.smss-section-dark  { background: var(--plum); }
.smss-section-dark {
  background: var(--plum);
  padding: 90px 0;
}
.section-eyebrow {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum-mid);
  margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-eyebrow::before {
  content: ''; display: inline-block;
  width: 22px; height: 1px;
  background: var(--plum-mid);
}
.section-eyebrow.light { color: var(--gold); }
.section-eyebrow.light::before { background: var(--gold); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--plum); }
.section-title.light { color: #fff; }
.section-title.light em { color: var(--gold-light); }
.section-lead {
  font-size: 0.97rem;
  color: var(--soft-gray);
  line-height: 1.85;
  max-width: 560px;
}
.section-lead.light { color: rgba(255,255,255,0.65); }

/* ── Cards ──────────────────────────────────────── */
.smss-card {
  background: #fff;
  border: 1px solid rgba(74,16,96,0.09);
  box-shadow: 0 2px 16px rgba(74,16,96,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.smss-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(74,16,96,0.13);
}
.smss-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--plum), var(--gold));
}
.smss-card-body { padding: 1.75rem; }
.smss-card-icon {
  width: 50px; height: 50px;
  background: var(--plum-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--plum-mid);
  margin-bottom: 1.1rem;
}
.smss-card h5 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.smss-card p {
  font-size: 0.88rem;
  color: var(--soft-gray);
  line-height: 1.8;
  margin: 0;
}

/* ── Buttons ────────────────────────────────────── */
.btn-smss {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--plum);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-smss:hover { background: var(--plum-mid); color: #fff; transform: translateY(-2px); }
.btn-smss-gold {
  background: var(--gold);
  color: var(--plum);
}
.btn-smss-gold:hover { background: var(--gold-light); color: var(--plum); }
.btn-smss-outline {
  background: transparent;
  border: 1px solid var(--plum);
  color: var(--plum);
}
.btn-smss-outline:hover { background: var(--plum); color: #fff; }
.btn-smss-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}
.btn-smss-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── Form controls ──────────────────────────────── */
.smss-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(74,16,96,0.18);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.smss-input:focus {
  outline: none;
  border-color: var(--plum-mid);
  box-shadow: 0 0 0 3px rgba(123,45,139,0.1);
}
.smss-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft-gray);
  margin-bottom: 0.4rem;
}

/* ── Footer ─────────────────────────────────────── */
.smss-footer {
  background: var(--charcoal);
  padding: 3.5rem 0 1.5rem;
  color: rgba(255,255,255,0.5);
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.footer-tagline {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}
.footer-heading {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.footer-link {
  display: block;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold-light); }
.footer-divider { border-color: rgba(255,255,255,0.07); margin: 1.5rem 0; }
.footer-copy {
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255,255,255,0.28);
}
.footer-copy a { color: var(--gold); }

/* ── Alert / Toast ──────────────────────────────── */
.smss-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: none;
}
.smss-alert.success {
  background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32;
}
.smss-alert.error {
  background: #fdecea; border: 1px solid #f5c6c6; color: #c62828;
}

/* ── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-1 { animation: fadeUp 0.65s ease both; }
.anim-2 { animation: fadeUp 0.65s 0.12s ease both; }
.anim-3 { animation: fadeUp 0.65s 0.24s ease both; }
.anim-4 { animation: fadeUp 0.65s 0.36s ease both; }
.anim-5 { animation: fadeUp 0.65s 0.48s ease both; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ─────────────────────────────────────── */
.text-gold { color: var(--gold) !important; }
.text-plum { color: var(--plum-mid) !important; }
.bg-plum   { background: var(--plum) !important; }
.bg-cream  { background: var(--cream) !important; }
.divider-gold {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.divider-gold.center { margin-left: auto; margin-right: auto; }
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag-plum  { background: var(--plum-pale); color: var(--plum-mid); }
.tag-gold  { background: var(--gold-pale); color: #8a6200; }
.tag-green { background: #e8f5e9; color: #2e7d32; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .smss-section, .smss-section-alt, .smss-section-dark { padding: 64px 0; }
  .about-section, .programs-section, .leadership-section, .objects-section, .contact-section { padding: 64px 0 !important; }
  .page-hero { padding: 110px 0 55px; }
}

/* ── Contact section light (Option E) ── */
.contact-section    { background: var(--warm-white); padding: 90px 0; }
.contact-detail     { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon       {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--plum-pale); color: var(--plum-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem;
}
.contact-detail h6  { font-weight: 700; color: var(--charcoal); font-size: 0.85rem; margin-bottom: 0.2rem; }
.contact-detail p,
.contact-detail a   { font-size: 0.88rem; color: var(--soft-gray); margin: 0; text-decoration: none; }
.contact-detail a:hover { color: var(--plum); }

/* ── About section light (Option E) ── */
.about-section      { padding: 90px 0; background: var(--warm-white); }

/* ── Leadership section light ── */
.leadership-section { padding: 90px 0; background: var(--cream); }

/* ── Objects section ── */
.objects-section    { padding: 90px 0; background: var(--warm-white); }

/* ── Association section — keep plum (it's a dark accent block) ── */
.assoc-section      { padding: 70px 0; background: linear-gradient(135deg, var(--plum) 0%, #6D1580 100%); text-align: center; }

/* ── Programs section cream ── */
.programs-section   { padding: 90px 0; background: var(--cream); }
.program-card       { background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; height: 100%; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(74,16,96,0.1); }

/* ── Gallery light ── */
.gallery-section    { padding: 90px 0; background: var(--warm-white); }

/* ── Decorative divider between hero and first section ── */
.hero-wave {
  height: 60px;
  background: var(--warm-white);
  clip-path: ellipse(60% 100% at 50% 100%);
  margin-top: -1px;
}

@media (max-width: 768px) {
  .contact-section, .about-section, .programs-section,
  .gallery-section, .objects-section { padding: 64px 0; }
}

/* ── Topbar pushes content down correctly ── */
body { padding-top: 0; }
.smss-nav.sticky-top { top: 0; }

/* ── Better link color on light sections ── */
.about-section a, .programs-section a,
.leadership-section a, .objects-section a { color: var(--plum-mid); }

/* ── Utility topbar hide on very small mobile ── */
@media (max-width: 480px) {
  .smss-topbar-email { display: none !important; }
}

/* ── WhatsApp button pulse animation ── */
@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4); }
  70%  { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ── Seva Day card equal height in row ── */
.seva-card-row { display: flex; }
.seva-card-row > div { display: flex; flex-direction: column; }

/* ══════════════════════════════════════════
   MOBILE RESPONSIVENESS — Comprehensive Fix
══════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Navbar collapse menu background */
  .navbar-collapse { background: rgba(45,8,69,0.98); padding: 1rem; border-radius: 0 0 8px 8px; margin-top: 0.5rem; }
  .smss-nav .nav-link { padding: 0.6rem 0.5rem !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .smss-nav .nav-cta { margin-top: 0.5rem; text-align: center; justify-content: center; }
}
@media (max-width: 768px) {
  /* Typography scale down */
  .hero-title   { font-size: 2rem !important; }
  .section-title{ font-size: 1.7rem !important; }
  /* Section padding */
  .about-section, .programs-section, .leadership-section,
  .objects-section, .contact-section { padding: 56px 0 !important; }
  /* Cards full width */
  .smss-card, .about-card, .program-card, .leader-card { margin-bottom: 1rem; }
  /* Hero stats wrap nicely */
  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 1.6rem; }
  /* Footer columns stack */
  .smss-footer .row > div { margin-bottom: 1.5rem; }
  /* Topbar email hidden on mobile */
  .topbar-email-hide { display: none !important; }
  /* WhatsApp + back-to-top reposition */
  #backToTop { bottom: 80px !important; right: 16px !important; }
}
@media (max-width: 480px) {
  .smss-hero { padding: 75px 0 30px !important; }
  .hero-title { font-size: 1.75rem !important; }
  .hero-cta, .hero-cta-ghost { padding: 0.7rem 1.25rem !important; font-size: 0.75rem !important; margin-right: 0.5rem !important; }
  .page-hero { padding: 90px 0 45px; }
  .page-hero h1 { font-size: 2rem; }
}
/* Loading speed — reduce repaints */
.smss-card, .about-card, .program-card, .leader-card {
  will-change: transform;
  contain: layout style;
}

