/* ============================================================
   ISTIKHARA EXPERT — Emerald & Gold Theme
   Fonts: Marcellus (display) · Nunito Sans (body) · Amiri (Arabic)
   ============================================================ */

:root {
  --emerald-deep: #0A3B2E;   /* darkest green — hero, footer */
  --emerald: #10513F;        /* primary green */
  --emerald-soft: #EAF3EE;   /* pale green tint */
  --gold: #C9A227;           /* primary gold */
  --gold-bright: #E3BC3F;    /* hover gold */
  --ivory: #FBF9F3;          /* page background */
  --ink: #1E2B26;            /* body text */
  --ink-soft: #55665F;       /* muted text */
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 59, 46, 0.10);
  --font-display: 'Marcellus', serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-arabic: 'Amiri', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16.5px;
}

.container { width: min(1140px, 92%); margin-inline: auto; }

img, svg { display: block; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; }

.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--emerald-deep); margin-bottom: 0.6em; }
.section-title.light { color: var(--ivory); }

.section-lead { color: var(--ink-soft); max-width: 620px; margin-inline: auto; margin-bottom: 2.6rem; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow.light { color: var(--gold-bright); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-gold { background: var(--gold); color: var(--emerald-deep); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 8px 22px rgba(201, 162, 39, 0.4); }

.btn-green { background: var(--emerald); color: var(--white); }
.btn-green:hover { background: var(--emerald-deep); box-shadow: 0 8px 22px rgba(16, 81, 63, 0.35); }

.btn-outline { border-color: var(--emerald); color: var(--emerald); background: transparent; }
.btn-outline:hover { background: var(--emerald); color: var(--white); }

.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 59, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--emerald-deep);
}
.logo-mark { color: var(--gold); }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--emerald-deep);
}
.logo-text em { font-style: normal; color: var(--gold); }

.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--emerald-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   HERO — mihrab arch signature
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(170deg, var(--emerald-deep) 0%, #0D4636 55%, var(--emerald) 100%);
  overflow: hidden;
  padding: 4.5rem 0 5.5rem;
}

/* subtle eight-point star lattice */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 8 L48 32 L72 40 L48 48 L40 72 L32 48 L8 40 L32 32 Z' fill='none' stroke='%23E3BC3F' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.hero-inner { position: relative; display: flex; justify-content: center; }

/* the mihrab arch frame */
.hero-arch {
  max-width: 760px;
  text-align: center;
  padding: 3.2rem 2.5rem 0;
  border: 1.5px solid rgba(227, 188, 63, 0.5);
  border-bottom: none;
  border-radius: 320px 320px 0 0;
  position: relative;
}
.hero-arch::before {
  content: "";
  position: absolute;
  inset: 10px 10px 0;
  border: 1px solid rgba(227, 188, 63, 0.25);
  border-bottom: none;
  border-radius: 310px 310px 0 0;
  pointer-events: none;
}

.bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--gold-bright);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 1.1rem;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); }

.hero-trust {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 700;
  padding-bottom: 2.5rem;
}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 5rem 0; }

/* ---------- Services ---------- */
.services { background: var(--ivory); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(10, 59, 46, 0.07);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 59, 46, 0.3);
  background: linear-gradient(150deg, var(--emerald-deep) 0%, var(--emerald) 100%);
  border-color: var(--gold);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  margin-bottom: 1.2rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-icon {
  background: rgba(227, 188, 63, 0.18);
  color: var(--gold-bright);
}

.service-card h3 {
  font-size: 1.22rem;
  color: var(--emerald-deep);
  margin-bottom: 0.55rem;
  transition: color 0.3s ease;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.service-card:hover h3 { color: var(--gold-bright); }
.service-card:hover p { color: rgba(255, 255, 255, 0.88); }

/* ---------- How it works ---------- */
.how-it-works {
  background: linear-gradient(160deg, var(--emerald) 0%, var(--emerald-deep) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1.4rem;
  margin-top: 2.6rem;
}

.step { text-align: center; padding: 0 0.5rem; }

.step-num {
  width: 58px; height: 58px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.step h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; }

.step-arrow {
  color: var(--gold);
  font-size: 1.8rem;
  align-self: center;
  padding-top: 0.5rem;
}

/* ---------- Request form ---------- */
.request { background: var(--emerald-soft); }

.request-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.request-info p { color: var(--ink-soft); margin-bottom: 1.3rem; }

.request-points { list-style: none; margin-bottom: 2rem; }
.request-points li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.55rem;
  font-weight: 600;
  color: var(--emerald-deep);
}
.request-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.request-contact {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.request-contact p { margin-bottom: 0.5rem; color: var(--ink); }
.request-contact a {
  display: block;
  color: var(--emerald);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}
.request-contact a:hover { color: var(--gold); }

.request-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.3rem 2.2rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field { margin-bottom: 1.15rem; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--emerald-deep);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid rgba(10, 59, 46, 0.18);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--ivory);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 81, 63, 0.12);
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid { border-color: #C0392B; }

.form-error {
  color: #C0392B;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* ---------- Why us ---------- */
.why-us { background: var(--ivory); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.why-item {
  text-align: center;
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: var(--white);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.why-item:hover { transform: translateY(-5px); border-color: var(--gold); }

.why-icon { font-size: 2.1rem; margin-bottom: 0.8rem; }
.why-item h3 { font-size: 1.12rem; color: var(--emerald-deep); margin-bottom: 0.45rem; }
.why-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--emerald-soft); padding-bottom: 5.5rem; }

.contact-card {
  background: linear-gradient(150deg, var(--emerald-deep), var(--emerald));
  border-radius: 22px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(10, 59, 46, 0.3);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border: 1.5px solid rgba(227, 188, 63, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.contact-text p { color: rgba(255, 255, 255, 0.8); }

.contact-numbers { display: grid; gap: 1.2rem; }

.contact-number {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.contact-tel {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  margin-bottom: 0.8rem;
}
.contact-tel:hover { color: var(--gold-bright); }

.contact-actions { display: flex; gap: 0.7rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-deep); color: rgba(255, 255, 255, 0.75); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand .logo-text { color: var(--white); font-size: 1.5rem; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.92rem; max-width: 340px; }

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.footer-links a, .footer-contact a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-bright); }

.footer-hours { font-size: 0.85rem; margin-top: 0.4rem; color: rgba(255,255,255,0.55); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 0;
  font-size: 0.82rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-disclaimer { color: rgba(255, 255, 255, 0.5); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float.wa-float--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .request-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-card { grid-template-columns: 1fr; padding: 2.2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step-arrow { transform: rotate(90deg); padding: 0; justify-self: center; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 1.2rem 5%;
    gap: 1rem;
    border-bottom: 1px solid rgba(10, 59, 46, 0.1);
    box-shadow: 0 14px 30px rgba(10, 59, 46, 0.12);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }

  .hero { padding: 3rem 0 3.5rem; }
  .hero-arch { padding: 2.4rem 1.4rem 0; border-radius: 200px 200px 0 0; }
  .hero-arch::before { border-radius: 192px 192px 0 0; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .request-form { padding: 1.8rem 1.4rem; }

  .wa-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
}