/* ==========================================================================
   Tilakdhari Vindhyavasini Shiksha Samiti Trust
   Theme: deep temple-lamp navy + warm marigold orange
   ========================================================================== */

:root{
  /* -- colour tokens -- */
  --navy-950:#071228;
  --navy-900:#0c1f3f;
  --navy-800:#132c56;
  --navy-700:#1d3d70;
  --navy-600:#2a4f8a;

  --orange-600:#d9711f;
  --orange-500:#f28a3c;
  --orange-400:#f6a860;
  --orange-300:#f9c48f;
  --orange-100:#fdecdb;
  --orange-50:#fff6ec;

  --cream:#fffaf4;
  --ink:#11213e;
  --muted:#5c6a86;
  --line:#e7e0d6;
  --white:#ffffff;

  /* -- type -- */
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:'Mukta', 'Segoe UI', sans-serif;

  --radius-sm:8px;
  --radius-md:16px;
  --radius-lg:28px;

  --shadow-sm:0 4px 16px rgba(7,18,40,.08);
  --shadow-md:0 14px 40px rgba(7,18,40,.14);

  --header-h:84px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.15;margin:0 0 .5em;color:var(--navy-900);}
p{margin:0 0 1em;}
button{font-family:inherit;cursor:pointer;}

.container{
  width:min(1180px, 92%);
  margin-inline:auto;
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
}

:focus-visible{
  outline:3px solid var(--orange-500);
  outline-offset:3px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding:.85em 1.7em;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.02em;
  border:2px solid transparent;
  transition:transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{
  background:var(--orange-500);
  color:var(--navy-950);
}
.btn-primary:hover{background:var(--orange-400);}
.btn-ghost{
  border-color:rgba(255,255,255,.7);
  color:var(--white);
}
.btn-ghost:hover{background:rgba(255,255,255,.12);}
.btn-ghost-dark{
  border-color:var(--navy-900);
  color:var(--navy-900);
}
.btn-ghost-dark:hover{background:var(--navy-900);color:var(--white);}
.btn-donate{padding:.65em 1.5em;font-size:.9rem;}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--navy-900);
  height:var(--header-h);
  display:flex;
  align-items:center;
  box-shadow:0 2px 18px rgba(7,18,40,.25);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
}
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-width:0;
}
.brand-mark{
  width:52px;
  height:52px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--orange-100);
  border:2px solid var(--orange-400);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.brand-logo{
  width:100%;
  height:100%;
  object-fit:cover;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
  color:var(--white);
  white-space:nowrap;
}
.brand-text strong{
  font-family:var(--font-display);
  font-size:1.15rem;
  font-weight:700;
}
.brand-text em{
  font-style:normal;
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--orange-300);
}

.main-nav{
  display:flex;
  align-items:center;
  gap:2rem;
}
.main-nav ul{
  display:flex;
  gap:1.8rem;
}
.main-nav a{
  color:var(--orange-50);
  font-weight:500;
  font-size:.95rem;
  position:relative;
  padding:.3em 0;
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0;bottom:-2px;
  width:0;
  height:2px;
  background:var(--orange-500);
  transition:width .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after{width:100%;}
.main-nav a.active{color:var(--orange-400);}

.hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px;
  height:44px;
  background:transparent;
  border:none;
  padding:0;
}
.hamburger span{
  display:block;
  width:26px;
  height:2px;
  margin-inline:auto;
  background:var(--orange-300);
  border-radius:2px;
  transition:transform .3s ease, opacity .3s ease;
}
.hamburger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.is-open span:nth-child(2){opacity:0;}
.hamburger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.nav-backdrop{
  position:fixed;
  inset:0;
  background:rgba(7,18,40,.55);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:95;
}
.nav-backdrop.is-visible{opacity:1;pointer-events:auto;}

/* ==========================================================================
   Hero / Slider
   ========================================================================== */
