/* Project cards */
.project-card .badge{ font-weight:600; }
.project-card .text-deep{ color:#cc6600; }

/* Play badge reused */
.play-badge{
  position:absolute; inset:0; margin:auto; width:52px; height:52px;
  display:grid; place-items:center; color:#fff; font-weight:700; font-size:22px;
  background:rgba(0,0,0,.45); border:2px solid rgba(255,255,255,.85);
  border-radius:50%; box-shadow:0 6px 16px rgba(0,0,0,.25);
}
/* =========================================
   Shivalayam
   ========================================= */

:root{
  /* Colors (devotional) */
  --saffron: #ff8c00;
  --deep-saffron: #cc6600;
  --maroon: #7a1f1f;
  --gold: #ffd166;
  --ink: #222;
  --text: #2e2e2e;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --soft: #fff6eb;

  /* Layout */
  --container: 1200px;
  --radius: 14px;

  /* Navbar */
  --nav-h: 76px;              
  --nav-bg: linear-gradient(90deg, var(--maroon), var(--deep-saffron));
  --nav-link: #ffffff;
  --nav-link-hover: var(--gold);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3{
  font-family: "Merriweather", Georgia, serif;
  margin: 0 0 .6rem 0;
  color: var(--ink);
}
p{ margin: 0 0 1rem 0; line-height: 1.7; color: var(--text); }
.lead{ font-size: 1.1rem; color: var(--muted); }
.center{ text-align: center; }

/* Layout helper */
.container{
  width: 92%;
  max-width: var(--container);
  margin-inline: auto;
}

/* ===== NAVBAR ===== */
.temple-header{ position: sticky; top: 0; z-index: 1000; }
.temple-nav{
  height: var(--nav-h);
  background: var(--nav-bg);
  color: var(--nav-link);
  box-shadow: 0 3px 18px rgba(0,0,0,.18);
}
.nav-inner{
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand (logo + name) */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nav-link);
  font-weight: 600;
  letter-spacing: .2px;
}
.brand-logo{
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  padding: 4px;
}
.brand-name{ font-size: 1.05rem; }

/* Menu */
.menu{
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a{
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease, border-color .2s ease;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}
.menu a:hover{ color: var(--nav-link-hover); border-bottom-color: var(--nav-link-hover); }
.menu a.active{ border-bottom-color: var(--gold); }

/* Mobile toggle */
.nav-toggle{
  display: none;
  width: 42px; height: 36px;
  border: 0; background: transparent; cursor: pointer;
}
.nav-toggle .bar{
  display: block; width: 100%; height: 3px; margin: 6px 0;
  background: #fff; border-radius: 2px;
}
.sr-only{ position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }

/* ===== HERO ===== */
.hero{
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background: #000;
  background-image: var(--hero-img);
  background-position: center;
  background-size: cover;
  display: grid;
  place-items: center;
  color: #fff;
}
.hero .overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
}
.hero-inner{
  position: relative;
  text-align: center;
  padding: 80px 0;
}
.hero h1{
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.9);
}
.hero p{
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #ffe7c0;
  margin-top: .5rem;
}
.hero-actions{ margin-top: 1.2rem; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn{
  display: inline-block;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-light{ background: #ffffff; color: #222; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.btn-light:hover{ background: #f2f2f2; }
.btn-gold{ background: var(--gold); color: #000; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn-gold:hover{ background: #ffc84d; }
.btn-outline{
  border: 2px solid var(--deep-saffron);
  color: var(--deep-saffron);
  padding: .7rem 1.1rem;
  border-radius: 10px;
}
.btn-outline:hover{ background: var(--deep-saffron); color: #fff; }

/* ===== SECTIONS ===== */
.section{ padding: 70px 0; }
.soft-bg{ background: var(--soft); }
.section-title{
  text-align: center;
  color: var(--deep-saffron);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin-bottom: 18px;
  position: relative;
}
.section-title::after{
  content:""; display:block; width: 82px; height: 3px;
  background: var(--saffron); margin: 10px auto 0; border-radius: 2px;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card{
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,.15); }
.card h3{ color: var(--deep-saffron); margin-bottom: 6px; }

/* Map */
.map-wrap{ border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.08); }

/* ===== FOOTER ===== */
.footer{
  background: linear-gradient(90deg, var(--maroon), var(--deep-saffron));
  color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: .95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px){
  .cards{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px){
  .nav-toggle{ display: inline-block; }
  .menu{
    position: absolute; right: 0; top: var(--nav-h);
    width: 100%;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 18px 12px;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
  .menu.open{ max-height: 340px; }
  .menu li{ width: 100%; }
  .menu a{ display: block; padding: 10px 6px; border: 0; }
  .cards{ grid-template-columns: 1fr; }
}

/* Inner pages */
.text-deep { color: #cc6600; }
.soft-bg   { background: #fff6eb; border-radius: 12px; }
.list-group-item a { text-decoration: none; color: #333; }
.list-group-item a:hover { color: #cc6600; }


/* ===== Sub Hero (inner pages) ===== */
.sub-hero{
  position: relative;
  min-height: 220px;              /* small height banner */
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg,#7a1f1f,#cc6600); /* fallback colors */
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sub-hero .overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.25));
}
.sub-hero .container{
  position: relative;
  z-index: 1;
}
.sub-hero h1{
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  text-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.breadcrumb-simple{
  color: #ffe7c0;
  margin-top: 6px;
  font-size: .95rem;
  opacity: .95;
}
.breadcrumb-simple a{ color:#fff; text-decoration:none; }
.breadcrumb-simple a:hover{ color:#ffe066; }

/* Navbar sizing & layer */
.saffron-nav { 
  background: linear-gradient(90deg, #7a1f1f, #cc6600) !important;
  height: 80px;                 /* navbar height */
  z-index: 1035;                /* above banners/overlays */
}
.saffron-nav .navbar-brand,
.saffron-nav .nav-link { padding-top: .9rem; padding-bottom: .9rem; }
.nav-spacer { height: 80px; }   /* match navbar height */

/* Inner-page banner */
.sub-hero{
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg,#7a1f1f,#cc6600); /* fallback if no image */
  background-size: cover; background-position: center;
}
.sub-hero .overlay{ position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.45),rgba(0,0,0,.25)); }
.sub-hero .container{ position: relative; z-index: 1; }
.sub-hero h1{ margin:0; font-size: clamp(1.6rem, 4.5vw, 2.2rem); text-shadow: 0 4px 16px rgba(0,0,0,.35); }
.breadcrumb-simple{ color:#ffe7c0; margin-top:6px; font-size:.95rem; }
.breadcrumb-simple a{ color:#fff; text-decoration:none; }
.breadcrumb-simple a:hover{ color:#ffe066; }


/* === Gallery Styles === */
.gallery-thumb{
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8f3ea, #ffe4c2);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.img-cover{ width:100%; height:100%; object-fit:cover; display:block; }

/* Styled placeholder when image not found */
.gallery-thumb.is-placeholder{
  display: grid;
  place-items: center;
  background: radial-gradient( circle at 30% 20%, #fff1d6 0%, #ffd9a3 40%, #f4b76e 100% );
  color:#7a1f1f;
}
.gallery-thumb.is-placeholder::before{
  content:"🕉";
  font-size: 42px;
  opacity: .9;
}
.gallery-thumb.is-placeholder::after{
  content:"Image coming soon";
  position:absolute; bottom:10px; left:0; right:0;
  text-align:center; font-size: 12px; color:#5b3a0a;
  opacity:.9;
}

/* Card caption */
.gallery-card .caption{
  text-align:center;
  font-weight:600;
  color:#cc6600;
  margin-top: .45rem;
  font-size:.95rem;
}
.gallery-card:hover .caption{ color:#7a1f1f; }

/* Modal */
.modal-content.bg-dark{
  background:#000;
}

/* Video badge */
.video-thumb{ position:relative; }
.play-badge{
  position:absolute; inset:auto auto 10px 10px;
  background: rgba(0,0,0,.65); color:#fff; border-radius:50%;
  width:42px; height:42px; display:grid; place-items:center; font-size:18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.gallery-card:hover .play-badge{ background: rgba(204,102,0,.9); }

/* Modal bg */
.modal-content.bg-dark{ background:#000; }

/* === HERO that uses --hero-img === */
.hero{
  position: relative;
  min-height: calc(100vh - 80px); /* match navbar height */
  display: flex; align-items: center; text-align: center;
  color: #fff;

  /* Use longhands so the var isn't wiped by a shorthand later */
  background-color: #000;
  background-image: var(--hero-img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('../images/shiva-bg.png');
}

/* Gradient overlay */
.hero .overlay{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  z-index: 1;
}
.hero .hero-inner{ position: relative; z-index: 2; }

/* Subtle parallax (desktop only; mobile scroll is normal) */
.hero.parallax{ background-attachment: fixed; }
@media (max-width: 992px){
  .hero.parallax{ background-attachment: scroll; }
}

/* Soft devotional pattern layered over the gradient */
.hero.pattern-shakti .overlay{
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.35)),
    radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: auto, 28px 28px;      /* pattern size */
  background-position: center, center;
  background-blend-mode: normal, soft-light;
}

/* --- Mobile navbar dropdown background (for all pages) --- */
.saffron-nav{ overflow: visible; } /* allow dropdown to extend below the bar */

@media (max-width: 991.98px){
  .saffron-nav .navbar-collapse{
    position: absolute;      /* anchor to the navbar */
    top: 100%;               /* just below the bar */
    left: 0; right: 0;
    background: linear-gradient(180deg,#7a1f1f,#cc6600) !important; /* solid bg */
    padding: 12px 16px 14px;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 1040;           /* above banners */
  }
  .saffron-nav .navbar-collapse .nav-link{
    color: #fff !important;
    padding: 10px 6px;
    font-size: 1rem;
  }
  .saffron-nav .navbar-toggler{ z-index: 1050; } /* keep button above */
}


/* ===== Fixed Footer (all pages) ===== */
:root{
  --footer-h: 56px;             /* footer height */
}

/* keep your existing .footer gradient/colors as-is */
.footer-fixed{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  display: flex; align-items: center;
  z-index: 1030;                 /* above page content */
  box-shadow: 0 -6px 18px rgba(0,0,0,.15);
}

/* prevent content from going under the fixed footer */
body{
  padding-bottom: calc(var(--footer-h) + 12px);
}

/* optional: a tad taller footer on small screens */
@media (max-width: 576px){
  :root{ --footer-h: 64px; }
}
