/* Sanad – shared styles. Mobile first. */
:root {
  --green: #1F4D3A;
  --green-dark: #163829;
  --sand: #F4EDE2;
  --sand-dark: #E9DFCF;
  --gold: #C9A24A;
  --gold-dark: #B08A36;
  --text: #1E1E1E;
  --muted: #5A5A52;
  --white: #FFFDF9;
  --danger: #A33A2B;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(31, 77, 58, .08);
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.7;
  color: var(--text); background: var(--sand);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.35; color: var(--green); margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section-alt { background: var(--white); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo { background: #FFF3C4; outline: 2px dashed var(--gold); padding: 2px 6px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { background: var(--green); color: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: .5px; }
.logo span { color: var(--gold); font-weight: 500; font-size: 1rem; margin-inline-start: 6px; }
.header-wa { color: var(--white); text-decoration: none; font-size: .95rem; border: 1px solid rgba(255,255,255,.35); padding: 6px 14px; border-radius: 999px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1.1rem; text-align: center;
  text-decoration: none; border: 0; border-radius: var(--radius); padding: 14px 26px; cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--text); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .7; cursor: wait; }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: var(--white); padding: 40px 0 56px; }
.hero h1 { color: var(--white); font-size: 2.1rem; }
.hero p { font-size: 1.15rem; opacity: .92; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Product cards ---------- */
.cards { display: grid; gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
}
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-price { font-weight: 800; color: var(--green); font-size: 1.2rem; }
.card .btn { margin-top: auto; }

/* ---------- Trust ---------- */
.trust { display: grid; gap: 14px; }
.trust-item { background: var(--white); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.trust-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--sand-dark); display: grid; place-items: center; font-size: 1.3rem; }
.trust-item h3 { margin: 0 0 2px; font-size: 1.1rem; }
.trust-item p { margin: 0; color: var(--muted); }

/* ---------- Gift ---------- */
.gift { background: var(--sand-dark); border-radius: var(--radius); padding: 32px 20px; text-align: center; }

/* ---------- Product page ---------- */
.product-top { display: grid; gap: 24px; padding: 24px 0 8px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.gallery-main img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs button { flex: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--white); cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; }
.price-line { font-size: 1.5rem; font-weight: 800; color: var(--green); margin: 4px 0 12px; }
.price-line small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.benefits { list-style: none; padding: 0; margin: 0 0 20px; }
.benefits li { padding: 8px 0; padding-inline-start: 34px; position: relative; border-bottom: 1px solid var(--sand-dark); }
.benefits li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--white); font-size: .8rem; display: grid; place-items: center; }

.steps { display: grid; gap: 14px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; padding-inline-start: 70px; min-height: 76px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--text); font-weight: 800; display: grid; place-items: center; }
.step h3 { margin: 0 0 4px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

.notice { background: var(--white); border-inline-start: 5px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; }
.notice h3 { font-size: 1.05rem; margin-bottom: 6px; }
.notice ul { margin: 0; padding-inline-start: 20px; }

.reviews-todo { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--muted); background: var(--white); }

/* ---------- Order form ---------- */
.order-slot { scroll-margin-top: 80px; }
.order-form { background: var(--white); border: 2px solid var(--gold); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.form-title { text-align: center; margin-bottom: 14px; }
.offers { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.offer { display: block; cursor: pointer; }
.offer input { position: absolute; opacity: 0; }
.offer-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px solid var(--sand-dark); border-radius: var(--radius); padding: 12px 14px; background: var(--sand); }
.offer input:checked + .offer-body { border-color: var(--green); background: #E6EFE9; box-shadow: inset 0 0 0 1px var(--green); }
.offer input:focus-visible + .offer-body { outline: 3px solid var(--gold); }
.offer-label { font-weight: 700; }
.offer-price { font-weight: 800; color: var(--green); white-space: nowrap; }
.badge { font-style: normal; font-size: .8rem; background: var(--gold); color: var(--text); padding: 2px 8px; border-radius: 999px; margin-inline-start: 4px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 700; margin-bottom: 4px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid #CFC6B6;
  border-radius: 10px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,77,58,.15); }
.field input[type="tel"] { text-align: right; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.total { background: var(--sand); border-radius: 10px; padding: 12px; text-align: center; font-size: 1.1rem; margin: 6px 0 12px; }
.total strong { color: var(--green); font-size: 1.3rem; }
.form-error { background: #FBE9E6; color: var(--danger); border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.form-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 10px 0 0; }
.btn.loading { position: relative; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 237, 226, .96); box-shadow: 0 -4px 16px rgba(0,0,0,.08); transition: transform .25s;
}
.sticky-cta.hidden { transform: translateY(110%); }
.sticky-cta .btn { width: 100%; display: flex; justify-content: space-between; align-items: center; }
body.has-sticky { padding-bottom: 84px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; left: 16px; bottom: 96px; z-index: 31; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
body:not(.has-sticky) .wa-float { bottom: 20px; }

/* ---------- Simple pages ---------- */
.page { padding: 32px 0 48px; }
.page-box { background: var(--white); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.thanks { text-align: center; }
.thanks .check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(255,253,249,.85); padding: 36px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 14px 0; padding: 0; list-style: none; }
.footer-logo { font-weight: 800; font-size: 1.3rem; color: var(--white); }

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
  h1 { font-size: 2.4rem; }
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .product-top { grid-template-columns: 1fr 1fr; align-items: start; padding-top: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none; }
  body.has-sticky { padding-bottom: 0; }
  body.has-sticky .wa-float { bottom: 20px; }
}

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