.hero{
  position:relative;
  background:var(--navy-950);
}
.slider{
  position:relative;
  height:min(88vh, 680px);
  min-height:460px;
  overflow:hidden;
}
.slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .9s ease;
  display:flex;
  align-items:center;
}
.slide.is-active{opacity:1;visibility:visible;}
.slide-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.05);
}
.slide-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(100deg, rgba(7,18,40,.94) 10%, rgba(7,18,40,.72) 45%, rgba(7,18,40,.4) 100%);
}
.slide-content{
  position:relative;
  z-index:2;
  max-width:640px;
  color:var(--white);
  padding-bottom:3rem;
}
.eyebrow{
  font-size:.85rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--orange-400);
  font-weight:600;
  margin-bottom:1em;
}
.slide-content h1{
  color:var(--white);
  font-size:clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom:.5em;
}
.slide-content h1 em{
  font-style:normal;
  color:var(--orange-400);
}
.slide-text{
  color:rgba(255,255,255,.85);
  font-size:1.05rem;
  max-width:520px;
}
.slide-cta{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  margin-top:1.5rem;
}

.slider-arrow{
  position:absolute;
  top:50%;
  translate:0 -50%;
  z-index:5;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(7,18,40,.35);
  color:var(--white);
  font-size:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .25s ease, border-color .25s ease;
}
.slider-arrow:hover{background:var(--orange-500);border-color:var(--orange-500);color:var(--navy-950);}
.slider-arrow.prev{left:1.5rem;}
.slider-arrow.next{right:1.5rem;}

.slider-dots{
  position:absolute;
  bottom:2.4rem;
  left:50%;
  translate:-50% 0;
  z-index:5;
  display:flex;
  gap:.6rem;
}
.slider-dots button{
  width:10px;
  height:10px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.6);
  background:transparent;
  padding:0;
  transition:background .25s ease, width .25s ease;
}
.slider-dots button.is-active{
  background:var(--orange-500);
  border-color:var(--orange-500);
  width:26px;
  border-radius:6px;
}

.hero-arch{
  position:relative;
  display:block;
  width:100%;
  height:64px;
  margin-top:-2px;
}
.hero-arch path{fill:var(--cream);}

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band{
  background:var(--navy-900);
  padding:2.6rem 0;
  margin-top:-1px;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.5rem;
  text-align:center;
}
.stat-num{
  display:block;
  font-family:var(--font-display);
  font-size:clamp(2rem, 4vw, 2.8rem);
  font-weight:700;
  color:var(--orange-400);
}
.stat-label{
  display:block;
  margin-top:.35rem;
  color:var(--orange-50);
  font-size:.85rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}

/* ==========================================================================
   Generic section
   ========================================================================== */
.section{padding:5.5rem 0;}
.section-eyebrow{
  color:var(--orange-600);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.8rem;
  font-weight:700;
  margin-bottom:.6em;
}
.section-title{
  font-size:clamp(1.8rem, 3.2vw, 2.5rem);
}
.section-lead{
  max-width:640px;
  color:var(--muted);
  font-size:1.05rem;
}

/* ==========================================================================
   Pillars
   ========================================================================== */
.pillars{background:var(--cream);}
.pillar-grid{
  margin-top:2.8rem;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.5rem;
}
.pillar-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:2rem 1.6rem;
  position:relative;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillar-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:var(--orange-300);
}
.pillar-flame{
  display:inline-flex;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--orange-100);
  align-items:center;
  justify-content:center;
  margin-bottom:1rem;
}
.pillar-flame svg{width:22px;height:22px;fill:var(--orange-600);}
.pillar-hindi{
  font-family:var(--font-display);
  font-size:1.6rem;
  color:var(--navy-700);
  margin-bottom:.1em;
}
.pillar-card h3{font-size:1.2rem;margin-bottom:.4em;}
.pillar-card p{color:var(--muted);font-size:.95rem;margin-bottom:0;}

/* ==========================================================================
   About
   ========================================================================== */
.about{background:var(--orange-50);}
.about-grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:3.5rem;
  align-items:center;
}
.about-image{position:relative;}
.about-image img{
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
}
.about-image-badge{
  position:absolute;
  bottom:-1.4rem;
  right:-1.2rem;
  background:var(--navy-900);
  color:var(--white);
  padding:1rem 1.3rem;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-md);
  font-size:.85rem;
  max-width:150px;
  line-height:1.3;
}
.about-image-badge span{
  display:block;
  font-family:var(--font-display);
  font-size:1.8rem;
  color:var(--orange-400);
  font-weight:700;
}
.about-copy p{color:var(--muted);}

