:root {
  --bg: #f7f3ec;
  --bg-soft: #fffdf9;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --text: #111111;
  --muted: #5f5a52;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.15);
  --orange: #f08217;
  --orange-deep: #d96f0d;
  --orange-soft: #ffe3c8;
  --shadow: 0 22px 60px rgba(25, 18, 7, 0.08);
  --shadow-soft: 0 14px 36px rgba(25, 18, 7, 0.06);
  --radius: 28px;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 130, 23, 0.12), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.05), transparent 18%),
    linear-gradient(180deg, #fffdfa 0%, #f7f3ec 44%, #f1eadf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(240, 130, 23, 0.06) 62% 63%, transparent 63% 100%);
  opacity: 0.9;
}

body.lang-ar {
  font-family: "Cairo", sans-serif;
}

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

.site-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding-bottom: 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(240, 130, 23, 0.12);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.brand,
.toolbar,
.nav,
.hero-actions,
.hero-points,
.signal-grid,
.cards,
.contact-grid,
.stats {
  display: flex;
}

.brand {
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  width: clamp(158px, 18vw, 212px);
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
}

.nav {
  gap: 22px;
}

.nav a,
.cta-link,
.lang-toggle,
.button,
.card,
.product-card,
.stats article,
.contact-card,
.logo-card {
  transition: 180ms ease;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--orange), transparent);
  transition: transform 180ms ease;
}

.nav a:hover,
.cta-link:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.toolbar {
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle:hover,
.button.secondary:hover {
  border-color: rgba(240, 130, 23, 0.35);
  background: rgba(240, 130, 23, 0.08);
}

.cta-link,
.button {
  border-radius: 999px;
  padding: 12px 18px;
}

.cta-link {
  background: #111111;
  color: #ffffff;
}

.cta-link:hover {
  background: var(--orange);
}

.hero,
.split,
.contact-grid {
  display: grid;
  gap: 30px;
}

.hero {
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 160px);
  align-items: center;
  padding: 88px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange-deep);
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

body.lang-ar .eyebrow {
  letter-spacing: 0;
}

body.lang-ar .eyebrow::before {
  order: 2;
}

.hero h1,
.section-heading h2,
.split h2 {
  margin: 0;
  line-height: 0.98;
  font-weight: 700;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.hero-text,
.section-heading p,
.card p,
.product-card p,
.about-copy p,
.contact-card p,
.contact-list span {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 60ch;
  margin: 24px 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, var(--orange), #ff9c3f);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(240, 130, 23, 0.24);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(240, 130, 23, 0.3);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.64);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  gap: 14px;
  flex-direction: column;
}

.hero-points li {
  position: relative;
  padding-inline-start: 24px;
  color: #27231d;
}

.hero-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(240, 130, 23, 0.14);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  inset-inline-end: 16px;
  bottom: -14px;
  width: min(74%, 360px);
  height: 18px;
  border-bottom: 8px solid rgba(240, 130, 23, 0.9);
  border-inline-start: 8px solid rgba(240, 130, 23, 0.9);
  transform: skewX(-28deg);
  pointer-events: none;
}

.hero-panel::after {
  width: min(60%, 300px);
  bottom: 12px;
  border-bottom-width: 6px;
  border-inline-start-width: 6px;
  opacity: 0.76;
}

.hero-badge {
  width: fit-content;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(240, 130, 23, 0.18);
  color: #312c25;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}

.logo-card,
.signal-card,
.card,
.product-card,
.contact-card,
.stats article {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.logo-card {
  padding: clamp(18px, 3vw, 30px);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 243, 0.97)),
    var(--panel-strong);
}

.logo-card img {
  width: 100%;
  display: block;
}

.signal-card {
  width: min(100%, 540px);
  padding: 26px;
  border-radius: 30px;
}

.signal-title {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--orange-deep);
  font-weight: 700;
}

.signal-grid {
  gap: 16px;
  flex-wrap: wrap;
}

.signal-grid article {
  width: calc(50% - 8px);
  padding: 18px;
  border-radius: 22px;
  background: rgba(17, 17, 17, 0.03);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.signal-grid strong,
.card-index {
  display: block;
  color: var(--orange-deep);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.hero-note {
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(17, 17, 17, 0.95);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.hero-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 52px 0;
}

.section.alt {
  padding: 68px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.split h2 {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
}

.cards {
  gap: 18px;
  flex-wrap: wrap;
}

.four-up > * {
  width: calc(25% - 13.5px);
}

.two-up > * {
  width: calc(50% - 9px);
}

.card,
.product-card,
.contact-card,
.stats article {
  border-radius: var(--radius);
}

.card,
.product-card,
.contact-card {
  padding: 26px;
}

.card:hover,
.product-card:hover,
.contact-card:hover,
.stats article:hover,
.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 56px rgba(25, 18, 7, 0.12);
}

.card h3,
.product-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  bottom: -34px;
  width: 160px;
  height: 80px;
  border-bottom: 5px solid rgba(240, 130, 23, 0.2);
  border-inline-start: 5px solid rgba(240, 130, 23, 0.2);
  transform: skewX(-30deg);
}

.product-tag {
  margin: 0 0 18px;
  font-weight: 700;
}

.accent-coral,
.accent-blue,
.accent-gold,
.accent-teal {
  box-shadow: inset 0 0 0 1px rgba(240, 130, 23, 0.18), var(--shadow);
}

.split {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.about-copy {
  position: relative;
  padding-inline-start: 30px;
}

.about-copy::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange), rgba(240, 130, 23, 0.08));
}

.stats {
  gap: 18px;
  padding: 14px 0 44px;
}

.stats article {
  flex: 1;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 240, 0.96)),
    var(--panel);
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li + li {
  margin-top: 18px;
}

.contact-list strong {
  display: block;
  margin-top: 4px;
  line-height: 1.6;
}

.map-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 240, 0.98)),
    var(--panel);
}

.footer {
  padding: 28px 0 8px;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 0.95rem;
  color: #3c372f;
}

body.lang-ar {
  direction: rtl;
}

body.lang-ar .brand,
body.lang-ar .toolbar,
body.lang-ar .nav,
body.lang-ar .hero-actions,
body.lang-ar .cards,
body.lang-ar .stats {
  direction: rtl;
}

body.lang-ar .nav a::after {
  transform-origin: right;
}

@media (max-width: 1080px) {
  .topbar,
  .nav,
  .toolbar {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .four-up > *,
  .two-up > * {
    width: calc(50% - 9px);
  }

  .hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .topbar {
    position: static;
    padding: 16px;
  }

  .brand {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  body.lang-ar .brand {
    align-items: flex-end;
  }

  .brand-logo {
    width: min(220px, 100%);
  }

  .nav {
    gap: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero h1 {
    max-width: none;
  }

  .four-up > *,
  .two-up > *,
  .signal-grid article {
    width: 100%;
  }

  .stats {
    flex-direction: column;
  }

  .hero-panel::before,
  .hero-panel::after {
    inset-inline-end: 8px;
    width: 58%;
  }
}
