/* ==========================================================================
   Sri Shiva Sai Mahaa Shakthi Peetham — Enterprise Modern Design System
   ========================================================================== */

/* ---------- CSS CUSTOM PROPERTIES & THEME TOKENS ---------- */
:root {
  /* Color Palette - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #fbf9f5;
  --bg-tertiary: #f4efe6;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(229, 231, 235, 0.8);
  
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  /* Brand Accent Colors (Warm Saffron / Amber / Terracotta) */
  --brand-primary: #c2410c;
  --brand-primary-hover: #9a3412;
  --brand-accent: #ea580c;
  --brand-gold: #b45309;
  --brand-gold-soft: #fef3c7;
  --brand-saffron: #d97706;
  
  /* Dark Accents & Contrast Surface */
  --surface-dark: #111827;
  --surface-dark-2: #1f2937;
  --surface-dark-border: #374151;
  --text-dark-contrast: #f9fafb;
  
  /* Semantic Colors */
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-info: #0284c7;
  --color-info-bg: #f0f9ff;
  
  /* Glassmorphism & Shadows */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(17, 24, 39, 0.12);
  --shadow-glow: 0 0 25px rgba(234, 88, 12, 0.25);
  
  /* Radii & Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.85);
  --card-border: rgba(51, 65, 85, 0.8);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --brand-primary: #f97316;
  --brand-primary-hover: #ea580c;
  --brand-accent: #fb923c;
  --brand-gold: #fbbf24;
  --brand-gold-soft: rgba(251, 191, 36, 0.15);
  
  --glass-bg: rgba(30, 41, 59, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* ---------- RESET & BASE STYLES ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Theme toggle smooth transition (only active when toggle button is clicked) */
html.theme-transition, html.theme-transition body {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}


/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-hover);
}

/* Sacred Sanskrit Typography */
.devanagari {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  color: var(--brand-gold);
  font-weight: 400;
}

.eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.8em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
}

