/* ========== ROOT VARIABLES ========== */
:root {
  --saffron: #FF9933;
  --blue: #1E3A8A;
  --gold: #FBBF24;
  --white: #FFFFFF;
  --light-bg: #FFF8F0;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --card-bg: #FFFFFF;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light-bg);
  background-image: url('../images/gurdwara-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== NAVBAR ========== */
.navbar {
  background: linear-gradient(135deg, var(--saffron), var(--blue));
  color: var(--white);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: background 0.3s;
  font-weight: 500;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.2);
}

.lang-toggle {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.3);
}

/* ========== MAIN CONTAINER ========== */
.main-container {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section.active {
  display: block;
}

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

/* ========== CARDS ========== */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

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

/* ========== BUTTONS ========== */
.btn {
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-primary {
  background: var(--saffron);
  color: var(--white);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dark);
}

.btn:hover {
  filter: brightness(1.1);
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
}

/* ========== SANTHIYA BUTTON IN NAVBAR ========== */
.santhiya-btn {
  background: var(--saffron);
  color: white !important;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,153,51,0.4);
}

.santhiya-btn:hover {
  background: #e07b1f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,153,51,0.6);
}

/* ========== POP‑UP OVERLAY ========== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.popup-overlay.active {
  display: flex;
}

.popup-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  animation: slideUp 0.5s ease;
}

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

.popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #888;
}

.popup-close:hover { color: var(--saffron); }

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-lg {
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .nav-links {
    justify-content: center;
  }
}