/* Khazna promo site — brand teal #0e4a45, gold #c6a154, mint #e6f0ee */
@font-face {
  font-family: "Cairo";
  src: url("../assets/fonts/Cairo-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0e4a45;
  --teal-deep: #092f2c;
  --teal-mid: #2e625e;
  --teal-soft: #4a7774;
  --mint: #e6f0ee;
  --mint-2: #f4f8f7;
  --paper: #f7faf9;
  --gold: #c6a154;
  --gold-soft: #d4b169;
  --ink: #132927;
  --muted: #3d5c59;
  --line: #d5e3e0;
  --danger: #9b2c2c;
  --danger-bg: #fdecec;
  --ok: #0e4a45;
  --ok-bg: #e7f3f1;
  --warn: #7a5b12;
  --warn-bg: #f8f1de;
  --shadow: 0 20px 50px rgba(14, 74, 69, 0.12);
  --shadow-sm: 0 8px 24px rgba(14, 74, 69, 0.08);
  --radius: 18px;
  --header-h: 68px;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(198, 161, 84, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 200;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 250, 249, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-weight: 700; font-size: 1.15rem; color: var(--teal); }
.brand-sub { font-size: 0.72rem; color: var(--teal-soft); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.nav-links a:hover { color: var(--teal); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}
.lang-switch button.is-active {
  background: var(--teal);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: #1a1508;
  box-shadow: 0 8px 20px rgba(198, 161, 84, 0.28);
}
.btn-primary:hover { background: var(--gold-soft); }
.btn-secondary {
  background: #fff;
  color: var(--teal);
  border: 1px solid rgba(255,255,255,0.2);
}
.hero .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.hero .btn-secondary:hover { background: rgba(255,255,255,0.18); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn[disabled] { opacity: 0.65; cursor: not-allowed; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(198,161,84,0.18), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(230,240,238,0.1), transparent 40%),
    linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 55%, #163f3b 100%);
  color: #fff;
  overflow: hidden;
  padding: 3.2rem 0 4rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -6rem;
  top: -4rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  border: 16px solid rgba(198,161,84,0.12);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.55rem);
  line-height: 1.3;
  margin: 0 0 1rem;
  font-weight: 700;
}
.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--mint);
  font-size: 1.08rem;
  max-width: 36rem;
}
.hero-note {
  margin: 1rem 0 0;
  color: rgba(230,240,238,0.8);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.85rem;
}
.btn-hero-order {
  padding: 0.45rem 1rem;
  flex-shrink: 0;
}
[dir="rtl"] .gallery-nav svg { transform: scaleX(-1); }

.hero-phone {
  justify-self: center;
  width: min(280px, 100%);
}

/* phone frame */
.phone {
  background: #071c1a;
  border-radius: 28px;
  padding: 10px 8px 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 30px 60px rgba(0,0,0,0.35);
  position: relative;
}
.phone::before {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  background: #0a2623;
  border-radius: 999px;
  margin: 2px auto 8px;
}
.phone img {
  width: 100%;
  border-radius: 18px;
  background: #fff;
}

/* ---------- sections ---------- */
section { padding: 4.2rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.4rem; }
.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--teal);
}
.section-head p { margin: 0; color: var(--muted); }

.alt { background: #fff; }
.mint { background: var(--mint-2); }

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 0.4rem; font-size: 1.08rem; color: var(--teal); }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- gallery ---------- */
.gallery-wrap { position: relative; }
.gallery-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 0.25rem 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-soft) transparent;
  -webkit-overflow-scrolling: touch;
}
.shot {
  flex: 0 0 min(240px, 72vw);
  scroll-snap-align: start;
  margin: 0;
}
.shot .phone { box-shadow: var(--shadow); }
.shot figcaption {
  text-align: center;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  font-size: 0.95rem;
}
.gallery-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  display: grid;
  place-items: center;
}
.gallery-nav.prev { inset-inline-start: -8px; }
.gallery-nav.next { inset-inline-end: -8px; }
.gallery-nav svg { width: 20px; height: 20px; }

