/* ============================================================
   ISTIKHARA HOME — style.css
   Premium Islamic-inspired consultancy website
   ============================================================ */

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

:root {
  --bg:         #F5F0E6;
  --bg-alt:     #EADCC8;
  --card-bg:    #FFF9F1;
  --gold:       #D8B06A;
  --gold-2:     #C89B57;
  --heading:    #6B3E1F;
  --body:       #5A3318;
  --muted:      #8A6040;
  --border:     #E5D3B3;
  --header-h:   76px;
  --container:  1200px;
  --gap:        clamp(16px, 3vw, 32px);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --shadow-card: 0 4px 24px rgba(107,62,31,0.08), 0 1px 4px rgba(107,62,31,0.05);
  --shadow-hover: 0 12px 40px rgba(107,62,31,0.14), 0 2px 8px rgba(107,62,31,0.08);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ---- SECTION PAD ---- */
.section-pad { padding: clamp(70px, 10vw, 110px) 0; }
.alt-bg { background: var(--bg-alt); }

/* ---- TYPOGRAPHY ---- */
.section-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 14px;
}

.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
}

.section-intro {
  text-align: center;
  margin-bottom: clamp(44px, 7vw, 70px);
}
.section-intro .section-desc { margin: 18px auto 0; }

/* ---- GOLD DIVIDER ---- */
.gold-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  margin: 22px 0 26px;
  border-radius: 2px;
  position: relative;
}
.gold-divider::after {
  content: '';
  position: absolute;
  left: 52px;
  top: -2px;
  width: 8px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.gold-divider.center {
  margin: 22px auto 26px;
}

/* ---- BUTTONS ---- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-2);
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(216,176,106,0.3);
  position: relative;
  overflow: hidden;
}
.btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(216,176,106,0.45);
}
.btn-whatsapp:hover::before { opacity: 1; }
.btn-whatsapp:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--heading);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}

.wa-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(245,240,230,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(107,62,31,0.1);
  background: rgba(245,240,230,0.98);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 3px;
}
.logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold-2);
  margin-top: 1px;
}

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 28px);
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--heading);
}
.nav-link:hover::after, .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-wa { margin-left: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  margin-left: auto;
  cursor: pointer;
  border: none;
  background: transparent;
  flex-shrink: 0;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--heading);
  border-radius: 2px;
  transition: all 0.3s ease;
  pointer-events: none;
}
.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); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.active { opacity: 1; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.slide-bg-1 {
  background: linear-gradient(160deg, #3D2009 0%, #6B3E1F 35%, #A06830 65%, #D8B06A 100%);
}
.slide-bg-2 {
  background: linear-gradient(135deg, #2E1A08 0%, #5A3318 30%, #8B5E32 60%, #C89B57 100%);
}
.slide-bg-3 {
  background: linear-gradient(155deg, #1E1209 0%, #4A2810 25%, #7A4E28 55%, #B8884A 85%, #D8B06A 100%);
}

.slide-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,10,5,0.25) 0%,
    rgba(30,10,5,0.4) 40%,
    rgba(30,10,5,0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: clamp(30px, 6vw, 60px) clamp(20px, 5vw, 40px);
  max-width: 820px;
  animation: heroReveal 1.2s ease forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 6.5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 22px;
}

.hero-desc {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-wa { font-size: 14px; padding: 15px 32px; }
.hero-learn {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  font-size: 14px;
  padding: 15px 32px;
}
.hero-learn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
  padding: 0;
}
.dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(216,176,106,0.6);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  right: clamp(24px, 5vw, 60px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}
.scroll-text {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-image-frame {
  position: relative;
}
.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.about-image-inner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-illustration { width: 100%; height: auto; }

.about-badge {
  position: absolute;
  bottom: 24px;
  right: -18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: 0 8px 28px rgba(216,176,106,0.4);
  text-align: center;
}
.about-badge-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.about-badge-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.9;
  display: block;
  margin-top: 3px;
}

.about-text {
  font-size: 15px;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-check {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(216,176,106,0.35);
}
.about-feature div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-feature strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}
.about-feature span {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.service-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
  padding: 10px;
}
.card-icon svg { width: 100%; height: 100%; }
.service-card:hover .card-icon {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  border-color: var(--gold-2);
  box-shadow: 0 4px 14px rgba(216,176,106,0.35);
}
.service-card:hover .card-icon svg * {
  stroke: #fff;
  fill-opacity: 0.3;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
  line-height: 1.3;
}
.card-urdu {
  font-size: 15px;
  color: var(--gold-2);
  margin-bottom: 12px;
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}
.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.why-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 42px) clamp(22px, 3vw, 32px);
  text-align: center;
  transition: all var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.why-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
}
.why-icon svg { width: 100%; height: 100%; }

.why-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
}
.why-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  position: relative;
}
.steps-container::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(33.33% / 2 + 30px);
  right: calc(33.33% / 2 + 30px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  opacity: 0.4;
  z-index: 0;
}

.step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}
.step-icon {
  width: 72px;
  height: 72px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(107,62,31,0.08);
  transition: all var(--transition);
  position: relative;
}
.step-icon svg { width: 100%; height: 100%; }
.step:hover .step-icon {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  border-color: var(--gold-2);
  box-shadow: 0 6px 24px rgba(216,176,106,0.4);
}
.step:hover .step-icon svg * { stroke: #fff; fill-opacity: 0.25; }

.step-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
}
.step-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 260px;
  margin: 0 auto;
}
.step-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--gold-2);
  transition: color var(--transition);
}
.step-link:hover { color: var(--heading); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.testimonial-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 36px);
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 16px;
  font-weight: 700;
}

.testimonial-text {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(216,176,106,0.35);
}
.testimonial-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  font-style: normal;
}
.testimonial-location {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.contact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 18px;
  line-height: 1.1;
}
.contact-desc {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.contact-wa {
  font-size: 16px;
  padding: 18px 44px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}
.contact-wa .wa-icon { width: 20px; height: 20px; }
.contact-number {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1.5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--heading);
  color: rgba(255,255,255,0.75);
  padding: clamp(52px, 7vw, 80px) 0 0;
}

.footer-geo { margin-bottom: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 16px;
}
.footer-logo .logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
}
.footer-logo .logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4.5px;
  color: var(--gold);
  margin-top: 2px;
}
.footer-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  line-height: 1.6;
}
.footer-wa { font-size: 12.5px; padding: 11px 20px; }

.footer-col-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  transition: width var(--transition), opacity var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-links a:hover::before { width: 18px; opacity: 1; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-contact-item .wa-icon { width: 18px; height: 18px; color: var(--gold); }
.footer-contact-item a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--gold); }
.footer-whatsapp-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-bottom {
  padding: 0 0 28px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  text-align: center;
}

/* ============================================================
   ANIMATIONS — FADE UP ON SCROLL
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }
.delay-4 { transition-delay: 0.34s; }
.delay-5 { transition-delay: 0.42s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: clamp(32px, 5vw, 56px); }
  .steps-container::before { display: none; }
}

/* Tablet: ≤ 860px */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-col { max-width: 440px; margin: 0 auto; }
  .about-badge { right: 0; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .steps-container { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
  :root { --header-h: 64px; }

  /* Header inner: logo left, hamburger right — nothing in between */
  .header-inner {
    gap: 0;
    padding: 0 16px;
    position: relative;
  }

  /* Logo always visible */
  .logo { flex-shrink: 0; }
  .logo-text { font-size: 20px; letter-spacing: 2px; }
  .logo-sub  { font-size: 8px; letter-spacing: 3px; }

  /* Push hamburger to the far right */
  .hamburger {
    display: flex;
    margin-left: auto;
    padding: 12px 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Hide WhatsApp button in header on mobile */
  .header-wa { display: none; }

  /* Nav drawer: absolute so backdrop-filter on site-header doesn't
     create a rogue containing block and hide the logo */
  .site-header .main-nav {
    position: absolute;
    top: 100%;                       /* sits right below the header bar */
    left: 0;
    right: 0;
    margin-left: 0;                  /* cancel desktop margin-left:auto */
    background: #F5F0E6;
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--border);
    padding: 16px 20px 24px;
    display: none;                   /* hidden by default */
    box-shadow: 0 12px 32px rgba(107,62,31,0.15);
    z-index: 999;
  }
  .site-header .main-nav.open { display: block; }

  .nav-list { flex-direction: column; gap: 2px; }
  .nav-link  { padding: 13px 16px; font-size: 14px; display: block; border-radius: 8px; }
  .nav-link:hover, .nav-link.active { background: rgba(216,176,106,0.12); }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-scroll-hint { display: none; }
  .about-image-frame::before { display: none; }

  .hero-heading { font-size: clamp(28px, 8vw, 42px); }
  .hero-desc { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .contact-wa { width: 100%; justify-content: center; max-width: 340px; }
  .footer-copy { font-size: 11px; }
}

/* Very small: ≤ 380px */
@media (max-width: 380px) {
  .hero-actions { gap: 12px; }
  .hero-wa, .hero-learn { width: 100%; justify-content: center; }
  .card-title { font-size: 16px; }
  .section-heading { font-size: 26px; }
}

/* ---- Print ---- */
@media print {
  .site-header, .hero-dots, .hero-scroll-hint, .hamburger { display: none; }
  .hero { min-height: auto; padding-top: 40px; }
  .slide-bg { display: none; }
}

/* ============================================================
   ISTIKHARA PAGE — page-hero, form, details sections
   ============================================================ */

/* ---- PAGE HERO ---- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(52px,8vw,90px)) 0 clamp(52px,8vw,80px);
  background: linear-gradient(155deg, #3D2009 0%, #6B3E1F 40%, #A06830 80%, #C89B57 100%);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,10,5,0.18) 0%, rgba(30,10,5,0.42) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}
.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.breadcrumb a { color: var(--gold); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.page-ornament { display: flex; justify-content: center; margin-bottom: 18px; }
.page-hero-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 600;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.page-hero-desc {
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---- FORM LAYOUT ---- */
.form-section { background: var(--bg); }
.form-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

/* ---- FORM CARD ---- */
.form-card {
  background: var(--heading);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(107,62,31,0.2);
}
.form-card-header {
  background: linear-gradient(135deg, rgba(216,176,106,0.2) 0%, rgba(200,155,87,0.12) 100%);
  border-bottom: 1px solid rgba(216,176,106,0.2);
  padding: clamp(24px,4vw,36px) clamp(28px,4vw,42px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.form-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(216,176,106,0.4);
}
.form-card-icon svg { width: 100%; height: 100%; }
.form-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}

/* ---- FORM BODY ---- */
.istikhara-form {
  padding: clamp(28px,4vw,40px) clamp(28px,4vw,42px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.4px;
}
.req { color: var(--gold); margin-left: 2px; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(216,176,106,0.28);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.input-wrap.focused,
.input-wrap:focus-within {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(216,176,106,0.18);
}
.textarea-wrap { align-items: flex-start; }

.input-icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
  flex-shrink: 0;
  margin: 0 12px 0 14px;
  opacity: 0.8;
}
.textarea-icon { margin-top: 14px; }

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 13px 16px 13px 0;
  line-height: 1.5;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-textarea {
  resize: vertical;
  min-height: 130px;
  padding-top: 14px;
}

.form-hint {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.form-error {
  font-size: 11.5px;
  color: #FCA5A5;
  display: none;
  margin-top: 2px;
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 12px 16px;
  background: rgba(216,176,106,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(216,176,106,0.14);
}
.form-privacy svg { color: var(--gold); flex-shrink: 0; opacity: 0.7; }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(216,176,106,0.4);
  width: 100%;
  margin-top: 4px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(216,176,106,0.55);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit .wa-icon { width: 19px; height: 19px; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(34,197,94,0.1);
  border: 1.5px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.form-success[hidden] { display: none; }
.form-success strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #86EFAC;
  margin-bottom: 4px;
}
.form-success span { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ---- SIDEBAR ---- */
.form-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}
.sidebar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
.sidebar-icon svg { width: 100%; height: 100%; }
.sidebar-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 16px;
}
.sidebar-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.sn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-list li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.sidebar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}
.sidebar-contact { text-align: center; }
.sidebar-contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.sidebar-wa { width: 100%; justify-content: center; font-size: 14px; padding: 14px 20px; }

/* ---- ISTIKHARA DETAILS ---- */
.detail-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--border);
}
.detail-block:last-child { border-bottom: none; }
.detail-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  padding-top: 4px;
  text-align: right;
}
.detail-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 16px;
}
.detail-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.8;
}
.detail-quote {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin-top: 22px;
}
.detail-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--heading);
  line-height: 1.65;
}
.detail-quote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-2);
  letter-spacing: 0.5px;
  margin-top: 10px;
}

