/* ============================================================
   مُتقِن — نظام تصميم نظيف يدعم الثيم الفاتح والداكن
   ============================================================ */

:root,
[data-theme="light"] {
  --bg: #f8f9fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #0f766e;
  --primary-hover: #0d5e58;
  --primary-soft: rgba(15, 118, 110, 0.1);
  --primary-ink: #ffffff;
  --header-bg: rgba(248, 249, 251, 0.88);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.11);
  --radius: 16px;
}

[data-theme="dark"] {
  --bg: #0b0f17;
  --bg-soft: #101622;
  --surface: #141c2b;
  --surface-subtle: #1b2538;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #14b8a6;
  --primary-hover: #2dd4bf;
  --primary-soft: rgba(20, 184, 166, 0.14);
  --primary-ink: #041917;
  --header-bg: rgba(11, 15, 23, 0.86);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color 0.22s ease, color 0.22s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.5rem;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
}

.btn-sm {
  padding: 0.56rem 1.05rem;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 54ch;
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.1rem;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.spec-item strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
}

.spec-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Editorial Hero Media */
.hero-media {
  position: relative;
}

.hero-photo-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-photo-caption {
  padding: 1.05rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.hero-photo-caption strong {
  display: block;
  font-size: 0.94rem;
}

.hero-photo-caption span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-pill {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.section-kicker {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}

.card h3 {
  font-size: 1.14rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Portfolio Demos with Real Photography */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.demo-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-subtle);
}

.demo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.demo-card:hover .demo-media img {
  transform: scale(1.04);
}

.demo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.demo-body h3 {
  font-size: 1.18rem;
  font-weight: 800;
}

.demo-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-list svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.28rem;
}

.demo-actions {
  margin-top: auto;
  display: flex;
  gap: 0.65rem;
  padding-top: 0.75rem;
}

.demo-actions .btn {
  flex: 1;
}

/* Pricing */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.65rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.popular-pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.22rem 0.9rem;
  border-radius: 999px;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 900;
  margin: 0.55rem 0 0.15rem;
  line-height: 1.15;
}

.price-delivery {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.price-card .check-list {
  margin-bottom: 1.6rem;
  color: var(--text);
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Process */
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

/* Quote Box */
.quote-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 1.15rem 1.3rem;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-q svg {
  transition: transform 0.2s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-muted);
  padding: 0 1.3rem;
  font-size: 0.94rem;
}

.faq-item.open .faq-a {
  max-height: 260px;
  padding-bottom: 1.2rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 90;
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  padding: 0.76rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.32);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  background: #15803d;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-3,
  .quote-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.8rem 0 3rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.2rem;
    gap: 0.95rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta,
  .theme-label {
    display: none;
  }
}
