/* ============================================================
   ARIA7 — Arquitectura, Ingeniería y Construcción
   ============================================================ */

:root {
  --navy-950: #050f1a;
  --navy-900: #0a2138;
  --navy-850: #0c2944;
  --navy-800: #0f3151;
  --navy-700: #143d63;
  --navy-600: #1c5079;

  --ink: #eef4f9;
  --ink-soft: #cddae6;
  --muted: #96a9bd;
  --muted-dim: #6f8299;

  --slate: #9aa7b3;

  --teal: #16b7bf;
  --teal-bright: #4fd8de;
  --teal-dim: #0d7d84;

  --lavender: #b7aef0;

  --line: rgba(238, 244, 249, 0.1);
  --line-soft: rgba(238, 244, 249, 0.06);

  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--teal), var(--lavender));
  display: inline-block;
}

section { position: relative; }

.section-pad { padding: 128px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }

.section-head .lede {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

/* noise texture overlay for premium depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ reveal-on-scroll (readable with JS off) ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.js .reveal-stagger.in-view .reveal-item { opacity: 1; transform: translateY(0); }
.js .reveal-stagger .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal-stagger .reveal-item:nth-child(1) { transition-delay: 0.02s; }
.js .reveal-stagger .reveal-item:nth-child(2) { transition-delay: 0.1s; }
.js .reveal-stagger .reveal-item:nth-child(3) { transition-delay: 0.18s; }
.js .reveal-stagger .reveal-item:nth-child(4) { transition-delay: 0.26s; }
.js .reveal-stagger .reveal-item:nth-child(5) { transition-delay: 0.34s; }
.js .reveal-stagger .reveal-item:nth-child(6) { transition-delay: 0.42s; }

/* ============================== HEADER ============================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(5, 15, 26, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; }
.logo-img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(22, 183, 191, 0.35));
  transition: height 0.35s var(--ease);
}
.site-header.scrolled .logo-img { height: 44px; }
.footer-logo-img { height: 60px; filter: none; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: #04181a;
  box-shadow: 0 10px 30px -12px rgba(22, 183, 191, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(22, 183, 191, 0.7); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-bright); }
.btn-block { width: 100%; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: rotate(45deg) translate(4px, 4px); background: var(--ink); }
.nav-toggle.active span::after { transform: rotate(-45deg) translate(4px, -4px); background: var(--ink); }

/* =============================== HERO =============================== */
.hero {
  position: relative;
  padding: 160px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 82% -10%, rgba(22, 183, 191, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(183, 174, 240, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-950));
}

.hero-rise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 78%);
  z-index: 0;
}

.hero-mark {
  position: absolute;
  top: 12%;
  right: 4%;
  width: min(46vw, 620px);
  z-index: 0;
  opacity: 0.9;
}
.hero-mark path { transition: stroke-dashoffset 1.8s var(--ease); }

.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 760px; }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal-bright), var(--lavender) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin-top: 26px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat .value {
  font-family: var(--serif);
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}
.stat .value .num {
  background: linear-gradient(100deg, var(--ink) 30%, var(--teal-bright) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .value.text .num { -webkit-text-fill-color: initial; background: none; color: var(--ink); }
.stat .value.text { font-size: clamp(22px, 3.6vw, 34px); font-weight: 700; }
.stat .value .suffix { color: var(--teal-bright); font-size: 0.6em; align-self: flex-start; margin-top: 0.15em; }
.stat .label {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .stat .value { font-size: clamp(30px, 11vw, 40px); }
  .stat .value.text { font-size: clamp(20px, 7vw, 26px); }
}

/* magnetic wrapper */
.magnetic { display: inline-block; }

.hero-visual {
  position: absolute;
  top: 190px;
  right: 6%;
  width: min(30vw, 320px);
  z-index: 1;
}
.hero-visual-img { aspect-ratio: 4 / 5; border-radius: 20px; box-shadow: 0 40px 70px -30px rgba(0,0,0,0.65); width: 100%; object-fit: cover; }
.hero-visual-tag {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted-dim);
  text-align: center;
}
@media (max-width: 1180px) { .hero-visual { display: none; } }

/* ========================== PROJECTS ========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (min-width: 981px) {
  .projects-grid .project-card:last-child { grid-column: 2 / span 2; }
}
.project-card h4 { font-size: 15px; color: var(--ink); margin: 18px 0 4px; }
.project-card p { font-size: 13px; color: var(--muted); }
.project-img { aspect-ratio: 4 / 5; border-radius: 16px; width: 100%; object-fit: cover; display: block; }
@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

/* ============================= MARQUEE ============================= */
.marquee-section { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-900); }
.marquee-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 28px;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: marquee 34s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track .chip {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.marquee-track .chip:hover { color: var(--teal-bright); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}

/* ============================ SERVICES ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (min-width: 981px) {
  .services-grid .service-card:last-child { grid-column: 2; }
}
.service-card {
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, var(--navy-850), var(--navy-900));
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card::before {
  content: "";
  position: absolute; inset: -1px;
  background: radial-gradient(320px 160px at var(--mx, 50%) var(--my, 0%), rgba(22,183,191,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(22,183,191,0.4); box-shadow: 0 24px 48px -28px rgba(0,0,0,0.6); }
.service-card:hover::before { opacity: 1; }
.service-card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 183, 191, 0.1);
  color: var(--teal-bright);
  margin-bottom: 22px;
}
.service-card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 10px;
}
.service-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 12px; }
.service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* =========================== METHODOLOGY =========================== */
.method-section { background: var(--navy-900); }
.js .method-section { padding-top: 0; }

.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--teal), var(--lavender), transparent);
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 0 0 48px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 1.5px solid var(--teal);
  color: var(--teal-bright);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.timeline-step h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.timeline-step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 620px; }