/* ---------- packages ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pkg-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem 1.2rem;
  cursor: pointer;
  text-align: start;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
}
.pkg-card:hover { border-color: var(--teal-soft); }
.pkg-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,161,84,0.28), var(--shadow-sm);
}
.pkg-card h3 { margin: 0; color: var(--teal); font-size: 1.05rem; line-height: 1.35; }
.pkg-card .pkg-body { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.pkg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.pkg-list li {
  position: relative;
  padding-inline-start: 1.3rem;
  font-size: 0.88rem;
  color: var(--teal-mid);
  font-weight: 600;
}
.pkg-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--gold);
}
.pkg-cta {
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.9rem;
}
.pkg-card.is-selected .pkg-cta { color: #8a6a22; }
.prices-note {
  text-align: center;
  color: var(--muted);
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.4rem 1.2rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.step h3 { margin: 0 0 0.4rem; color: var(--teal); }
.step p { margin: 0; color: var(--muted); }

/* ---------- form ---------- */
.order-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: var(--mint-2);
  color: var(--ink);
  font-size: 16px; /* prevent iOS zoom */
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--focus);
  background: #fff;
}
.field .error {
  display: block;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.is-invalid {
  border-color: var(--danger) !important;
  background: var(--danger-bg) !important;
}
.order-card .btn-primary { width: 100%; margin-top: 0.3rem; padding-block: 0.95rem; }

.form-status {
  margin-top: 1rem;
  border-radius: 14px;
  padding: 0.95rem 1rem;
}
.form-status p { margin: 0 0 0.5rem; }
.form-status p:last-child { margin-bottom: 0; }
.form-status.is-success { background: var(--ok-bg); color: var(--ok); border: 1px solid #bed9d4; }
.form-status.is-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #e6d7a8; }
.form-status.is-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #efc5c5; }
.form-status-hint { font-size: 0.92rem; }
.form-status-actions { margin-top: 0.7rem; }
.form-status .btn { padding: 0.55rem 1rem; font-size: 0.92rem; }
.order-copy {
  white-space: pre-wrap;
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 0.88rem;
  overflow-x: auto;
  max-width: 100%;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 0.7rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.2rem 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
  padding: 0.9rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: inline-end;
  color: var(--gold);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: var(--mint);
  padding: 2.2rem 0 1.6rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-links svg { width: 18px; height: 18px; fill: currentColor; }
.copyright { margin: 0; color: rgba(230,240,238,0.75); font-size: 0.9rem; }

/* ---------- privacy ---------- */
.page-main { padding: 2.5rem 0 4rem; }
.prose { max-width: 44rem; margin: 0 auto; }
.prose h1 { color: var(--teal); margin-bottom: 0.3rem; }
.prose .updated { color: var(--muted); margin-bottom: 2rem; }
.prose h2 { color: var(--teal); font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }
.prose p { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 2rem; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: start; }
  .hero-phone { width: min(230px, 70vw); order: 2; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(247,250,249,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    gap: 0;
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 0.9rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .gallery-nav.prev { inset-inline-start: 0; }
  .gallery-nav.next { inset-inline-end: 0; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  section { padding: 3rem 0; }
  .features { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .hero { padding: 2.2rem 0 2.6rem; }
  .hero h1 { font-size: 1.45rem; }
  .order-card { padding: 1.2rem 0.95rem 1.2rem; border-radius: 18px; }
  .header-inner { gap: 0.4rem; }
  .brand-sub { display: none; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 1rem); }
  .brand-name { font-size: 0.95rem; }
  .lang-switch { max-width: 100%; }
  .lang-switch button { padding: 0.18rem 0.38rem; font-size: 0.7rem; }
  .hero h1 { font-size: 1.32rem; }
  .shot { flex-basis: min(220px, 78vw); }
}

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