/* =========================================================
   شركة النبراس المضئ لأستيراد المواد الخام
   style.css — single stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink:        #0d1a17;
  --ink-soft:   #1c2b27;
  --copper:     #b87333;
  --copper-lt:  #d89b5f;
  --paper:      #f7f5f1;
  --paper-2:    #ffffff;
  --muted:      #7c8783;
  --line:       rgba(13, 26, 23, .12);

  --wrap:       1140px;
  --radius:     14px;

  --ease:       cubic-bezier(.22, 1, .36, 1);
  --dur:        .8s;

  --font:       'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--copper); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 110px 0; }

.section__head { margin-bottom: 64px; }

.section__kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
  position: relative;
  padding-right: 40px;
}
.section__kicker::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 26px;
  height: 1px;
  background: var(--copper);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 15px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s, box-shadow .35s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--copper-lt), var(--copper));
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(184, 115, 51, .75);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -14px rgba(184, 115, 51, .85);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .7);
  transform: translateY(-3px);
}

.btn--full { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 241, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 241, .96);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .06em;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 1.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--copper); }
.nav a:hover::after { transform: scaleX(1); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 85% -10%, rgba(184, 115, 51, .38), transparent 62%),
    radial-gradient(700px 520px at 5% 110%, rgba(28, 43, 39, .9), transparent 60%),
    linear-gradient(160deg, #0d1a17 0%, #132622 55%, #0a1512 100%);
  color: #fff;
  padding: 150px 0 170px;
}

/* fine grain texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 78%);
}

.hero__inner { position: relative; z-index: 2; max-width: 880px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--copper-lt);
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(2.1rem, 6.2vw, 4.3rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
  margin-bottom: 30px;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--copper-lt), #f2cfa4 60%, var(--copper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__activity {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, .78);
  max-width: 620px;
  margin-bottom: 46px;
  padding-right: 22px;
  border-right: 2px solid var(--copper);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 44px;
  right: 50%;
  transform: translateX(50%);
  z-index: 2;
  width: 24px;
  height: 46px;
  display: grid;
  place-items: center;
}
.scroll-cue span {
  width: 1.5px;
  height: 100%;
  background: rgba(255, 255, 255, .28);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--copper-lt);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* =========================================================
   PURPOSES  (list — not cards)
   ========================================================= */
.purposes {
  border-top: 1px solid var(--line);
}

.purpose {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 34px 18px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background .5s var(--ease), padding-right .5s var(--ease);
}
.purpose::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(184, 115, 51, .07));
  opacity: 0;
  transition: opacity .5s;
}
.purpose:hover {
  padding-right: 38px;
}
.purpose:hover::before { opacity: 1; }

.purpose__num {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 300;
  color: var(--copper);
  letter-spacing: .04em;
  line-height: 1;
  min-width: 62px;
  transition: transform .5s var(--ease);
}
.purpose:hover .purpose__num { transform: translateX(-6px); }

.purpose__title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .purpose__title { white-space: normal; }
}

.purpose__rule {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 1px;
  min-width: 40px;
  background: linear-gradient(90deg, var(--copper), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.purpose:hover .purpose__rule { transform: scaleX(1); }

/* =========================================================
   STATEMENT  (masked line reveal)
   ========================================================= */
.statement {
  position: relative;
  overflow: hidden;
  padding: 140px 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.statement__glow {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 720px;
  height: 720px;
  transform: translate(50%, -50%);
  background: radial-gradient(circle, rgba(184, 115, 51, .3), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

.statement__text {
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -.01em;
}
.statement__text em {
  font-style: normal;
  background: linear-gradient(100deg, var(--copper-lt), #f3d6b3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* line masking */
.reveal-lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}
.reveal-lines .line > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1s var(--ease);
}
.reveal-lines.is-visible .line > span { transform: translateY(0); }

.reveal-lines .line:nth-child(1) > span { transition-delay: .05s; }
.reveal-lines .line:nth-child(2) > span { transition-delay: .18s; }
.reveal-lines .line:nth-child(3) > span { transition-delay: .31s; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.contact__info .section__title { margin-bottom: 40px; }

.contact__list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list li:first-child { border-top: 1px solid var(--line); }

.contact__list span {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}
.contact__list a {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  transition: color .3s, padding-right .4s var(--ease);
  display: inline-block;
}
.contact__list a:hover {
  color: var(--copper);
  padding-right: 6px;
}

/* ---------- Form ---------- */
.form { display: block; }

.field { margin-bottom: 30px; }

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 2px;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color .4s, background .4s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.8;
}

.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--copper) 50%),
                    linear-gradient(135deg, var(--copper) 50%, transparent 50%);
  background-position: left 6px top 22px, left 12px top 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-left: 30px;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(124, 135, 131, .6); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--copper);
  background: rgba(184, 115, 51, .035);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding: 42px 0;
  font-size: .9rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 34px;
}
.footer__inner span { color: rgba(255, 255, 255, .85); font-weight: 500; }
.footer__inner a { transition: color .3s; }
.footer__inner a:hover { color: var(--copper-lt); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .contact { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 800px) {
  .section { padding: 84px 0; }
  .hero { padding: 110px 0 130px; }
  .statement { padding: 100px 0; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(13, 26, 23, .35);
    padding: 10px 24px 26px;
    transform: translateY(-130%);
    transition: transform .55s var(--ease);
    z-index: 55;
  }
  body.nav-open .nav { transform: translateY(0); }

  .nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav a::after { display: none; }

  .purpose {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 26px 8px;
  }
  .purpose:hover { padding-right: 8px; }
  .purpose__num { min-width: auto; font-size: 1.2rem; }
  .purpose__rule { display: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .wrap { padding-inline: 20px; }
  .hero__actions .btn { width: 100%; }
  .brand__name { font-size: .95rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-lines .line > span { transform: none; }
}