:root {
  --bg: #fff4e6;
  --surface: #fffaf3;
  --card: #ffffff;
  --ink: #1b1a1e;
  --muted: #6d6674;
  --accent: #f1992c;
  --accent-2: #0f1324;
  --line: #f0e4d6;
  --shadow: 0 24px 60px rgba(15, 19, 36, 0.12);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Changa', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fff1dd 0, #ffe7ce 30%, #fffaf3 55%, #fffefb 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'El Messiri', 'Changa', sans-serif;
  margin: 0;
  color: var(--accent-2);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.hero-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(241, 153, 44, 0.08), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(15, 19, 36, 0.06), transparent 30%),
    radial-gradient(circle at 60% 80%, rgba(241, 153, 44, 0.07), transparent 32%);
  mix-blend-mode: multiply;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 32px;
  background: rgba(255, 252, 247, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* حجم الشعار */
.brand img {
  width: 70px;
  height: auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ffc267);
  color: #231b0d;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 30px rgba(241, 153, 44, 0.3);
}

.brand-name {
  display: block;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
  position: relative;
}

.nav a {
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a.active {
  background: rgba(241, 153, 44, 0.16);
  color: var(--accent-2);
}

.nav a:hover {
  background: rgba(241, 153, 44, 0.12);
  color: var(--accent-2);
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.solid {
  background: linear-gradient(135deg, var(--accent), #ffb34c);
  color: #231b0d;
  box-shadow: 0 16px 30px rgba(241, 153, 44, 0.35);
}

.btn.outline {
  border-color: var(--accent);
  color: var(--accent-2);
  background: #fffdf8;
}

.btn.ghost {
  background: rgba(15, 19, 36, 0.06);
  color: var(--accent-2);
}

.info-bar {
  background: #0f1324;
  color: #fefaf3;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.info-bar .info-left,
.info-bar .info-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.info-bar a {
  color: #ffd48a;
  font-weight: 700;
}

.info-sep {
  color: rgba(255, 255, 255, 0.55);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--accent-2);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 19, 36, 0.08);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: 72px 32px 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hero-content h1 {
  font-size: 40px;
  margin: 12px 0;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 19, 36, 0.06);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.hero-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

.hero-meta .meta-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 14px;
}

.badge {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--accent-2);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(15, 19, 36, 0.08);
}

.highlight {
  background: linear-gradient(135deg, #fff3e1, #ffe7cb);
  border: 1px solid rgba(241, 153, 44, 0.35);
}

.muted {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px dashed var(--line);
}

.stat-number {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-2);
}

.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.product {
  display: grid;
  gap: 10px;
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(241, 153, 44, 0.1);
  color: var(--accent-2);
  font-weight: 700;
  width: max-content;
}

.product ul {
  padding-inline-start: 18px;
  margin: 0;
  color: var(--muted);
}

.quality {
  background: linear-gradient(180deg, rgba(255, 245, 232, 0.7), rgba(255, 250, 243, 0.9));
  border-radius: 26px;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.ribbon {
  position: relative;
  overflow: hidden;
}

.ribbon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241, 153, 44, 0.08), transparent);
  pointer-events: none;
}

.metric {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.metric span {
  font-size: 22px;
}

.posts {
  background: var(--surface);
  border-radius: 26px;
}

.posts-slider {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.posts-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.35s ease;
}

.post-card {
  padding: 10px 6px;
}

.post-card blockquote {
  margin: 0;
  padding: 18px 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  min-height: 140px;
  box-shadow: 0 12px 30px rgba(15, 19, 36, 0.08);
}

.post-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--accent-2);
}

.slider-btn.prev { right: unset; left: 10px; }
.slider-btn.next { right: 10px; }

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

.cta-banner {
  background: linear-gradient(120deg, #0f1324, #1c2140);
  color: #fefaf3;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 16px;
}

.cta-content h2 { color: #fff; }
.cta-content p { color: #d6d4dd; }
.cta-content .btn.outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.cta-badge {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contact-form {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--accent-2);
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 153, 44, 0.18);
}

.small-note {
  font-size: 13px;
}

.form-status.success {
  color: #0f7b32;
}

.form-status.error {
  color: #b3261e;
}

.pwa-toast {
  position: fixed;
  bottom: 90px;
  right: 16px;
  left: 16px;
  max-width: 380px;
  margin-inline: auto;
  background: #0f1324;
  color: #fffaf3;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 10px;
  z-index: 25;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pwa-toast.hidden {
  display: none;
}

.pwa-toast .toast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pwa-toast .toast-title {
  font-weight: 700;
}

.pwa-toast .toast-actions {
  display: flex;
  gap: 8px;
}

.pwa-toast button {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.toast-install {
  background: linear-gradient(135deg, var(--accent), #ffb34c);
  color: #231b0d;
}

.toast-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact-card h3 {
  margin-bottom: 6px;
}

.contact-link {
  display: block;
  font-weight: 700;
  margin: 2px 0;
}

.floating-call {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: var(--accent-2);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer {
  background: #0f1324;
  color: #f3efe5;
  margin-top: 48px;
  padding: 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.footer h4 {
  margin: 0 0 8px;
  color: #ffd48a;
}

.footer a {
  color: #fff;
  display: block;
  margin: 2px 0;
  font-weight: 600;
}

.footer p {
  color: #cbc6d8;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #dcd7e5;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    text-align: right;
    justify-items: end;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .cta {
    display: none;
  }

  .nav {
    order: 3;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .info-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .cta-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 90px;
  }

  .hero {
    padding-inline: 20px;
  }

  .section {
    padding-inline: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .floating-call {
    width: calc(100% - 36px);
  }
}
