/* ============================================================
   CHAUPEHRA BABA DEEP SINGH JI — Global Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Noto+Sans+Gurmukhi:wght@400;600&display=swap');

/* ── CSS Variables ── */
:root {
  --saffron:        #FF9933;
  --saffron-dark:   #CC7700;
  --saffron-glow:   rgba(255, 153, 51, 0.15);
  --navy:           #0D1B2A;
  --navy-mid:       #132234;
  --navy-light:     #1E3350;
  --white:          #FFFFFF;
  --off-white:      #F5F0E8;
  --muted:          #A0AEC0;
  --gurmukhi-gold:  #FFD580;
  --success:        #48BB78;
  --error:          #FC8181;

  --text-xs:   0.875rem;
  --text-sm:   1rem;
  --text-base: 1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.5rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius:    6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-base);
  line-height: 1.7;
  background: var(--navy);
  color: var(--off-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Gurmukhi font class ── */
.gurmukhi {
  font-family: 'Noto Sans Gurmukhi', sans-serif;
  color: var(--gurmukhi-gold);
  font-size: 1.1em;
  line-height: 1.5;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Section wrapper ── */
.section {
  padding: var(--space-24) 0;
}
.section--dark { background: var(--navy); }
.section--mid  { background: var(--navy-mid); }

/* ── Section heading ── */
.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--saffron);
  margin-top: var(--space-3);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  margin-bottom: var(--space-12);
}

/* ── Page title band ── */
.page-title-band {
  background: var(--navy-mid);
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--navy-light);
  margin-top: 72px; /* nav height */
}
.page-title-bilingual { display: flex; flex-direction: column; gap: var(--space-2); }
.page-title-primary {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.page-title-secondary {
  font-size: var(--text-xl);
  color: var(--gurmukhi-gold);
  margin: 0;
  opacity: 0.85;
}
.page-title-band::after {
  display: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 700;
  min-height: 52px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--saffron);
  color: var(--navy);
}
.btn-primary:hover { background: var(--saffron-dark); }
.btn-secondary {
  background: transparent;
  color: var(--saffron);
  border: 2px solid var(--saffron);
}
.btn-secondary:hover { background: var(--saffron-glow); }
.btn-block { width: 100%; }

/* ── Links ── */
.link-arrow {
  color: var(--saffron);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition);
}
.link-arrow:hover { gap: var(--space-3); }
.link-arrow::after { content: '→'; }

/* ── Cards ── */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

/* ── Forms ── */
.form-group { margin-bottom: var(--space-6); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--off-white);
  min-height: 52px;
  transition: border-color var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--saffron);
  border-width: 2px;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--navy-light); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A0AEC0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}
.form-select option { background: var(--navy-mid); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-2);
  display: none;
}
.form-error.visible { display: block; }
.form-success {
  text-align: center;
  padding: var(--space-12);
  display: none;
}
.form-success.visible { display: block; }
.form-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}
.form-success h3 {
  font-size: var(--text-xl);
  color: var(--success);
  margin-bottom: var(--space-2);
}
.form-success .gurmukhi {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-lg);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-light);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.nav-logo {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--saffron);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.nav-logo-en {
  display: block;
  color: var(--saffron);
  font-weight: 700;
}
.nav-logo-pa {
  display: block;
  font-family: 'Noto Sans Gurmukhi', sans-serif;
  font-size: var(--text-sm);
  color: var(--gurmukhi-gold);
  font-weight: 400;
}
.nav-logo span {
  display: block;
  font-family: 'Noto Sans Gurmukhi', sans-serif;
  font-size: var(--text-sm);
  color: var(--gurmukhi-gold);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--saffron);
  border-bottom-color: var(--saffron);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: 20px;
  overflow: hidden;
  font-size: var(--text-sm);
}
.lang-btn {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition);
  min-height: 36px;
}
.lang-btn.active {
  background: var(--saffron);
  color: var(--navy);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-overlay a {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--off-white);
  transition: color var(--transition);
}
.nav-overlay a:hover,
.nav-overlay a.active { color: var(--saffron); }
.nav-overlay .lang-toggle {
  margin-top: var(--space-8);
}

/* ── Recurring Chaupehra Sahib Banner ── */
.chaupehra-recurring {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-left: 4px solid var(--saffron);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.chaupehra-recurring-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.chaupehra-recurring-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--saffron);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.chaupehra-recurring-badge.recurring-badge--live {
  background: var(--error);
  color: var(--white);
  animation: pulse 1.5s ease-in-out infinite;
}
.chaupehra-recurring-badge.recurring-badge--today {
  background: var(--gurmukhi-gold);
  color: var(--navy);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.chaupehra-recurring-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chaupehra-recurring-name strong {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
}
.chaupehra-recurring-name .gurmukhi {
  font-size: 0.9em;
  color: var(--gurmukhi-gold);
}
.chaupehra-recurring-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--saffron);
}

/* ── Footer ── */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-light);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-brand .nav-logo { font-size: var(--text-xl); }
.footer-brand p {
  color: var(--muted);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  max-width: 280px;
}
.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-links li { margin-bottom: var(--space-3); }
.footer-links a {
  color: var(--muted);
  font-size: var(--text-sm);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--saffron); }
.footer-socials {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.footer-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: var(--muted);
  font-size: 0.75rem;
  transition: color var(--transition);
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
}
.footer-social-link:hover { color: var(--saffron); }
.footer-social-link svg { width: 24px; height: 24px; }
.footer-address {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.8;
}
.footer-address:hover { color: var(--saffron); }

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: var(--space-6);
  text-align: center;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-live { background: #E53E3E; color: white; animation: pulse-live 1.5s infinite; }
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-saffron { color: var(--saffron); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.hidden { display: none !important; }

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-2xl: 1.5rem;
  }
  .section { padding: var(--space-16) 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .page-title-band { padding: var(--space-12) 0 var(--space-8); }
  .page-title-primary { font-size: 2rem; }
}
