/* ============================================================
   Elevate Infrastructure and Consultants
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-deep:   #080f24;
  --navy:        #0d1b3e;
  --navy-mid:    #112255;
  --navy-light:  #1a3070;
  --navy-border: #1e3a7a;
  --fog:         #93a8cd;
  --offwhite:    #e8edf8;
  --warm-white:  #f4f7ff;
  --cyan:        #00b4f0;
  --cyan-light:  #40ccff;
  --whatsapp:    #25d366;
  --grid-line:   rgba(0,180,240,0.07);
  --nav-h: 76px;
  --bar-h: 0px;
  --maxw: 1320px;
  --radius: 3px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--navy-deep);
  color: var(--offwhite);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--cyan); color: var(--navy-deep); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--navy-border); border-radius: 4px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 3000;
  background: var(--cyan); color: var(--navy-deep); padding: 12px 20px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 26px;
  font-family: inherit; font-size: .82rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
  text-align: center; line-height: 1.2;
}
.btn-lg { min-height: 54px; padding: 16px 32px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--cyan); color: #041226; border-color: var(--cyan);
  box-shadow: 0 6px 20px rgba(0,180,240,.28);
}
.btn-primary:hover { background: var(--cyan-light); border-color: var(--cyan-light); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,180,240,.36); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--warm-white); border-color: var(--navy-border); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: #06301a; border-color: var(--whatsapp); }
.btn-whatsapp:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ── Header ──────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(8,15,36,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(8,15,36,.98); border-bottom-color: var(--navy-border); }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; }

.nav-links { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.6rem); }
.nav-links > a {
  position: relative; color: var(--fog); text-decoration: none;
  font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; padding: 8px 2px; transition: color .18s;
}
.nav-links > a:hover { color: var(--warm-white); }
.nav-links > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links > a:hover::after { transform: scaleX(1); }
.nav-links > a.current { color: var(--warm-white); }
.nav-links > a.current::after { transform: scaleX(1); }
.nav-call { display: inline-flex; align-items: center; gap: 7px; color: var(--warm-white) !important; }
.nav-call svg { width: 15px; height: 15px; fill: var(--cyan); flex-shrink: 0; }
.nav-call::after { display: none !important; }
.nav-cta { color: #041226 !important; }
.nav-cta::after { display: none !important; }

.menu-btn {
  display: none; align-items: center; gap: 9px;
  min-height: 46px; padding: 8px 14px;
  background: rgba(0,180,240,.1); border: 1px solid var(--navy-border); border-radius: var(--radius);
  color: var(--warm-white); font-family: inherit; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.menu-bars { display: flex; flex-direction: column; gap: 4px; }
.menu-bars span { display: block; width: 18px; height: 2px; background: var(--cyan); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 999;
  background: rgba(8,15,36,.99); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.2rem 1.2rem calc(1.6rem + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; min-height: 60px;
  padding: 4px 8px; border-bottom: 1px solid rgba(30,58,122,.5);
  color: var(--offwhite); text-decoration: none;
  font-size: 1.06rem; font-weight: 500;
}
.mobile-menu nav a:active { color: var(--cyan); }
.mobile-menu-actions { display: grid; gap: .7rem; margin-top: 1.4rem; }

/* ── Layout primitives ───────────────────────────────────── */
.section {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(3.2rem, 7vw, 6rem) clamp(1.1rem, 5vw, 3rem);
}
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title {
  font-size: clamp(1.75rem, 4.4vw, 3rem); font-weight: 300; line-height: 1.14;
  color: var(--warm-white); letter-spacing: -.01em;
}
.section-title strong { font-weight: 500; color: var(--cyan); }
.section-sub { margin-top: .9rem; color: var(--fog); font-size: .95rem; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: .8rem;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cyan); flex-shrink: 0; }
.eyebrow.center { justify-content: center; }
.body { color: var(--fog); font-size: .97rem; line-height: 1.85; margin-top: 1.1rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100svh; position: relative; }
.hero-left {
  position: relative; z-index: 2; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.1rem, 5vw, 4.5rem) 3.5rem;
}
.hero-left::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-left > * { position: relative; }
.hero-logo { height: clamp(64px, 8vw, 88px); width: auto; margin-bottom: 1.6rem; }
.hero-tagline {
  font-size: clamp(2rem, 5.2vw, 4rem); font-weight: 300; line-height: 1.12;
  color: var(--warm-white); letter-spacing: -.02em;
}
.hero-tagline strong { font-weight: 500; color: var(--cyan); }
.hero-subtitle { margin-top: 1.2rem; color: var(--fog); font-size: clamp(.9rem, 1.4vw, 1rem); line-height: 1.75; max-width: 46ch; }
.hero-pillars { list-style: none; margin-top: 1.4rem; display: grid; gap: .55rem; }
.hero-pillars li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--offwhite); }
.hero-pillars li::before { content: ''; width: 8px; height: 8px; background: var(--cyan); transform: rotate(45deg); flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--navy-border);
}
.stat-num { display: block; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 300; color: var(--cyan); line-height: 1; }
.stat-label { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); margin-top: 5px; }

