/* =============================================
   ISTIKHARA ONLINE - rohanijismaniilaj.org
   Pure CSS - No Dependencies
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Outfit:wght@400;500;600&family=Amiri:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #166534;
  --primary-dark: #0f4024;
  --primary-light: #dcfce7;
  --secondary: #ca8a04;
  --secondary-light: #fef9c3;
  --bg: #f8fafc;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(22, 101, 52, 0.08);
  --shadow-lg: 0 8px 40px rgba(22, 101, 52, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-arabic: 'Amiri', serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* ---- Utility ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }
.rtl { direction: rtl; text-align: right; }
.divider { width: 56px; height: 4px; background: var(--secondary); border-radius: 99px; margin: 1rem 0 2rem; }
.divider.center { margin-left: auto; margin-right: auto; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.text-gold { color: var(--secondary); }
.text-green { color: var(--primary); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: var(--radius-full); font-size: 1rem; font-weight: 600; transition: all 0.2s ease; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-gold { background: var(--secondary); color: #fff; border: 2px solid var(--secondary); }
.btn-gold:hover { background: #a16207; border-color: #a16207; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-green { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-green:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }
.btn svg, .btn .icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-whatsapp { background: #25D366; color: #fff; border: 2px solid #25D366; }
.btn-whatsapp:hover { background: #128C7E; border-color: #128C7E; transform: translateY(-1px); }

/* ---- Header / Navigation ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.logo img { width: 36px; height: 36px; }
.logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-menu a { padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; color: var(--text); transition: all 0.2s; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); background: var(--primary-light); }
.header-wa { background: #25D366; color: #fff; padding: 0.5rem 1.1rem; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; transition: background 0.2s; white-space: nowrap; }
.header-wa:hover { background: #128C7E; color: #fff; }
.header-wa svg { width: 16px; height: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 99px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 1rem; font-size: 1rem; font-weight: 500; color: var(--text); border-radius: var(--radius-sm); margin-bottom: 0.25rem; transition: all 0.2s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); background: var(--primary-light); }
.mobile-menu .mobile-wa { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; background: #25D366; color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }

/* ---- Hero Section ---- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(15, 64, 36, 0.78); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem 1.25rem; max-width: 750px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 0.4rem 1.25rem; border-radius: var(--radius-full); background: rgba(202,138,4,0.2); border: 1px solid rgba(202,138,4,0.5); color: #fde68a; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 7vw, 5rem); color: #fff; margin-bottom: 0.5rem; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero h2 { font-family: var(--font-heading); font-size: clamp(1.3rem, 3.5vw, 2.2rem); color: #fbbf24; margin-bottom: 1.5rem; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---- About Istikhara Section ---- */
.about-istikhara { background: #fff; }
.about-istikhara-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.urdu-text { font-family: var(--font-arabic); font-size: 1.3rem; color: var(--primary); line-height: 2; margin: 1rem 0; }

/* ---- Quranic Quote Section ---- */
.quran-section { background: var(--primary); color: #fff; padding: 4rem 0; }
.quran-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.quote-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.quote-icon svg { width: 28px; height: 28px; fill: var(--secondary); }
.arabic-ayat { font-family: var(--font-arabic); font-size: clamp(1.4rem, 3.5vw, 2.2rem); line-height: 1.9; color: #fff; margin-bottom: 0.75rem; }
.urdu-translation { font-family: var(--font-arabic); font-size: 1.2rem; color: #fbbf24; line-height: 1.8; margin-bottom: 0.75rem; }
.english-ref { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ---- About Scholar Section ---- */
.about-scholar { background: var(--bg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.scholar-img-wrap { position: relative; }
.scholar-img-wrap::before { content: ''; position: absolute; inset: -12px; background: rgba(22,101,52,0.08); border-radius: var(--radius); z-index: 0; }
.scholar-img-wrap::after { content: ''; position: absolute; top: -12px; right: -12px; width: 80px; height: 80px; background: rgba(202,138,4,0.18); border-radius: 50%; z-index: 0; }
.scholar-img-wrap img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 460px; object-fit: cover; }
.scholar-text .check-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.25rem 0 2rem; }
.scholar-text .check-item { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-muted); }
.check-icon { width: 20px; height: 20px; color: var(--secondary); flex-shrink: 0; margin-top: 2px; }

/* ---- Services Grid ---- */
.services { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; }
.service-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img { height: 200px; overflow: hidden; position: relative; }
.service-card-img::after { content: ''; position: absolute; inset: 0; background: rgba(22,101,52,0.15); transition: opacity 0.3s; }
.service-card:hover .service-card-img::after { opacity: 0; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 1.25rem 1.25rem 1.5rem; text-align: center; }
.service-card-body h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--primary); margin-bottom: 0.4rem; }
.service-card-urdu { font-family: var(--font-arabic); font-size: 1.05rem; color: var(--secondary); margin-bottom: 0.75rem; direction: rtl; }
.service-card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }

/* ---- Testimonials ---- */
.testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.testimonial-card .quote-mark { font-size: 3rem; line-height: 1; color: var(--secondary); opacity: 0.4; font-family: Georgia, serif; }
.testimonial-card p { color: var(--text-muted); font-style: italic; line-height: 1.7; margin: 0.5rem 0 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar { width: 42px; height: 42px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.author-name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.author-loc { font-size: 0.82rem; color: var(--text-muted); }

/* ---- CTA Section ---- */
.cta-section { background: var(--primary); text-align: center; padding: 5rem 1.25rem; }
.cta-section h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 2rem; }
.disclaimer { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); padding: 1.25rem 2rem; max-width: 700px; margin: 2.5rem auto 0; }
.disclaimer p { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.7; }
.disclaimer strong { color: var(--secondary); display: block; margin-bottom: 0.4rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- Footer ---- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; margin-bottom: 0.75rem; }
.footer-about { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondary); font-weight: 600; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom a { color: var(--secondary); }

/* ---- Page Header (Interior Pages) ---- */
.page-header { background: var(--primary); color: #fff; padding: 7rem 1.25rem 4rem; text-align: center; }
.page-header h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.75rem; }
.page-header p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }

