/* ==========================================================================
   ALAJ — Bitumen & Asphalt Export
   Design tokens: asphalt black + molten amber, condensed industrial type
   ========================================================================== */

:root {
  --c-black:        #0D0D0C;
  --c-surface:       #171615;
  --c-surface-2:     #1F1D1B;
  --c-line:          #322E2A;
  --c-sand:          #F5F1E8;
  --c-sand-dim:      #C9C2B2;
  --c-muted:         #948C7C;
  --c-amber:         #E8720C;
  --c-amber-bright:  #F5B44B;
  --c-amber-deep:    #C24A05;
  --c-gold:          #C9A227;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 10px;
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,0.55);
}

/* Arabic gets its own type stack for legibility */
.lang-ar {
  --font-display: 'Tahoma', 'Segoe UI', sans-serif;
  --font-body: 'Tahoma', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-sand);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 { font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; color: var(--c-sand-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-amber-bright);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-amber);
}
[dir="rtl"] .eyebrow::before { order: 2; }

/* ---- Signature: the road strip -----------------------------------------
   A thin dashed amber line on dark asphalt — the site's recurring motif,
   used as a divider at the top of the header and above the footer. */
.road-strip {
  height: 4px;
  width: 100%;
  background-color: var(--c-surface-2);
  background-image: repeating-linear-gradient(
    90deg,
    var(--c-amber) 0px, var(--c-amber) 34px,
    transparent 34px, transparent 60px
  );
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-amber-bright), var(--c-amber) 55%, var(--c-amber-deep));
  color: #1a0e02;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(232,114,12,0.55); }
.btn-outline {
  background: transparent;
  border-color: rgba(245,241,232,0.3);
  color: var(--c-sand);
}
.btn-outline:hover { border-color: var(--c-amber-bright); color: var(--c-amber-bright); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,12,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand-logo { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-sand-dim);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.is-active { color: var(--c-sand); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--c-amber);
}
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-sand);
  padding: 9px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch-btn:hover { border-color: var(--c-amber); }
.lang-switch-btn svg { transition: transform .2s ease; color: var(--c-muted); }
.lang-switch.is-open .lang-switch-btn svg { transform: rotate(180deg); }
.lang-switch-menu {
  list-style: none;
  margin: 0; padding: 6px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
[dir="rtl"] .lang-switch-menu { right: auto; left: 0; }
.lang-switch.is-open .lang-switch-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: block;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-sand-dim);
}
.lang-option:hover { background: rgba(232,114,12,0.12); color: var(--c-sand); }
.lang-option.is-current { color: var(--c-amber-bright); font-weight: 700; }

.nav-cta { display: inline-flex; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--c-sand); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------
   Asphalt-grain texture built from layered radial gradients (aggregate
   chips), with the molten amber "pour line" as the page's signature. */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(245,241,232,0.06) 40%, transparent 41%),
    radial-gradient(1.5px 1.5px at 27% 68%, rgba(245,241,232,0.05) 40%, transparent 41%),
    radial-gradient(2px 2px at 41% 12%, rgba(245,241,232,0.05) 40%, transparent 41%),
    radial-gradient(1.5px 1.5px at 63% 44%, rgba(245,241,232,0.06) 40%, transparent 41%),
    radial-gradient(2px 2px at 78% 76%, rgba(245,241,232,0.04) 40%, transparent 41%),
    radial-gradient(2px 2px at 88% 30%, rgba(245,241,232,0.05) 40%, transparent 41%),
    radial-gradient(2px 2px at 55% 85%, rgba(245,241,232,0.04) 40%, transparent 41%),
    linear-gradient(180deg, #0f0f0e, #0a0a09 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(40px, 6vw, 66px); }
.hero-title .line-2 { color: var(--c-amber-bright); }
.hero-subtitle { font-size: 17.5px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--c-sand-dim);
  border: 1px solid var(--c-line);
  padding: 7px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-amber); }

