/* Second Draft — shared styles. Edit colours here; every page uses them. */
:root {
  --paper: #F6F7F5;
  --sheet: #FFFFFF;
  --ink: #1C2541;
  --muted: #56607A;
  --green: #1E7B4F;
  --green-soft: #E6F1EB;
  --rule: #DCE3EA;
  --margin-line: #E8A3A3;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}
[dir="rtl"] {
  --serif: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif;
  --hand: "Aref Ruqaa", "Noto Naskh Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}
[dir="rtl"] body { font-size: 1.15rem; line-height: 1.85; }

img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; font-size: 1rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--green); text-decoration: underline; }
.lang { border: 1px solid var(--rule); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 760px) { .site-nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 1.05rem; font-weight: 600;
  padding: 13px 22px; border-radius: 6px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--green); background: var(--green); color: #fff;
}
.btn:hover { background: #17633F; border-color: #17633F; color: #fff; }
.btn.secondary { background: transparent; color: var(--green); }
.btn.secondary:hover { background: var(--green-soft); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; }
[dir="rtl"] .hero h1 { max-width: 18ch; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.deadline { font-size: .98rem; color: var(--muted); border-inline-start: 3px solid var(--green); padding-inline-start: 12px; margin: 0; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The marked-up draft: the one memorable element */
.sheet {
  position: relative;
  margin: 0;
  background-color: var(--sheet);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule) 35px, var(--rule) 36px);
  background-position: 0 22px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(28, 37, 65, .35);
  padding: 22px 22px 26px 64px;
  line-height: 36px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  direction: ltr; text-align: left;
}
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 46px; width: 1.5px; background: var(--margin-line); }
.sheet .q { color: var(--muted); font-size: .9rem; margin: 0; }
.sheet .draft1 { margin: 0; color: #7A8297; text-decoration: line-through; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.sheet .note {
  font-family: var(--hand); color: var(--green); font-size: 1.55rem; line-height: 1.2;
  margin: 10px 0 14px; padding: 6px 0;
  transform: rotate(-1.5deg); transform-origin: left center;
}
.sheet .note.ar { font-family: "Aref Ruqaa", "Noto Naskh Arabic", serif; font-size: 1.35rem; line-height: 1.7; direction: rtl; text-align: right; transform: rotate(1deg); }
.sheet .draft2-label { font-size: .9rem; color: var(--green); margin: 0; font-weight: 600; }
.sheet .draft2-label.ar { font-family: "Noto Naskh Arabic", serif; direction: rtl; text-align: right; }
.sheet .draft2 { margin: 0; color: var(--ink); }
.sheet .tick { position: absolute; left: 14px; width: 22px; height: 22px; color: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .sheet .draft1 { animation: strike .9s .5s both ease-out; }
  .sheet .note { animation: write .6s 1.3s both ease-out; }
  .sheet .draft2-label, .sheet .draft2 { animation: write .6s 1.9s both ease-out; }
  @keyframes strike { from { text-decoration-color: transparent; color: var(--ink); } to { text-decoration-color: var(--green); color: #7A8297; } }
  @keyframes write { from { opacity: 0; } to { opacity: 1; } }
}

/* Sections */
section { padding: clamp(48px, 7vw, 84px) 0; }
section + section { border-top: 1px solid var(--rule); }
.section-intro { color: var(--muted); max-width: 56ch; margin-bottom: 36px; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); font-family: var(--hand); color: var(--green); font-size: 2.2rem; line-height: 1; display: block; margin-bottom: 8px; }
[dir="rtl"] .steps li::before { content: counter(step, arabic-indic); }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Price ledger */
.ledger { border-top: 2px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.ledger-row h3 { margin: 0 0 6px; }
.ledger-row p { color: var(--muted); margin: 0; max-width: 60ch; font-size: 1.02rem; }
.ledger-row .price { font-size: 1.6rem; font-weight: 700; white-space: nowrap; align-self: start; font-variant-numeric: tabular-nums; }
.ledger-row .price small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.ledger-row.featured .price { color: var(--green); }
.ledger-row .includes { margin: 10px 0 0; padding-inline-start: 1.1em; color: var(--ink); font-size: 1rem; }
.ledger-row .includes li { margin-bottom: 2px; }
.ledger-note { margin-top: 22px; font-size: 1rem; color: var(--muted); }
@media (max-width: 560px) { .ledger-row { grid-template-columns: 1fr; } }

/* People */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.person h3 { margin-bottom: 4px; }
.person .role { color: var(--green); font-weight: 600; margin-bottom: 10px; font-size: 1rem; }
.person p { font-size: 1.02rem; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }

/* Integrity pledge */
.pledge { background: var(--ink); color: #EEF1F6; }
.pledge h2 { color: #fff; }
.pledge p { color: #C9D0DE; }
.pledge .big { font-family: var(--hand); color: #8FD3AE; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.25; margin-bottom: 18px; color: #A6DFC0; }
.pledge a { color: #A6DFC0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 820px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sheet); border: 1.5px solid #C7D0DA; border-radius: 6px; padding: 11px 12px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
input[type="file"] { font: inherit; font-size: .98rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 96px; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: #1E7B4F; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(28, 37, 65, .45);
}
.wa-float:hover { background: #17633F; color: #fff; }
.wa-float svg { width: 22px; height: 22px; }

/* Simple text pages (privacy, terms, thanks) */
.page { padding: clamp(40px, 6vw, 72px) 0; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .95rem; }
