/* ============================
   Jay Gurudev Charitable Trust
   Main Stylesheet
   ============================ */

:root {
  --navy: #0f2149;
  --navy-dark: #0a1730;
  --gold: #f0a72e;
  --gold-dark: #d98f1c;
  --cream: #f7f5f0;
  --text-dark: #1c2b45;
  --text-light: #6b7280;
  --white: #ffffff;
  --border-light: #e6e6e6;
  --shadow: 0 4px 20px rgba(15, 33, 73, 0.08);
  --radius: 14px;
}

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

body {
  font-family: 'Noto Sans Gujarati', 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  padding-bottom: 70px; /* space for bottom nav on mobile */
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Loader ===== */
.page-loader {
  position: fixed; inset: 0; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .4s ease;
}
.loader-spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.2); border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader.hide { opacity: 0; pointer-events: none; }

/* ===== Topbar ===== */
.topbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 500;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.brand-text { font-weight: 800; color: var(--navy); font-size: 15px; line-height: 1.2; max-width: 220px; }

.desktop-nav { display: none; align-items: center; gap: 22px; }
.desktop-nav a { font-weight: 600; color: var(--text-dark); font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.desktop-nav a.active, .desktop-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.btn-donate-nav {
  background: var(--gold) !important; color: var(--navy) !important;
  padding: 10px 22px !important; border-radius: 30px; font-weight: 700 !important;
  border-bottom: none !important;
}

.hamburger-btn {
  background: var(--navy); color: var(--white); border: none;
  width: 42px; height: 42px; border-radius: 10px; font-size: 18px; cursor: pointer;
}

/* ===== Sidebar Menu ===== */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(10,23,48,.5);
  z-index: 900; display: none;
}
.sidebar-overlay.show { display: block; }

.sidebar-menu {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
  background: var(--navy); color: var(--white); z-index: 950;
  transition: right .35s ease; padding: 22px; overflow-y: auto;
}
.sidebar-menu.show { right: 0; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.sidebar-head .brand-text { color: var(--white); font-size: 13px; }
.close-btn { background: rgba(255,255,255,.1); border: none; color: var(--white); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }

.sidebar-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.sidebar-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px; border-radius: 10px; font-weight: 600; font-size: 15px;
  color: rgba(255,255,255,.9);
}
.sidebar-links a:hover, .sidebar-links a.active { background: rgba(240,167,46,.15); color: var(--gold); }
.sidebar-links a i { width: 20px; text-align: center; }

.lang-switcher { display: flex; gap: 8px; background: rgba(255,255,255,.08); padding: 6px; border-radius: 30px; margin-bottom: 20px; }
.lang-btn { flex: 1; text-align: center; padding: 8px 0; border-radius: 24px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.lang-btn.active { background: var(--gold); color: var(--navy); }

.sidebar-social { display: flex; gap: 12px; }
.sidebar-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}

