/* =========================================================
   Al Waqdan Building Co. — brand styles
   ========================================================= */
:root {
  --orange: #f28c28;
  --orange-dark: #d9741a;
  --orange-soft: #fdf0e3;
  --charcoal: #2f3237;
  --charcoal-2: #3b3f45;
  --ink: #23262a;
  --text: #4a4f56;
  --muted: #7a8089;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --line: #e4e4e0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(30, 32, 36, .18);
  --shadow-lg: 0 24px 60px -20px rgba(30, 32, 36, .35);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; font-weight: 600; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: fixed; top: 12px; inset-inline-start: 16px; z-index: 200;
  background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 140, 40, .7); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { background: var(--orange-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange-dark); font-weight: 500; font-size: 15px; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--orange); border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 244, 242, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,.25); background: rgba(255,255,255,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: .3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--charcoal); position: relative;
  transition: color .2s;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--orange);
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--orange-dark); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-cta { margin-inline-start: 10px; padding: 10px 20px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding: 40px 0 0; overflow-x: clip; }
.hero::before {
  /* soft diagonal paper fold like the brand book */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(125deg, transparent 48%, rgba(255,255,255,.7) 48.2%, transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: min(640px, calc(100vh - var(--header-h) - 140px)); position: relative; }
.hero-content h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; margin-bottom: 22px; letter-spacing: -.5px; }
.hero-content h1 .accent { color: var(--orange); }
.hero-content .lead { font-size: clamp(16px, 1.4vw, 18px); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; height: 100%; min-height: 520px; }
.hero-photo {
  position: absolute; inset: 0 0 0 8%;
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
  border-radius: 4px; overflow: hidden; z-index: 1;
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; transform: scale(1.04); transition: transform 6s var(--ease); }
.hero-visual.in .hero-photo img { transform: scale(1); }
.hero-stripe {
  position: absolute; top: -40px; right: 4%; width: 110px; height: 72%;
  background: linear-gradient(180deg, var(--orange), rgba(242, 140, 40, .25));
  transform: skewX(-36deg); transform-origin: top; z-index: 0;
}
.hero-corner {
  position: absolute; left: -60px; bottom: -40px; width: 260px; height: 260px;
  background: var(--charcoal); clip-path: polygon(0 100%, 0 20%, 80% 100%); z-index: 2;
}
.hero-corner::after {
  content: ""; position: absolute; inset: 0;
  background: var(--orange); clip-path: polygon(0 18%, 0 6%, 92% 100%, 80% 100%);
}

/* stats */
.stats {
  list-style: none; margin: 40px 0 0; padding: 0; position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  transform: translateY(40px);
}
.stats li { display: flex; align-items: center; gap: 14px; padding: 26px 24px; }
.stats li + li { border-inline-start: 1px solid var(--line); }
.stats strong { display: block; color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.3; }
.stats div span { font-size: 14px; color: var(--muted); }
.stat-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange);
}
.stat-icon svg, .pillar-icon svg, .c-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.section-head p { font-size: 17px; }

