/* ============================================================
   PHARR INDUSTRIAL PARK — Design System v2
   Light · White + Blue · Minimalist. Outfit + Hanken Grotesk.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Outfit", system-ui, sans-serif; /* legacy alias → clean sans */

  /* Surfaces */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-blue: #eef2fd;
  --bg-navy: #0e1c3d;
  --bg-navy-2: #11224a;

  /* Blue scale */
  --blue: #2347cf;          /* primary royal */
  --blue-bright: #335ce6;
  --blue-deep: #15307f;     /* navy accent */
  --blue-tint: #dfe6fb;

  /* Ink */
  --ink: #0e1b35;           /* near-navy text */
  --ink-soft: #45506a;
  --ink-faint: #8893aa;

  /* On navy */
  --on-navy: #eaeefb;
  --on-navy-muted: #9fb0d6;
  --on-navy-faint: #5d6e96;

  /* Legacy aliases remapped to light theme (keep internal pages working) */
  --warm-white: var(--ink);
  --on-dark: var(--ink);
  --on-dark-muted: var(--ink-soft);
  --on-dark-faint: var(--ink-faint);
  --on-light: var(--ink);
  --on-light-muted: var(--ink-soft);
  --teal: var(--blue);
  --teal-bright: var(--blue-bright);
  --teal-deep: var(--blue-deep);
  --petrol-900: var(--white);
  --petrol-850: var(--bg-soft);
  --petrol-800: var(--white);
  --sand-50: var(--bg-soft);

  /* Lines */
  --line: rgba(14,27,53,0.10);
  --line-strong: rgba(14,27,53,0.16);
  --line-dark: rgba(14,27,53,0.10);
  --line-light: rgba(14,27,53,0.10);
  --line-navy: rgba(234,238,251,0.14);

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(76px, 9vw, 132px);
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 18px;

  --shadow: 0 24px 60px -34px rgba(14,27,53,0.34);
  --shadow-sm: 0 12px 28px -18px rgba(14,27,53,0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1440px; }
