/* =========================================================
   Temple Website – Core Site Styles
   Scope: index.html, about.html, info pages
   NO donation / NO forms / NO vh locks
   ========================================================= */

/* =========================
   Design Tokens
   ========================= */
:root {
  --temple-ink: #1f160f;
  --temple-maroon: #7b1f1b;
  --temple-saffron: #e07a2f;
  --temple-saffron-dark: #c45d1e;
  --temple-gold: #f1c36a;
  --temple-leaf: #2f5d45;

  --color-primary: var(--temple-saffron);
  --color-primary-dark: var(--temple-saffron-dark);
  --color-gray: #5a4a3f;
  --color-gray-dark: #2b241f;
  --color-gray-light: #9c8c7a;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --font-sans-alt: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

}

/* =========================
   Base
   ========================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  padding-top: 88px; /* MUST match header height */
  color: var(--temple-ink);

  background:
    radial-gradient(circle at 10% 15%, rgba(242,197,110,.35), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(123,31,27,.18), transparent 60%),
    linear-gradient(180deg, #fffaf0 0%, #f3dec1 100%);

  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


main {
  flex: 1;
}

/* .site-hero {
  padding: 0 clamp(1.5rem, 3vw, 3.5rem) clamp(1.5rem, 3vw, 3.5rem);
} */
/* =========================
   Top Bar
   ========================= */

.site-topbar {
  position: fixed;            /* was sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;

  background: rgba(255, 250, 240, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(123,31,27,.12);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;          /* slightly tighter */
  flex-wrap: nowrap;    /* prevents ugly wrapping */
  margin-left: auto;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  color: var(--temple-ink);
  font-size: 0.85rem;   /* ⬅ reduced menu font size */
  letter-spacing: 0.03em;
  padding-bottom: 0.2rem;
}

.nav-cta {
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--temple-saffron),
    var(--temple-maroon)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}


.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;   /* forces next line */
  line-height: 1.15;
}
.brand-name {
  /* font-family: var(--font-serif); */
  font-size: 1.1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--temple-maroon);
}
.brand-subtitle {
  font-size: 0.85rem;       /* slightly smaller */
  color: var(--color-gray);
  margin-top: 0.15rem;
}


/* =========================
   HERO BANNER (STANDARD)
   ========================= */

.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(460px, 55vh, 560px);
  overflow: hidden;
}

/* Works whether you use .hero-banner-image or just <img> */
.hero-banner img,
.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* center / default crop */
  display: block;
}

/* Overlay: use ONLY ONE approach.
   If your HTML has <div class="hero-banner-overlay"></div>, keep this: */
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 10, 5, 0.65),
    rgba(15, 10, 5, 0.35),
    rgba(15, 10, 5, 0.75)
  );
  pointer-events: none;
}

/* Disable pseudo overlay to avoid double overlay */
.hero-banner::after {
  display: none;
}

/* =========================
   HERO CARD (STANDARD)
   ========================= */

.site-hero {
  position: relative;
  margin-top: -80px;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero-shell {
  max-width: 1180px;
  margin: 0 auto;

  padding-inline: clamp(1.75rem, 3vw, 3rem);
  padding-top: clamp(1rem, 2vw, 1.6rem);
  padding-bottom: clamp(1.75rem, 3vw, 3rem);

  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,252,246,.98), rgba(248,228,196,.92));
  border: 1px solid rgba(123,31,27,.12);
  box-shadow: 0 28px 70px rgba(38,23,12,.18);
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--temple-maroon);
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--temple-saffron-dark);
  white-space: nowrap;
}

.hero-lede {
  color: var(--color-gray);
  white-space: nowrap;
}

.hero-notes {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
}

.note-value {
  white-space: nowrap;
}


/* Reveal animation (global) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeRise 0.8s ease forwards;
  animation-delay: var(--delay, 0ms);
}
/* Eyebrow base */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--temple-leaf); 
}

/* Default eyebrow inside the hero card (light background) */
.site-hero .eyebrow {
  color: var(--temple-leaf);
  opacity: 1;
}

/* .eyebrow, */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--temple-leaf);
  display: block;
}

/* --- Reveal animation (used in events/contact/about) --- */

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* If user prefers reduced motion, don't hide content */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================
   HERO VERTICAL RHYTHM (STANDARD)
   ========================= */

.site-hero .hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 0.9vw, 0.75rem);
}

.site-hero .hero-copy > * {
  margin: 0; 
}

/* Buttons + highlights should not introduce random spacing */
.site-hero .hero-actions,
.site-hero .hero-highlights {
  /* margin-top: 0;
}
.site-hero .hero-actions { */
  margin-top: clamp(0.75rem, 1.2vw, 1.15rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Tighten eyebrow/title/subtitle grouping */
.site-hero .hero-copy .eyebrow + .hero-title {
  margin-top: -0.1rem;
}

.site-hero .hero-copy .hero-title + .hero-subtitle {
  margin-top: -0.15rem;
}



/* =========================
   Sections
   ========================= */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-title {
  /* font-family: var(--font-serif); */
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--temple-maroon);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-lede {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray);
  margin-top: 0;
  /* line-height: 1.6; */
  max-width: none;
}

/* =========================
   Cards
   ========================= */
.card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(123,31,27,.14);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: 0 14px 30px rgba(45,28,16,.1);
}

/* =========================
   FORM CONTAINER
   ========================= */


/* Footer is always visible */
.form-footer {
  position: static;
  padding: 0.75rem 0;
  flex-shrink: 0;
}