.hero-right { position: relative; overflow: hidden; background: var(--navy-deep); min-height: 260px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.4) saturate(.5) hue-rotate(185deg); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, transparent 38%); }
.hero-cert {
  position: absolute; right: clamp(.8rem, 2vw, 2rem); bottom: clamp(.8rem, 2vw, 2rem);
  background: var(--cyan); color: #041226; padding: 12px 16px;
  font-size: .76rem; font-weight: 700; text-align: center; line-height: 1.35; border-radius: var(--radius);
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee { background: var(--cyan); padding: .85rem 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; animation: marquee 26s linear infinite; }
.marquee-track span { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #041226; padding: 0 1.4rem; }
.marquee-track i { width: 5px; height: 5px; background: rgba(4,18,38,.35); border-radius: 50%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── About ───────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; background: var(--navy); max-width: none; }
.about > * { max-width: calc(var(--maxw) / 2); }
.about-media { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.about-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.about-accent { position: absolute; right: -14px; bottom: -14px; width: 90px; height: 90px; background: var(--cyan); z-index: 0; }
.about-badge {
  position: absolute; z-index: 4; top: 18px; left: -12px; background: var(--navy-deep);
  padding: 14px 18px; border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0;
}
.about-badge b { display: block; font-size: 2.1rem; font-weight: 300; color: var(--cyan); line-height: 1; }
.about-badge small { display: block; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); margin-top: 5px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.8rem; }
.value { background: var(--navy-mid); padding: 1.1rem 1.2rem; border-left: 3px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; }
.value h3 { font-size: .9rem; font-weight: 700; color: var(--warm-white); margin-bottom: 4px; }
.value p { font-size: .8rem; color: var(--fog); line-height: 1.6; }

/* ── Services ────────────────────────────────────────────── */
.services { background: var(--navy-deep); max-width: none; }
.services > * { max-width: var(--maxw); margin-inline: auto; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--navy-border); }
.service { background: var(--navy); padding: clamp(1.5rem, 3vw, 2.4rem); position: relative; overflow: hidden; }
.service::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--cyan); transition: width .4s; }
.service:hover { background: var(--navy-mid); }
.service:hover::after { width: 100%; }
.service-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(0,180,240,.1); border-radius: var(--radius); margin-bottom: 1.1rem; }
.service-icon svg { width: 23px; height: 23px; fill: var(--cyan); }
.service h3 { font-size: 1.06rem; font-weight: 500; color: var(--warm-white); }
.service .tag { display: inline-block; background: rgba(0,180,240,.12); color: var(--cyan); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; margin: .5rem 0 .8rem; border-radius: 2px; }
.service p { font-size: .85rem; color: var(--fog); line-height: 1.7; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.chips li { background: var(--navy-mid); border: 1px solid var(--navy-border); color: var(--fog); font-size: .69rem; padding: 4px 10px; border-radius: 2px; }

.banner {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: var(--navy-mid); border: 1px solid var(--navy-border); border-left: 4px solid var(--cyan);
  padding: clamp(1.3rem, 3vw, 1.9rem); margin-top: 1px; border-radius: 0 var(--radius) var(--radius) 0;
}
.banner > svg { width: 30px; height: 30px; fill: var(--cyan); flex-shrink: 0; }
.banner div { flex: 1 1 320px; }
.banner h3 { font-size: 1.02rem; font-weight: 500; color: var(--warm-white); margin-bottom: 5px; }
.banner p { font-size: .85rem; color: var(--fog); line-height: 1.7; }

/* ── Projects ────────────────────────────────────────────── */
.projects { background: var(--navy); max-width: none; }
.projects > * { max-width: var(--maxw); margin-inline: auto; }
.project + .project { margin-top: clamp(2.6rem, 5vw, 4rem); }
.project-head {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--navy-border);
}
.project-no {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0,180,240,.1); padding: 7px 12px; border-radius: 2px; flex-shrink: 0;
}
.project-head > div { flex: 1 1 260px; }
.project-head h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 400; color: var(--warm-white); line-height: 1.2; }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .45rem; }
.project-meta span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--fog); }
.project-meta span::before { content: ''; width: 5px; height: 5px; background: var(--cyan); flex-shrink: 0; }

