:root {
  /* Color Palette */
  --primary: #14532d;      /* Deep Islamic Green */
  --primary-dark: #0f3d20;
  --gold: #d4af37;         /* Classic Gold */
  --gold-light: #f3e5ab;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg-body: #fdfbf7;      /* Warm Off-White (Cream) */
  --bg-white: #ffffff;
  
  /* Layout */
  --container-width: 1100px;
  --radius: 12px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* --- Resets & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-body);
  color: var(--text);
  line-height: 1.7;
  /* Subtle Islamic Geometric Pattern Overlay */
  background-image: radial-gradient(var(--gold-light) 1px, transparent 1px);
  background-size: 30px 30px;
}

h1, h2, h3, h4 {
  font-family: 'Amiri', serif;
  line-height: 1.3;
  color: var(--primary);
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-center { text-align: center; }

.section { padding: 80px 0; }
.bg-light { background: #f3f4f6; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); background: #e5bd3d; }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--primary); }

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  padding: 10px 0;
  font-size: 0.85rem;
}
.top-bar i { color: var(--gold); margin-right: 6px; }
.contact-info span { margin-right: 20px; }
.portal-link { color: #fff; font-weight: 500; }
.portal-link:hover { color: var(--gold); }

/* --- Navbar --- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.8rem; color: var(--primary); }
.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.logo-text span { color: var(--gold); display: block; font-size: 0.8rem; font-family: 'Poppins', sans-serif; letter-spacing: 1px;}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 24px;
  border-radius: 50px;
}
.btn-nav:hover { background: var(--primary-dark); }

/* Mobile Menu Toggle */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(rgba(15, 61, 32, 0.85), rgba(15, 61, 32, 0.9)),
              url('https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?q=80') center/cover fixed;
  color: #fff;
  padding: 140px 0 180px; /* Extra bottom padding for floating card overlap */
  text-align: center;
  border-radius: 0 0 50% 50% / 40px;
}

.hero-content { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.bismillah {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn-group { display: flex; gap: 15px; justify-content: center; }

/* --- Trust Bar (Floating) --- */
.trust-bar-wrapper { margin-top: -80px; position: relative; z-index: 10; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.trust-card {
  background: var(--bg-white);
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 4px solid var(--gold);
  transition: transform 0.3s;
}
.trust-card:hover { transform: translateY(-5px); }
.icon-box {
  background: rgba(212, 175, 55, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.trust-card h3 { font-size: 1.2rem; margin-bottom: 4px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.trust-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* --- Sections Common --- */
.subtitle {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.divider {
  height: 3px;
  width: 70px;
  background: var(--gold);
  margin: 0 auto 50px;
  border-radius: 10px;
}

/* --- Features --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.feature-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  transition: 0.3s;
}
.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text); }
.feature-card p { color: var(--text-light); }

/* --- Reviews --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.review-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.04);
  position: relative;
}
.review-card::before {
  content: '\f10d'; /* Quote icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #f3f4f6;
}
.stars { color: #ffc107; margin-bottom: 15px; font-size: 0.9rem; }
.review-card p { font-style: italic; color: var(--text); margin-bottom: 20px; font-size: 0.95rem; }
.reviewer { display: flex; align-items: center; gap: 15px; }
.avatar {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Amiri', serif;
}
.reviewer h5 { margin: 0; font-size: 1rem; color: var(--text); font-family: 'Poppins', sans-serif;}
.reviewer small { color: var(--gold); font-size: 0.8rem; }

/* --- FAQ --- */
.faq-container { max-width: 800px; }
details {
  background: #fff;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  border: 1px solid #eee;
}
summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
}
details[open] summary::after { content: '-'; }
.faq-content {
  padding: 0 20px 20px;
  color: var(--text-light);
  border-top: 1px solid #f0f0f0;
  margin-top: 10px; /* Small gap */
  padding-top: 15px;
}

/* --- Footer --- */
footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 60px 0 20px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-brand h3 { color: var(--gold); margin-bottom: 10px; font-size: 1.8rem; }
.footer-brand p { opacity: 0.8; }
.footer-links a {
  color: #fff;
  margin-left: 25px;
  opacity: 0.8;
  font-size: 0.95rem;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-bar-wrapper { margin-top: -40px; }
  
  .hide-mobile { display: none; }
  
  /* Mobile Nav */
  .nav-toggle-label {
    display: block;
    width: 30px;
    height: 30px;
    position: relative;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--primary);
    height: 3px;
    width: 100%;
    position: absolute;
    top: 13px;
    transition: 0.3s;
  }
  .nav-toggle-label span::before { content: ''; top: -8px; }
  .nav-toggle-label span::after { content: ''; top: 8px; }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.3s;
  }
  
  /* Show menu when checkbox checked */
  #nav-toggle:checked ~ .nav-links { transform: scaleY(1); }
  
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links a { margin: 0 10px; }
}