/* ==========================================================================
   Programs / Activities
   ========================================================================== */
.programs{background:var(--cream);}
.program-grid{
  margin-top:2.8rem;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.8rem;
}
.program-card{
  background:var(--white);
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--line);
  transition:transform .25s ease, box-shadow .25s ease;
}
.program-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
}
.program-image{position:relative;height:200px;overflow:hidden;}
.program-image img{width:100%;height:100%;object-fit:cover;}
.program-tag{
  position:absolute;
  top:1rem;left:1rem;
  background:var(--orange-500);
  color:var(--navy-950);
  font-size:.75rem;
  font-weight:700;
  padding:.35em .9em;
  border-radius:999px;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.program-body{padding:1.5rem;}
.program-body h3{font-size:1.15rem;margin-bottom:.4em;}
.program-body p{color:var(--muted);font-size:.95rem;}
.text-link{
  color:var(--navy-700);
  font-weight:700;
  font-size:.9rem;
  display:inline-block;
  margin-top:.3rem;
}
.text-link:hover{color:var(--orange-600);}

/* ==========================================================================
   Events
   ========================================================================== */
.events{background:var(--orange-50);}
.event-list{margin-top:2.6rem;display:flex;flex-direction:column;gap:1.1rem;}
.event-card{
  display:flex;
  gap:1.4rem;
  align-items:center;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:1.2rem 1.5rem;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.event-card:hover{border-color:var(--orange-300);box-shadow:var(--shadow-sm);}
.event-date{
  flex:0 0 auto;
  width:68px;
  height:68px;
  border-radius:var(--radius-sm);
  background:var(--navy-900);
  color:var(--white);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.event-day{font-family:var(--font-display);font-size:1.5rem;font-weight:700;line-height:1;}
.event-month{font-size:.75rem;text-transform:uppercase;color:var(--orange-400);letter-spacing:.05em;}
.event-info h3{font-size:1.1rem;margin-bottom:.25em;}
.event-info p{margin:0;color:var(--muted);font-size:.92rem;}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial{
  background:var(--navy-900);
  color:var(--white);
  padding:5rem 0;
  text-align:center;
}
.quote-mark{
  width:44px;height:36px;
  fill:var(--orange-500);
  margin:0 auto 1.4rem;
}
.testimonial blockquote{
  margin:0 auto 1.2rem;
  max-width:720px;
  font-family:var(--font-display);
  font-size:clamp(1.3rem, 2.6vw, 1.8rem);
  line-height:1.45;
  font-style:italic;
  color:var(--orange-50);
}
.testimonial-author{
  color:var(--orange-400);
  font-weight:600;
  font-size:.9rem;
  letter-spacing:.03em;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  background:var(--orange-100);
  padding:4rem 0;
}
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2.5rem;
  flex-wrap:wrap;
}
.cta-text h2{max-width:520px;font-size:clamp(1.5rem,3vw,2.1rem);}
.cta-text p{color:var(--muted);max-width:480px;margin-bottom:0;}
.cta-actions{display:flex;gap:1rem;flex-wrap:wrap;}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{background:var(--cream);}
.contact-grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:3.5rem;
}
.contact-list{margin-top:2rem;display:flex;flex-direction:column;gap:1.4rem;}
.contact-list li{display:flex;flex-direction:column;gap:.2rem;}
.contact-list strong{
  color:var(--navy-700);
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.contact-list span{color:var(--muted);}

.contact-form{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:2rem;
  box-shadow:var(--shadow-sm);
}
.form-row{margin-bottom:1.2rem;display:flex;flex-direction:column;gap:.4rem;}
.form-row label{
  font-size:.85rem;
  font-weight:600;
  color:var(--navy-800);
}
.form-row input,
.form-row textarea{
  font-family:inherit;
  font-size:1rem;
  padding:.75em .9em;
  border-radius:var(--radius-sm);
  border:1px solid var(--line);
  background:var(--cream);
  color:var(--ink);
  resize:vertical;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus,
.form-row textarea:focus{
  border-color:var(--orange-500);
  box-shadow:0 0 0 3px rgba(242,138,60,.18);
  outline:none;
}
.form-note{
  margin-top:1rem;
  margin-bottom:0;
  font-size:.9rem;
  color:var(--orange-600);
  font-weight:600;
  min-height:1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background:var(--navy-950);
  color:var(--orange-50);
  padding-top:4rem;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:2.5rem;
  padding-bottom:3rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-logo-row{
  display:flex;
  align-items:center;
  gap:.8rem;
  margin-bottom:1rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  color:var(--white);
}
.footer-logo{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  background:var(--orange-100);
  border:2px solid var(--orange-500);
}
.footer-brand p{
  color:rgba(255,250,244,.65);
  font-size:.92rem;
  max-width:320px;
}
.footer-social{display:flex;gap:.7rem;margin-top:1.2rem;}
.footer-social a{
  width:36px;height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;
  font-weight:700;
  transition:background .25s ease, border-color .25s ease;
}
.footer-social a:hover{background:var(--orange-500);border-color:var(--orange-500);color:var(--navy-950);}

.footer-col h4{
  font-family:var(--font-display);
  color:var(--orange-400);
  font-size:1.05rem;
  margin-bottom:1rem;
}
.footer-col ul{display:flex;flex-direction:column;gap:.6rem;}
.footer-col a{
  color:rgba(255,250,244,.75);
  font-size:.92rem;
  transition:color .2s ease;
}
.footer-col a:hover{color:var(--orange-400);}
.footer-contact li{
  color:rgba(255,250,244,.75);
  font-size:.92rem;
  line-height:1.5;
}

.footer-bottom{padding:1.4rem 0;}
.footer-bottom p{
  margin:0;
  text-align:center;
  font-size:.82rem;
  color:rgba(255,250,244,.55);
}

/* ==========================================================================
   Scroll to top
   ========================================================================== */
.scroll-top{
  position:fixed;
  right:1.4rem;
  bottom:1.4rem;
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--orange-500);
  color:var(--navy-950);
  border:none;
  font-size:1.1rem;
  box-shadow:var(--shadow-md);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index:60;
}
.scroll-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:980px){
  .about-grid,
  .contact-grid{grid-template-columns:1fr;}
  .about-image{max-width:480px;margin-inline:auto;}
  .pillar-grid{grid-template-columns:repeat(2,1fr);}
  .program-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
}

@media (max-width:820px){
  .main-nav{
    position:fixed;
    top:var(--header-h);
    right:0;
    height:calc(100vh - var(--header-h));
    width:min(320px, 82vw);
    background:var(--navy-900);
    flex-direction:column;
    align-items:flex-start;
    padding:2.2rem 1.8rem;
    gap:2rem;
    transform:translateX(100%);
    transition:transform .35s ease;
    z-index:96;
    overflow-y:auto;
    box-shadow:-8px 0 30px rgba(0,0,0,.25);
  }
  .main-nav.is-open{transform:translateX(0);}
  .main-nav ul{flex-direction:column;gap:1.4rem;width:100%;}
  .main-nav a{font-size:1.05rem;}
  .nav-donate{width:100%;justify-content:center;}
  .hamburger{display:flex;}
  .brand-text strong{font-size:1rem;}
  .brand-text em{font-size:.68rem;}
}

@media (max-width:720px){
  .stats-grid{grid-template-columns:repeat(2,1fr);row-gap:2rem;}
  .pillar-grid{grid-template-columns:1fr;}
  .program-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .cta-inner{flex-direction:column;align-items:flex-start;}
  .section{padding:4rem 0;}
  .slider-arrow{width:38px;height:38px;}
}

@media (max-width:480px){
  .brand-text{display:none;}
  .slide-content{padding-bottom:2rem;}
  .event-card{flex-direction:row;align-items:flex-start;}
}
