/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1A6B3A;
  --green-light: #2A8F50;
  --green-dark: #0F4A28;
  --green-deep: #0A3018;
  --green-mid: #3C8C3C;
  --white: #FFFFFF;
  --off-white: #F5F8F5;
  --light: #EBF2EC;
  --light-2: #D6E8D8;
  --text: #1A2E1F;
  --text-muted: #4A7055;
  --border: rgba(26, 107, 58, 0.18);
  --border-light: rgba(26, 107, 58, 0.1);
  --radius: 16px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.gold { color: var(--green); }

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

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,107,58,0.35); background: var(--green-light); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

.btn-gold {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  padding: 16px 40px;
}
.btn-gold:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,107,58,0.35); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(26,107,58,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
}

.navbar.scrolled .nav-logo { color: var(--text); }

.logo-icon { font-size: 1.5rem; color: var(--green); height: 48px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Scrolled state — white bg, switch to green */
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a::after { background: var(--green); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--green); }

.nav-cta {
  background: #fff;
  color: var(--green-dark);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); background: var(--light); }

.navbar.scrolled .nav-cta { background: var(--green); color: #fff; }
.navbar.scrolled .nav-cta:hover { background: var(--green-light); box-shadow: 0 4px 20px rgba(26,107,58,0.3); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span { background: var(--text); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,48,24,0.72) 0%, rgba(10,48,24,0.5) 50%, rgba(10,48,24,0.92) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
}

@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 24px;
}

.hero-bismillah {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-title .gold { color: #a8e6bc; }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-actions .btn-primary { background: #fff; color: var(--green-dark); }
.hero-actions .btn-primary:hover { background: var(--light); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.hero-actions .btn-outline { border-color: #fff; color: #fff; }
.hero-actions .btn-outline:hover { background: #fff; color: var(--green-dark); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #a8e6bc;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION COMMON ===== */
section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text);
}

.section-title .gold { color: var(--green); }

.section-desc { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== FEATURED SHRINES ===== */
.featured-shrines { background: var(--off-white); }

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

.shrine-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.shrine-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(26,107,58,0.15);
}

.shrine-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.featured-card .shrine-img { height: 300px; }

.shrine-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shrine-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,48,24,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.shrine-card:hover .shrine-overlay { opacity: 1; }

.shrine-tour-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--green-dark);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.shrine-tour-btn:hover { background: var(--light); transform: scale(1.05); }

.shrine-info {
  padding: 20px;
}
.shrine-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text);
}
.shrine-info p { color: var(--text-muted); font-size: 0.85rem; }

.shrine-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 2px 10px;
  border-radius: 50px;
}

.section-cta { text-align: center; margin-top: 48px; }

/* ===== VIRTUAL TOUR ===== */
.virtual-tour {
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.vt-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(26,107,58,0.06) 0%, transparent 70%);
}

.vt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.vt-text p { color: var(--text-muted); margin-bottom: 32px; }

.vt-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.vt-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.vt-features li i { color: var(--green); font-size: 1rem; }

.vt-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(26,107,58,0.12);
}

.vt-screen {
  height: 320px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vt-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(26,107,58,0.08) 0%, transparent 70%);
}

.vt-placeholder {
  text-align: center;
  color: var(--text-muted);
  z-index: 1;
}
.vt-placeholder i { font-size: 3rem; color: var(--green); margin-bottom: 12px; display: block; }
.vt-placeholder p { font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.vt-placeholder span { font-size: 0.8rem; }

.vt-controls {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}

.vt-btn {
  flex: 1;
  padding: 14px;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.vt-btn:last-child { border-right: none; }
.vt-btn:hover, .vt-btn.active { background: rgba(26,107,58,0.08); color: var(--green); }

/* ===== WHY US ===== */
.why-us { background: var(--off-white); }

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

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.why-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,107,58,0.12);
}

.why-icon {
  width: 64px; height: 64px;
  background: rgba(26,107,58,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--green);
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: var(--green);
  color: #fff;
}

.why-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text);
}

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

/* ===== VR BANNER ===== */
.vr-banner {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.vr-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,107,58,0.92) 0%, rgba(10,48,24,0.98) 100%),
              url('https://upload.wikimedia.org/wikipedia/commons/5/59/Imam_Reza_shrine.jpg') center/cover no-repeat;
}

.vr-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(10px);
}

.vr-icon { font-size: 3.5rem; color: #fff; flex-shrink: 0; }

.vr-banner-text { flex: 1; }
.vr-banner-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
  color: #fff;
}
.vr-banner-text h2 .gold { color: #a8e6bc; }
.vr-banner-text p { color: rgba(255,255,255,0.7); }

.vr-banner .btn-gold { background: #fff; color: var(--green-dark); }
.vr-banner .btn-gold:hover { background: var(--light); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,107,58,0.1);
}

.stars { color: var(--green); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--text); }
.testimonial-author span { color: var(--text-muted); font-size: 0.8rem; }

/* ===== CONTACT ===== */
.contact { background: var(--off-white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text p { color: var(--text-muted); margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-item i { color: var(--green); width: 20px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,107,58,0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
  background: var(--green-deep);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 80px 0 0;
}

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

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin: 16px 0 24px;
  line-height: 1.8;
}

.social-links { display: flex; gap: 12px; }

.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-links a:hover { background: #fff; color: var(--green-dark); border-color: #fff; }

.footer-links h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-newsletter h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
}
.footer-newsletter p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 16px; }

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: none;
  padding: 12px 18px;
  color: #fff;
  font-size: 0.85rem;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
  background: #fff;
  border: none;
  padding: 12px 18px;
  color: var(--green-dark);
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.arabic-footer { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

.nav-logo .logo-text { color: #fff; }
.navbar.scrolled .nav-logo .logo-text { color: var(--text); }
.footer .nav-logo .logo-text { color: #fff; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,48,24,0.65), rgba(10,48,24,0.88));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.page-hero-content .section-title { color: #fff; }
.page-hero-content .section-title .gold { color: #a8e6bc; }
.page-hero-content p { color: rgba(255,255,255,0.7); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 16px 24px;
  color: var(--text);
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(26,107,58,0.15);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: var(--green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .shrines-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vt-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
    font-size: 1.2rem;
  }

  .shrines-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .vr-banner-content { flex-direction: column; text-align: center; padding: 32px 24px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
}

@media (max-width: 480px) {
  section { padding: 60px 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .why-grid { grid-template-columns: 1fr; }
}
