/* ===== ISKCON Pinjore — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #2d2d2d;
  background: #faf8f5;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .25s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- Color Tokens ---------- */
:root {
  --clr-saffron:  #e8a317;
  --clr-maroon:   #8b1a1a;
  --clr-gold:     #d4a843;
  --clr-cream:    #fdf6ec;
  --clr-dark:     #1a1a1a;
  --clr-white:    #ffffff;
  --clr-pink:     #c2185b;
  --clr-pink-dark:#9c1450;
  --clr-body-bg:  #faf8f5;
  --clr-text:     #2d2d2d;
  --clr-text-light:#666;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.15);
  --radius:       12px;
  --nav-height:   70px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.3; color: var(--clr-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
p  { margin-bottom: 1rem; }

/* ---------- Container ---------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

/* Logo */
.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.2rem; color: var(--clr-maroon);
}
.navbar__logo img { height: 42px; width: 42px; object-fit: contain; border-radius: 50%; }

/* Desktop Nav Links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 500; font-size: .95rem; color: var(--clr-text);
  transition: background .2s, color .2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--clr-cream); color: var(--clr-maroon);
}

/* Dropdown arrow */
.nav-links .has-dropdown > a::after {
  content: ''; display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; margin-left: 4px;
  transition: transform .3s;
}
.nav-links .has-dropdown:hover > a::after { transform: rotate(180deg); }

/* Dropdown Menu */
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px;
  background: var(--clr-white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-links .has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block; padding: 10px 20px; font-size: .9rem;
  color: var(--clr-text); transition: background .2s, color .2s;
}
.dropdown li a:hover { background: var(--clr-cream); color: var(--clr-maroon); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px;
  background: var(--clr-dark); border-radius: 4px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--clr-white); padding: 90px 24px 24px;
    box-shadow: var(--shadow-lg);
    transition: right .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06);
    border-radius: 0; font-size: 1rem;
  }
  .dropdown {
    position: static; box-shadow: none; padding: 0 0 0 16px;
    opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .has-dropdown.open-mobile .dropdown { max-height: 400px; }
  .dropdown li a { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.04); }
}
/* Mobile overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.3); z-index: 999;
}
.nav-overlay.show { display: block; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  margin-top: var(--nav-height);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
}
.hero__content {
  position: relative; z-index: 1; color: var(--clr-white);
  max-width: 720px; padding: 40px 20px;
}
.hero__content h1 {
  color: var(--clr-white); margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero__content p {
  font-size: 1.15rem; opacity: .9;
  margin-bottom: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: .95rem; border: none;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--clr-saffron); color: var(--clr-white); }
.btn--primary:hover { background: #d49312; }
.btn--outline {
  background: transparent; color: var(--clr-white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn--pink { background: var(--clr-pink); color: var(--clr-white); }
.btn--pink:hover { background: var(--clr-pink-dark); }
.hero__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   SECTIONS — General
   ================================================================ */
.section {
  padding: 80px 0;
}
.section--alt { background: var(--clr-cream); }
.section--dark {
  background: var(--clr-dark); color: var(--clr-white);
}
.section--dark h2, .section--dark h3 { color: var(--clr-white); }
.section__header {
  text-align: center; margin-bottom: 48px;
}
.section__header h2 { margin-bottom: 12px; }
.section__header p { color: var(--clr-text-light); max-width: 600px; margin: 0 auto; }

/* Decorative line under headings */
.section__header h2::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--clr-saffron); margin: 16px auto 0; border-radius: 4px;
}

/* ================================================================
   CARDS — Events / Features Grid
   ================================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--clr-white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .4s;
}
.card:hover .card__img { transform: scale(1.04); }
.card__img-wrap { overflow: hidden; }
.card__body { padding: 20px 24px 28px; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--clr-text-light); font-size: .92rem; }

/* ================================================================
   ABOUT SECTION (used on home page)
   ================================================================ */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.about-snippet__img {
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  width: 100%; height: 400px; object-fit: cover;
}
@media (max-width: 768px) {
  .about-snippet { grid-template-columns: 1fr; }
  .about-snippet__img { height: 260px; }
}

/* ================================================================
   GALLERY grid
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%; height: 240px; object-fit: cover;
  border-radius: var(--radius); cursor: pointer;
  transition: transform .35s, box-shadow .35s;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ================================================================
   PAGE HERO — smaller, used on inner pages
   ================================================================ */
.page-hero {
  position: relative; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  margin-top: var(--nav-height);
}
.page-hero .hero__bg { filter: brightness(.45); }
.page-hero h1 { color: var(--clr-white); text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.page-hero p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-top: 10px; }

/* ================================================================
   TEXT CONTENT
   ================================================================ */
.text-content { max-width: 820px; margin: 0 auto; }
.text-content h2 { margin-top: 32px; margin-bottom: 12px; }
.text-content p  { color: var(--clr-text); }
.text-content ul { margin-left: 20px; margin-bottom: 1rem; list-style: disc; }
.text-content li { margin-bottom: 6px; color: var(--clr-text); }

.purpose-list { counter-reset: purpose; }
.purpose-list li {
  counter-increment: purpose;
  padding: 20px 24px 20px 64px; position: relative;
  background: var(--clr-white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.purpose-list li::before {
  content: counter(purpose);
  position: absolute; left: 18px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--clr-saffron); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info__item {
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-info__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clr-cream); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
  color: var(--clr-maroon);
}
.contact-map {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { width: 100%; height: 360px; border: none; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--clr-pink); color: var(--clr-white);
  padding: 48px 0 24px;
}
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; }

.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
.footer__brand h3 {
  font-size: 1.3rem; color: var(--clr-white); margin-bottom: 10px;
}
.footer__brand p { opacity: .85; font-size: .9rem; line-height: 1.6; }
.footer__links h4 { margin-bottom: 14px; font-size: 1rem; color: var(--clr-white); }
.footer__links ul { display: flex; flex-direction: column; gap: 8px; }
.footer__links li a { font-size: .9rem; }
.footer__mantra {
  text-align: center; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; opacity: .9;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: .05s; }
.stagger > *:nth-child(2) { transition-delay: .15s; }
.stagger > *:nth-child(3) { transition-delay: .25s; }
.stagger > *:nth-child(4) { transition-delay: .35s; }
.stagger > *:nth-child(5) { transition-delay: .45s; }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* Back-to-top button */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clr-saffron); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; border: none; cursor: pointer;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* Programs schedule table */
.schedule-table {
  width: 100%; border-collapse: collapse; margin-top: 20px;
  background: var(--clr-white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.schedule-table th, .schedule-table td {
  padding: 14px 20px; text-align: left;
}
.schedule-table thead { background: var(--clr-maroon); color: #fff; }
.schedule-table tbody tr { border-bottom: 1px solid rgba(0,0,0,.06); }
.schedule-table tbody tr:hover { background: var(--clr-cream); }
@media (max-width: 600px) {
  .schedule-table th, .schedule-table td { padding: 10px 12px; font-size: .88rem; }
}

/* Articles placeholder */
.article-card {
  display: flex; gap: 20px; padding: 20px; background: var(--clr-white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 20px; transition: transform .3s, box-shadow .3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card__img {
  width: 120px; height: 100px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0;
}
.article-card__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.article-card__body p { font-size: .88rem; color: var(--clr-text-light); }
.article-card__body .tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  background: var(--clr-cream); color: var(--clr-saffron);
  font-size: .78rem; font-weight: 600; margin-top: 6px;
}
@media (max-width: 600px) {
  .article-card { flex-direction: column; }
  .article-card__img { width: 100%; height: 160px; }
}
