/* ═══════════════════════════════════════════════════════
   VIJESHWAR DEVASTHAN TRUST
   Hindu Sacred Aesthetic — Saffron · Maroon · Gold
   All sections tested for contrast and readability
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Cinzel:wght@400;600;700&family=Nunito+Sans:wght@400;500;600;700&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --maroon:      #7B1A1A;
  --maroon-dk:   #4A0A0A;
  --maroon-mid:  #6B1515;
  --gold:        #C9973A;
  --gold-lt:     #E8C26A;
  --saffron:     #E8841A;
  --saffron-lt:  #F5A044;
  --ivory:       #FBF6ED;
  --ivory-dk:    #F0E8D5;
  --stone:       #7A5C3A;
  --dark:        #180808;
  --dark2:       #240C0C;
  --text-dark:   #1A0800;
  --text-mid:    #3D1C08;
  --white:       #FFFFFF;
  --nav-h:       76px;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: 'Nunito Sans', sans-serif;
  background: #FFFFFF;
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── ANNOUNCEMENT BAR ── */
.ann-bar {
  background: var(--maroon-dk);
  padding: .6rem 5%;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  line-height: 1.6;
  border-bottom: 2px solid var(--gold);
}
.ann-bar strong { color: var(--gold-lt); }
.ann-bar a { color: var(--gold-lt); text-decoration: underline; font-weight: 700; }

/* ── NAVIGATION ── */
.site-nav {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  background: var(--dark);
  border-bottom: 2px solid rgba(201,151,58,.4);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3%; gap: 1rem;
}
.nav-brand { display:flex; align-items:center; gap:.9rem; flex-shrink:0; }
.nav-logo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(232,132,26,.5));
}
.nav-text { display:flex; flex-direction:column; line-height:1.3; }
.nav-title {
  font-family: 'Cinzel', serif; font-size: .9rem; color: var(--gold-lt);
  letter-spacing: .07em; font-weight: 600;
}
.nav-sub { font-size: .58rem; color: rgba(255,255,255,.45); letter-spacing:.12em; text-transform:uppercase; }

.nav-links { display:flex; align-items:center; gap:.05rem; }
.nav-links a {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.78); padding: .45rem .65rem; border-radius: 2px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-lt); background: rgba(201,151,58,.12);
}
.nav-item { position: relative; }
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 220px; background: #1a0505;
  border: 1px solid rgba(201,151,58,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.8); z-index: 600;
}
.nav-dropdown a {
  display: block; padding: .72rem 1.2rem; font-size: .72rem; letter-spacing: .05em;
  border-bottom: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.78);
}
.nav-dropdown a:hover { color: var(--gold-lt); background: rgba(201,151,58,.1); }
.nav-cta {
  flex-shrink: 0; background: var(--saffron) !important; color: #fff !important;
  padding: .55rem 1.3rem !important; border-radius: 2px;
  font-family: 'Cinzel', serif !important; font-size: .68rem !important;
  letter-spacing: .12em !important; transition: background .2s !important;
  border: none !important;
}
.nav-cta:hover { background: var(--maroon) !important; }
.nav-mem {
  flex-shrink: 0; background: rgba(201,151,58,.15) !important;
  color: var(--gold-lt) !important; padding: .5rem 1rem !important;
  border: 1px solid rgba(201,151,58,.4) !important; border-radius: 2px;
  font-family: 'Cinzel', serif !important; font-size: .65rem !important;
  letter-spacing: .1em !important; transition: all .2s !important;
}
.nav-mem:hover { background: rgba(201,151,58,.3) !important; }
.nav-ham {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: .5rem; background: none; border: none;
}
.nav-ham span { width: 26px; height: 2px; background: var(--gold); display: block; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 5% 60px;
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--maroon-dk) 0%, #5A0A0A 45%, var(--dark) 100%);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(201,151,58,.025) 0, rgba(201,151,58,.025) 1px, transparent 0, transparent 50%);
  background-size: 22px 22px;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-eyebrow {
  display: inline-block; background: rgba(201,151,58,.2); border: 1px solid rgba(201,151,58,.5);
  color: var(--gold-lt); font-family: 'Cinzel', serif; font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase; padding: .5rem 1.6rem; margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.6rem,6vw,4.5rem);
  font-weight: 700; color: #FFFFFF; line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0,0,0,1), 0 8px 30px rgba(0,0,0,.9); margin-bottom: .6rem;
}
.page-hero h1 em { color: var(--gold-lt); font-style: italic; font-weight: 400; }
.page-hero p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
  color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto;
  line-height: 1.75; text-shadow: 0 2px 12px rgba(0,0,0,.9);
}
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; margin-top: 1rem;
  font-size: .72rem; color: rgba(255,255,255,.45); justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,.62); }