.pill { display: inline-block; padding: 6px 13px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; white-space: nowrap; }
.pill-done { background: rgba(39,174,96,.14); color: #38d97e; }
.pill-active { background: rgba(0,180,240,.14); color: var(--cyan); }
.pill-plan { background: rgba(255,165,0,.14); color: #ffb038; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shot {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  background: var(--navy-mid); border-radius: var(--radius); overflow: hidden;
}
.shot img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s, filter .3s; filter: brightness(.94); }
.shot:hover img { transform: scale(1.05); filter: brightness(1); }

/* Image protection layer: blocks drag / long-press save / right-click target */
.protect img, .lb-inner img {
  -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; user-drag: none;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
  pointer-events: none;
}
.shield { position: absolute; inset: 0; z-index: 3; background: transparent; }

/* ── Video embed (see README) ─────────────────────────── */
.video {
  position: relative; margin-top: 1.2rem; border-radius: var(--radius);
  overflow: hidden; background: var(--navy-mid); border: 1px solid var(--navy-border);
  aspect-ratio: 16/9;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ── Pipeline ────────────────────────────────────────────── */
.pipeline { background: var(--navy-deep); max-width: none; }
.pipeline > * { max-width: var(--maxw); margin-inline: auto; }
/* Projects 03–05 reuse the completed-project card, with placeholder frames */
.project-soon + .project-soon { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.gallery.coming .frame {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  aspect-ratio: 4/3; padding: .8rem; text-align: center;
  border: 1px dashed var(--navy-border); border-radius: var(--radius);
  background-color: rgba(13,27,62,.55);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.gallery.coming .frame svg { width: 30px; height: 30px; fill: var(--navy-border); }
.gallery.coming .frame span {
  font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--fog);
}
.gallery.coming .frame-lead { border-color: rgba(0,180,240,.42); background-color: rgba(0,180,240,.05); }
.gallery.coming .frame-lead svg { fill: var(--cyan); }
.gallery.coming .frame-lead span { color: var(--cyan); }

.project-progress { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; margin-top: 1.2rem; }
.project-progress p { flex: 1 1 340px; font-size: .88rem; color: var(--fog); line-height: 1.7; }
.project-progress .btn { flex-shrink: 0; }
.bar { flex-basis: 100%; display: block; width: 100%; max-width: 320px; height: 5px;
       background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--cyan); }

.pipeline-cta {
  margin-top: 2rem; padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--navy); border: 1px solid var(--navy-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
}
.pipeline-cta p { font-size: 1rem; color: var(--warm-white); flex: 1 1 280px; }
.pipeline-cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ── Contact ─────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; background: var(--navy-mid); max-width: none; }
.contact > * { max-width: calc(var(--maxw) / 2); }

