/* ============================================================
   ISKCON Ahmedabad - Premium Temple Website
   Design: Sacred, devotional, culturally authentic
   ============================================================ */

/* ---------- CSS VARIABLES (Brand & Design) ---------- */
:root {
  --saffron: #FF9933;
  --deep-blue: #1E3A8A;
  --gold: #D4AF37;
  --cream: #FFF8E7;
  --charcoal: #333333;
  --white: #ffffff;
  --gradient-sunrise: linear-gradient(135deg, #fff5e6 0%, #FFF8E7 50%, #ffe8cc 100%);
  --gradient-hero: linear-gradient(180deg, rgba(30, 58, 138, 0.75) 0%, rgba(0, 0, 0, 0.85) 100%);
  --gradient-quote: linear-gradient(180deg, rgba(30, 58, 138, 0.7) 0%, rgba(0, 0, 0, 0.8) 100%);
  --shadow-soft: 0 4px 20px rgba(52, 52, 52, 0.08);
  --shadow-card: 0 8px 32px rgba(52, 52, 52, 0.1);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;
  --transition: 0.3s ease;
}

/* ---------- BASE & SMOOTH SCROLL ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ---------- 1. NAVBAR (Sticky, Transparent → Solid) ---------- */
#mainNav {
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background-color var(--transition), box-shadow var(--transition), color var(--transition);
}

#mainNav.navbar-solid {
  background-color: rgba(255, 248, 231, 0.98);
  box-shadow: var(--shadow-soft);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white) !important;
  transition: color var(--transition);
  text-decoration: none;
}

.navbar-logo {
  height: 42px;
  width: auto;
  max-height: 42px;
  display: block;
  object-fit: contain;
}

.navbar-brand-text {
  color: inherit;
}

#mainNav.navbar-solid .navbar-brand {
  color: var(--deep-blue) !important;
}

#mainNav .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition);
}

#mainNav.navbar-solid .nav-link {
  color: var(--charcoal) !important;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: var(--saffron) !important;
}

#mainNav.navbar-solid .nav-link:hover,
#mainNav.navbar-solid .nav-link:focus {
  color: var(--saffron) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.8);
}

#mainNav.navbar-solid .navbar-toggler {
  border-color: var(--deep-blue);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.navbar-solid .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231E3A8A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu: solid background when open so menu is clearly visible */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background-color: var(--cream);
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-soft);
  }
  #mainNav .navbar-collapse.show {
    background-color: rgba(255, 248, 231, 0.98);
  }
  #mainNav .navbar-collapse .nav-link {
    color: var(--charcoal) !important;
    border-bottom: 1px solid rgba(30, 58, 138, 0.08);
  }
  #mainNav .navbar-collapse .nav-link:last-child {
    border-bottom: none;
  }
  #mainNav .navbar-collapse .nav-link:hover,
  #mainNav .navbar-collapse .nav-link:focus {
    color: var(--saffron) !important;
  }
}

/* ---------- 2. HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--deep-blue);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--white);
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-hero {
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-visit {
  background-color: var(--white);
  color: var(--deep-blue);
  border: 2px solid var(--white);
}

.btn-visit:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-donate {
  background-color: var(--saffron);
  color: var(--white);
  border: 2px solid var(--saffron);
}

.btn-donate:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ---------- SECTION COMMON ---------- */
section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Section divider - lotus/mandala style (CSS only) */
.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* ---------- 3. ABOUT ---------- */
.section-about {
  background: var(--gradient-sunrise);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-intro-about {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.about-block {
  margin-top: 2.5rem;
}

.about-block-main {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.about-image-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(52, 52, 52, 0.12), 0 0 0 3px rgba(212, 175, 55, 0.35);
  position: relative;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.about-text {
  color: var(--charcoal);
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 1.25rem;
}

.about-block-founder {
  margin-top: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(30, 58, 138, 0.15);
}

.about-block-founder .about-subtitle {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.about-block-founder p {
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--deep-blue);
  border-left: 4px solid var(--saffron);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(255, 248, 231, 0.6);
  border-radius: 0 6px 6px 0;
}

.about-subtitle {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.text-charcoal {
  color: var(--charcoal);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

/* ---------- 4. TIMINGS ---------- */
.section-timings {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.timings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
}

.timing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--saffron);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timing-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.timing-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-blue);
}

.timing-time {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  background: rgba(255, 153, 51, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- 5. PROGRAMS CARDS ---------- */
.section-programs {
  background: var(--cream);
}

.program-card {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.program-card-inner {
  padding: 1.75rem;
  border-left: 4px solid var(--saffron);
}

.program-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
}

.program-card-text {
  color: var(--charcoal);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- 6. PARALLAX QUOTE ---------- */
.section-quote {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.quote-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--deep-blue);
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-quote);
  z-index: 1;
}

.quote-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.quote-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.quote-mantra {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--white);
  margin: 1rem 0 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.6;
}

/* ---------- 7. GALLERY ---------- */
.section-gallery {
  background-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  transition: transform var(--transition);
  text-decoration: none;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ---------- 8. YOUTUBE VIDEOS (Temple Discourses & Kirtans) ---------- */
.section-videos {
  background: linear-gradient(180deg, #fff9ed 0%, var(--cream) 100%);
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--charcoal);
  transition: box-shadow var(--transition);
}

.video-wrapper:hover {
  box-shadow: var(--shadow-card);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 9. CONTACT ---------- */
.section-contact {
  background-color: var(--white);
}

.contact-block {
  margin-bottom: 1.5rem;
}

.contact-block-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
}

.contact-block-text {
  color: var(--charcoal);
  margin: 0;
}

.contact-block-text a {
  color: var(--saffron);
  text-decoration: none;
  font-weight: 600;
}

.contact-block-text a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.map-placeholder {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 300px;
  background: var(--cream);
}

.map-placeholder iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.map-fallback {
  padding: 1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--charcoal);
}

/* ---------- 10. FOOTER ---------- */
.footer {
  background: var(--deep-blue);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--saffron);
}

.footer-social a {
  display: inline-block;
  margin-right: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-closing {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .quote-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }

  .section-quote {
    min-height: 380px;
  }

  .quote-content {
    padding: 1.5rem 1rem;
  }

  .about-block-main {
    padding: 1.5rem;
  }

  .about-quote {
    font-size: 1rem;
    padding: 0.6rem 0 0.6rem 1rem;
  }

  .timing-item {
    padding: 0.9rem 1.2rem;
    flex-wrap: wrap;
  }

  .timing-time {
    font-size: 0.95rem;
    padding: 0.3rem 0.65rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero {
    width: 100%;
    max-width: 280px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-closing {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  #mainNav .nav-link {
    padding: 0.65rem 1rem !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Extra small devices (phones in portrait, ~375px and below) */
@media (max-width: 399.98px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-logo {
    height: 36px;
    max-height: 36px;
  }

  .hero-content {
    padding: 1.5rem 0.75rem;
  }

  .footer-closing {
    font-size: 1rem;
  }

  .map-placeholder {
    min-height: 260px;
  }

  .map-placeholder iframe {
    height: 260px;
  }
}

/* ---------- SCROLL TO TOP (bottom right) ---------- */
.scroll-to-top {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  right: calc(1.5rem + env(safe-area-inset-right));
  z-index: 1000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--deep-blue);
  color: var(--cream);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background-color var(--transition);
}

.scroll-to-top:hover {
  background: var(--saffron);
  color: var(--charcoal);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top svg {
  display: block;
}
