/* ==========================================================================
   Yadhav Sangam (Sri Krishna Welfare Society) - Design System
   Theme: Peacock Blue, Warm Gold & Saffron Accents
   ========================================================================== */

:root {
  --peacock-deep: #072a40;
  --peacock-primary: #0b3c5d;
  --peacock-light: #155e8a;
  --teal-accent: #0e7c7b;
  --gold-primary: #d4af37;
  --gold-light: #f3d576;
  --saffron: #e67e22;
  --saffron-dark: #c05600;
  --cream-bg: #fcf9f2;
  --cream-card: #ffffff;
  --cream-soft: #f5efe2;
  --text-dark: #1a2433;
  --text-muted: #526071;
  --border-subtle: rgba(11, 60, 93, 0.12);
  --border-gold: rgba(212, 175, 55, 0.45);
  --shadow-sm: 0 4px 14px rgba(7, 42, 64, 0.06);
  --shadow-md: 0 10px 30px rgba(7, 42, 64, 0.1);
  --shadow-lg: 0 18px 45px rgba(7, 42, 64, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Telugu', system-ui, -apple-system, sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Cinzel', 'Noto Sans Telugu', Georgia, serif;
  color: var(--peacock-deep);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Top Announcement / Blessing Bar
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, var(--peacock-deep), var(--peacock-primary), var(--teal-accent));
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid var(--gold-primary);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-blessing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-weight: 500;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Language Switcher */
.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--gold-primary);
  color: var(--peacock-deep);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252, 249, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 12px rgba(7, 42, 64, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

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

.brand-emblem {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peacock-primary), var(--teal-accent));
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--peacock-deep);
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--saffron-dark);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.35rem 0.25rem;
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--peacock-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 1.25rem;
  color: var(--peacock-deep);
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--peacock-primary), var(--peacock-deep));
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 60, 93, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 60, 93, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), #b88f1e);
  color: var(--peacock-deep);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-saffron {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #fff;
}

.btn-saffron:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-whatsapp {
  background: #25d366;
  color: #072a18;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--peacock-primary);
  color: #fff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--peacock-deep) 0%, var(--peacock-primary) 55%, #0d4f5c 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.16), transparent 50%),
              radial-gradient(circle at 15% 80%, rgba(230, 126, 34, 0.14), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  margin-bottom: 0.85rem;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.25rem;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
}

.stat-item span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.hero-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-caption {
  padding: 0.85rem 0.5rem 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--gold-light);
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background-color: var(--cream-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron-dark);
  background: rgba(230, 126, 34, 0.12);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.section-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  margin-bottom: 0.6rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 60, 93, 0.1), rgba(212, 175, 55, 0.2));
  color: var(--peacock-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ==========================================================================
   Leadership Cards
   ========================================================================== */
.leader-card {
  text-align: center;
}

.leader-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--peacock-primary), var(--teal-accent));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  border: 3px solid var(--gold-primary);
}

.leader-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--saffron-dark);
  background: rgba(230, 126, 34, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

/* ==========================================================================
   Events, Updates & Gallery
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--peacock-primary);
  color: #fff;
  border-color: var(--peacock-primary);
}

.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--peacock-primary);
  background: rgba(11, 60, 93, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--peacock-deep);
}

/* ==========================================================================
   Directory & Matrimony
   ========================================================================== */
.directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.search-input,
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(11, 60, 93, 0.22);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  background: #fff;
  color: var(--text-dark);
  transition: var(--transition);
}

.search-input:focus,
.form-control:focus {
  outline: none;
  border-color: var(--peacock-primary);
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.12);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.meta-chip {
  font-size: 0.78rem;
  background: var(--cream-soft);
  color: var(--peacock-deep);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Forms & Membership Card Preview
   ========================================================================== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--peacock-deep);
}

.membership-preview {
  background: linear-gradient(135deg, var(--peacock-deep), var(--peacock-primary));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.membership-preview h4 {
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Control Center Specific Styles
   ========================================================================== */
.control-banner {
  background: linear-gradient(135deg, var(--peacock-deep), #0d4f5c);
  color: #fff;
  padding: 2.5rem 0;
  border-bottom: 3px solid var(--gold-primary);
}

.control-banner h1 {
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.template-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.action-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.broadcast-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--cream-bg);
  margin-bottom: 0.65rem;
}

.broadcast-row > div:first-child {
  flex: 1 1 200px;
  min-width: 0;
}

.broadcast-row > div:last-child {
  flex-shrink: 0;
}

/* ==========================================================================
   Modal & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 42, 64, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  padding: 1.75rem;
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--peacock-deep);
  color: #fff;
  border-left: 4px solid var(--gold-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: var(--transition);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--peacock-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--gold-primary);
}

.footer h4 {
  color: var(--gold-light);
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