.pour-line {
  height: 5px;
  width: 130px;
  margin: 22px 0 26px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-amber-bright), var(--c-amber) 45%, var(--c-amber-deep));
  background-size: 200% 100%;
  animation: pour 3.2s ease-in-out infinite;
}
[dir="rtl"] .pour-line { margin-inline-start: 0; }
@keyframes pour { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

.hero-visual {
  position: relative;
  aspect-ratio: 1/1.05;
  border-radius: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drum-graphic { width: 78%; }
.hero-visual-glow {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(232,114,12,0.35), transparent 65%);
  filter: blur(10px);
}

/* ---- Stats bar ------------------------------------------------------ */
.stats-bar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 20px;
  text-align: center;
  border-inline-start: 1px solid var(--c-line);
}
.stat:first-child { border-inline-start: none; }
.stat-num { font-family: var(--font-mono); font-size: 30px; font-weight: 500; color: var(--c-amber-bright); }
.stat-label { font-size: 13px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ---- Sections -------------------------------------------------------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.on-surface { background: var(--c-surface); }

/* ---- Why cards -------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.why-card:hover { border-color: var(--c-amber); transform: translateY(-4px); }
.why-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(232,114,12,0.14);
  color: var(--c-amber-bright);
  margin-bottom: 18px;
}
.why-card h3 { font-size: 20px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; margin: 0; }

/* ---- Products ---------------------------------------------------------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--c-black);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-media {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(232,114,12,0.18), transparent 60%),
    var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media svg { width: 84px; height: 84px; color: var(--c-amber-bright); }
.product-body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 24px; margin-bottom: 10px; }
.product-body p { font-size: 14.5px; }
.product-points { list-style: none; margin: 6px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.product-points li {
  font-size: 13.5px;
  color: var(--c-sand-dim);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.product-points li::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: 6px;
  border-radius: 1px;
  background: var(--c-amber);
  transform: rotate(45deg);
}
.product-body .btn { margin-top: auto; align-self: flex-start; }

/* ---- Process ------------------------------------------------------------ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step { position: relative; padding: 0 22px 0 0; }
[dir="rtl"] .process-step { padding: 0 0 0 22px; }
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-amber-bright);
  border: 1px solid var(--c-amber);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 19px; margin-bottom: 8px; }
.process-step p { font-size: 14px; margin: 0; }
.process-connector {
  position: absolute;
  top: 17px;
  left: 34px;
  right: -22px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--c-line) 0 6px, transparent 6px 12px);
}
[dir="rtl"] .process-connector { left: -22px; right: 34px; }
.process-step:last-child .process-connector { display: none; }

/* ---- About -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-visual {
  aspect-ratio: 4/3.2;
  border-radius: 16px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-visual svg { width: 70%; }
.about-copy p { font-size: 15.5px; }

/* ---- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: flex-start; }
.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-sand-dim); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--c-black);
  border: 1px solid var(--c-line);
  color: var(--c-sand);
  padding: 13px 14px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px rgba(232,114,12,0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-alert { padding: 14px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.form-alert.success { background: rgba(80,180,90,0.14); border: 1px solid rgba(80,180,90,0.4); color: #a8e6ae; }
.form-alert.error { background: rgba(220,80,60,0.14); border: 1px solid rgba(220,80,60,0.4); color: #f3b3a8; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 22px 24px;
}
.contact-info-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-muted); margin-bottom: 14px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; font-weight: 500; }
.contact-row svg { flex-shrink: 0; color: var(--c-amber-bright); }
.contact-row a:hover { color: var(--c-amber-bright); }
.contact-row.dir-ltr { direction: ltr; text-align: start; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-brand p { font-size: 14px; max-width: 34ch; margin-top: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-muted); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: var(--c-sand-dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--c-amber-bright); }
.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding: 20px 0;
  font-size: 13px;
  color: var(--c-muted);
}

/* ---- WhatsApp floating button ------------------------------------------ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #08210f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -6px rgba(0,0,0,0.5);
  transition: transform .15s ease;
}
[dir="rtl"] .whatsapp-fab { right: auto; left: 24px; }
.whatsapp-fab:hover { transform: scale(1.07); }

/* ---- Scroll reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Page hero (inner pages) -------------------------------------------- */
.page-hero {
  padding: 62px 0 56px;
  background: linear-gradient(180deg, #131211, #0a0a09);
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 10px; }
.page-hero p { max-width: 60ch; font-size: 16.5px; }

/* ============================= Responsive ============================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .process-connector { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--c-black);
    border-bottom: 1px solid var(--c-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 24px 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: none; }
  .stat { border-bottom: 1px solid var(--c-line); }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding-bottom: 10px; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