.wrap--narrow { max-width: 920px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.eyebrow--onnavy { color: var(--blue-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}
.display {
  font-size: clamp(2.6rem, 5.6vw, 4.7rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.035em;
}
.display em { font-style: normal; color: var(--blue); }
.h-section { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.03; font-weight: 500; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--blue);
  --fg: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--bg-btn);
  color: var(--fg);
  border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(35,71,207,.6); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost { --bg-btn: transparent; --fg: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: none; }
.btn--onlight { --bg-btn: transparent; --fg: var(--ink); border: 1px solid var(--line-strong); }
.btn--onlight:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); box-shadow: none; }
.btn--onnavy { --bg-btn: #fff; --fg: var(--blue-deep); }
.btn--onnavy:hover { background: #fff; color: var(--blue); box-shadow: 0 14px 30px -16px rgba(0,0,0,.5); }

.textlink {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  transition: gap .25s var(--ease);
}
.textlink:hover { gap: 15px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: padding .4s var(--ease), box-shadow .4s var(--ease);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.site-header.is-stuck {
  background: #ffffff;
  box-shadow: 0 8px 24px -20px rgba(14,27,53,0.4);
}
.site-header.is-stuck .wrap { padding-block: 12px; }

.logo { display: flex; align-items: center; gap: 13px; }
.logo__img { height: 116px; width: auto; display: block; transition: height .4s var(--ease); }
.site-header.is-stuck .logo__img { height: 90px; }
.footer .logo__img { height: 92px; }
.logo__mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.03em;
  border-radius: var(--radius-sm);
}
.logo__text { line-height: 1.05; }
.logo__text strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.logo__text span { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav.mobile { display: none; }
.nav a {
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  color: var(--ink-soft); padding: 9px 15px; border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--blue); }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.lang button { padding: 8px 12px; color: var(--ink-soft); transition: background .2s, color .2s; }
.lang button.active { background: var(--blue); color: #fff; }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — split (Direction B)
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(184px, 21vh, 220px);
  padding-bottom: clamp(48px, 7vw, 80px);
  background:
    radial-gradient(80% 70% at 88% 4%, var(--bg-blue), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: grid; gap: 22px; align-content: center; }
.hero h1 { max-width: 13ch; }
.hero__lead { font-size: clamp(1.08rem, 1.35vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.hero__lead--sub { font-size: 1.02rem; color: var(--ink-soft); max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 6px; }
.hero__trust { display: flex; gap: clamp(22px, 3.4vw, 46px); margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__trust .t { position: relative; display: grid; gap: 9px; align-content: start; justify-items: center; text-align: center; }
.hero__trust .t:not(:last-child)::after { content: ""; position: absolute; right: calc(-1 * clamp(11px, 1.7vw, 23px)); top: 2px; bottom: 2px; width: 1px; background: var(--line); }
.hero__trust .t b { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 2.7vw, 2.7rem); letter-spacing: -0.035em; color: var(--ink); display: block; line-height: 0.95; white-space: nowrap; }
.hero__trust .t b .u { color: var(--blue); font-size: 0.5em; font-weight: 600; letter-spacing: 0.01em; margin-left: 2px; vertical-align: 0.18em; }
.hero__trust .t span { font-family: var(--font-display); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); line-height: 1.4; }

.hero__media { position: relative; }
.hero__media .ph-img { aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero__map { aspect-ratio: 4 / 4.4; margin: 0; background: linear-gradient(160deg, #e9edf6, #dde3f1); display: grid; place-items: center; }
.hero__map #map-masterplan { position: absolute; inset: 0; height: 100%; width: 100%; }
.hero__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero__map-ph { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 24px; }
.hero__map-ph svg { width: 42px; height: 42px; color: var(--blue); }
.hero__map-ph b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.hero__map-ph span { font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-faint); }
.hero__badge {
  position: absolute; left: 18px; bottom: 26px; z-index: 5;
  background: #fff; border: 1px solid var(--line);
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: 3px;
}
.hero__badge b { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; letter-spacing: -0.03em; color: var(--blue); line-height: 1; }
.hero__badge span { font-size: 13px; color: var(--ink-soft); max-width: 16ch; }
.hero__chip {
  position: absolute; top: 16px; right: 16px; z-index: 6;
  background: var(--bg-navy); color: var(--on-navy);
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  padding: 11px 18px; border-radius: 100px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.hero__chip .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); }

/* ============================================================
   PARALLAX IMAGE BREAK
   ============================================================ */
.parallax-break {
  position: relative;
  height: clamp(320px, 46vh, 540px);
  overflow: hidden;
}
.parallax-break__img {
  position: absolute;
  inset: 0;
  background-image: url("break-road.jpg");
  background-size: cover;
  background-position: center 42%;
  background-attachment: fixed;
}
.parallax-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,27,53,0.16), rgba(14,27,53,0.04) 40%, rgba(14,27,53,0.16));
  pointer-events: none;
}
/* Touch devices don't support fixed backgrounds reliably — fall back to a
   plain cover image so the band still looks correct. */
@media (hover: none), (max-width: 768px) {
  .parallax-break__img { background-attachment: scroll; background-position: center; }
}

/* ============================================================
   IMAGE PLACEHOLDERS — clean, no stripes
   ============================================================ */
.ph-img {
  position: relative;
  background: linear-gradient(160deg, #e9edf6, #dde3f1);
  overflow: hidden; display: grid; place-items: center;
}
.ph-img::after {
  content: attr(data-label);
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em; color: #9aa5be; text-transform: none; text-align: center;
  padding: 0 16px;
}
.ph-img.navy { background: linear-gradient(160deg, #16264c, #0e1c3d); }
.ph-img.navy::after { color: #6b7ba6; }
/* legacy modifiers */
.ph-img.on-light { background: linear-gradient(160deg, #e9edf6, #dde3f1); }
.ph-img__label, .ph-img__corner { display: none; }

/* ============================================================
   SECTION SCAFFOLD  (light theme; legacy modifiers remapped)
   ============================================================ */
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--white); color: var(--ink); }
.section--soft, .section--dark { background: var(--bg-soft); color: var(--ink); }
.section--petrol { background: var(--white); }
.section--navy { background: var(--bg-navy); color: var(--on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: var(--on-navy-muted); }

.section-head { display: grid; gap: 16px; max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-copy { display: grid; gap: 22px; }
.about-copy .lead { max-width: 50ch; }
.map-frame {
  position: relative; aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  isolation: isolate; z-index: 0;
}
.map-frame .leaflet-container, .map-frame .ph-img { position: absolute; inset: 0; height: 100%; width: 100%; }
.map-frame .infra-embed { position: absolute; inset: 0; height: 100%; width: 100%; display: block; }
.map-badge {
  position: absolute; z-index: 500; top: 14px; left: 14px;
  background: #fff; color: var(--ink);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  padding: 8px 13px; border-radius: 100px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px;
}
.map-badge .pip { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }

.facts-row { display: flex; flex-wrap: wrap; gap: 18px 34px; }
.fact { display: grid; gap: 3px; }
.fact b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--ink); letter-spacing: -0.025em; line-height: 1; }
.fact span { font-size: 13.5px; color: var(--ink-faint); }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.svc-card {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--blue-tint); box-shadow: var(--shadow); }
.svc-card__media { aspect-ratio: 16 / 10; position: relative; }
.svc-card__media .ph-img { position: absolute; inset: 0; height: 100%; }
.svc-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-card__img { transform: scale(1.05); }
.svc-card__num { position: absolute; z-index: 2; left: 16px; top: 14px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #fff; background: rgba(14,27,61,0.5); padding: 5px 10px; border-radius: 100px; backdrop-filter: blur(4px); }
.svc-card__body { padding: 24px 24px 26px; display: grid; gap: 11px; align-content: start; }
.svc-card__body h3 { font-size: 1.4rem; color: var(--ink); }
.svc-card__body p { color: var(--ink-soft); font-size: 0.98rem; }
.svc-card__link { margin-top: 6px; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--blue); display: inline-flex; gap: 8px; align-items: center; transition: gap .25s var(--ease); }
.svc-card:hover .svc-card__link { gap: 14px; }

/* ============================================================
   STATS  (navy band)
   ============================================================ */
.stats { background: var(--bg-navy); position: relative; overflow: hidden; color: var(--on-navy); padding-block: clamp(52px, 6vw, 84px); }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 88% 6%, rgba(51,92,230,0.22), transparent 55%); pointer-events: none; }
.stats__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 50px; position: relative; }
.stats__head h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); color: #fff; }
.stats__head .eyebrow { color: #fff; }
.stats__head .eyebrow::before { background: #fff; }
.stats__head .textlink { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.stat { padding: 34px 28px 36px; display: grid; gap: 12px; align-content: center; justify-items: center; text-align: center; min-height: 188px; position: relative; transition: background .35s var(--ease); }
.stat::before { content: ""; position: absolute; top: -1px; left: -1px; width: 34px; height: 3px; background: var(--blue-bright); opacity: 0; transition: opacity .4s var(--ease), width .4s var(--ease); }
.stat:hover { background: rgba(51,92,230,0.08); }
.stat:hover::before { opacity: 1; width: 56px; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 3.6vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums; }
.stat__num .u { color: rgba(255,255,255,0.72); }
.stat__label { font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: #fff; line-height: 1.45; }

/* ============================================================
   INFRASTRUCTURE
   ============================================================ */
.infra-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.infra-list { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.infra-item { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.infra-item__no { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--blue); padding-top: 4px; }
.infra-item__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.infra-item h3 { font-size: 1.35rem; color: var(--ink); }
.infra-item__toggle { width: 26px; height: 26px; flex: none; position: relative; transition: transform .3s var(--ease); }
.infra-item__toggle::before, .infra-item__toggle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--ink); }
.infra-item__toggle::before { width: 14px; height: 2px; border-radius: 2px; }
.infra-item__toggle::after { width: 2px; height: 14px; border-radius: 2px; transition: opacity .3s var(--ease); }
.infra-item.open .infra-item__toggle::after { opacity: 0; }
.infra-item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.infra-item.open .infra-item__body { grid-template-rows: 1fr; }
.infra-item__body > div { overflow: hidden; }
.infra-item__body p { color: var(--ink-soft); padding-top: 12px; max-width: 52ch; font-size: 0.98rem; }
.infra-item__body strong { color: var(--ink); font-weight: 600; }
.infra-item__body ul { display: grid; gap: 8px; padding-top: 14px; }
.infra-item__body li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--ink-soft); font-size: 0.96rem; }
.infra-item__body li::before { content: ""; width: 12px; height: 2px; background: var(--blue); margin-top: 11px; border-radius: 2px; }

.infra-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.infra-aside .map-frame { aspect-ratio: 1 / 1; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: var(--bg-navy); color: var(--on-navy); isolation: isolate; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 120% at 12% 110%, rgba(51,92,230,0.3), transparent 55%); }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); }
.cta-band p { color: var(--on-navy-muted); margin-top: 14px; max-width: 46ch; }
.cta-actions { display: grid; gap: 12px; }
.cta-actions .btn { justify-content: center; }
.cta-actions .btn--light { --bg-btn: #fff; --fg: var(--blue-deep); }
.cta-actions .btn--light:hover { --bg-btn: #fff; color: var(--blue); box-shadow: 0 14px 30px -16px rgba(0,0,0,0.5); }
.cta-actions .btn--cta-lg { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 20px 38px; }
.cta-actions .phone { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--on-navy); text-align: center; display: inline-flex; gap: 9px; align-items: center; justify-content: center; padding: 14px; border: 1px solid var(--line-navy); border-radius: var(--radius-sm); transition: background .25s; }
.cta-actions .phone:hover { background: rgba(255,255,255,0.07); }

/* ============================================================
   AFFILIATIONS
   ============================================================ */
.affil { text-align: center; }
.affil__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-top: 44px; }
.affil__logo { width: 320px; height: 190px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; padding: 12px; }
.affil__logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--blue-tint); }
.affil__logo img { max-height: 162px; max-width: 96%; width: auto; height: auto; object-fit: contain; }
.affil__logo img.affil__logo--sm { max-height: 130px; max-width: 77%; }
.affil__logo span { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--ink-faint); text-align: center; padding: 0 14px; line-height: 1.4; }