.diff-grid {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.diff-card {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--navy-850);
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.diff-card:hover { transform: translateY(-4px); border-color: rgba(183,174,240,0.4); }
.diff-card .icon { color: var(--lavender); margin-bottom: 16px; }
.diff-card h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.diff-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ===================== METODOLOGIA 3D (scroll) ===================== */
.method-stage { display: none; }
.js .method-stage { display: block; height: 500vh; position: relative; margin: 0 0 96px; }
.js .timeline-fallback,
.js .method-intro-fallback { display: none; }

.method-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(900px 500px at 85% 15%, rgba(22,183,191,0.14), transparent 60%), var(--navy-900);
}
#methodCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.method-sticky-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.method-phase-copy { max-width: 460px; }
.method-head { margin-bottom: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.method-head .eyebrow { margin-bottom: 12px; }
.method-head-title { font-size: clamp(21px, 2.6vw, 30px); color: var(--ink); line-height: 1.32; max-width: 440px; }
.method-phase-tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 10px;
}
.method-phase-num {
  font-size: clamp(60px, 9vw, 110px);
  font-weight: 800;
  line-height: 1;
  margin: 6px 0 14px;
}
.method-phase-num .num {
  background: linear-gradient(100deg, var(--ink) 30%, var(--teal-bright) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.method-phase-title { font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); margin-bottom: 14px; }
.method-phase-desc { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 400px; }
.method-progress-track { margin-top: 30px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; width: 220px; }
.method-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--lavender)); }

@media (max-width: 780px) {
  .method-sticky-inner { padding: 0 24px; align-items: flex-start; }
  .method-phase-copy { max-width: 100%; margin-top: 40vh; margin-top: 40dvh; padding-bottom: 20px; }
  .method-head-title { max-width: 100%; }
  .method-head { margin-bottom: 18px; padding-bottom: 16px; }
  .method-phase-num { margin: 4px 0 8px; }
  .method-phase-title { margin-bottom: 10px; }
  .method-progress-track { margin-top: 20px; }
}

/* ============================ TESTIMONIALS ============================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  padding: 34px 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--navy-850), var(--navy-900));
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testi-card .quote-mark {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--teal);
  opacity: 0.6;
}
.testi-card .quote-text {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1;
}
.testi-card .stars { display: flex; gap: 4px; color: var(--teal-bright); }
.testi-card .who { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.testi-card .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--lavender));
  color: var(--navy-950);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.testi-card .who-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testi-card .who-role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.testi-disclaimer {
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--muted-dim);
  font-style: italic;
  text-align: center;
}

/* ============================== CONTACT ============================== */
.contact-section { background: var(--navy-900); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--navy-850);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 183, 191, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%2396a9bd' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 26px; }
.consent input { margin-top: 3px; accent-color: var(--teal); }
.consent label { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { margin-top: 16px; font-size: 12.5px; color: var(--muted-dim); text-align: center; }
.form-status { margin-top: 14px; font-size: 13.5px; text-align: center; min-height: 18px; color: var(--teal-bright); }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-card {
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--navy-850);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.info-card .icon { color: var(--teal-bright); flex-shrink: 0; margin-top: 2px; }
.info-card h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.info-card p, .info-card a { font-size: 14px; color: var(--muted); line-height: 1.6; }
.info-card a:hover { color: var(--teal-bright); }

/* ============================== FOOTER ============================== */
.site-footer { padding: 80px 0 32px; background: var(--navy-950); border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .tagline-full { margin-top: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-social a:hover { color: var(--teal-bright); border-color: var(--teal); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted-dim);
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--teal-bright); }

/* ============================ IMAGE PLACEHOLDER ============================ */
.ph-image {
  position: relative;
  border-radius: 16px;
  border: 1px dashed rgba(238,244,249,0.22);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted-dim);
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.ph-image .ph-icon { color: var(--muted-dim); opacity: 0.7; }
.ph-image .ph-label { font-size: 12px; letter-spacing: 0.04em; }

/* =============================== UTIL =============================== */
.gradient-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--teal), var(--lavender), transparent); opacity: 0.4; }

/* =============================== RESPONSIVE =============================== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost.desktop-only { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 88px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 36px; padding-top: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-mark { width: min(52vw, 200px); top: 176px; right: -10%; opacity: 0.4; }
  .logo-img { height: 40px; }
  .site-header.scrolled .logo-img { height: 34px; }
}

/* mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(5, 15, 26, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a { font-family: var(--serif); font-size: 26px; color: var(--ink); }

/* =============================== MAP PICKER =============================== */
.address-row { display: flex; gap: 10px; }
.address-row input { flex: 1; }
.address-row .btn-sm { flex-shrink: 0; }
.field-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted-dim); min-height: 16px; }
.field-hint.error { color: #ff8a8a; }
.field-hint.ok { color: var(--teal-bright); }
.map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.map-coords { font-size: 12.5px; color: var(--muted-dim); }
.map-picker {
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-picker { background: var(--navy-900); }
.map-picker .leaflet-control-attribution {
  background: rgba(5, 15, 26, 0.75) !important;
  color: var(--muted) !important;
}
.map-picker .leaflet-control-attribution a { color: var(--teal-bright) !important; }
.map-picker .leaflet-control-zoom a {
  background: var(--navy-850) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.map-picker .leaflet-control-zoom a:hover { background: var(--navy-800) !important; }

/* =============================== WHATSAPP =============================== */
.phone-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.phone-row:last-child { margin-bottom: 0; }
.wa-link { color: #25d366; display: inline-flex; flex-shrink: 0; transition: opacity 0.25s ease, transform 0.25s ease; }
.wa-link:hover { opacity: 0.75; transform: scale(1.08); }

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.55);
  z-index: 600;
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
