/*
Theme Name: Sri Hari Temple
Theme URI: https://sriharitemple.org
Author: Sri Hari Temple
Author URI: https://sriharitemple.org
Description: A sacred spiritual theme for Sri Hari Temple, Towrang NSW. Features devotional design with golden accents, full Stripe payment integration for donations, and all original pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sri-hari-temple
Tags: religious, spiritual, donation, temple, hindu
*/

/* =====================================================
   GOOGLE FONTS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* =====================================================
   CSS VARIABLES - SPIRITUAL COLOR PALETTE
   ===================================================== */
:root {
  --gold: #D4AF37;
  --saffron: #FF9933;
  --crimson: #C41E3A;
  --lotus: #F4A460;
  --sacred-blue: #1E3A8A;
  --earth-brown: #8B7355;
  --cream: #FFF8F0;
  --ivory: #FFFFF0;
  --charcoal: #36454F;
  --stone: #A9A9A9;
  --accent: #D4AF37;
  --accent-light: rgba(212,175,55,0.1);
  --accent-border: rgba(212,175,55,0.2);
  --foreground: #1C1917;
  --muted: #78716C;
  --muted-bg: #F5F5F4;
  --background: #FFFFF0;
  --card-bg: #FFFFFF;
  --border: #E7E5E4;
  --white: #FFFFFF;
  --radius: 0.5rem;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =====================================================
   CONTAINER
   ===================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,240,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.logo-om {
  font-size: 1.75rem;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  line-height: 1;
}
.logo-text { display: none; }
@media (min-width: 480px) { .logo-text { display: block; } }
.logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}
.logo-subtitle { font-size: 0.7rem; color: var(--muted); }

.main-nav { display: none; gap: 2rem; }
@media (min-width: 768px) { .main-nav { display: flex; align-items: center; } }
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--accent); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.btn-donate-nav {
  display: none;
  background: var(--accent);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  text-decoration: none;
}
@media (min-width: 480px) { .btn-donate-nav { display: inline-flex; align-items: center; gap: 0.375rem; } }
.btn-donate-nav:hover { opacity: 0.85; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: var(--foreground);
  transition: background 0.2s;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle:hover { background: var(--muted-bg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .btn-donate-mobile {
  display: block;
  margin-top: 0.75rem;
  background: var(--accent);
  color: var(--charcoal);
  text-align: center;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: var(--radius);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--charcoal);
  border-color: var(--accent);
}
.btn-primary:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline-dark:hover { background: var(--muted-bg); }
.btn-lg { font-size: 1.05rem; padding: 0.875rem 2rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card-body { padding: 1.5rem; }
.card-body-lg { padding: 2rem; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: 700px; } }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem 1rem;
  max-width: 750px;
  margin: 0 auto;
}
.hero-om { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1; }
@media (min-width: 768px) { .hero-om { font-size: 4.5rem; } }
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
.hero-subtitle { font-size: 1.25rem; font-weight: 300; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .hero-subtitle { font-size: 1.5rem; } }
.hero-desc { font-size: 1.05rem; margin-bottom: 0.75rem; font-weight: 300; }
.hero-quote { font-style: italic; margin-bottom: 2.5rem; opacity: 0.9; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 480px) { .hero-buttons { flex-direction: row; justify-content: center; } }

/* =====================================================
   SECTION UTILITIES
   ===================================================== */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-sm { padding: 3rem 0; }
.section-accent-bg { background: var(--accent-light); border-top: 1px solid var(--accent-border); border-bottom: 1px solid var(--accent-border); }
.section-muted-bg { background: var(--muted-bg); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-gradient-down { background: linear-gradient(to bottom, var(--accent-light), var(--background)); }
.section-gradient-right { background: linear-gradient(to right, var(--accent-light), rgba(212,175,55,0.05)); }

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
.section-subtitle {
  color: var(--muted);
  text-align: center;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header { margin-bottom: 3rem; }

/* =====================================================
   GRID LAYOUTS
   ===================================================== */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2,1fr); } }

