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

:root {
  --ink: #0f1410;
  --ink-2: #1a221c;
  --muted: #5a6360;
  --muted-2: #8b938f;
  --line: #e4ebe7;
  --line-2: #eef2f0;
  --paper: #f5f4f0;
  --panel: #ffffff;
  --orange: #f47820;
  --orange-deep: #c95f0d;
  --orange-soft: #fff0e0;
  --orange-glow: rgba(244,120,32,0.12);
  --green: #1a7a56;
  --green-soft: #e8f5ef;
  --shadow-sm: 0 2px 12px rgba(15,20,16,0.07);
  --shadow-md: 0 12px 48px rgba(15,20,16,0.11);
  --shadow-lg: 0 32px 80px rgba(15,20,16,0.14);
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1140px;
  --gutter: clamp(18px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Tajawal', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Shared container ── */
.hero, .section-grid, .sample, .intake,
.testimonials-inner, .faq-inner, .footer-inner {
  width: min(var(--maxw), 100% - calc(var(--gutter) * 2));
  margin-inline: auto;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(245,244,240,0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.05rem; }

nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 22px); }

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--orange), #ff9445);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(244,120,32,0.4);
}

nav a { color: var(--muted); font-size: 0.95rem; font-weight: 600; transition: color 0.15s; }
nav a:hover { color: var(--ink); }
nav .nav-link { display: none; }


/* ── Typography ── */
h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 10vw, 5rem);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 900;
}
h1 em { font-style: normal; color: var(--orange); }

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 900;
}

h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px 14px;
  background: var(--orange-soft);
  border: 1px solid rgba(244,120,32,0.22);
  border-radius: 100px;
  color: var(--orange-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3.6vw, 1.22rem);
  line-height: 1.85;
  max-width: 48ch;
}

.section-head { max-width: 60ch; margin-bottom: clamp(28px, 5vw, 44px); }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

/* ── Hero ── */
.hero-wrap {
  background:
    radial-gradient(120% 90% at 15% -10%, rgba(244,120,32,0.22), transparent 60%),
    radial-gradient(80% 70% at 95% 110%, rgba(244,120,32,0.10), transparent 55%),
    var(--ink);
  color: white;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  padding: clamp(44px, 9vw, 96px) 0 clamp(48px, 9vw, 100px);
}

.hero-wrap .eyebrow { background: rgba(244,120,32,0.16); border-color: rgba(244,120,32,0.35); color: #ffb066; }
.hero-wrap h1 { color: white; }
.hero-wrap .lede { color: rgba(255,255,255,0.66); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 5vw, 36px); }

/* ── Buttons ── */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}
.button:disabled { cursor: wait; opacity: 0.65; }

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--orange), #ff8c3c);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(244,120,32,0.4);
}
.button.primary:hover { box-shadow: 0 12px 30px rgba(244,120,32,0.5); transform: translateY(-2px); }