/* ---- DUA CARD ---- */
.dua-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 36px);
  margin-top: 24px;
}
.dua-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 14px;
}
.dua-arabic {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 2.1;
  color: var(--heading);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  text-align: right;
}
.dua-transliteration {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.85;
  font-style: italic;
}
.dua-translation {
  font-size: 14px;
  color: var(--body);
  line-height: 1.85;
}
.dua-translation em {
  color: var(--gold-2);
  font-style: normal;
  font-weight: 600;
}
.dua-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ---- HOW TO STEPS ---- */
.steps-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-dot {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff;
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(216,176,106,0.35);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 5px;
}
.step-item p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ---- NOTES GRID ---- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.note-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: all var(--transition);
}
.note-card:hover { border-color: var(--gold); box-shadow: var(--shadow-hover); }
.note-icon { width: 36px; height: 36px; margin-bottom: 12px; }
.note-icon svg { width: 100%; height: 100%; }
.note-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.note-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---- WHEN TAGS ---- */
.when-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.when-tag {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  transition: all var(--transition);
  cursor: default;
}
.when-tag:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  border-color: var(--gold-2);
  color: #fff;
  box-shadow: 0 3px 12px rgba(216,176,106,0.35);
}

/* ---- RESPONSIVE — Istikhara page ---- */
@media (max-width: 1024px) {
  .form-layout { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
  .form-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .sidebar-contact { grid-column: 1 / -1; }
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .detail-block { grid-template-columns: 1fr; gap: 8px; }
  .detail-number { font-size: 32px; text-align: left; opacity: 0.2; }
  .notes-grid { grid-template-columns: 1fr; }
  .form-sidebar { grid-template-columns: 1fr; }
  .sidebar-contact { grid-column: auto; }
  .dua-arabic { font-size: 16px; }
  .form-layout { max-width: 100%; }
}


/* ===== CUSTOM IMPROVEMENTS ===== */

.card-title{
    font-size:28px !important;
    font-weight:700 !important;
    color:#4b2e16 !important;
    line-height:1.3;
}

.card-urdu{
    font-size:20px !important;
    font-weight:700 !important;
    color:#000 !important;
    line-height:1.8;
}

.card-desc{
    font-size:17px !important;
    font-weight:600 !important;
    color:#333 !important;
    line-height:1.7;
}

.hero-call,
.about-call{
    margin-left:10px;
}