.max-w-3xl { max-width: 768px; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 896px; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 1024px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.space-y > * + * { margin-top: 1.5rem; }
.space-y-sm > * + * { margin-top: 1rem; }

/* =====================================================
   SANSKRIT QUOTE BAND
   ===================================================== */
.quote-band {
  padding: 2.5rem 1rem;
  text-align: center;
  background: var(--accent-light);
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
}
.quote-sanskrit {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .quote-sanskrit { font-size: 1.875rem; } }
.quote-translation { font-size: 1rem; color: var(--muted); }

/* =====================================================
   HOME PAGE FEATURES
   ===================================================== */
.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 3rem; height: 3rem; color: var(--accent); }
.feature-img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto 1rem;
}
.feature-title {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.feature-desc { font-size: 0.875rem; color: var(--muted); text-align: center; }

/* =====================================================
   DEITY SHOWCASE
   ===================================================== */
.deity-section .deity-img {
  max-width: 400px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin: 0 auto;
}
.deity-section h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.deity-section p { color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.deity-row { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
@media (min-width: 768px) { .deity-row { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.deity-row.reverse .deity-img-wrap { order: 2; }
.deity-row.reverse .deity-text { order: 1; }
@media (max-width: 767px) { .deity-row.reverse .deity-img-wrap, .deity-row.reverse .deity-text { order: unset; } }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.pillar-card .pillar-tag { font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-top: 1rem; }
.unity-box {
  background: var(--background);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.unity-box h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.unity-box p { color: var(--muted); line-height: 1.75; }
.attributes { font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-top: 1rem; }

/* =====================================================
   SPIRITUAL PRACTICE PAGE
   ===================================================== */
.benefit-card { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-icon { flex-shrink: 0; }
.benefit-icon svg { width: 2rem; height: 2rem; color: var(--accent); margin-top: 0.25rem; }
.benefit-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.benefit-desc { color: var(--muted); font-size: 0.9rem; }

/* =====================================================
   SACRED SEVA PAGE
   ===================================================== */
.seva-name { font-size: 1.4rem; color: var(--accent); margin-bottom: 1rem; }
.seva-label { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.375rem; }
.seva-value { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.bank-detail { margin-bottom: 0.75rem; }
.bank-detail span:first-child { font-weight: 600; font-size: 0.875rem; display: block; }
.bank-detail span:last-child { color: var(--muted); font-size: 0.875rem; }

/* =====================================================
   VISIT US PAGE
   ===================================================== */
.icon-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.icon-row svg { width: 2rem; height: 2rem; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.icon-row h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.icon-row p, .icon-row li { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.hours-list li { margin-bottom: 0.25rem; }
.hours-list strong { color: var(--foreground); }
.guideline-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.guideline-card p { color: var(--muted); font-size: 0.9rem; }
.embed-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* =====================================================
   DONATE / PAYMENT PAGE
   ===================================================== */
.donate-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .donate-grid { grid-template-columns: 2fr 1fr; } }

.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.form-input, .form-select {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--foreground);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.form-group { margin-bottom: 1.25rem; }
.preset-amounts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.preset-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.375rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--foreground);
}
.preset-btn:hover, .preset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--charcoal);
}
.donate-sidebar .card { margin-bottom: 1.25rem; }
.donate-sidebar h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.donate-sidebar p, .donate-sidebar li { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.donate-sidebar ul { list-style: disc; padding-left: 1.2rem; }
.donate-sidebar ul li { margin-bottom: 0.25rem; }
.impact-card { border-left: 4px solid var(--accent); }

/* Stripe payment UI */
#payment-element { margin-bottom: 1.25rem; }
#payment-message {
  padding: 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
#payment-message.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; display: block; }
#payment-message.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; display: block; }
#payment-message.info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; display: block; }
.payment-secure { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; justify-content: center; }
.payment-secure svg { width: 1rem; height: 1rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 3rem 0;
}
@media (min-width: 768px) { .site-footer { padding: 4rem 0; } }
.footer-blessing {
  text-align: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-blessing p:first-child {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.footer-blessing p:last-child { font-size: 0.875rem; opacity: 0.75; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3,1fr); } }
.footer-col h3 { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 1rem; }
.footer-col p { font-size: 0.875rem; opacity: 0.75; line-height: 1.6; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; opacity: 0.75; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.875rem; opacity: 0.75; }
.footer-contact-item svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin-top: 0.15rem; }
.footer-social { display: flex; justify-content: center; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-social a { opacity: 0.7; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 1.25rem; height: 1.25rem; }
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}
.footer-copy p { margin-bottom: 0.25rem; }

/* =====================================================
   PAGE HERO BANNER (inner pages)
   ===================================================== */
.page-hero {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--accent-light), var(--background));
  text-align: center;
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 650px; margin: 0 auto; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section { padding: 4rem 0; text-align: center; }
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { color: var(--muted); font-size: 1.05rem; max-width: 550px; margin: 0 auto 2rem; }

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */
.hidden { display: none !important; }
@media (min-width: 768px) { .md-show { display: block !important; } }
@media (max-width: 767px) { .md-hide { display: none !important; } }

/* =====================================================
   WORDPRESS CORE ALIGNMENT CLASSES
   ===================================================== */
.wp-block-image { margin: 2rem 0; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