.breadcrumb a:hover { color: var(--gold-lt); }
.breadcrumb span { color: rgba(255,255,255,.2); }

/* ── SECTIONS ── */
.section { padding: 80px 5%; }
.section-sm { padding: 55px 5%; }
/* WHITE section — dark text */
.section-light { background: #FFFFFF; color: var(--text-dark); }
/* WARM IVORY section — dark text */
.section-ivory { background: var(--ivory); color: var(--text-dark); }
/* VERY DARK section — light text */
.section-dark { background: var(--dark); color: rgba(255,255,255,.9); }
/* DEEP MAROON section — light text */
.section-maroon { background: var(--maroon-dk); color: rgba(255,255,255,.9); }

.container { max-width: 1140px; margin: 0 auto; }
.container-sm { max-width: 840px; margin: 0 auto; }

/* ── TYPOGRAPHY ── */
/* On light backgrounds */
.eyebrow {
  font-family: 'Cinzel', serif; font-size: .66rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--saffron); display: block; margin-bottom: .7rem;
}
.eyebrow.light { color: var(--saffron-lt); }

.heading {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem,3.5vw,2.9rem);
  font-weight: 600; color: var(--maroon); line-height: 1.2; margin-bottom: .9rem;
}
.heading em { font-style: italic; color: var(--stone); font-weight: 400; }
.heading.light { color: #FFFFFF; }
.heading.light em { color: var(--gold-lt); }
.heading.center { text-align: center; }

.divider {
  width: 52px; height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  margin-bottom: 1.6rem;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* Body text — DARK on light backgrounds */
.body-p { font-size: 1rem; line-height: 2; color: var(--text-mid); margin-bottom: 1.1rem; }
/* Body text — LIGHT on dark backgrounds */
.body-p.light { color: rgba(255,255,255,.88); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .88rem 2.2rem; font-family: 'Cinzel', serif; font-size: .72rem;
  letter-spacing: .15em; border: none; cursor: pointer; border-radius: 2px;
  transition: all .22s; text-transform: uppercase; font-weight: 700; text-decoration: none;
}
/* Saffron primary — works on both light and dark backgrounds */
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--maroon); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,26,26,.35); }
/* Gold outline — works on dark backgrounds */
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--dark); }
/* Dark — for use on light backgrounds */
.btn-dark { background: var(--maroon-dk); color: var(--gold-lt); border: none; }
.btn-dark:hover { background: var(--maroon); }

/* ── CARDS ── */
.card {
  background: #fff; border: 1px solid rgba(201,151,58,.2);
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: 0 16px 50px rgba(123,26,26,.12); transform: translateY(-4px); }

/* ── TAGS & PILLS ── */
.tag {
  display: inline-block; padding: .25rem .9rem; border-radius: 50px;
  background: rgba(232,132,26,.12); border: 1px solid rgba(232,132,26,.35);
  color: #C05000; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.pill {
  display: inline-block; padding: .3rem .85rem;
  background: rgba(201,151,58,.12); color: var(--maroon);
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; border-radius: 2px;
}

/* ── HIGHLIGHT BOXES ── */
.dark-box { background: var(--dark2); border: 1px solid rgba(201,151,58,.25); padding: 1.8rem; }
.dark-box h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--gold-lt); margin-bottom: .6rem; font-weight: 700; }
.dark-box p { font-size: .9rem; color: rgba(255,255,255,.85); line-height: 1.85; }

.highlight-box { background: rgba(201,151,58,.08); border-left: 3px solid var(--gold); padding: 1.2rem 1.6rem; }
.highlight-box p { font-size: .9rem; color: var(--text-mid); line-height: 1.8; margin: 0; }