.quick-actions { display: grid; gap: .7rem; margin-top: 1.8rem; }
.quick {
  display: flex; align-items: center; gap: 14px; min-height: 62px;
  padding: 12px 16px; text-decoration: none;
  background: var(--navy); border: 1px solid var(--navy-border); border-radius: var(--radius);
  transition: border-color .2s, background .2s, transform .12s;
}
.quick:hover { border-color: var(--cyan); background: var(--navy-light); transform: translateY(-2px); }
.quick svg { width: 20px; height: 20px; fill: var(--cyan); flex-shrink: 0; }
.quick span { display: flex; flex-direction: column; font-size: .95rem; color: var(--warm-white); word-break: break-word; }
.quick small { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); margin-bottom: 2px; }
.quick-wa svg { fill: var(--whatsapp); }
.quick-wa:hover { border-color: var(--whatsapp); }

.office { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--navy-border); }
.office h3 { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: .7rem; }
.office address { font-style: normal; font-size: .9rem; line-height: 1.75; color: var(--offwhite); }
.map-link { display: inline-block; margin-top: .7rem; color: var(--cyan); font-size: .85rem; font-weight: 500; text-decoration: none; }
.map-link:hover { text-decoration: underline; }

.form-card { background: var(--navy); border: 1px solid var(--navy-border); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); }
.form-title { font-size: 1.3rem; font-weight: 500; color: var(--warm-white); }
.form-note { font-size: .84rem; color: var(--fog); margin: .35rem 0 1.3rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--fog); }
.field label span { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px; font-family: inherit;
  font-size: 16px; /* 16px stops iOS Safari zooming in on focus */
  color: var(--offwhite); background: var(--navy-deep);
  border: 1px solid var(--navy-border); border-radius: var(--radius);
  outline: none; transition: border-color .18s, box-shadow .18s; resize: vertical; min-height: 50px;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2393a8cd'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 42px; }
.field input::placeholder, .field textarea::placeholder { color: #3c5590; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,240,.18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #e74c3c; }
.hint { font-size: .74rem; color: var(--fog); }
.err { font-size: .76rem; color: #ff7a6c; }
.hp { position: absolute; left: -9999px; }

.more { margin-bottom: 1rem; border: 1px dashed var(--navy-border); border-radius: var(--radius); }
.more > summary { cursor: pointer; padding: 13px 14px; font-size: .8rem; font-weight: 500; color: var(--cyan); list-style: none; min-height: 46px; display: flex; align-items: center; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: '+'; margin-right: 8px; font-size: 1.1rem; line-height: 1; }
.more[open] > summary::before { content: '–'; }
.more[open] { padding: 0 14px 4px; }

.form-status { display: none; margin-top: .9rem; padding: 13px 15px; font-size: .88rem; border-radius: var(--radius); }
.form-status.ok { display: block; background: rgba(39,174,96,.12); color: #4ee08c; border-left: 3px solid #27ae60; }
.form-status.bad { display: block; background: rgba(231,76,60,.12); color: #ff8a7d; border-left: 3px solid #c0392b; }
.form-fineprint { margin-top: .9rem; font-size: .74rem; color: var(--fog); text-align: center; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy-deep); border-top: 1px solid var(--navy-border); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.1rem, 5vw, 3rem) 1.4rem; }
.footer-top { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 3rem); }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin-top: .9rem; font-size: .84rem; color: var(--fog); line-height: 1.7; max-width: 300px; }
.footer h4 { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .1rem; }
.footer ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fog); font-size: .86rem; text-decoration: none; transition: color .18s; word-break: break-word; }
.footer ul a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: var(--maxw); margin: 2.4rem auto 0; padding-top: 1.3rem; border-top: 1px solid var(--navy-mid);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: .74rem; color: var(--fog); max-width: 70ch; }
.socials { display: flex; gap: .6rem; }
.socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--navy-border); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.socials a:hover { border-color: var(--cyan); background: rgba(0,180,240,.08); }
.socials svg { width: 16px; height: 16px; fill: var(--fog); }