/* ---------- LAYOUT CONTAINERS ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ---------- TOP BAR ---------- */
.topbar {
  background-color: #0b1120;
  color: #f3f4f6;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar-contact-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* :not(.topbar-sponsor-badge) prevents this from tying in specificity with
   the badge's own color/font-size and silently overriding its amber styling. */
.topbar a:not(.topbar-sponsor-badge), .topbar-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.topbar a:not(.topbar-sponsor-badge):hover, .topbar-link:hover {
  color: var(--brand-accent, #f97316);
}

.topbar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.topbar .sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  user-select: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.topbar-usa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.topbar-sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  color: #fdba74;
  font-size: 0.76rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.topbar-sponsor-badge:hover {
  background: rgba(249, 115, 22, 0.25);
  color: #ffffff;
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.topbar-sponsor-badge strong {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .topbar-inner {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .topbar-inner::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- NAVIGATION BAR ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: all var(--transition-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary-hover));
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.35);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-mark {
  transform: scale(1.05) rotate(5deg);
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1.2;
  margin-top: 1px;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 700;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

/* :not(.nav-cta) keeps the "Book a Puja" button's own padding/font-size rule
   from being silently overridden — both selectors otherwise tie on specificity
   and this one would win by matching an extra element (a), squeezing the CTA
   text flush against its orange background. */
.nav-links > a:not(.nav-cta),
.nav-links > .has-dropdown > a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  text-decoration: none;
}

.nav-links > a:not(.nav-cta):hover,
.nav-links > .has-dropdown > a:hover {
  color: var(--brand-primary);
}

.nav-links > a:not(.nav-cta).active,
.nav-links > .has-dropdown > a.active {
  color: var(--brand-primary);
  font-weight: 700;
}

.nav-links > a:not(.nav-cta).active::after,
.nav-links > .has-dropdown > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: var(--brand-accent);
  border-radius: 2px;
}

/* =================================================================
   TIRUMALA.ORG INSPIRED TEMPLE DROPDOWN NAVIGATION SYSTEM
   ================================================================= */

.has-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dropdown-arrow {
  font-size: 0.72rem;
  display: inline-block;
  transition: transform 0.25s ease;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Hover effect on parent dropdown header tab (Tirumala style highlight) */
.has-dropdown:hover > .nav-link-dropdown,
.has-dropdown.open > .nav-link-dropdown {
  background: linear-gradient(135deg, var(--brand-saffron, #d97706), var(--brand-primary, #c2410c));
  color: #ffffff !important;
  border-radius: 6px 6px 0 0;
}

/* Base Dropdown Popup Panel (Tirumala style crisp container with saffron border) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: 0 6px 6px 6px;
  border: 1.5px solid var(--brand-saffron, #d97706);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
  box-sizing: border-box;
  max-height: 420px;
  overflow-y: auto;
}

[data-theme="dark"] .dropdown-menu {
  background: #1e293b;
  border-color: var(--brand-saffron, #d97706);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Show state */
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown Item (Tirumala.org list style) */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary, #111827);
  text-decoration: none;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.7);
  transition: all 0.18s ease;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
}

.dropdown-item:last-child {
  border-bottom: none;
}

[data-theme="dark"] .dropdown-item {
  color: #f1f5f9;
  border-bottom-color: rgba(51, 65, 85, 0.7);
}

.dropdown-item::after {
  display: none !important;
}

/* Saffron Diamond Bullet Symbol (◇) */
.dropdown-bullet {
  color: var(--brand-accent, #ea580c);
  font-size: 0.85rem;
  font-weight: bold;
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

/* Dropdown Text */
.dropdown-text {
  flex-grow: 1;
}

/* Item Hover Effect */
.dropdown-item:hover,
.dropdown-item:focus {
  background: #fff8f0;
  color: var(--brand-primary, #c2410c);
  padding-left: 20px;
  outline: none;
}

.dropdown-item:hover .dropdown-bullet,
.dropdown-item:focus .dropdown-bullet {
  color: var(--brand-primary, #c2410c);
  transform: translateX(3px) scale(1.15);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .dropdown-item:hover .dropdown-bullet {
  color: #fbbf24;
}

/* View All Item */
.dropdown-item.view-all {
  font-weight: 700;
  color: var(--brand-primary, #c2410c);
  background: rgba(217, 119, 6, 0.04);
}

/* ================================================================
   NAV CONTROLS (right side)
   ================================================================ */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: scale(1.08) rotate(15deg);
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
  transition: all var(--transition-fast) !important;
  white-space: nowrap;
}

.nav-cta:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(194, 65, 12, 0.42);
}

.nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.3rem;
  padding: 6px 10px;
  line-height: 1;
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--bg-secondary);
}

/* ================================================================
   RESPONSIVE — Mobile Navigation
   ================================================================ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 2px;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 9998;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; align-items: center; }

  /* Flat full-width links on mobile — :not(.nav-cta) so the CTA button
     keeps its own padding/shape instead of becoming a flat text row. */
  .nav-links > a:not(.nav-cta) {
    padding: 10px 12px;
    border-radius: 9px;
    display: block;
    width: 100%;
  }

  .nav-links > a:not(.nav-cta):hover {
    background: var(--bg-secondary);
  }

  /* Mobile dropdowns — stack vertically, visible when .open */
  .has-dropdown { width: 100%; }

  .nav-link-dropdown {
    padding: 10px 12px;
    border-radius: 9px;
    width: 100%;
    justify-content: space-between;
  }

  .nav-link-dropdown:hover {
    background: var(--bg-secondary);
  }

  .dropdown-menu,
  .dropdown-menu.mega-menu,
  .dropdown-menu.gallery-menu {
    position: static;
    transform: none !important;
    width: 100%;
    min-width: unset;
    box-shadow: none;
    border: 1px solid var(--card-border);
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-top: 4px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    transition: none;
  }

  .has-dropdown.open > .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown-menu::before { display: none; }

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

  .mega-header {
    padding: 4px 6px 10px;
    margin-bottom: 10px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }
}



/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 0;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(194, 65, 12, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--card-border);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 920px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero .shloka {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  color: var(--brand-gold);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-banner-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.hero-banner-img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(217, 119, 6, 0.3);
  border: 1px solid var(--card-border);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-banner-wrap:hover .hero-banner-img {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), 0 0 25px rgba(217, 119, 6, 0.4);
}

/* ---------- TRUST STRIP ---------- */
.trust {
  background-color: var(--surface-dark);
  color: var(--text-dark-contrast);
  padding: 36px 0;
  border-top: 1px solid var(--surface-dark-border);
  border-bottom: 1px solid var(--surface-dark-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.trust-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  color: #fdba74;
  font-weight: 800;
  line-height: 1;
}

.trust-lbl {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d1d5db;
  margin-top: 8px;
  font-weight: 600;
}

/* ---------- GLASS CARDS & SERVICES ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: var(--bg-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 1;
  transition: opacity var(--transition-normal), transform var(--transition-slow);
  filter: contrast(1.15) saturate(1.1);
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 0.32;
  transform: scale(1.08);
}

.service-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.4);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
  flex-grow: 1;
}

.service-card li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 22px;
}

.service-card li::before {
  content: "✓";
  color: var(--brand-accent);
  position: absolute;
  left: 0;
  font-weight: 800;
  font-size: 0.9rem;
}

/* ---------- SEARCH & FILTERS ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background: var(--card-bg);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.search-box {
  position: relative;
  min-width: 280px;
  flex-grow: 1;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover, .chip.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* ---------- FORMS ---------- */
form {
  background: var(--card-bg);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--card-border);
  background: var(--bg-primary);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

/* Force HTML5 Date Input Calendar Icon to White */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(100%);
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.field-error {
  color: var(--color-danger);
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}

.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--color-danger);
}

.field.invalid .field-error {
  display: block;
}

/* ---------- GALLERY LIGHTBOX & TILES ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tile {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--bg-secondary);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  z-index: 1;
}

.tile:hover .tile-img {
  transform: scale(1.08);
}

.tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 65%, transparent 100%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  z-index: 2;
  transition: padding-bottom 0.2s ease;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox-modal.open {
  display: grid;
}

.lightbox-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 32px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-container {
  position: fixed;
  /* Cleared to sit above the AI chat launcher button (chatbot.css), which
     also occupies the bottom-right corner on every page. */
  bottom: 96px;
  right: 24px;
  left: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.toast { max-width: min(360px, calc(100vw - 48px)); }

@media (max-width: 480px) {
  .toast-container { left: 16px; right: 16px; align-items: stretch; }
  .toast { max-width: none; }
}

.toast {
  pointer-events: auto;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  color: var(--text-dark-contrast);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.3s ease-out;
}

.toast.success { border-left: 4px solid var(--color-success); }
.toast.error { border-left: 4px solid var(--color-danger); }

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- FOOTER ---------- */
footer {
  background-color: var(--surface-dark);
  color: var(--text-dark-contrast);
  padding: 64px 0 32px;
  border-top: 1px solid var(--surface-dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

footer h4 {
  color: #fdba74;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

footer a, footer p {
  color: #d1d5db;
  font-size: 0.95rem;
}

footer a:hover { color: #fdba74; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }

.copyright {
  border-top: 1px solid var(--surface-dark-border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: #9ca3af;
}

/* Floating Call Button — kept on the opposite corner from the AI chat
   launcher (chatbot.css) so the two floating buttons never overlap. */
.mobile-call {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(194, 65, 12, 0.5);
  place-items: center;
  font-size: 1.4rem;
  text-decoration: none;
}

@media (max-width: 720px) {
  .mobile-call { display: grid; }
}

/* Card Thumbnail Images */
.card-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-secondary);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-card:hover .card-thumb {
  transform: scale(1.06);
}

/* ---------- ALBUM GALLERY SYSTEM ---------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 992px) {
  .album-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.album-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}
.album-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--brand-primary, #ea580c);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.album-card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}
.album-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.album-card:hover .album-card-img {
  transform: scale(1.06);
}
.album-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fef3c7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.album-card-info {
  padding: 14px 16px;
  background: var(--card-bg, #1e293b);
}
.album-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Breadcrumb Navigation */
.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.gallery-breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}
.gallery-breadcrumb a:hover {
  text-decoration: underline;
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}
.btn-back:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* Photo Tile Animations */
.photo-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.photo-tile:hover {
  transform: scale(1.04);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-tile:hover img {
  transform: scale(1.06);
}

/* Fullscreen Lightbox Overlay */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- VIDEO GALLERY STYLES ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 992px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.video-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.video-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--brand-primary, #ea580c);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.video-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #000;
}
.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.video-card:hover .video-card-thumb {
  transform: scale(1.06);
}
.video-play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.9);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  padding-left: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-card:hover .video-play-icon {
  transform: scale(1.15);
  background: var(--brand-primary, #ea580c);
}
.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fef3c7;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.video-card-info {
  padding: 14px 16px;
}
.video-category-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-gold, #fef3c7);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.video-card-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.video-card-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tab Filter Buttons */
.gallery-tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 30px;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--brand-primary, #ea580c);
  color: #ffffff;
  border-color: var(--brand-primary, #ea580c);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}




