/* =========================================================
   Manafed AlBasrah Company (MBC) — main stylesheet
   ========================================================= */
:root {
  --navy: #0a1f3d;
  --navy-2: #102c55;
  --blue: #1a4f9c;
  --blue-2: #2563c4;
  --red: #d42027;
  --ink: #0f172a;
  --muted: #5b6577;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f2f5fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 61, .08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 61, .16);
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- bilingual switching ---------- */
html[lang="en"] .ar { display: none !important; }
html[lang="ar"] .en { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #cdd6e4; }
.section.dark h2, .section.dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 36px; height: 3px; background: var(--red); border-radius: 2px; }
.section.dark .eyebrow { color: #8fb4ff; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-title > span > span { color: var(--blue); }
.section.dark .section-title > span > span { color: #8fb4ff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.08rem; color: var(--muted); }
.section.dark .lead { color: #aebbd0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .25s ease; font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b5161c; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy-2); }
.btn svg { width: 18px; height: 18px; }
html[lang="ar"] .btn .arrow { transform: scaleX(-1); }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #b9c6db; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar .info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar .info span, .topbar .info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--red); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 8px 24px rgba(10,31,61,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; color: var(--navy); font-size: 1.02rem; font-weight: 800; }
.brand-text small { color: var(--red); font-size: .72rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; font-weight: 600; font-size: .93rem; color: var(--navy);
  border-radius: 8px; transition: .2s; position: relative;
}
.nav a:hover, .nav a.active { color: var(--blue); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font-ar); font-size: .9rem;
}
html[lang="ar"] .lang-btn { font-family: var(--font); }
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy); }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 780px); color: #fff; overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease; }
.slide.active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,31,61,.92) 0%, rgba(10,31,61,.7) 45%, rgba(10,31,61,.15) 100%);
}
html[lang="ar"] .hero::after { background: linear-gradient(-100deg, rgba(10,31,61,.92) 0%, rgba(10,31,61,.7) 45%, rgba(10,31,61,.15) 100%); }
.hero-content { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; }
.hero-inner { max-width: 680px; padding: 80px 0 120px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); padding: 8px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(212,32,39,.3); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.35; }
.hero h1 > span > span { color: #8fb4ff; }
.hero p { font-size: 1.12rem; color: #d3dcea; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-dots { position: absolute; z-index: 3; bottom: 110px; inset-inline-start: max(20px, calc((100vw - var(--container)) / 2 + 20px)); display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: .3s; }
.hero-dots button.active { background: var(--red); width: 54px; }

/* ---------- stats strip ---------- */
.stats { position: relative; z-index: 5; margin-top: -70px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 30px 26px; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat .num { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--blue); line-height: 1; }
.stat .num small { font-size: .55em; color: var(--red); }
.stat .label { color: var(--muted); font-size: .9rem; margin-top: 8px; font-weight: 500; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/4.4; object-fit: cover; width: 100%; }
.about-media .float {
  position: absolute; width: 46%; bottom: -36px; inset-inline-end: -28px; border-radius: var(--radius);
  border: 6px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover;
}
.about-badge {
  position: absolute; top: 28px; inset-inline-start: -24px; background: var(--red); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
}
.about-badge strong { display: block; font-size: 2.2rem; line-height: 1; font-weight: 800; }
.about-badge span { font-size: .8rem; font-weight: 600; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 26px 0 30px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy); font-size: .95rem; }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 1px; }
.facts { display: flex; gap: 14px; flex-wrap: wrap; }
.fact { background: var(--bg-soft); border-radius: 12px; padding: 14px 18px; }
.fact small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .fact small { letter-spacing: 0; }
.fact b { color: var(--navy); }

