/* =============================================
   Noorani Markaz - Main Stylesheet
   WhatsApp Lead Generation Website
   ============================================= */

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

/* ---- CSS Variables ---- */
:root {
  --primary: #166534;
  --primary-light: #1a8048;
  --primary-dark: #0f4424;
  --secondary: #c8a84b;
  --secondary-dark: #a88c3a;
  --white: #ffffff;
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-lg: 24px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Utility ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.bg-light { background: var(--bg); }
.bg-white { background: var(--white); }
.bg-primary { background: var(--primary); }
.text-white { color: var(--white); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }
.lead { font-size: 1.125rem; line-height: 1.8; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f0fdf4; color: var(--primary);
  padding: 6px 16px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary); flex-shrink: 0;
}
.section-title { margin-bottom: 16px; }
.section-desc { font-size: 1.05rem; max-width: 600px; margin: 0 auto 48px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--white);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,101,52,0.35); }
.btn-secondary {
  background: var(--secondary); color: var(--white);
}
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-whatsapp {
  background: #25D366; color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe5c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.btn-whatsapp-outline {
  background: transparent; color: #25D366;
  border: 2px solid #25D366;
}
.btn-whatsapp-outline:hover { background: #25D366; color: var(--white); }
.btn svg, .btn img { width: 20px; height: 20px; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ---- WhatsApp Icon SVG ---- */
.wa-icon {
  width: 22px; height: 22px; fill: currentColor; flex-shrink: 0;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem; padding: 8px 0;
}
.top-bar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--secondary); }

/* ---- Header / Navbar ---- */
.navbar {
  background: var(--white); position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07); padding: 0;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1200px; margin: 0 auto;
}
.navbar-brand { display: flex; flex-direction: column; }
.navbar-brand .brand-name {
  font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1;
}
.navbar-brand .brand-tagline {
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 2px;
}
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  color: var(--text); transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); background: #f0fdf4; }
.navbar-cta { margin-left: 8px; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: 0.3s;
}
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 2000;
}
.mobile-menu-panel {
  background: var(--white); width: 280px; height: 100%; padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(-100%); transition: transform 0.3s ease;
}
.mobile-menu.open { display: block; }
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.mobile-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-menu-links a {
  display: block; padding: 12px 16px; border-radius: 10px;
  font-weight: 500; color: var(--text); margin-bottom: 4px; transition: 0.2s;
}
.mobile-menu-links a:hover { background: #f0fdf4; color: var(--primary); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 0;
}
.breadcrumb ol {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-muted); list-style: none;
}
.breadcrumb li + li::before { content: '/'; margin-right: 8px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0 60px; text-align: center; color: white; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/hero-1.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin: 0; }