/* Footer */
.form-footer {
  gap: 0.5rem;
}

/* =========================
   FOOTER (GLOBAL)
   ========================= */

.site-footer {
  position: relative;
  background: linear-gradient(
    135deg,
    #0f0f0f 0%,
    #1c1a18 45%,
    #0b0b0b 100%
  );
  color: #f6e9d5;
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 3rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(241,195,106,.2), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(123,31,27,.25), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}


/* Prevent home page overrides on footer */
.home-hero + .site-footer,
.site-footer {
  margin-top: 3rem;
}

.footer-map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(241, 195, 106, 0.3);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.footer-map-frame iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  filter: saturate(0.9);
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.site-footer h3 {
  margin: 0;
  /* font-family: var(--font-serif); */
  font-size: 1.25rem;
  color: var(--temple-gold);
}

.footer-social {
  display: flex;       /* ✅ horizontal */
  gap: 0.6rem;
  align-items: center;
  flex-wrap: nowrap;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(241,195,106,0.18);   /* blends with footer */
  color: var(--temple-gold);

  backdrop-filter: blur(6px);
  border: 1px solid rgba(241,195,106,0.25);

  transition: 
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-social a:hover {
  background: rgba(241,195,106,0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}


.footer-social a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-social a svg * {
  fill: currentColor;                 /* applies to filled icons */
  stroke: currentColor;               /* applies to outline icons */
}


/* --- Footer structure (website.css had the layout pieces) --- */
.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--temple-gold);
}

.footer-brand span {
  font-size: 0.95rem;
  color: #f3e7d0;
}

.footer-desc {
  margin: 0;
  max-width: 420px;
  line-height: 1.7;
  color: #e6dcc7;
}

.footer-rule {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: var(--temple-gold);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #f2e8d4;
}

.footer-contact-list a {
  color: #f2e8d4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-contact-list a:hover {
  border-bottom-color: var(--temple-gold);
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(241, 195, 106, 0.15);
  color: var(--temple-gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241, 195, 106, 0.2);
  color: #e1d5bf;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.footer-social{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.site-footer .footer-social{
  display: flex !important;
  flex-direction: row !important;
}



/* --- Card styling used everywhere --- */

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--temple-leaf);
}

.card-title {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
  color: var(--temple-ink);
}

.card-tag {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(123, 31, 27, 0.12);
  color: var(--temple-maroon);
}


.form-inline {
  display: grid;
  gap: 0.5rem;
}

.form-inline label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray);
}

.inline-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.inline-controls input {
  flex: 1;
}

/* --- Buttons (CTA styling used everywhere) --- */
.btn {
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 40px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--temple-saffron), var(--temple-maroon));
  color: #fff;
  box-shadow: 0 12px 26px rgba(123, 31, 27, 0.25);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--temple-saffron-dark), var(--temple-maroon));
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(123, 31, 27, 0.35);
  color: var(--temple-maroon);
  box-shadow: none;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(242, 197, 110, 0.7);
  color: var(--temple-maroon);
  box-shadow: none;
}

/* --- Common reusable cards used on index/about/home --- */
.info-card,
.service-card,
.event-card,
.contact-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(123, 31, 27, 0.14);
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 14px 30px rgba(45, 28, 16, 0.1);
}

.info-card h3,
/* .service-card h3, */
.event-card h3,
.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--temple-maroon);
}
.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem; /* base default */
  color: var(--temple-maroon);
}

/* --- Common grids used across pages --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}



/* ---------- Misc ---------- */
.hint {
  font-size: 0.8125rem; /* ~13px */
  color: var(--color-gray-light);
  line-height: 1.4;
}
/* .blessing {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500; 
}
.hidden {
  display: none !important;
} */

/* =========================
   Responsive
   ========================= */


/* -------- Mobile -------- */

@media (max-width: 720px) {
  .topbar-inner {
    align-items: stretch;
  }

  .hero-title,
  .hero-subtitle,
  .hero-lede {
    text-align: left;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 72px; /* header height on mobile */
  }

  .site-topbar {
    backdrop-filter: blur(8px);
  }
}

/* -------- Tablet & below -------- */
/* 
@media (max-width: 860px) {
  .events-layout {
    flex-direction: column;
  }

  .events-aside {
    position: static;
    width: 100%;
    flex: 1 1 auto;
  }

  .events-section .event-card {
    grid-template-columns: 1fr;
  }

  .event-date-block {
    width: fit-content;
  }
} */

@media (max-width: 900px) {
  #lookupScreen.donation-screen {
    display: block !important;
    min-height: auto !important;
    flex-direction: initial !important;
  }

  .site-hero {
    margin-top: -60px;
  }

  .hero-title,
  .hero-subtitle {
    text-align: center;
  }

  .hero-lede {
    text-align: center;
    margin: 0 auto;
  }
}

/* -------- Tablet & below -------- */
@media (max-width: 980px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    gap: 0.9rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-image--primary {
    height: 280px;
  }

  .hero-notes,
  .hero-badges,
  .link-grid,
  .visit-grid,
  .snapshot-grid,
  .timings-grid,
  .testimonials-grid,
  .contact-map-grid,
  .services-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-grid,
  .donation-grid,
  .contact-grid,
  .about-layout,
  .timeline-grid,
  .contact-layout,
  .contact-message-grid {
    grid-template-columns: 1fr;
  }

  .visual-frame {
    max-width: 520px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-map-frame iframe {
    height: 200px;
  }

  .footer-bottom {
    text-align: center;
  }
}

/* ======================================================================== */