/* ── Sticky action bar (mobile) ──────────────────────────── */
.action-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: rgba(8,15,36,.98); backdrop-filter: blur(12px);
  border-top: 1px solid var(--navy-border);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.action-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border-radius: var(--radius); text-decoration: none;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--warm-white); background: var(--navy-mid);
}
.action-bar svg { width: 17px; height: 17px; fill: var(--cyan); }
.action-bar .ab-wa svg { fill: var(--whatsapp); }
.action-bar .ab-cta { flex: 1.5; background: var(--cyan); color: #041226; box-shadow: 0 4px 14px rgba(0,180,240,.3); }

/* ── Back to top ─────────────────────────────────────────── */
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + var(--bar-h)); z-index: 1100;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--cyan); color: #041226; border: 0; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.to-top[hidden] { display: none; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4,8,20,.96); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lb-inner { position: relative; max-width: min(1200px, 96vw); max-height: 92svh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lb-inner img { max-width: 100%; max-height: 80svh; width: auto; object-fit: contain; border-radius: var(--radius); }
.lb-caption { font-size: .82rem; color: var(--fog); text-align: center; }
.lb-close, .lb-nav {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--navy-border); border-radius: 50%;
  background: rgba(8,15,36,.9); color: var(--warm-white); font-size: 1.5rem; cursor: pointer; z-index: 5;
}
.lb-close { top: -8px; right: -8px; font-size: 1.1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: -10px; }
.lb-next { right: -10px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Reveal on scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ══ TABLET ≤ 1000px ══ */
@media (max-width: 1000px) {
  .nav-links > a:not(.nav-cta):not(.nav-call) { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* ══ MOBILE ≤ 860px ══ */
@media (max-width: 860px) {
  :root { --nav-h: 64px; --bar-h: 68px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-logo img { height: 38px; }
  .action-bar { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: calc(var(--nav-h) + 2rem) 1.15rem 2.5rem; justify-content: flex-start; }
  .hero-logo { height: 58px; margin-bottom: 1.2rem; }
  .hero-right { height: 52vw; min-height: 200px; max-height: 340px; order: -1; }
  .hero-overlay { background: linear-gradient(to top, var(--navy) 4%, transparent 62%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 1.4rem 2rem; }

  .about { grid-template-columns: 1fr; }
  .about > * { max-width: 100%; }
  .about-media { max-width: 320px; }
  .about-badge { left: 0; }
  .values { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; }
  .banner .btn { width: 100%; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .project-head { gap: .7rem; }

  .contact { grid-template-columns: 1fr; }
  .contact > * { max-width: 100%; }

  .pipeline-cta { flex-direction: column; align-items: stretch; }
  .pipeline-cta-actions .btn { width: 100%; }

  .project-progress .btn { width: 100%; }
  /* two placeholder frames is enough on a phone */
  .gallery.coming .frame:nth-child(n+3) { display: none; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { justify-content: flex-start; }

  .lb-close { top: 0; right: 0; }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
  .to-top { right: 12px; bottom: calc(var(--bar-h) + 12px); }
}

/* ══ SMALL ≤ 400px ══ */
@media (max-width: 400px) {
  .section { padding-left: 1rem; padding-right: 1rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-cert { padding: 9px 12px; font-size: .68rem; }
  .menu-btn .menu-word { display: none; }
  .menu-btn { padding: 8px 12px; }
}
