/* Concept: refined corporate engineering site. Elegant serif headings (Frank Ruhl Libre), clean sans body (Assistant), deep teal, generous whitespace. */
:root {
  --teal: #0f8aa8;
  --teal-bright: #14a5c8;
  --teal-deep: #0a3d4d;
  --teal-ink: #07252f;
  --brass: #14a5c8;
  --sand: #f2f5f4;
  --paper: #ffffff;
  --text: #14262c;
  --muted: #4a6068;
  --line: #d9e2e5;
  --font-display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --font-body: "Assistant", "Heebo", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 16px; position: relative; }
.logo { display: block; text-decoration: none; }
.logo img { height: 66px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; padding-block: 6px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--teal); border-bottom-color: var(--brass); }
.nav a.nav-cta { background: var(--teal); color: #fff; padding: 11px 28px; border-radius: 999px; border-bottom: 0; }
.nav a.nav-cta:hover { background: var(--teal-deep); color: #fff; }
.menu-btn { display: none; font: inherit; font-size: 1.1rem; font-weight: 600; background: none; border: 1px solid var(--line); padding: 8px 20px; border-radius: 999px; cursor: pointer; color: var(--text); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding-block: 160px 200px;
  background:
    linear-gradient(to left, rgba(7,37,47,.94) 0%, rgba(7,37,47,.74) 45%, rgba(7,37,47,.3) 100%),
    url("images/hero-road.jpg") center 45% / cover no-repeat;
  background-color: var(--teal-ink);
}
.hero-in { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 24px; letter-spacing: .22em; font-weight: 600; font-size: 1.1rem; color: #8fdcef; }
.eyebrow::before { content: ""; width: 44px; height: 2px; background: var(--brass); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 6.8vw, 5.4rem); line-height: 1.12; margin: 0 0 32px; text-wrap: balance; max-width: 15ch; letter-spacing: -.01em; }
.h1-sub { display: block; margin-top: 14px; font-size: .5em; font-weight: 500; color: #8fdcef; letter-spacing: .01em; }
.lead { max-width: 54ch; font-size: clamp(1.25rem, 2.1vw, 1.5rem); font-weight: 300; line-height: 1.7; color: #e0edf0; margin: 0 0 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.btn { display: inline-block; padding: 16px 40px; border-radius: 999px; font-weight: 700; font-size: 1.15rem; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-bright); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-ghost-dark { border-color: var(--teal-deep); color: var(--teal-deep); }
.btn-ghost-dark:hover { background: var(--teal-deep); color: #fff; }

/* Facts panel */
.facts { position: relative; z-index: 2; margin-top: -100px; }
.facts-in { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); box-shadow: 0 24px 60px rgba(7,37,47,.22); border-top: 5px solid var(--teal); }
.facts-in > div { padding: 38px 34px; min-width: 0; }
.facts-in > div + div { border-right: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.15rem; line-height: 1.2; color: var(--teal); margin-bottom: 6px; }
.facts span { font-size: 1.1rem; color: var(--muted); line-height: 1.5; display: block; }

/* Sections */
.section { padding-block: 112px; }
.facts + .section { padding-top: 132px; }
.section-alt { background: var(--sand); }
.kicker { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; letter-spacing: .2em; color: var(--teal); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.15; margin: 0 0 18px; color: var(--teal-deep); text-wrap: balance; letter-spacing: -.01em; }
.section-lead { font-size: 1.3rem; color: var(--muted); margin: 0 0 54px; max-width: 58ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 42px 36px 48px; min-width: 0; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--teal); }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(7,37,47,.13); border-color: transparent; }
.num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 3.2rem; line-height: 1; color: var(--teal); opacity: .55; margin-bottom: 18px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.2; margin: 0 0 14px; color: var(--teal-deep); }
.card p { margin: 0; font-size: 1.18rem; color: var(--muted); }

/* Management (dark) */
.section-dark { background: var(--teal-ink); color: #e3eef1; }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: #b4ced6; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
.split > * { min-width: 0; }
.split .section-lead { margin-bottom: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 18px 46px 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; font-size: 1.2rem; font-weight: 600; }
.checklist li:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.checklist li::before { content: ""; position: absolute; right: 12px; top: 1.05em; width: 8px; height: 16px; border-right: 3px solid var(--brass); border-bottom: 3px solid var(--brass); transform: rotate(45deg); }

/* Projects */
.gallery { display: grid; gap: 72px; }
.site-name { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; margin: 0 0 24px; color: var(--teal-deep); padding-bottom: 12px; border-bottom: 3px solid var(--brass); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid .project:first-child { grid-column: span 2; }
.project { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-deep); min-width: 0; }
.grid .project:first-child { aspect-ratio: auto; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover img { transform: scale(1.05); }

.pending-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pending-card { background: var(--sand); border: 1px solid var(--line); border-inline-start: 4px solid var(--brass); padding: 28px 30px 30px; min-width: 0; }
.pending-card .num { font-size: 2.2rem; margin-bottom: 8px; }
.pending-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.25; margin: 0 0 6px; color: var(--teal-deep); }
.pending-card p { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* About / contact */
.about { max-width: 860px; }
.about p { margin: 0 0 20px; font-size: 1.3rem; }
.about p.kicker { font-size: 1.05rem; margin: 0 0 12px; }
.sign { margin-top: 32px !important; color: var(--teal-deep); font-family: var(--font-display); font-size: 1.5rem !important; line-height: 1.4; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 46px; }
.contact-grid > * { min-width: 0; }
.label { display: block; font-size: 1rem; font-weight: 700; letter-spacing: .14em; color: var(--teal); margin-bottom: 4px; }
.contact-grid p { margin: 0; font-size: 1.6rem; font-weight: 600; line-height: 1.4; }
.contact-grid a { text-decoration: none; color: var(--teal); }

.callback { background: var(--sand); border: 1px solid var(--line); border-top: 4px solid var(--brass); padding: 38px; margin-bottom: 46px; max-width: 860px; }
.callback h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.95rem; margin: 0 0 22px; color: var(--teal-deep); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.field input, .field select { font: inherit; font-size: 1.15rem; padding: 14px; border: 1px solid #b4c4ca; border-radius: 6px; background: var(--paper); color: var(--text); width: 100%; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.cb-error { color: #a32a1c; margin: 0 0 16px; font-weight: 600; }
.cb-error[hidden] { display: none; }
.cb-note { margin: 14px 0 0; font-size: 1rem; color: var(--muted); }

.site-footer { background: var(--teal-ink); color: #b4ced6; padding-block: 32px; font-size: 1.05rem; border-top: 3px solid var(--brass); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; }

/* Responsive */
@media (max-width: 980px) {
  .nav { gap: 26px; }
  .cards, .pending-grid { grid-template-columns: 1fr; }
  .pending-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  body { font-size: 1.15rem; }
  .facts-in, .contact-grid, .fields { grid-template-columns: 1fr; }
  .facts-in > div + div { border-right: 0; border-top: 1px solid var(--line); }
  .section { padding-block: 72px; }
  .facts + .section { padding-top: 84px; }
  .hero { padding-block: 88px 150px; }
  .facts { margin-top: -70px; }
  .grid, .pending-grid { grid-template-columns: 1fr; }
  .grid .project:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .callback { padding: 26px 20px; }
  .menu-btn { display: block; }
  .logo img { height: 54px; }
  .header-in { min-height: 78px; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 22px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 0; }
  .nav a.nav-cta { text-align: center; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project img, .btn, .card { transition: none; }
}