/* ============================================================
   LOCATION MAP
   ============================================================ */
.location { position: relative; background: var(--bg-soft); }
.location__map { height: clamp(440px, 62vh, 640px); width: 100%; position: relative; z-index: 0; isolation: isolate; background: var(--bg-blue); }
.location__map .leaflet-container { height: 100%; width: 100%; }
.location__map iframe { height: 100%; width: 100%; border: 0; display: block; filter: saturate(1.05); }
.location__card {
  position: absolute; z-index: 600; top: 50%; transform: translateY(-50%); right: var(--gutter);
  width: min(390px, calc(100% - var(--gutter) * 2));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; display: grid; gap: 16px; box-shadow: var(--shadow);
}
.location__card h3 { font-size: 1.6rem; color: var(--ink); }
.location__card .addr { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.7; }
.location__coords { display: grid; gap: 8px; font-family: var(--font-display); font-size: 14px; color: var(--ink-soft); padding-top: 16px; border-top: 1px solid var(--line); }
.location__coords div { display: flex; justify-content: space-between; gap: 16px; }
.location__coords b { color: var(--blue); font-weight: 600; }

/* Leaflet tweaks */
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { font-size: 9px !important; opacity: .7; }
.leaflet-bar a { color: var(--ink) !important; }
.leaflet-popup-content-wrapper { border-radius: 8px !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-navy); color: var(--on-navy); padding-top: clamp(64px, 7vw, 92px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr; gap: 48px; padding-bottom: 52px; border-bottom: 1px solid var(--line-navy); align-items: start; }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 34ch; }
.footer__brand p { color: var(--on-navy-muted); font-size: 0.95rem; }
.footer__brand .logo__text strong { color: #fff; }
.footer__brand .logo__text span { color: var(--on-navy-faint); }
.footer__col { display: grid; gap: 13px; align-content: start; }
.footer__col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-faint); font-weight: 600; }
.footer__col a { color: var(--on-navy-muted); font-size: 0.96rem; transition: color .2s; width: fit-content; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 26px; font-family: var(--font-display); font-size: 13.5px; color: var(--on-navy-faint); }
.footer__legal { display: flex; align-items: center; gap: 12px; }
.footer__legal a { color: var(--on-navy-muted); transition: color .2s; }
.footer__legal a:hover { color: #fff; }
.footer__legal .sep { color: var(--on-navy-faint); opacity: .6; }

/* Investors / developed-by strip (footer top, middle column) */
.footer__investors { display: grid; gap: 16px; justify-items: start; text-align: left; align-content: start; }
.footer__investors-label { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-faint); }
.footer__investors-logos { display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 10px; }
.inv-logo { width: 116px; height: 60px; flex: 0 0 auto; padding: 9px 12px; background: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.inv-logo:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -20px rgba(0,0,0,.6); }
.inv-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; object-position: center center; margin: auto; display: block; }
.inv-logo img.inv-logo--85 { max-height: 85%; max-width: 85%; }
.inv-logo img.inv-logo--80 { max-height: 80%; max-width: 80%; }
.inv-logo span { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--ink); text-align: center; line-height: 1.25; }
.inv-logo span small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--ink-faint); }