/* About */
.about { padding-top: 160px; background: var(--surface); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 70%, 12% 50%, 0 30%);
}
.about-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 3px solid var(--orange); border-radius: var(--radius); z-index: -1;
}
.about-badge {
  position: absolute; bottom: 32px; right: -28px;
  background: var(--charcoal); color: #fff; padding: 18px 26px; border-radius: 12px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-badge strong { display: block; font-size: 30px; color: var(--orange); line-height: 1.1; }
.about-badge span { font-size: 13px; opacity: .85; }

.pillars { display: grid; gap: 18px; }
.pillar {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 24px; background: var(--bg); border-radius: var(--radius); border-inline-start: 4px solid var(--orange);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover { transform: translateX(-4px); box-shadow: var(--shadow); }
.pillar-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--orange); box-shadow: 0 4px 14px -6px rgba(242,140,40,.6);
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 20px; color: var(--orange-dark); margin-bottom: 4px; }
.values { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.values li { background: #fff; border: 1px solid var(--line); padding: 4px 14px; border-radius: 999px; font-size: 14px; color: var(--charcoal); }

/* Services */
.services { background: var(--charcoal); color: #c9ccd1; position: relative; overflow: hidden; }
.services::before {
  content: ""; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(115deg, rgba(242,140,40,.07) 0 30%, transparent 30%);
  pointer-events: none;
}
.services .section-head h2 { color: #fff; }
.services .section-head p { color: #b5b9bf; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.service-card {
  background: var(--charcoal-2); border-radius: var(--radius); padding: 34px 28px;
  border: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s;
}
.service-card::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(242,140,40,.4); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 16px; background: rgba(242,140,40,.12); color: var(--orange); margin-bottom: 22px; }
.service-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 15px; line-height: 1.9; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.7fr 1fr; }
.project .zoom { display: block; width: 100%; border: 0; padding: 0; background: #ddd; overflow: hidden; aspect-ratio: 4 / 3; }
.project-featured .zoom { aspect-ratio: auto; height: 100%; min-height: 380px; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project figcaption { padding: 20px 22px; border-inline-start: 4px solid var(--orange); margin: 6px 0; }
.project-featured figcaption { display: flex; flex-direction: column; justify-content: center; padding: 40px; margin: 0; border: 0; background: var(--charcoal); }
.project-featured figcaption::before { content: "مشروع مميز"; color: var(--orange); font-size: 14px; margin-bottom: 10px; }
.project-featured h3 { color: #fff; font-size: 28px; }
.project-featured .loc { color: #b5b9bf; }
.project h3 { font-size: 18px; margin-bottom: 4px; }
.loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.loc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Works */
.works { background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  border: 1px solid var(--line); background: var(--bg); color: var(--charcoal);
  padding: 9px 18px; border-radius: 999px; font-size: 14px; transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--orange); color: var(--orange-dark); }
.filter.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work { margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg); transition: opacity .35s, transform .35s var(--ease); }
.work.hide { display: none; }
.work .zoom { display: block; width: 100%; border: 0; padding: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; position: relative; }
.work .zoom::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(47, 50, 55, .55); color: #fff; font-size: 40px; font-weight: 300; opacity: 0; transition: opacity .3s;
}
.work .zoom:hover::after, .work .zoom:focus-visible::after { opacity: 1; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work figcaption { padding: 14px 16px 16px; }
.work h3 { font-size: 16px; margin: 6px 0 2px; }
.tag { display: inline-block; font-size: 12px; color: var(--orange-dark); background: var(--orange-soft); padding: 2px 10px; border-radius: 999px; }

/* Certificates */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.cert { margin: 0; background: var(--surface); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); text-align: center; transition: transform .3s var(--ease); }
.cert:hover { transform: translateY(-4px); }
.cert .zoom { display: block; width: 100%; height: 220px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px; overflow: hidden; }
.cert img { width: 100%; height: 100%; object-fit: contain; }
.cert figcaption { font-size: 14px; color: var(--charcoal); font-weight: 500; padding: 12px 4px 4px; }

/* Partners & suppliers */
.partners { background: var(--surface); }
.list-title { font-size: 20px; text-align: center; margin: 8px 0 18px; color: var(--charcoal); }
.name-list { list-style: none; padding: 0; margin: 0 0 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.name-list li {
  background: var(--bg); border: 1px solid var(--line); border-inline-start: 3px solid var(--orange);
  padding: 10px 18px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px;
}
.name-list-sm li { font-size: 14px; padding: 8px 14px; font-weight: 400; border-inline-start-width: 1px; }
.list-note { text-align: center; font-size: 13px; color: var(--muted); }
.logo-grid { list-style: none; padding: 0; margin: 0 0 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-grid li {
  flex: 0 1 186px; height: 120px; padding: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.logo-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(242,140,40,.45); }
.logo-grid img { width: 100%; height: 100%; object-fit: contain; }
.logo-grid-sm { gap: 12px; }
.logo-grid-sm li { flex-basis: 150px; height: 96px; padding: 12px; }
@media (max-width: 640px) {
  .logo-grid { gap: 10px; }
  .logo-grid li { flex-basis: calc(50% - 5px); height: 96px; padding: 10px; }
  .logo-grid-sm { gap: 8px; }
  .logo-grid-sm li { flex-basis: calc(33.333% - 6px); height: 72px; padding: 8px; }
}

/* CTA */
.cta {
  position: relative; padding: 80px 0; color: #fff;
  background: linear-gradient(90deg, rgba(47,50,55,.96) 40%, rgba(47,50,55,.75)), url("../img/contact.jpg") left center / cover no-repeat;
}
.cta::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 8px; background: var(--orange); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta p { color: #d5d7db; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); }
.c-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.c-label { display: block; font-size: 13px; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 500; transition: color .2s; }
.contact-list a:hover { color: var(--orange-dark); }
.contact-list li > div > span:not(.c-label) { color: var(--ink); font-weight: 500; }
.phones { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.contact-form { background: var(--surface); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.contact-form h3 { font-size: 22px; }
.form-note { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
.field label { font-size: 14px; color: var(--charcoal); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(242,140,40,.15); }
.field .invalid { border-color: #d64545; }
.form-error { color: #c53030; font-size: 14px; margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: #aeb2b8; padding-top: 56px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 64px; width: auto; filter: invert(1) brightness(1.6); }
.footer-brand strong { color: #fff; font-size: 18px; font-weight: 600; }
.footer-brand p { color: var(--orange); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 0; font-size: 13px; }
.footer-legal { display: flex; gap: 18px; padding-inline-end: 80px; }
.footer-legal a:hover { color: var(--orange); }

/* Legal pages */
.legal { padding: 70px 0 90px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; color: var(--orange-dark); }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-inline-start: 22px; margin: 0 0 10px; }
.legal a { color: var(--orange-dark); text-decoration: underline; }
.legal .btn { color: #fff; text-decoration: none; }
.legal a[dir="ltr"] { white-space: nowrap; }
.not-found { text-align: center; }
.not-found img { margin: 0 auto 20px; }
.legal-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.legal-header .header-inner { height: 76px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(37,211,102,.7);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 22, 25, .94);
  display: grid; place-items: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lb-close, .lb-nav {
  position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%;
  width: 48px; height: 48px; font-size: 30px; line-height: 1; display: grid; place-items: center; transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { right: 12px; }
.lb-next { left: 12px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stats.reveal.in { transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stats.reveal { transform: translateY(40px); }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a:not(.btn) { padding: 8px 8px; font-size: 14px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px 16px 32px;
    background: var(--surface); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 16px 8px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 24px 0 0; padding: 15px; }
  body.nav-open { overflow: hidden; }

  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-visual { min-height: 0; height: 380px; }
  .hero-photo { inset: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 75%, 10% 50%, 0 25%); }
  .hero-corner { width: 180px; height: 180px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 460px; margin-inline: auto 0; width: calc(100% - 24px); }
  .about-media img { height: 420px; }
  .about-badge { right: auto; left: -12px; }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured .zoom { min-height: 0; aspect-ratio: 16 / 10; }
  .project-featured figcaption { padding: 26px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .about { padding-top: 130px; }
}

@media (max-width: 640px) {
  .brand img { height: 44px; }
  .brand-text strong { font-size: 16px; }
  .hero-actions .btn { flex: 1; }
  .hero-visual { height: 300px; }
  .stats li { padding: 18px 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .stats strong { font-size: 20px; }
  .stat-icon { width: 42px; height: 42px; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .work figcaption { padding: 10px 12px 12px; }
  .work h3 { font-size: 14px; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert .zoom { height: 160px; }
  .field-row { flex-direction: column; gap: 0; }
  .contact-form { padding: 24px 20px; }
  .phones { flex-direction: column; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .lightbox { padding: 60px 12px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
  .footer-bottom { flex-direction: column; }
}
