/* ============================================================
   Bashayer Al-Mustaqbal — Industrial oils factory
   Bilingual (EN/AR). Modern, professional industrial theme.
   ============================================================ */

:root {
  /* Brand palette — deep industrial blue + gold accent */
  --brand-blue: #1f3a8a;
  --brand-blue-deep: #0f1f5b;
  --brand-blue-light: #2748b8;
  --brand-gold: #d4a437;
  --brand-gold-soft: #f1c064;

  --ink: #0e1726;
  --ink-2: #2b3a55;
  --text: #38445a;
  --muted: #6b7280;

  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-section: #f0f3fa;

  --border: #e3e8f1;

  --shadow-sm: 0 2px 8px rgba(15, 31, 91, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 31, 91, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 31, 91, 0.18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1200px;

  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Reset & base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  line-height: 1.9;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-light); }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

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

section { scroll-margin-top: 80px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name-en {
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-blue-deep);
  letter-spacing: -0.01em;
}
.brand-name-ar {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}

html[lang="ar"] .brand-text {
  align-items: flex-end;
}
html[lang="ar"] .brand-name-en { display: none; }
html[lang="ar"] .brand-name-ar {
  font-size: 17px;
  color: var(--brand-blue-deep);
}
html:not([lang="ar"]) .brand-name-en { display: inline; }
html:not([lang="ar"]) .brand-name-ar { display: none; }
html[lang="ar"] .brand-name-en { display: none; }
html[lang="ar"] .brand-name-ar { display: inline; }

.primary-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.primary-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
.primary-nav a:hover { color: var(--brand-blue); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
html[lang="ar"] .primary-nav a::after { transform-origin: right; }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lang-toggle:hover { background: var(--brand-blue-light); }
.lang-toggle:active { transform: translateY(1px); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 110px 0 120px;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 164, 55, 0.25), transparent 60%),
    radial-gradient(900px 600px at 10% 100%, rgba(39, 72, 184, 0.55), transparent 60%),
    linear-gradient(135deg, #0f1f5b 0%, #1f3a8a 55%, #2748b8 100%);
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  z-index: -1;
}
.hero-inner {
  position: relative;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(212, 164, 55, 0.18);
  color: var(--brand-gold-soft);
  border: 1px solid rgba(212, 164, 55, 0.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255,255,255,0.85);
  max-width: 760px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--brand-gold);
  color: var(--brand-blue-deep);
}
.btn-primary:hover {
  background: var(--brand-gold-soft);
  color: var(--brand-blue-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: #fff;
  color: #fff;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stats li {
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-gold-soft);
}
.hero-stats span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ============================================================
   Sections — common
   ============================================================ */
.section {
  padding: 100px 0;
}
.section-eyebrow {
  display: inline-block;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-eyebrow.center { display: block; text-align: center; }
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.section-title.center { text-align: center; }
.section-lede {
  font-size: 17px;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-lede.center { text-align: center; }

/* About — two column */
.about { background: var(--bg); }
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.col-text p {
  margin: 0 0 14px;
  font-size: 16px;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.feature i {
  font-size: 22px;
  color: var(--brand-blue);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(31, 58, 138, 0.10);
  border-radius: 10px;
}
.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.feature p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.col-visual .visual-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 164, 55, 0.18), transparent 60%),
    linear-gradient(135deg, #1f3a8a 0%, #0f1f5b 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.col-visual .visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.col-visual .visual-logo {
  position: relative;
  width: 55%;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

/* Vision & Mission */
.vision-mission { background: var(--bg-section); }
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.vm-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vm-card.highlight {
  background: linear-gradient(135deg, #1f3a8a 0%, #2748b8 100%);
  color: #fff;
  border-color: transparent;
}
.vm-card.highlight h3,
.vm-card.highlight p { color: #fff; }
.vm-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(212, 164, 55, 0.18);
  color: var(--brand-gold);
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 18px;
}
.vm-card.highlight .vm-icon {
  background: rgba(255,255,255,0.12);
  color: var(--brand-gold-soft);
}
.vm-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}
.vm-card p {
  font-size: 15.5px;
  color: var(--text);
  margin: 0;
}
.vm-card.highlight p { color: rgba(255,255,255,0.92); }

/* Strategic Goals */
.goals { background: var(--bg); }
.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.goal-card {
  position: relative;
  background: var(--bg-soft);
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
html[lang="ar"] .goal-card { text-align: right; }
.goal-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.goal-num {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 0.1em;
}
html[lang="ar"] .goal-num { right: auto; left: 22px; }
.goal-card i {
  font-size: 28px;
  color: var(--brand-blue);
  margin-bottom: 14px;
  display: inline-block;
}
.goal-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.goal-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* Contact / Social */
.contact { background: var(--bg-section); }
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.social-card i {
  font-size: 28px;
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: #fff;
}
.social-card span { font-size: 15px; }

.social-card.youtube   i { background: #FF0000; }
.social-card.instagram i { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-card.linkedin  i { background: #0A66C2; }
.social-card.twitter   i { background: #000000; }

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: var(--brand-blue);
}
html[lang="ar"] .social-card { flex-direction: row-reverse; }

.domain-row {
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 22px;
  border-radius: 999px;
  width: fit-content;
  color: var(--ink);
  font-weight: 600;
}
.domain-row i { color: var(--brand-blue); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #0a1430;
  color: rgba(255,255,255,0.78);
  padding: 60px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}
.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
}
.footer-brand p {
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
}
.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-domain {
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
}
.footer-links a:hover,
.footer-domain:hover { color: var(--brand-gold-soft); }

.social-mini {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.social-mini a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 16px;
  transition: background .2s ease, color .2s ease;
}
.social-mini a:hover { background: var(--brand-gold); color: var(--brand-blue-deep); }

.footer-bottom {
  text-align: center;
  padding-top: 22px;
}
.footer-bottom p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .goals-grid { grid-template-columns: 1fr 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .primary-nav li {
    border-bottom: 1px solid var(--border);
  }
  .primary-nav li:last-child { border-bottom: none; }
  .primary-nav a {
    display: block;
    padding: 14px 0;
  }

  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero { padding: 80px 0 90px; }
  .section { padding: 72px 0; }
  .feature-list { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 420px) {
  .brand-text { display: flex; }
  .header-inner { gap: 12px; }
  .social-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
