/* Dhay Al-Rafidain — shared stylesheet */
:root {
  --maroon: #86153a;
  --maroon-dark: #5e0f29;
  --maroon-soft: #f6e9ee;
  --ink: #232327;
  --ink-2: #4a4a52;
  --muted: #7a7a84;
  --line: #e4e4e8;
  --bg: #ffffff;
  --bg-alt: #f3f3f5;
  --cream: #fffdf0;
  --accent: #e07a2f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 35, 39, .08);
  --shadow-lg: 0 24px 60px rgba(35, 35, 39, .16);
  --container: 1200px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", "Cairo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.ar { font-family: "Cairo", "Montserrat", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }

/* Language switching */
body:not(.ar) .ar { display: none !important; }
body.ar .en { display: none !important; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--ink); color: #fff; }
.section.maroon { background: var(--maroon); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--maroon); margin-bottom: 14px;
}
body.ar .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section.dark .eyebrow, .section.maroon .eyebrow { color: #f2c6d4; }
.title { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.01em; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 760px; }
.section.dark .lead, .section.maroon .lead { color: rgba(255,255,255,.82); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .25s ease; font-family: inherit;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--maroon); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn svg { width: 18px; height: 18px; }
body.ar .btn svg.arrow { transform: scaleX(-1); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.8); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar .tb-items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-items span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); 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; font-size: 17px; color: var(--maroon); letter-spacing: .04em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
body.ar .brand-text small { letter-spacing: 0; font-size: 12px; text-transform: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--ink-2); border-radius: 8px; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--maroon);
  transform: scaleX(0); transition: transform .25s; transform-origin: center;
}
.nav a:hover, .nav a.active { color: var(--maroon); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px;
  font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink); font-family: "Cairo", sans-serif;
}
.lang-toggle:hover { border-color: var(--maroon); color: var(--maroon); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 110px 0 90px; overflow: hidden;
  background: var(--maroon) center/cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(94,15,41,.96) 0%, rgba(134,21,58,.85) 45%, rgba(35,35,39,.45) 100%);
}
body.ar .page-hero::before { background: linear-gradient(260deg, rgba(94,15,41,.96) 0%, rgba(134,21,58,.85) 45%, rgba(35,35,39,.45) 100%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: .04em; text-transform: uppercase; font-weight: 300; margin-bottom: 14px; }
body.ar .page-hero h1 { letter-spacing: 0; font-weight: 800; }
.page-hero h1 b { font-weight: 800; }
.page-hero p { font-size: 18px; max-width: 640px; color: rgba(255,255,255,.88); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.page-hero .bar { width: 120px; height: 4px; background: #fff; opacity: .7; margin-top: 26px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; background: #ececef url("../img/building-bg.jpg") center/cover;
  min-height: calc(100vh - var(--header-h) - 40px); display: flex; align-items: stretch;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.55)); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-panel {
  background: var(--maroon); color: #fff; padding: 56px 52px; border-radius: 0 0 24px 24px; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; position: relative; box-shadow: var(--shadow-lg);
}
.hero-panel .site-url { font-size: 14px; letter-spacing: .08em; opacity: .8; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 10px; margin-bottom: 22px; align-self: flex-start; }
.hero-panel h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: .02em; margin-bottom: 8px; }
.hero-panel .ar-name { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: #f8dbe4; margin-bottom: 18px; font-family: "Cairo", sans-serif; }
.hero-panel .tagline { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 28px; line-height: 1.8; }
body.ar .hero-panel .tagline { letter-spacing: 0; font-size: 17px; text-transform: none; }
.hero-panel .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-art img.engineer { width: min(520px, 100%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.hero-circles { position: absolute; bottom: 36px; display: flex; gap: 14px; inset-inline-start: 50%; transform: translateX(-50%); }
body.ar .hero-circles { transform: translateX(50%); }
.hero-circles img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow); }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { padding: 34px 18px; text-align: center; border-inline-start: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-inline-start: 0; }
.stat .num { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: #fff; line-height: 1; }
.stat .num small { font-size: .5em; color: #f2c6d4; margin-inline-start: 2px; }
.stat .lbl { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 10px; }

/* ---------- Generic grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-stack { position: relative; padding-bottom: 60px; padding-inline-end: 60px; }
.img-stack .img-frame.small {
  position: absolute; width: 48%; bottom: 0; inset-inline-end: 0; border: 8px solid #fff;
}
.badge-year {
  position: absolute; top: 24px; inset-inline-start: -18px; background: var(--maroon); color: #fff;
  padding: 18px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); text-align: center; line-height: 1.1; z-index: 2;
}
.badge-year b { display: block; font-size: 34px; }
.badge-year span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .media { aspect-ratio: 16/10; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .media img { transform: scale(1.06); }
.card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 20px; color: var(--ink); }
.card p { color: var(--ink-2); font-size: 15px; }
.card .more { margin-top: auto; font-weight: 700; color: var(--maroon); display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.card .more svg { width: 16px; height: 16px; }
body.ar .card .more svg { transform: scaleX(-1); }
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--maroon); background: var(--maroon-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}

.icon-box {
  width: 58px; height: 58px; border-radius: 14px; background: var(--maroon-soft); color: var(--maroon);
  display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0;
}
.icon-box svg { width: 28px; height: 28px; }
.feature { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: .3s; }
.feature:hover { border-color: var(--maroon); box-shadow: var(--shadow); }
.feature h3 { font-size: 19px; }
.feature p { color: var(--ink-2); font-size: 15px; margin: 0; }
.section.dark .feature { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section.dark .feature p { color: rgba(255,255,255,.72); }
.section.dark .feature .icon-box { background: rgba(255,255,255,.08); color: #f2c6d4; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-inline-start: 32px; margin-bottom: 12px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--maroon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list li strong { color: var(--ink); }

/* ---------- About page ---------- */
.ceo { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.ceo-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.ceo-photo .img-frame { aspect-ratio: 3/4; }
.ceo-photo .sig { margin-top: 20px; padding: 18px 22px; background: var(--maroon); color: #fff; border-radius: 12px; }
.ceo-photo .sig b { display: block; font-size: 18px; }
.ceo-photo .sig span { font-size: 14px; opacity: .85; font-style: italic; }
blockquote.quote {
  margin: 0 0 24px; padding: 6px 0; padding-inline-start: 24px; border-inline-start: 4px solid var(--maroon);
  font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.55;
}

.policy { background: #fff; border-radius: var(--radius); padding: 32px; border-top: 4px solid var(--maroon); box-shadow: var(--shadow); }
.policy .no { font-size: 44px; font-weight: 800; color: var(--maroon-soft); line-height: 1; margin-bottom: 8px; -webkit-text-stroke: 1px var(--maroon); }
.policy h3 { font-size: 20px; }
.policy ul { padding-inline-start: 18px; margin: 0; color: var(--ink-2); font-size: 15px; }
.policy li { margin-bottom: 8px; }
.policy li b { color: var(--ink); }

/* Org chart */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org .node {
  background: var(--maroon); color: #fff; border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: 14px;
  text-align: center; white-space: nowrap; box-shadow: 0 6px 16px rgba(134,21,58,.25);
}
.org .node.light { background: #fff; color: var(--maroon); border: 2px solid var(--maroon); box-shadow: none; }
.org .vline { width: 2px; height: 28px; background: #2f6e73; }
.org .row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; padding-top: 28px; }
.org .row::before { content: ""; position: absolute; top: 0; inset-inline: 12%; height: 2px; background: #2f6e73; }
.org .branch { display: flex; flex-direction: column; align-items: center; position: relative; }
.org .branch::before { content: ""; position: absolute; top: -28px; width: 2px; height: 28px; background: #2f6e73; }
.org .sub { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; align-items: center; }
.org .sub .node { font-size: 13px; padding: 8px 18px; }
.org-wrap { overflow-x: auto; padding: 10px 0 20px; }
.org-wrap .org { min-width: 760px; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cert { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); text-align: center; cursor: zoom-in; transition: .3s; }
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cert img { border-radius: 8px; }
.cert h4 { margin: 14px 0 2px; font-size: 18px; color: var(--maroon); }
.cert p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }

/* ---------- Services ---------- */
.service-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.service-nav a {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: .2s;
}
.service-nav a:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.service-block { scroll-margin-top: calc(var(--header-h) + 20px); }
.service-block .grid-2 { align-items: start; }
.service-block.reverse .grid-2 > :first-child { order: 2; }
.service-block .main-img { aspect-ratio: 4/3; }
.service-block h2 { font-size: clamp(26px, 3vw, 36px); }
.service-block .num-label { font-size: 14px; font-weight: 800; color: var(--maroon); letter-spacing: .14em; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: .3s; }
.thumbs img:hover { transform: scale(1.04); box-shadow: var(--shadow); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.spec { background: var(--bg-alt); border-radius: 12px; padding: 16px; border-inline-start: 4px solid var(--maroon); }
.section.alt .spec { background: #fff; }
.spec b { display: block; font-size: 22px; color: var(--maroon); line-height: 1.2; }
.spec span { font-size: 13px; color: var(--ink-2); }

/* ---------- Projects ---------- */
.featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.featured .big { grid-row: span 2; }
.proj-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 280px; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.proj-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.proj-card:hover img { transform: scale(1.06); }
.proj-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,8,13,.92) 0%, rgba(20,8,13,.35) 55%, rgba(20,8,13,0) 100%); }
.proj-card .info { position: relative; z-index: 2; padding: 28px; }
.proj-card .tag { background: var(--maroon); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; display: inline-block; margin-bottom: 10px; }
.proj-card h3 { font-size: 22px; margin-bottom: 6px; }
.proj-card p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; }
.featured .big h3 { font-size: 30px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filters button {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px;
  cursor: pointer; color: var(--ink-2); font-family: inherit; transition: .2s;
}
.filters button:hover { border-color: var(--maroon); color: var(--maroon); }
.filters button.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.filters button .count { opacity: .65; font-weight: 600; margin-inline-start: 4px; }

.proj-search { display: flex; justify-content: center; margin-bottom: 18px; }
.proj-search input {
  width: min(460px, 100%); padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; font-size: 15px; outline: none;
}
.proj-search input:focus { border-color: var(--maroon); }
.proj-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proj-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; transition: .2s;
}
.proj-item:hover { border-color: var(--maroon); box-shadow: var(--shadow); }
.proj-item .n { width: 56px; height: 56px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.proj-item h4 { font-size: 15.5px; margin: 0 0 6px; font-weight: 700; line-height: 1.45; }
.proj-item .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--maroon-soft); color: var(--maroon); }
.chip.grey { background: var(--bg-alt); color: var(--ink-2); }
.empty-note { text-align: center; color: var(--muted); padding: 30px; grid-column: 1 / -1; }

.docs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.doc { background: #fff; border-radius: 10px; padding: 8px; box-shadow: var(--shadow); cursor: zoom-in; transition: .3s; }
.doc:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.doc img { aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 6px; }

/* ---------- Gallery ---------- */
.masonry { columns: 4 260px; column-gap: 16px; }
.masonry figure {
  margin: 0 0 16px; break-inside: avoid; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--bg-alt);
}
.masonry figure img { width: 100%; height: auto; transition: transform .6s; }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figure figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; color: #fff; font-size: 13px; font-weight: 600;
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); opacity: 0; transform: translateY(8px); transition: .3s;
}
.masonry figure:hover figcaption { opacity: 1; transform: none; }
.masonry figure.hide { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(12,6,9,.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.lightbox button:hover { background: var(--maroon); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-card { display: flex; gap: 18px; padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 16px; transition: .2s; }
.info-card:hover { border-color: var(--maroon); box-shadow: var(--shadow); }
.info-card .icon-box { margin: 0; }
.info-card h4 { margin: 0 0 4px; font-size: 17px; }
.info-card p, .info-card a { margin: 0; color: var(--ink-2); font-size: 15px; display: block; }
.info-card a:hover { color: var(--maroon); }
.ltr { direction: ltr; unicode-bidi: embed; }
body.ar .info-card a.ltr, body.ar .ltr-inline { text-align: right; }
.form-card { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--maroon); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: var(--bg-alt); outline: none; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--maroon); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: #e9f7ef; color: #1e6b3a; font-weight: 600; display: none; }
.form-status.show { display: block; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.qr-box { display: flex; align-items: center; gap: 18px; padding: 20px; background: var(--maroon); color: #fff; border-radius: var(--radius); }
.qr-box img { width: 90px; height: 90px; background: #fff; padding: 6px; border-radius: 8px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--maroon) url("../img/fleet-mixers-wide.jpg") center/cover; color: #fff; padding: 90px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(94,15,41,.97), rgba(134,21,58,.82)); }
.cta .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.85); font-size: 18px; }
.cta .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #1b1b1e; color: rgba(255,255,255,.7); padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .logo { height: 86px; width: auto; margin-bottom: 18px; }
.site-footer h5 { color: #fff; font-size: 16px; margin: 0 0 18px; position: relative; padding-bottom: 12px; }
.site-footer h5::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 36px; height: 3px; background: var(--maroon); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .contact-line { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.site-footer .contact-line svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: #e58aa6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 22px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.iso-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.iso-badges span { border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: #fff; }

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 10px; font-size: 14px; }
  .stats .container { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-inline-start: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.08); }
  .docs-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: calc(var(--header-h) + 40px); inset-inline: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 16px; gap: 2px; transform: translateX(100%); transition: transform .3s, visibility .3s; overflow-y: auto; border-top: 1px solid var(--line);
    visibility: hidden;
  }
  body.ar .nav { transform: translateX(-100%); }
  /* backdrop-filter would make the header the containing block of the fixed nav */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav.open, body.ar .nav.open { transform: none; visibility: visible; }
  html, body { overflow-x: clip; }
  .nav a { padding: 16px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav a.active { background: var(--maroon-soft); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { border-radius: 0 0 20px 20px; padding: 44px 30px; }
  .hero-art img.engineer { width: min(380px, 90%); }
  .grid-2, .contact-grid, .ceo { grid-template-columns: 1fr; gap: 40px; }
  .ceo-photo { position: static; max-width: 360px; }
  .service-block.reverse .grid-2 > :first-child { order: 0; }
  .grid-3, .cert-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured .big { grid-row: auto; }
  .proj-list { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .topbar .tb-items span.hide-sm { display: none; }
  .brand img { height: 46px; }
  .brand-text small { display: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-inline-start: 0; }
  .stat:nth-child(4) { border-inline-start: 1px solid rgba(255,255,255,.08); }
  .grid-3, .grid-4, .cert-grid, .spec-grid, .form-row { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-circles img { width: 78px; height: 78px; border-width: 4px; }
  .img-stack { padding-bottom: 40px; padding-inline-end: 30px; }
  .badge-year { inset-inline-start: 8px; }
  .form-card { padding: 24px; }
  .lightbox { padding: 60px 10px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; }
  .lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
}
