/* =========================================================
   AMuN — Engineering, Construction & Digital Consulting
   Brand palette (from amun-mep.com): blue #1863DC + navy #19206e,
   yellow accent #F8D047, light theme on white / #f4f4f4.
   ========================================================= */

:root {
  --blue: #1863dc;
  --blue-deep: #0056a7;
  --navy: #19206e;
  --navy-deep: #0f1340;
  --yellow: #f8d047;
  --ink: #212121;
  --muted: #4e4b66;
  --bg: #ffffff;
  --soft: #f4f4f4;
  --soft-2: #ebebeb;
  --line: rgba(25, 32, 110, 0.12);
  --line-d: rgba(255, 255, 255, 0.14);
  --blue-soft: rgba(24, 99, 220, 0.08);
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 30px 60px -28px rgba(25, 32, 110, 0.28);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }

/* Accessibility: skip link + keyboard focus */
.skip-link { position: absolute; left: 16px; top: -120px; z-index: 200; background: var(--blue); color: #fff; padding: 11px 20px; border-radius: 10px; font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; transition: top 0.25s var(--ease); }
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.nav-links a:focus-visible, .lang-btn:focus-visible { outline-color: var(--yellow); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--navy); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--blue); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); display: inline-block; }

.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 15px 28px; border-radius: 100px; cursor: pointer; border: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 30px -10px rgba(24, 99, 220, 0.6); }
.btn-primary:hover { transform: translateY(-3px); background: var(--blue-deep); box-shadow: 0 18px 42px -12px rgba(24, 99, 220, 0.7); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-accent { background: var(--yellow); color: var(--navy); box-shadow: 0 12px 30px -10px rgba(248, 208, 71, 0.6); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 18px 42px -12px rgba(248, 208, 71, 0.75); }
.btn-accent:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid var(--line-d); }
.btn-ghost-light:hover { transform: translateY(-3px); border-color: var(--yellow); color: var(--yellow); }