.button.secondary { color: var(--ink); background: var(--panel); }
.button.secondary:hover { background: #f3f3f1; transform: translateY(-2px); }

.hero-wrap .button.secondary { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: white; }
.hero-wrap .button.secondary:hover { background: rgba(255,255,255,0.16); }

/* ── Proof strip ── */
.proof-strip {
  display: flex;
  gap: 10px;
  margin: clamp(30px, 6vw, 44px) 0 0;
  padding: 0;
}
.proof-strip div {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 12px;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.proof-strip dt {
  color: var(--orange);
  font-size: clamp(1.4rem, 5.5vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
}
.proof-strip dd {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: clamp(0.68rem, 2.6vw, 0.82rem);
  font-weight: 500;
  line-height: 1.4;
}
.hero-whatsapp { margin-top: 20px; }
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
.whatsapp-btn:hover { background: #1ebe5d; transform: translateY(-1px); }

/* ── Report preview card ── */
.report-preview {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 5vw, 30px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.report-preview::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #ffb347);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.preview-header strong { color: var(--ink); font-size: 2rem; font-weight: 900; }

.score-ring {
  display: grid;
  width: min(220px, 64vw);
  aspect-ratio: 1;
  place-items: center;
  margin: 22px auto;
  background:
    radial-gradient(circle closest-side, white 68%, transparent 69%),
    conic-gradient(var(--orange) 72%, #ffe0bd 0);
  border-radius: 50%;
  box-shadow: 0 10px 34px rgba(244,120,32,0.2);
}
.score-ring span { width: 130px; color: var(--orange-deep); font-size: 1.35rem; font-weight: 900; line-height: 1.3; text-align: center; }

.preview-list { display: grid; gap: 9px; }
.preview-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.preview-list p { flex: 1; margin: 0; font-weight: 600; font-size: 0.92rem; }
.preview-list strong { color: var(--orange); font-weight: 800; font-size: 0.82rem; white-space: nowrap; }
.status { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 999px; }
.status.hot { background: var(--orange); box-shadow: 0 0 6px rgba(244,120,32,0.5); }
.status.warm { background: #e8b83d; }
.status.cool { background: var(--green); }

/* ── Sections ── */
.section-grid, .sample, .intake { padding: clamp(56px, 11vw, 104px) 0; }
.section-grid, .sample { border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); }

/* ── Offer / steps ── */
.offer-grid { display: grid; gap: 14px; }
.offer-grid article {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.offer-grid article:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.offer-grid article .step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 900;
  font-size: 1.2rem;
  border: 1px solid rgba(244,120,32,0.25);
}
.offer-grid p, .sample-copy p, .intake-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

/* ── Sample ── */
.sample { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.sample-copy p { margin-top: 14px; font-size: 1.05rem; }

.sample-table { display: grid; gap: 12px; }
.sample-table .row {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.sample-table .row .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sample-table strong { font-weight: 800; font-size: 1.05rem; }
.sample-table span { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.sample-table .badge {
  flex: 0 0 auto;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-style: normal;
  font-weight: 800;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ── Intake ── */
.intake { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 56px); }
.intake-wrap { background: var(--ink); border-top: 1px solid var(--line); }
.intake-wrap .eyebrow { background: rgba(244,120,32,0.16); border-color: rgba(244,120,32,0.35); color: #ffb066; }
.intake-wrap h2 { color: white; }
.intake-wrap .intake-copy p { color: rgba(255,255,255,0.62); }
.intake-wrap .trust-list li { color: rgba(255,255,255,0.72); }

.audit-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(20px, 5vw, 34px);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; font-size: 0.95rem; }
label.wide, .form-actions, .summary { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fafbfa;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font: inherit;
  font-size: 1.02rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(244,120,32,0.15);
  background: #fff;
}
textarea { resize: vertical; min-height: 120px; }

.textarea-wrap { position: relative; }
.textarea-wrap textarea { width: 100%; padding-bottom: 44px; }
.voice-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  line-height: 1;
}
.voice-btn:hover { border-color: var(--orange); background: var(--orange-soft); }
.voice-btn.recording {
  background: #fee;
  border-color: #e33;
  box-shadow: 0 0 0 4px rgba(220,50,50,0.15);
  animation: pulse-red 1s infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 3px rgba(220,50,50,0.15); }
  50% { box-shadow: 0 0 0 7px rgba(220,50,50,0.08); }
}

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-actions .button { flex: 1 1 100%; }

.summary {
  padding: 18px 20px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #b8dfd0;
  border-radius: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  font-size: 0.96rem;
}

.trust-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.trust-list li { font-size: 1rem; color: var(--muted); font-weight: 500; }

.form-guarantee { grid-column: 1 / -1; margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; font-weight: 500; }

/* ── Testimonials ── */
.testimonials { border-top: 1px solid var(--line); background: var(--orange-soft); padding: clamp(56px, 10vw, 96px) 0; }
.testimonials h2 { margin-bottom: 8px; }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: clamp(28px, 5vw, 44px); }

blockquote {
  position: relative;
  margin: 0;
  padding: 28px 26px 24px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
blockquote::before {
  content: '\201D';
  position: absolute;
  top: 6px;
  right: 18px;
  color: var(--orange);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.85;
  font-family: Georgia, 'Times New Roman', serif;
}
blockquote p {
  position: relative;
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.85;
  font-weight: 500;
}
blockquote cite {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
  font-style: normal;
}

/* ── FAQ (accordion) ── */
.faq { border-top: 1px solid var(--line); padding: clamp(56px, 10vw, 96px) 0; }
.faq h2 { margin-bottom: 8px; }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: clamp(28px, 5vw, 44px); }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '\2212'; transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 20px 20px; }
.faq-item .faq-body p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.faq-item a { color: var(--orange); font-weight: 600; }

/* ── Footer ── */
footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: clamp(40px, 7vw, 60px) 0 48px; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 800; font-size: 1.1rem; }
.footer-inner > p { margin: 0; max-width: 42ch; line-height: 1.8; font-size: 1rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-links span { color: rgba(255,255,255,0.25); }

/* ════════════════ TABLET ════════════════ */
@media (min-width: 720px) {
  nav .nav-link { display: inline; }
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .sample-table { grid-template-columns: repeat(3, 1fr); }
  .proof-strip { max-width: 580px; }
  .form-actions .button { flex: 1 1 auto; }
}

/* ════════════════ DESKTOP ════════════════ */
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); }
  .section-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .sample { grid-template-columns: 0.85fr 1.15fr; }
  .intake { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .audit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-strip { max-width: 540px; }

  .sample-table { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
  .sample-table .row {
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 18px 22px;
  }
  .sample-table .row:last-child { border-bottom: 0; }
  .sample-table .row .top { display: contents; }
}

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