/* ---- Hero / Slider ---- */
.hero-slider { position: relative; overflow: hidden; height: 600px; }
@media (min-width: 768px) { .hero-slider { height: 700px; } }
.hero-slides { display: flex; height: 100%; transition: transform 0.7s ease; }
.hero-slide {
  flex: 0 0 100%; min-width: 100%; height: 100%; position: relative;
  background: #0f4424;
}
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.15) 100%);
}
.hero-content {
  position: absolute; inset: 0; display: flex; align-items: center;
}
.hero-content .container { width: 100%; }
.hero-text { max-width: 640px; color: white; }
.hero-badge {
  display: inline-block; background: rgba(200,168,75,0.9); color: white;
  padding: 6px 18px; border-radius: 999px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 20px;
}
.hero-title { color: white; font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 16px; line-height: 1.15; }
.hero-subtitle { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slider Controls */
.slider-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active { background: var(--secondary); width: 28px; border-radius: 5px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: 0.25s; z-index: 10; backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ---- About / Two Column Layout ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col-reverse { grid-template-columns: 1fr 1fr; }
.two-col-reverse .col-img { order: 2; }
.two-col-reverse .col-text { order: 1; }
.col-img { position: relative; }
.col-img .img-wrap {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.col-img .img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  aspect-ratio: 1/1; display: block;
}
.col-img .img-bg {
  position: absolute; inset: -16px; background: #f0fdf4;
  border-radius: var(--radius-lg); transform: rotate(-3deg); z-index: -1;
}
.img-badge {
  position: absolute; bottom: 24px; right: -16px;
  background: white; padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px;
  z-index: 10; min-width: 200px;
}
.img-badge .badge-icon {
  width: 48px; height: 48px; background: var(--secondary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem; flex-shrink: 0;
}
.img-badge .badge-text .val { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.img-badge .badge-text .label { font-size: 0.8rem; color: var(--text-muted); }
.col-text .checklist { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.col-text .check-item { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.col-text .check-icon {
  width: 24px; height: 24px; color: var(--secondary); flex-shrink: 0;
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: all 0.3s;
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  background: #f0fdf4; color: var(--primary);
}
.service-card h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; margin-bottom: 20px; }
.service-card .card-btns { display: flex; flex-direction: column; gap: 10px; }
.service-card .btn-read-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.875rem; color: var(--primary); font-weight: 600; padding: 10px;
  transition: 0.2s;
}
.service-card .btn-read-more:hover { color: var(--primary-dark); }

/* ---- Why Choose Us ---- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 28px;
  transition: background 0.25s;
}
.why-card:hover { background: rgba(255,255,255,0.18); }
.why-icon {
  width: 52px; height: 52px; background: var(--secondary);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem; margin-bottom: 20px;
}
.why-card h4 { color: white; font-size: 1rem; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin: 0; }

/* ---- FAQ Accordion ---- */
.faq-wrap { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 22px 28px; font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q.active { color: var(--primary); }
.faq-icon { font-size: 1.1rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-q.active .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 28px 22px; color: var(--text-muted); line-height: 1.8; }
.faq-a.open { display: block; }

/* ---- Disclaimer ---- */
.disclaimer {
  border-top: 1px solid var(--border); padding: 32px 0; background: white;
}
.disclaimer p { font-size: 0.875rem; color: var(--text-muted); font-style: italic; margin: 0; }

/* ---- Image Section ---- */
.img-section { overflow: hidden; }
.img-hover-wrap {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.img-hover-wrap img {
  width: 100%; height: 480px; object-fit: cover; object-position: center;
  transition: transform 0.6s ease; display: block;
}
.img-hover-wrap:hover img { transform: scale(1.04); }

/* ---- Scholar Page ---- */
.scholar-img-wrap {
  position: sticky; top: 100px;
}
.scholar-img {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.scholar-img img {
  width: 960px; max-width: 100%; height: auto; object-fit: cover;
  aspect-ratio: 1/1; display: block;
}
.scholar-img-bg {
  position: absolute; inset: 0; background: rgba(200,168,75,0.15);
  border-radius: var(--radius-lg); transform: translate(12px, 12px); z-index: -1;
}
.scholar-quote {
  background: #f0fdf4; border-radius: var(--radius-lg); padding: 40px;
  border: 1px solid #bbf7d0; position: relative; margin-top: 32px;
}
.scholar-quote blockquote {
  font-size: 1.05rem; line-height: 1.8; font-style: italic; color: var(--text);
  font-weight: 500; margin: 0 0 16px;
}
.scholar-quote cite { color: var(--primary); font-weight: 700; font-style: normal; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.stat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.stat-icon {
  width: 44px; height: 44px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.2rem; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.stat-card h5 { font-size: 0.95rem; margin-bottom: 4px; color: var(--text); }
.stat-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ---- Contact Page ---- */
.contact-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 20px;
}
.contact-card h3 { margin-bottom: 12px; }
.contact-card p { margin-bottom: 24px; font-size: 0.95rem; }

/* ---- Service Detail Page ---- */
.service-detail-body { max-width: 860px; margin: 0 auto; }
.other-services h3 { margin-bottom: 24px; color: var(--text); }
.other-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other-service-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  transition: all 0.2s;
}
.other-service-link:hover { border-color: var(--primary); color: var(--primary); background: #f0fdf4; }
.other-service-link .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 72px 0; text-align: center; color: white;
}
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 36px; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { background: var(--text); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .brand-name { font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 20px; }
.footer h5 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer ul li a:hover { color: var(--secondary); }
.footer-divider { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: all 0.3s; cursor: pointer; border: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }
.wa-pulse {
  position: absolute; top: 0; right: 0;
  width: 16px; height: 16px; background: #ef4444;
  border-radius: 50%; border: 2px solid white;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-reverse .col-img { order: 0; }
  .two-col-reverse .col-text { order: 0; }
  .img-badge { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scholar-img-wrap { position: static; }
  .scholar-img img { width: 100%; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .other-services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .two-col { gap: 32px; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .other-services-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .hero-title { font-size: 1.8rem; }
}