/* ---- Content Blocks ---- */
.content-block { background: #fff; }
.content-inner { max-width: 900px; margin: 0 auto; }
.content-inner h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--primary); margin: 2rem 0 0.75rem; }
.content-inner h2:first-child { margin-top: 0; }
.content-inner p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.content-inner ul { margin-bottom: 1.25rem; padding-left: 1.5rem; list-style: disc; }
.content-inner ul li { color: var(--text-muted); line-height: 1.75; margin-bottom: 0.35rem; }

/* ---- Info Cards ---- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.info-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; border-left: 4px solid var(--secondary); }
.info-card h3 { font-family: var(--font-heading); color: var(--primary); margin-bottom: 0.5rem; font-size: 1.05rem; }
.info-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.info-card .card-icon { width: 40px; height: 40px; background: var(--primary-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.info-card .card-icon svg { width: 22px; height: 22px; color: var(--primary); }

/* ---- Videos Page ---- */
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; }
.video-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.3s; }
.video-card:hover { box-shadow: var(--shadow-lg); }
.video-card iframe { width: 100%; height: 200px; display: block; border: none; background: #000; }
.video-card-body { padding: 1.25rem; }
.video-card-body h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--primary); margin-bottom: 0.4rem; }
.video-card-body p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; }
.video-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.video-btns a { flex: 1; text-align: center; padding: 0.5rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; transition: all 0.2s; }
.video-btns .btn-wa { background: #25D366; color: #fff; }
.video-btns .btn-wa:hover { background: #128C7E; }
.video-btns .btn-guide { background: var(--primary-light); color: var(--primary); }
.video-btns .btn-guide:hover { background: var(--primary); color: #fff; }
.videos-cta { text-align: center; margin-top: 4rem; padding: 3rem; background: var(--primary); border-radius: var(--radius); }
.videos-cta h3 { font-family: var(--font-heading); font-size: 1.6rem; color: #fff; margin-bottom: 1.5rem; }

/* ---- Contact Page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; margin-top: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.contact-info-card .ci-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-card .ci-icon svg { width: 22px; height: 22px; color: var(--primary); }
.contact-info-card h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.15rem; }
.contact-info-card a, .contact-info-card p { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.contact-info-card a:hover { color: var(--primary); }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.contact-form h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--text); background: #fff; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---- Relationship Page ---- */
.rel-section { background: #fff; padding: 4rem 0; border-bottom: 1px solid var(--border); }
.rel-section:nth-child(even) { background: var(--bg); }
.rel-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1000px; margin: 0 auto; }
.rel-inner.flip { direction: rtl; }
.rel-inner.flip > * { direction: ltr; }
.rel-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); max-height: 360px; object-fit: cover; }
.rel-text h2 { font-family: var(--font-heading); font-size: 1.6rem; color: var(--primary); margin-bottom: 0.5rem; }
.rel-text .urdu-text { font-size: 1.1rem; margin: 0.5rem 0 1rem; color: var(--secondary); }
.rel-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1.25rem; }

/* ---- Process Steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2.5rem 0; }
.step { text-align: center; padding: 2rem 1.25rem; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); position: relative; }
.step-num { width: 48px; height: 48px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; margin: 0 auto 1rem; }
.step h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--primary); margin-bottom: 0.4rem; }
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ---- WA Float Button ---- */
.wa-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; }
.wa-float a { width: 56px; height: 56px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: all 0.2s; }
.wa-float a:hover { background: #128C7E; transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .two-col { gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .header-wa { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 80vh; }
  .two-col, .rel-inner, .contact-grid { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .rel-inner.flip { direction: ltr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .scholar-img-wrap { order: -1; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}