/* Disclaimer */
.footer__disclaimer { max-width: 80ch; margin: 34px auto 0; text-align: center; font-size: 13px; line-height: 1.6; color: var(--on-navy-faint); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* i18n */
[data-lang-es] { display: none; }
html[lang="es"] [data-lang-en] { display: none; }
html[lang="es"] [data-lang-es] { display: revert; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .nav.desktop, .header-tools .lang, .header-tools > .btn { display: none; }
  .menu-toggle { display: flex; }
  .hero__grid, .about-grid, .infra-grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .infra-aside { position: static; }
  .infra-aside .map-frame { aspect-ratio: 16/10; }
  .svc-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }

  .nav.mobile {
    display: grid; position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    background: #fff; border-left: 1px solid var(--line);
    padding: 100px 32px 40px; gap: 4px; align-content: start;
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 90;
  }
  body.menu-open .nav.mobile { transform: none; }
  .nav.mobile a { font-size: 16px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .nav.mobile .lang { display: inline-flex; margin-top: 20px; width: fit-content; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(14,27,53,0.4); opacity: 0; visibility: hidden; transition: opacity .4s; z-index: 80; }
  body.menu-open .nav-scrim { opacity: 1; visibility: visible; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { min-height: 148px; padding: 22px 18px 26px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .location__card { position: static; transform: none; width: 100%; margin-top: -1px; border-radius: 0; }
  .hero__badge { left: 12px; bottom: 12px; }
  .hero__chip { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