.quote-block { background: var(--maroon); border-left: 4px solid var(--gold); padding: 1.8rem 2rem; }
.quote-block p { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: rgba(255,255,255,.95); font-style: italic; line-height: 1.7; }
.quote-block cite { display: block; margin-top: .7rem; font-size: .72rem; color: var(--gold-lt); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.align-center { align-items: center; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--stone); margin-bottom: .45rem;
}
.form-control {
  width: 100%; padding: .88rem 1.1rem; border: 2px solid rgba(201,151,58,.3);
  background: #fff; font-family: 'Nunito Sans', sans-serif; font-size: .9rem;
  color: var(--text-dark); outline: none; border-radius: 2px; transition: border-color .2s;
}
.form-control:focus { border-color: var(--saffron); }
.form-control::placeholder { color: rgba(44,26,8,.35); }

/* ── INFO TABLE ── */
.info-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.info-table td {
  padding: .8rem 1rem; border-bottom: 1px solid rgba(201,151,58,.15);
  font-size: .9rem; vertical-align: top; color: var(--text-mid);
}
.info-table td:first-child {
  font-weight: 700; color: var(--maroon); width: 35%;
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
}

/* ── GALLERY GRID ── */
.photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.photo-item {
  position: relative; overflow: hidden; background: var(--maroon-dk);
  cursor: pointer; aspect-ratio: 4/3;
}
.photo-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }
.photo-item:hover img { transform: scale(1.06); }
.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.72));
  opacity: 0; transition: opacity .3s;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 12px 10px; font-size: .73rem; color: #fff;
  font-weight: 600; opacity: 0; transition: opacity .3s;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.photo-item:hover .photo-caption { opacity: 1; }
.photo-item.wide { grid-column: span 2; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.96); z-index: 9000;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lb-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; color: #fff; cursor: pointer; opacity: .75; line-height: 1;
}
.lb-close:hover { opacity: 1; }

/* ── STATS ── */
.stat-group { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(201,151,58,.2); }
.stat-item { padding: 1.6rem 1.2rem; text-align: center; border-right: 1px solid rgba(201,151,58,.15); border-bottom: 1px solid rgba(201,151,58,.15); }
.stat-item:nth-child(2n) { border-right: none; }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }
.stat-n { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.stat-l { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); margin-top: .3rem; }

/* ── FOOTER ── */
.site-footer { background: #0D0303; padding: 70px 5% 36px; border-top: 2px solid rgba(201,151,58,.3); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: .9rem; }
.footer-logo { width: 76px; height: 76px; border-radius: 50%; filter: drop-shadow(0 0 8px rgba(201,151,58,.35)); }
.footer-name { font-family: 'Cinzel', serif; color: var(--gold-lt); font-size: .88rem; letter-spacing: .1em; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.7); line-height: 1.85; max-width: 280px; }
.footer-col h4 { font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: .2em; color: var(--gold-lt); text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { font-size: .84rem; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer-bottom p { font-size: .73rem; color: rgba(255,255,255,.45); }
.footer-om { font-size: 1.8rem; color: rgba(201,151,58,.35); }
.reg-tag { font-size: .66rem; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.18); padding: .28rem .75rem; letter-spacing: .07em; display: inline-block; margin-bottom: .35rem; }
.reg-tag span { color: var(--gold-lt); font-weight: 700; }

/* ── RESPONSIVE ── */
@media(max-width:1100px){
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--dark); border-top: 1px solid rgba(201,151,58,.2);
    padding: 1rem; gap: .2rem; z-index: 400;
  }
  .nav-links.open a { padding: .75rem 1rem; }
  .nav-cta, .nav-mem { display: none; }
}
@media(max-width:1100px){
  .nav-links.open .nav-cta,
  .nav-links.open .nav-mem {
    display: block;
    padding: .75rem 1rem;
    margin: 0;
    border-radius: 0;
    font-size: .88rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }
}
@media(max-width:768px){
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section { padding: 60px 5%; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-item.wide { grid-column: span 1; }
}
@media(max-width:480px){
  .footer-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
}