/* ===== Bottom Nav (mobile) ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
  background: var(--navy); display: flex; z-index: 500;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 600;
}
.bottom-nav a i { font-size: 17px; }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a.nav-donate-highlight { color: var(--gold); }

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative; overflow: hidden;
}
.hero-image {
  width: 100%; height: 260px; object-fit: cover; opacity: .85;
}
.hero-content { padding: 26px 20px 30px; color: var(--white); position: relative; }
.hero-content h1 { font-size: 26px; font-weight: 800; line-height: 1.3; }
.hero-content h1 span { color: var(--gold); }
.hero-content p { margin-top: 12px; color: rgba(255,255,255,.8); font-size: 14.5px; }

.hero-buttons { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }

/* ===== Stats ===== */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: var(--white); margin: -18px 20px 0; position: relative;
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.stat-item { display: flex; align-items: center; gap: 12px; }
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.stat-icon.blue { background: #e7edfb; color: #2a5bd7; }
.stat-icon.gold { background: #fdf1dc; color: var(--gold-dark); }
.stat-icon.pink { background: #fbe9ed; color: #d64d68; }
.stat-icon.green { background: #e5f6ea; color: #1f9d4f; }
.stat-num { font-weight: 800; font-size: 17px; color: var(--navy); }
.stat-label { font-size: 12px; color: var(--text-light); }

/* ===== Section Titles ===== */
.section-title { text-align: center; padding: 30px 20px 10px; }
.section-title h2 { font-size: 22px; font-weight: 800; color: var(--navy); }
.section-title .underline { width: 50px; height: 3px; background: var(--gold); margin: 10px auto 0; border-radius: 3px; }

/* ===== About Page Cards ===== */
.about-hero-img { width: 100%; height: 220px; object-fit: cover; }
.about-block { padding: 20px; }
.about-block p { color: var(--text-light); font-size: 14.5px; margin-bottom: 20px; }

.value-card { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.value-icon { width: 44px; height: 44px; border-radius: 50%; background: #fdf1dc; color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.value-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.value-card p { font-size: 13.5px; color: var(--text-light); margin: 0; }

.cta-box { background: var(--navy); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cta-box img { width: 44px; height: 44px; border-radius: 50%; }
.cta-box h4 { color: var(--white); font-size: 15px; margin-bottom: 10px; }
.cta-box .btn-gold { padding: 9px 18px; font-size: 13px; }

/* ===== Activities Cards ===== */
.activities-grid { padding: 10px 20px 30px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.activity-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.activity-card img { height: 170px; object-fit: cover; }
.activity-card .content { padding: 16px; }
.activity-card h3 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.activity-card p { color: var(--text-light); font-size: 13.5px; }

/* ===== Trustees ===== */
.trustee-grid { padding: 10px 20px 30px; display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.trustee-card { background: var(--white); border-radius: var(--radius); text-align: center; padding: 18px 12px; box-shadow: var(--shadow); }
.trustee-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid var(--gold); }
.trustee-card h4 { font-size: 14px; color: var(--navy); }
.trustee-card span { font-size: 12px; color: var(--text-light); }

/* ===== Gallery ===== */
.gallery-tabs { display: flex; gap: 10px; padding: 0 20px 16px; }
.gallery-tab { flex: 1; text-align: center; padding: 10px; border-radius: 30px; font-weight: 700; font-size: 13.5px; background: var(--white); color: var(--navy); box-shadow: var(--shadow); cursor: pointer; }
.gallery-tab.active { background: var(--navy); color: var(--white); }
.gallery-grid { padding: 0 20px 30px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.gallery-grid img { border-radius: 10px; height: 130px; object-fit: cover; width: 100%; }
.gallery-grid .video-item { position: relative; }
.gallery-grid .video-item i { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; font-size: 26px; background: rgba(0,0,0,.4); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ===== Donation Page ===== */
.donation-banner { background: var(--navy); border-radius: var(--radius); margin: 16px 20px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.donation-banner h3 { color: var(--white); font-size: 17px; line-height: 1.4; }
.donation-banner .heart-icon { font-size: 30px; color: #e0455f; }

.donation-card { background: var(--white); border-radius: var(--radius); margin: 0 20px 20px; padding: 20px; box-shadow: var(--shadow); }
.donation-card h4 { color: var(--navy); font-size: 15px; margin-bottom: 14px; }
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.amount-btn { padding: 12px 0; text-align: center; border-radius: 10px; border: 1.5px solid var(--border-light); font-weight: 700; color: var(--navy); cursor: pointer; background: var(--white); }
.amount-btn.selected { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.payment-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; border: 1.5px solid var(--border-light); border-radius: 10px; margin-bottom: 10px; cursor: pointer;
}
.payment-option.selected { border-color: var(--gold); background: #fff8ec; }
.payment-option .left { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.payment-option .icon { width: 34px; height: 34px; border-radius: 8px; background: var(--cream); display: flex; align-items: center; justify-content: center; }

/* ===== Forms ===== */
.form-card { background: var(--white); border-radius: var(--radius); margin: 16px 20px 30px; padding: 22px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--border-light);
  font-size: 14px; font-family: inherit; background: var(--cream);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.btn-submit { width: 100%; background: var(--gold); color: var(--navy); padding: 15px; border-radius: 10px; font-weight: 800; font-size: 15px; border: none; cursor: pointer; }
.btn-submit:hover { background: var(--gold-dark); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); margin-top: 30px; padding: 40px 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px 30px; display: grid; gap: 30px; grid-template-columns: 1fr; }
.footer-col .brand-text { color: var(--white); }
.footer-col p { font-size: 13.5px; margin-top: 12px; }
.footer-col h4 { color: var(--white); margin-bottom: 14px; font-size: 15px; }
.footer-col a { display: block; font-size: 13.5px; padding: 5px 0; color: rgba(255,255,255,.7); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.footer-bottom { text-align: center; padding: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed; bottom: 78px; right: 18px; width: 52px; height: 52px;
  background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.25); z-index: 400;
}

/* ===== Alerts ===== */
.alert { padding: 14px 16px; border-radius: 10px; margin: 16px 20px; font-size: 14px; font-weight: 600; }
.alert-success { background: #e5f6ea; color: #1f9d4f; }
.alert-error { background: #fbe9ed; color: #d64d68; }

/* ===== Page banner (inner pages) ===== */
.page-banner { background: var(--navy); padding: 26px 20px; text-align: center; }
.page-banner h1 { color: var(--white); font-size: 22px; font-weight: 800; }
.page-banner .underline { width: 50px; height: 3px; background: var(--gold); margin: 10px auto 0; border-radius: 3px; }

/* ===== Desktop responsiveness ===== */
@media (min-width: 992px) {
  body { padding-bottom: 0; }
  .desktop-nav { display: flex; }
  .hamburger-btn { display: none; }
  .bottom-nav { display: none; }
  .whatsapp-float { bottom: 24px; }

  .hero-content { padding: 50px 60px; }
  .hero-content h1 { font-size: 40px; }
  .hero-content p { font-size: 16px; max-width: 600px; }
  .hero-image { height: 420px; }

  .stats-grid { grid-template-columns: repeat(4,1fr); max-width: 1100px; margin: -30px auto 0; }
  .activities-grid { grid-template-columns: repeat(3,1fr); max-width: 1100px; margin: 0 auto; padding: 10px 20px 40px; }
  .trustee-grid { grid-template-columns: repeat(4,1fr); max-width: 1100px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(4,1fr); max-width: 1100px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .form-card, .donation-card { max-width: 560px; margin-left: auto; margin-right: auto; }
  .donation-banner { max-width: 560px; margin-left: auto; margin-right: auto; }
}