/* ---------- Navbar (navy surface so the white logo stays visible) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0; transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 13px 0; background: rgba(15, 19, 64, 0.88);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-d); box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.6);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { height: 34px; }
.nav-logo img { height: 100%; }
/* Center nav — pill buttons (glassmorphism pill on large screens) */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.8); font-weight: 500; padding: 8px 15px; border-radius: 100px; transition: background 0.3s var(--ease), color 0.3s; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav-links a.active { background: #fff; color: var(--navy); }
@media (min-width: 1024px) {
  .nav-links {
    position: absolute; left: 50%; transform: translateX(-50%);
    gap: 4px; padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 100px;
  }
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
/* Language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 100px; background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lang-btn { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); background: none; border: 0; cursor: pointer; padding: 6px 11px; border-radius: 100px; transition: background 0.3s, color 0.3s; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: #fff; color: var(--navy); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: #fff; transition: 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (cursor-spotlight reveal) ---------- */
.font-playfair { font-family: "Playfair Display", Georgia, serif; }

.hero { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: var(--navy-deep); }

/* Image layers */
.hero-base, .hero-reveal-img { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; pointer-events: none; }
/* Base: raw construction site — deeply darkened navy (the "idea / in progress") */
.hero-base { z-index: 10; background-image: linear-gradient(rgba(9, 12, 38, 0.74), rgba(7, 9, 30, 0.90)), url("../assets/images/construction.jpg"); }
/* Serve WebP where supported (≈-58% weight), keep the JPG/PNG as automatic fallback */
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero-base { background-image: linear-gradient(rgba(9, 12, 38, 0.74), rgba(7, 9, 30, 0.90)), image-set(url("../assets/images/construction.webp") type("image/webp"), url("../assets/images/construction.jpg") type("image/jpeg")); }
  .hero-reveal-img { background-image: linear-gradient(rgba(24, 99, 220, 0.12), rgba(15, 19, 64, 0.14)), image-set(url("../assets/images/project-1.webp") type("image/webp"), url("../assets/images/project-1.png") type("image/png")); }
}
/* Reveal: the finished, built project — bright, only visible inside the spotlight ("we build it") */
.hero-reveal-img {
  z-index: 30;
  background-image: linear-gradient(rgba(24, 99, 220, 0.12), rgba(15, 19, 64, 0.14)), url("../assets/images/project-1.png");
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, #000 38%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.2) 82%, transparent 100%);
  mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, #000 38%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.2) 82%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* Vignette for text legibility */
.hero-vignette {
  position: absolute; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 28%, transparent 42%, rgba(15, 19, 64, 0.55) 100%),
              linear-gradient(180deg, rgba(15, 19, 64, 0.55) 0%, transparent 22%, rgba(15, 19, 64, 0.10) 58%, var(--navy-deep) 100%);
}

/* Heading */
.hero-heading { position: absolute; top: 14%; left: 0; right: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; pointer-events: none; }
.hero-heading h1 { color: #fff; line-height: 0.95; margin: 0; }
.hero-heading .line-serif { display: block; font-style: italic; font-weight: 400; font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -0.05em; }
.hero-heading .line-sans { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: -0.07em; margin-top: -0.05em; }
.hero-heading .line-sans em, .hero-heading .accent { font-style: normal; color: var(--yellow); }

/* Bottom notes */
.hero-note { position: absolute; z-index: 50; }
.hero-note p { color: rgba(255, 255, 255, 0.8); line-height: 1.6; }
.hero-note-left { display: none; bottom: 56px; left: 40px; max-width: 260px; }
.hero-note-left p { font-size: 0.875rem; }
.hero-note-right { bottom: 40px; left: 20px; right: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-note-right p { font-size: 0.8rem; }
@media (min-width: 640px) {
  .hero-note-left { display: block; }
  .hero-note-right { bottom: 96px; left: auto; right: 40px; max-width: 260px; gap: 20px; }
  .hero-note-right p { font-size: 0.875rem; }
}
@media (min-width: 768px) { .hero-note-left { left: 56px; } .hero-note-right { right: 56px; } }

/* On-load animations */
@keyframes heroReveal { 0% { opacity: 0; transform: translateY(28px); filter: blur(12px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes heroFadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
.hero-anim { opacity: 0; animation-fill-mode: forwards; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
.hero-anim.hero-reveal { animation-name: heroReveal; animation-duration: 1.1s; }
.hero-anim.hero-fade { animation-name: heroFadeUp; animation-duration: 1s; }
.hero-zoom { animation: heroZoom 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@media (prefers-reduced-motion: reduce) { .hero-anim, .hero-zoom { animation: none; opacity: 1; } }

/* ===== Blueprint → Built ===== */
/* The spotlight position lives on .hero so the plan AND the photo share it. */
.hero { --mx: -400px; --my: -400px; }

/* The "idea": an architect's plan on graph paper. Hidden inside the cursor spotlight
   (inverse mask) so the real build (`.hero-reveal-img`) shows through — the pointer builds it. */
.hero-blueprint {
  position: absolute; inset: 0; z-index: 20; pointer-events: none; color: #93b4ff;
  background-image:
    linear-gradient(rgba(147, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(147, 180, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 180, 255, 0.11) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px, 170px 170px, 170px 170px;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx) var(--my), transparent 0%, transparent 44%, #000 76%, #000 100%);
          mask-image: radial-gradient(circle 260px at var(--mx) var(--my), transparent 0%, transparent 44%, #000 76%, #000 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero-blueprint svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp { fill: none; }
.bp line, .bp rect, .bp polyline, .bp path {
  stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: bpDraw 1.5s cubic-bezier(0.6, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
.bp .bp-thin { stroke-width: 1; opacity: 0.5; }
.bp .bp-accent { stroke: var(--yellow); stroke-width: 2.5; }
.bp .bp-node {
  fill: var(--yellow); stroke: none; opacity: 0;
  animation: bpPop 0.5s ease forwards; animation-delay: calc(0.9s + var(--i, 0) * 0.08s);
}
@keyframes bpDraw { to { stroke-dashoffset: 0; } }
@keyframes bpPop { to { opacity: 1; } }

/* Title-block coordinates (desktop only, decorative) */
.hero-plate {
  position: absolute; z-index: 50; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: none; gap: 14px; align-items: center; pointer-events: none;
  font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.18em;
  color: rgba(147, 180, 255, 0.7); white-space: nowrap;
}
.hero-plate i { color: var(--yellow); font-style: normal; }
@media (min-width: 980px) { .hero-plate { display: flex; } }

/* Touch / reduced-motion: no cursor "build" — show the finished build with the plan as a faint overlay */
.hero.is-static .hero-blueprint { -webkit-mask-image: none; mask-image: none; opacity: 0.3; }
.hero.is-static .hero-reveal-img { -webkit-mask-image: none; mask-image: none; }

/* ---------- Trust marquee ---------- */
.trust { padding: 40px 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.trust-label { text-align: center; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 28px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 64px; padding-right: 64px; animation: scroll-x 32s linear infinite; flex-shrink: 0; }
.trust:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 30px; width: auto; filter: grayscale(1); opacity: 0.55; transition: opacity 0.3s, filter 0.3s; }
.marquee-track img:hover { opacity: 1; filter: none; }
@keyframes scroll-x { to { transform: translateX(-100%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.stat:hover::before { transform: scaleX(1); }
.stat .num { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

/* ---------- Services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; padding: 38px 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.5s var(--ease), border-color 0.4s; transform-style: preserve-3d; }
.card::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--blue-soft), transparent 60%); pointer-events: none; }
.card:hover { border-color: rgba(24, 99, 220, 0.4); }
.card:hover::after { opacity: 1; }
.card .icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); border: 1px solid rgba(24, 99, 220, 0.18); margin-bottom: 24px; }
.card .icon svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .idx { position: absolute; top: 26px; right: 30px; font-family: var(--font-head); font-size: 0.85rem; color: var(--blue); opacity: 0.45; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 36px 28px 36px 0; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 0.9rem; color: var(--blue); font-weight: 700; }
.step .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--soft); border: 2px solid var(--blue); margin: 22px 0; position: relative; }
.step .line { position: absolute; top: 79px; left: 8px; right: 0; height: 2px; background: var(--line); }
.step .line span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 1s var(--ease); }
.step.in .line span { width: 100%; }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.92rem; padding-right: 18px; }

/* ---------- Expertise / sectors split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media:hover img { transform: scale(1.06); }
.split-media .frame { position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 12px; pointer-events: none; }
.sectors { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
.sector { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; border-top: 1px solid var(--line); transition: padding 0.4s var(--ease); cursor: default; }
.sector:last-child { border-bottom: 1px solid var(--line); }
.sector:hover { padding-left: 16px; }
.sector h4 { font-size: 1.25rem; font-weight: 600; }
.sector:hover h4 { color: var(--blue); }
.sector span { color: var(--muted); font-size: 0.85rem; font-family: var(--font-head); }

/* ---------- Projects (structured grid + filters) ---------- */
.proj-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.proj-filter { font-family: var(--font-head); font-size: 0.85rem; font-weight: 500; color: var(--muted); background: var(--white); border: 1px solid var(--line); padding: 9px 18px; border-radius: 100px; cursor: pointer; transition: color 0.3s, background 0.3s, border-color 0.3s; }
.proj-filter:hover { color: var(--navy); border-color: var(--blue); }
.proj-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.5s var(--ease), border-color 0.4s; }
.proj-card:hover { transform: translateY(-6px); border-color: rgba(24, 99, 220, 0.4); }
.proj-thumb { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.proj-card:hover .proj-thumb img { transform: scale(1.06); }
.proj-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; background: rgba(15, 19, 64, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-family: var(--font-head); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em; padding: 6px 13px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.2); }
.proj-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 24px 26px 26px; }
.proj-index { position: absolute; top: 24px; right: 26px; font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; color: var(--blue); opacity: 0.5; }
.proj-body h3 { font-size: 1.32rem; margin-bottom: 12px; padding-right: 34px; }
.proj-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.proj-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; }
.proj-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.proj-card:hover .proj-arrow svg { transform: translateX(4px); }

/* CTA tile */
.proj-cta { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); border-color: var(--navy); }
.proj-cta:hover { border-color: var(--blue); }
.proj-cta-inner { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 34px; min-height: 220px; }
.proj-cta-plus { font-family: var(--font-head); font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--yellow); margin-bottom: 16px; }
.proj-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: 18px; }
.proj-cta .proj-arrow { color: var(--yellow); }

/* ---------- Partners wall ---------- */
.partners-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.partner { background: var(--white); display: grid; place-items: center; padding: 40px 20px; min-height: 130px; transition: background 0.4s; }
.partner:hover { background: var(--soft); }
.partner img { max-height: 38px; max-width: 130px; filter: grayscale(1); opacity: 0.55; transition: 0.4s var(--ease); }
.partner:hover img { opacity: 1; filter: none; transform: scale(1.06); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.member { display: flex; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); align-items: center; box-shadow: var(--shadow); transition: border-color 0.4s, transform 0.5s var(--ease); }
.member:hover { border-color: rgba(24, 99, 220, 0.4); transform: translateY(-4px); }
.member .avatar { width: 84px; height: 84px; border-radius: 16px; flex-shrink: 0; background: var(--blue-soft); border: 1px solid rgba(24, 99, 220, 0.2); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--blue); }
.member h4 { font-size: 1.3rem; }
.member .role { color: var(--blue); font-size: 0.88rem; font-family: var(--font-head); margin: 4px 0 8px; }
.member p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Locations ---------- */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.loc { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.loc .flag { font-size: 1.8rem; margin-bottom: 16px; }
.loc h4 { font-size: 1.3rem; margin-bottom: 10px; }
.loc p { color: var(--muted); font-size: 0.92rem; }
.loc .pin { position: absolute; top: 28px; right: 30px; color: var(--blue); opacity: 0.4; }
.loc-map { width: 100%; height: 190px; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; filter: grayscale(0.3) contrast(1.02); transition: filter 0.4s var(--ease); }
.loc:hover .loc-map { filter: grayscale(0) contrast(1); }
/* RGPD: map placeholder (loads Google Maps only on user click) */
.map-load { width: 100%; height: 190px; margin-top: 22px; border: 1px dashed rgba(25, 32, 110, 0.28); border-radius: var(--radius-sm); background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--navy); transition: border-color 0.3s, background 0.3s, color 0.3s; }
.map-load svg { width: 26px; height: 26px; color: var(--blue); }
.map-load span { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; }
.map-load small { color: var(--muted); font-size: 0.72rem; }
.map-load:hover { border-color: var(--blue); background: #eef2fb; }

/* Cursor hint (hover/fine-pointer devices only) */
.cursor-hint { display: none; color: rgba(255, 255, 255, 0.55); }
@media (hover: hover) and (pointer: fine) { .cursor-hint { display: inline; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.field input, .field textarea { font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; width: 100%; resize: vertical; transition: border-color 0.3s, box-shadow 0.3s; }
.field input::placeholder, .field textarea::placeholder { color: #9aa0ac; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field input.invalid, .field textarea.invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12); }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-status { font-family: var(--font-head); font-size: 0.9rem; line-height: 1.5; min-height: 1.2em; margin: 0; }
.form-status.success { color: #1a8f4a; }
.form-status.error { color: #d64545; }

.contact-info { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; }
.ci-item { display: flex; flex-direction: column; gap: 5px; }
.ci-label { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); }
.ci-item a, .ci-item p { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.ci-item a { transition: color 0.3s; word-break: break-word; }
.ci-item a:hover { color: var(--yellow); }
.ci-brand { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line-d); }
.ci-brand img { height: 30px; margin-bottom: 12px; }
.ci-brand p { color: rgba(255, 255, 255, 0.6); font-family: var(--font-head); font-style: italic; }

/* ---------- Footer (navy) ---------- */
.footer { background: var(--navy-deep); padding: 70px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { height: 34px; margin-bottom: 20px; }
.footer-col h5 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.85); font-size: 0.94rem; padding: 6px 0; transition: color 0.3s, padding 0.3s; }
.footer-col a:hover { color: var(--yellow); padding-left: 6px; }
.footer p.about { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line-d); color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; flex-wrap: wrap; gap: 14px; }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a { width: 38px; height: 38px; border: 1px solid var(--line-d); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: 0.3s var(--ease); }
.footer-bottom .socials a:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-3px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step .line { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partners-wall { grid-template-columns: repeat(3, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 84px 0; }
  .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .burger { display: flex; }
  .nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15, 19, 64, 0.98); backdrop-filter: blur(20px); padding: 30px 24px; gap: 22px; border-bottom: 1px solid var(--line-d); align-items: flex-start; }
  .nav-links.mobile-open a { font-size: 1.2rem; color: #fff; }
  .grid-3, .team, .stats { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .partners-wall { grid-template-columns: repeat(2, 1fr); }
  .locations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-anim, .hero-zoom { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
