/* ==========================================================================
   شركة خيرات الساعدية لصناعة المواد الخام
   style.css — ملف التنسيق الوحيد
   ========================================================================== */

/* ---------- 1. المتغيرات والأساسيات ---------- */
:root {
  --bg: #f7f5f0;
  --bg-alt: #efeae1;
  --ink: #191817;
  --ink-soft: #5c5852;
  --line: rgba(25, 24, 23, 0.12);
  --line-strong: rgba(25, 24, 23, 0.22);
  --accent: #b08654;
  --accent-dark: #8f6a3f;
  --dark: #121110;
  --dark-soft: #1c1a18;
  --white: #ffffff;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 2. عناصر مساعدة ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.accent-text {
  color: var(--accent-dark);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.sec-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sec-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sec-sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- 3. الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-solid:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  margin-top: 0.75rem;
}

/* ---------- 4. شريط التنقل ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}

.brand span {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-phone {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.nav-phone:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- 5. الواجهة الرئيسية ---------- */
.hero {
  position: relative;
  padding-top: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 88% 8%, rgba(176, 134, 84, 0.13), transparent 46%),
    radial-gradient(circle at 4% 92%, rgba(176, 134, 84, 0.09), transparent 42%);
}

.hero-inner {
  max-width: 940px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.1rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin-top: 1.8rem;
  max-width: 640px;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- 6. الشريط المتحرك ---------- */
.strip {
  margin-top: clamp(4rem, 8vw, 6rem);
  background: var(--dark);
  color: var(--bg);
  overflow: hidden;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.strip:hover .strip-track {
  animation-play-state: paused;
}

.strip-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-inline: 1.1rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: rgba(247, 245, 240, 0.72);
  white-space: nowrap;
}

.strip-group span:nth-child(even) {
  color: var(--accent);
  font-size: 0.7rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ---------- 7. عن الشركة ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-side h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.35;
}

.about-body p {
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  font-size: 1.02rem;
}

.about-body p:last-of-type {
  margin-bottom: 0;
}

.about-points {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.about-points li {
  padding: 1.05rem 0 1.05rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.98rem;
  font-weight: 500;
}

.about-points li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 8. الأنشطة — قائمة عمودية بدون بطاقات ---------- */
.acts {
  border-top: 1px solid var(--line-strong);
}

.act {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1.6rem, 3.2vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-inline 0.45s var(--ease), background 0.45s var(--ease);
}

.act::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}

.act:hover::after {
  transform: scaleX(1);
}

.act:hover {
  padding-inline: 1.1rem;
}

.act-num {
  flex-shrink: 0;
  width: 3.4rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 200;
  line-height: 1.5;
  color: var(--accent-dark);
  letter-spacing: 0.04em;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

.act:hover .act-num {
  color: var(--ink);
  transform: translateX(-4px);
}

.act-body h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
}

.act-body p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.98rem;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease),
    margin-top 0.5s var(--ease);
}

.act:hover .act-body p,
.act:focus-within .act-body p {
  max-height: 220px;
  opacity: 1;
  margin-top: 0.7rem;
}

/* ---------- 9. منهجية العمل ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.step {
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.2rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  transition: background 0.45s var(--ease);
}

.step:first-child {
  border-inline-start: none;
}

.step:hover {
  background: var(--bg-alt);
}

.step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 1.2rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- 10. الالتزام ---------- */
.commitment {
  background: var(--dark);
  color: var(--bg);
}

.commitment .eyebrow {
  color: var(--accent);
}

.big-text {
  max-width: 980px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: rgba(247, 245, 240, 0.94);
}

/* ---------- 11. تواصل معنا ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1.2rem;
}

.contact-info > p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.contact-list {
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.contact-list a {
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s var(--ease);
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--accent-dark);
}

/* ---------- 12. النموذج ---------- */
.contact-form {
  background: var(--bg-alt);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
}

.field {
  margin-bottom: 1.6rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.35s var(--ease);
}

.field textarea {
  resize: vertical;
  line-height: 1.7;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: left 10px center, left 15px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(92, 88, 82, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

/* ---------- 13. التذييل ---------- */
.footer {
  background: var(--dark-soft);
  color: rgba(247, 245, 240, 0.82);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.footer-sub {
  font-size: 0.9rem;
  color: rgba(247, 245, 240, 0.6);
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.footer-links a {
  font-size: 0.95rem;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.6rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(247, 245, 240, 0.5);
}

/* ---------- 14. تأثير الظهور عند التمرير ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .strip-track {
    animation: none;
  }
  .btn:hover,
  .btn-ghost:hover,
  .act:hover,
  .act:hover .act-num {
    transform: none;
  }
}

/* ---------- 15. الاستجابة للشاشات ---------- */
@media (max-width: 980px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .step:first-child {
    border-inline-start: 1px solid var(--line);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(odd) {
    border-inline-start: none;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav .wrap {
    min-height: 72px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-links {
    align-items: flex-start;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step:nth-child(odd) {
    border-inline-start: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 18px;
  }

  .act {
    flex-direction: column;
    gap: 0.5rem;
  }

  .act-num {
    width: auto;
  }

  .act:hover {
    padding-inline: 0;
  }

  .act-body p {
    max-height: none;
    opacity: 1;
    margin-top: 0.6rem;
  }
}

/* ---------- 16. أجهزة اللمس — إظهار التفاصيل دائماً ---------- */
@media (hover: none) {
  .act-body p {
    max-height: none;
    opacity: 1;
    margin-top: 0.6rem;
  }

  .act:hover {
    padding-inline: 0;
  }

  .act:hover .act-num {
    transform: none;
    color: var(--accent-dark);
  }
}