/* =====================================================================
   Shri Ram Seva Trust — devotional theme
   Edit the colour tokens below to re-skin the whole site at once.
   ===================================================================== */
:root {
  --saffron:        #e8730c;
  --saffron-dark:   #c75c00;
  --gold:           #f5b301;
  --maroon:         #7a1f0f;
  --cream:          #fff8ee;
  --cream-2:        #fdeed6;
  --ink:            #2c2114;
  --muted:          #6b5d4b;
  --white:          #ffffff;
  --shadow:         0 10px 30px rgba(122, 31, 15, 0.12);
  --radius:         16px;
  --max:            1140px;
  --serif:          'Tiro Devanagari Hindi', 'Noto Serif', Georgia, serif;
  --sans:           'Poppins', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--maroon); }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tint { background: var(--cream-2); }
.text-center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; margin: 0 auto; }

/* ---- Sanskrit/Om accent line above section titles ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--serif);
  color: var(--saffron-dark);
  letter-spacing: .5px;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.section-head { margin-bottom: 44px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--white);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(122,31,15,.22); }
.btn--ghost {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--saffron);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--saffron); color: #fff; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122,31,15,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff; font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  box-shadow: var(--shadow);
}
.brand__name { font-family: var(--serif); font-size: 1.25rem; color: var(--maroon); font-weight: 700; }
.brand__tag  { font-size: .72rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-weight: 500; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--cream-2); color: var(--saffron-dark); }
.nav-links a.active { background: var(--saffron); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--maroon);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; text-align: center; color: #fff;
  padding: 110px 22px 120px;
  background:
    linear-gradient(rgba(122,31,15,.55), rgba(122,31,15,.65)),
    radial-gradient(circle at 50% 0%, var(--gold), var(--saffron-dark));
  overflow: hidden;
}
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.hero p { max-width: 680px; margin: 18px auto 30px; font-size: 1.15rem; color: #fff3e2; }
.hero .om {
  font-family: var(--serif); font-size: 4rem; opacity: .85; margin-bottom: 6px;
  display: block; color: var(--gold); text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* page banner (inner pages) */
.page-banner {
  text-align: center; color: #fff; padding: 70px 22px;
  background: linear-gradient(rgba(122,31,15,.5), rgba(122,31,15,.6)),
              radial-gradient(circle at 50% 0%, var(--gold), var(--saffron-dark));
}
.page-banner h1 { color: #fff; }
.page-banner p { color: #fff3e2; margin-top: 8px; }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border: 1px solid rgba(122,31,15,.06);
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-6px); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px;
  background: var(--cream-2); color: var(--saffron-dark);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }

/* split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split p { color: var(--muted); margin-bottom: 14px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: 2.4rem; color: var(--saffron-dark); }
.stat__label { color: var(--muted); font-size: .9rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; position: relative;
}
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.08); }
.ph {
  display: grid; place-items: center; height: 100%;
  background: linear-gradient(135deg, var(--cream-2), var(--gold));
  color: var(--maroon); font-family: var(--serif); font-size: 1.1rem; text-align: center; padding: 10px;
}

/* contact */
.form-grid { display: grid; gap: 16px; max-width: 640px; margin: 0 auto; }
.form-grid .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 5px; color: var(--maroon); }
input, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid rgba(122,31,15,.18);
  border-radius: 12px; font: inherit; background: #fff;
}
input:focus, textarea:focus { outline: none; border-color: var(--saffron); }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.info-list .ic { font-size: 1.3rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--maroon); color: #f4dcc8; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--serif); margin-bottom: 14px; }
.site-footer a { color: #f4dcc8; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px;
  text-align: center; font-size: .85rem; color: #e6c3a8;
}

/* ---------------- Deity images & logo ---------------- */
.brand__logo { height: 56px; width: auto; display: block; }

.deity-frame {
  border: 5px solid var(--gold);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.deity-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* hero with large logo centerpiece */
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: 230px; height: 230px; object-fit: cover; border-radius: 50%;
  background: #fff; border: 6px solid var(--gold);
  box-shadow: 0 16px 46px rgba(0,0,0,.4); margin-bottom: 10px;
}
@media (max-width: 540px) { .hero-logo { width: 168px; height: 168px; border-width: 4px; } }

/* hero with image on the right */
.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
  max-width: var(--max); margin: 0 auto; text-align: left;
}
.hero-split .hero-copy h1, .hero-split .hero-copy p { text-align: left; }
.hero-split .hero-copy .hero__cta { justify-content: flex-start; }
.hero-img {
  max-width: 340px; margin: 0 auto; aspect-ratio: 3/4;
  border: 6px solid var(--gold); border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.35); background: #fff;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* three blessings row */
.blessings { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.blessing { text-align: center; }
.blessing .deity-frame { aspect-ratio: 3/4; margin-bottom: 14px; }
.blessing h3 { color: var(--maroon); }
.blessing p { color: var(--muted); font-size: .95rem; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-copy h1, .hero-split .hero-copy p { text-align: center; }
  .hero-split .hero-copy .hero__cta { justify-content: center; }
  .hero-img { order: -1; max-width: 280px; }
  .blessings { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; right: 14px; left: 14px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); border-radius: 16px; padding: 12px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .grid--3, .grid--2, .gallery { grid-template-columns: 1fr 1fr; }
  .split, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .grid--3, .grid--2, .gallery { grid-template-columns: 1fr; }
  .form-grid .row { grid-template-columns: 1fr; }
}