/* mission / vision / values */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 90px; }
.mvv-card { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.mvv-card:nth-child(2) { border-top-color: var(--red); }
.mvv-card:nth-child(3) { border-top-color: var(--navy); }
.icon-box {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(26,79,156,.1); color: var(--blue); margin-bottom: 18px;
}
.icon-box svg { width: 28px; height: 28px; }
.mvv-card h3 { font-size: 1.25rem; }
.mvv-card p { color: var(--muted); margin: 0; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service-img img { transform: scale(1.07); }
.service-img .num {
  position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(10,31,61,.85); color: #fff;
  font-weight: 800; font-size: .8rem; padding: 6px 10px; border-radius: 8px;
}
.service-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.2rem; }
.service-body > p { color: var(--muted); font-size: .95rem; }
.service-list { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 14px; }
.service-list li { position: relative; padding-inline-start: 18px; font-size: .88rem; color: #334155; margin: 6px 0; }
.service-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }

/* ---------- sectors strip ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 28px 24px; transition: .3s;
}
.sector:hover { background: rgba(255,255,255,.08); border-color: rgba(143,180,255,.4); }
.sector .icon-box { background: rgba(143,180,255,.12); color: #8fb4ff; }
.sector h3 { font-size: 1.08rem; }
.sector p { font-size: .9rem; margin: 0; color: #aebbd0; }

/* ---------- chemicals ---------- */
.chem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.chem-col { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chem-head { background: var(--navy); color: #fff; display: flex; gap: 14px; align-items: center; padding: 20px 24px; }
.chem-head .icon-box { margin: 0; width: 46px; height: 46px; background: rgba(143,180,255,.15); color: #8fb4ff; }
.chem-head h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.chem-list li { display: flex; gap: 16px; padding: 13px 24px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.chem-list li:last-child { border-bottom: 0; }
.chem-list b { color: var(--red); font-size: .8rem; min-width: 22px; padding-top: 2px; }
.chem-banner {
  margin-top: 28px; display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius);
  overflow: hidden; background: var(--blue); color: #fff; box-shadow: var(--shadow);
}
.chem-banner img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.chem-banner .txt { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.chem-banner h3 { color: #fff; font-size: 1.4rem; }
.chem-banner p { color: #dbe6fb; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; }

/* ---------- projects ---------- */
.proj-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.tab-btn {
  border: 1.5px solid var(--line); background: #fff; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-family: inherit; color: var(--navy); cursor: pointer; transition: .2s; font-size: .92rem;
}
.tab-btn.active, .tab-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proj {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  border-top: 4px solid var(--blue); display: flex; flex-direction: column; transition: .3s;
}
.proj:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.proj:first-child { border-top-color: var(--red); }
.proj-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.proj-meta small { display: block; color: var(--red); font-weight: 800; font-size: .8rem; letter-spacing: .05em; }
.proj-meta b { color: var(--navy); }
.proj-value { text-align: end; }
.proj-value strong { display: block; color: var(--blue); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.proj-value span { color: var(--muted); font-size: .82rem; }
.proj h3 { font-size: 1.1rem; }
.proj p { color: var(--muted); font-size: .93rem; }
.chip { align-self: flex-start; margin-top: auto; background: var(--bg-soft); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 700; }
.proj-summary {
  margin-top: 26px; position: relative; border-radius: var(--radius); overflow: hidden; color: #fff;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(rgba(10,31,61,.82), rgba(10,31,61,.9)), url("../images/hero-3.jpg") center/cover;
}
.proj-summary div { padding: 34px 30px; }
.proj-summary strong { display: block; font-size: 2rem; font-weight: 800; }
.proj-summary span { color: #aebbd0; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .proj-summary span { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.feeder-list { border-top: 2px solid var(--navy); }
.feeder { display: grid; grid-template-columns: 70px 56px 1fr; align-items: center; gap: 18px; padding: 20px 6px; border-bottom: 1px solid var(--line); }
.feeder .n { font-size: 2rem; font-weight: 300; color: var(--blue); }
.feeder .icon-box { margin: 0; width: 50px; height: 50px; background: var(--blue); color: #fff; }
.feeder h3 { font-size: 1.02rem; margin: 0 0 2px; }
.feeder p { margin: 0; color: var(--muted); font-size: .9rem; }
.feeder-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.feeder-stats div { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; }
.feeder-stats div:nth-child(2) { background: var(--blue); }
.feeder-stats strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.feeder-stats span { color: #b9c6db; font-size: .85rem; font-weight: 600; }
.note { display: flex; gap: 12px; align-items: center; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.note .icon-box { margin: 0; width: 42px; height: 42px; flex: none; }

/* ---------- why us / process ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-items { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item { display: flex; gap: 14px; }
.why-item .icon-box { flex: none; margin: 0; width: 48px; height: 48px; }
.why-item h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: .9rem; color: var(--muted); margin: 0; }
.why-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.why-img img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.why-img .quote {
  position: absolute; inset-inline: 20px; bottom: 20px; background: rgba(10,31,61,.9); color: #fff;
  padding: 20px 22px; border-radius: 12px; font-weight: 600; border-inline-start: 4px solid var(--red);
}

/* ---------- gallery ---------- */
.filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.gallery { columns: 4 240px; column-gap: 16px; }
.g-item {
  break-inside: avoid; margin-bottom: 16px; border-radius: 12px; overflow: hidden; position: relative;
  cursor: zoom-in; background: var(--bg-soft);
}
.g-item img { width: 100%; transition: transform .5s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; font-weight: 700; font-size: .88rem;
  background: linear-gradient(transparent, rgba(10,31,61,.9)); opacity: 0; transform: translateY(8px); transition: .3s;
}
.g-item:hover figcaption { opacity: 1; transform: none; }
.g-item.hide { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 999; background: rgba(5,14,30,.94); display: none;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 50px; height: 50px;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cdd6e4; font-weight: 600; }

/* ---------- clients ---------- */
.clients-group h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
html[lang="ar"] .clients-group h4 { letter-spacing: 0; font-size: .95rem; }
.clients-group + .clients-group { margin-top: 40px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 110px; padding: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: .3s;
}
.logo-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.logo-card img { max-height: 70px; width: auto; object-fit: contain; }
.logo-card .wordmark { font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.logo-card small { color: var(--muted); font-size: .78rem; margin-top: 6px; line-height: 1.3; }
.trust-bar {
  margin-top: 40px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 30px;
  display: flex; gap: 18px; align-items: center; font-size: 1.15rem; font-weight: 600;
}
.trust-bar .icon-box { margin: 0; flex: none; background: rgba(143,180,255,.15); color: #8fb4ff; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(110deg, var(--blue), var(--navy-2)); color: #fff; border-radius: 20px;
  padding: 52px 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); inset-inline-end: -120px; top: -150px; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 8px; }
.cta p { color: #d3dcea; margin: 0; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-cards { display: grid; gap: 16px; }
.c-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.c-card .icon-box { margin: 0; flex: none; }
.c-card small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.c-card b, .c-card a { color: var(--navy); font-weight: 700; }
.c-card a:hover { color: var(--blue); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 220px; }
.map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }
.form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form h3 { font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
  font-size: .95rem; background: var(--bg-soft); transition: .2s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ---------- footer ---------- */
.footer { background: #071830; color: #9fb0c8; padding-top: 72px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer-logo img { height: 58px; }
.footer li { margin: 9px 0; }
.footer a:hover { color: #fff; }
.footer .contact-line { display: flex; gap: 10px; align-items: flex-start; }
.footer .contact-line svg { width: 17px; height: 17px; color: var(--red); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

.to-top {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(320px, 85vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 90px 20px 20px; gap: 2px;
    box-shadow: var(--shadow-lg); transform: translateX(110%); transition: transform .35s ease, visibility .35s; z-index: 150;
    visibility: hidden;
  }
  html[dir="rtl"] .nav { transform: translateX(-110%); }
  .nav.open, html[dir="rtl"] .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1rem; }
  .menu-btn { display: block; position: relative; z-index: 160; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .about-grid, .why-grid, .contact-grid, .chem-grid, .chem-banner { grid-template-columns: 1fr; }
  .about-media { margin-bottom: 40px; }
  .about-media .float { inset-inline-end: 0; }
  .about-badge { inset-inline-start: 10px; }
  .mvv { grid-template-columns: 1fr; margin-top: 70px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proj-grid, .proj-summary, .feeder-stats { grid-template-columns: 1fr; }
  .topbar .hide-sm, .topbar .info .hide-sm { display: none; }
  .topbar { font-size: .78rem; }
  .topbar .container { justify-content: center; padding-block: 6px; }
  .topbar .info { gap: 6px 16px; justify-content: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand-text { display: none; }
  .brand img { height: 48px; }
  .services-grid, .sectors, .why-items, .check-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 0 130px; }
  .hero-dots { bottom: 100px; }
  .stat { padding: 22px 16px; }
  .feeder { grid-template-columns: 44px 1fr; }
  .feeder .icon-box { display: none; }
  .cta { padding: 36px 24px; }
  .form { padding: 24px; }
  .proj-top { flex-direction: column; }
  .proj-value { text-align: start; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .topbar .info { gap: 14px; }
  .lb-prev, .lb-next { top: auto; bottom: 60px; transform: none; }
}
