/* =========================================================
   Barreiro Logistics — styles
   Palette: ink navy + frost teal + signal red-orange
   ========================================================= */
:root {
  --ink: #0B1B2B;
  --ink-2: #13283D;
  --ink-3: #1D3852;
  --slate: #475569;
  --slate-2: #64748B;
  --line: #DCE3EA;
  --line-dark: rgba(255,255,255,.12);
  --bg: #F5F7F6;
  --bg-2: #EBF1F3;
  --card: #FFFFFF;
  --frost: #0E7490;        /* CTA — 5.3:1 on white */
  --frost-600: #0B5F76;
  --frost-100: #D9F0F5;
  --ice: #9ADBEA;
  --signal: #E4572E;       /* brand accent, used sparingly */
  --signal-100: #FCE7E0;
  --ok: #15803D;
  --err: #B91C1C;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11,27,43,.06), 0 2px 8px rgba(11,27,43,.04);
  --shadow: 0 10px 30px -12px rgba(11,27,43,.22);
  --shadow-lg: 0 30px 60px -20px rgba(11,27,43,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--frost); text-underline-offset: 3px; }
a:hover { color: var(--frost-600); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--frost); outline-offset: 3px; border-radius: 6px; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* [data-lang] blocks for legal pages */
html[lang="es"] [data-lang="pt"],
html[lang="pt"] [data-lang="es"] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .7rem 1.2rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.1;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--frost); color: #fff; box-shadow: 0 8px 20px -10px rgba(14,116,144,.8); }
.btn-primary:hover { background: var(--frost-600); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-lg { min-height: 52px; padding: .9rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,247,246,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,27,43,.4); background: rgba(255,255,255,.9); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand-text { font-size: 1.08rem; letter-spacing: -.01em; font-weight: 500; }
.brand-text strong { font-weight: 800; }
.brand-light, .brand-light:hover { color: #fff; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 999px;
  transition: background-color .2s;
}
.main-nav a:not(.btn):hover { background: rgba(11,27,43,.06); }
.main-nav a.is-active { background: rgba(14,116,144,.1); color: var(--frost-600); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.lang-switch button {
  min-width: 44px; min-height: 38px; border: 0; background: transparent; border-radius: 999px;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--slate);
  transition: background-color .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--ink); background: var(--bg-2); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  position: relative;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 700; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); position: relative; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; animation: ping 2s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.hl { position: relative; white-space: nowrap; color: var(--frost); }
.hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .2em;
  background: var(--frost-100); z-index: -1; border-radius: 4px;
}
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--slate); max-width: 34em; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); justify-content: start; }
.hero-facts li { display: flex; flex-direction: column; gap: .15rem; }
.hero-facts strong { font-family: var(--mono); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.hero-facts span { font-size: .85rem; color: var(--slate); line-height: 1.35; }

.hero-visual { position: relative; padding: 0 0 2.5rem 2.5rem; }
.hero-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow-lg); background: var(--ink-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }

.telemetry {
  position: absolute; left: 0; bottom: 0; width: min(300px, 78%);
  background: rgba(11,27,43,.94); color: #fff; border-radius: var(--r-lg); padding: 1.1rem 1.2rem 1rem;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.tele-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; }
.tele-unit { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-weight: 600; color: var(--ice); }
.tele-unit svg { width: 16px; height: 16px; }
.tele-live { display: inline-flex; align-items: center; gap: .45rem; color: #CBD5E1; font-weight: 600; }
.tele-route { display: flex; align-items: center; gap: .4rem; margin: .6rem 0 .2rem; font-weight: 700; font-size: .95rem; }
.tele-route svg { width: 16px; height: 16px; color: var(--ice); }
.tele-temp { display: flex; align-items: baseline; gap: .2rem; flex-wrap: wrap; }
.tele-value { font-family: var(--mono); font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tele-deg { font-family: var(--mono); font-size: 1.1rem; color: var(--ice); }
.tele-range { margin-left: auto; font-size: .72rem; color: #94A3B8; font-weight: 600; }
.tele-spark { width: 100%; height: 56px; margin: .4rem 0 .5rem; }
.tele-band { fill: rgba(154,219,234,.08); }
#teleSpark { fill: none; stroke: var(--ice); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tele-foot { display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; color: #94A3B8; }
.tele-foot > span:first-child { display: inline-flex; align-items: center; gap: .3rem; }
.tele-foot svg { width: 13px; height: 13px; }
.tele-note { font-style: italic; }

.hero-badge {
  position: absolute; right: 1.25rem; top: 1.25rem;
  display: flex; align-items: center; gap: .65rem;
  background: #fff; border-radius: var(--r); padding: .7rem .95rem; box-shadow: var(--shadow);
  font-size: .78rem; font-weight: 700; line-height: 1.25;
}
.hero-badge svg { width: 26px; height: 26px; color: var(--ok); flex: none; }

/* ---------- Clients strip ---------- */
.clients { border-block: 1px solid var(--line); background: #fff; }
.clients-inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.3rem; }
.clients-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); font-weight: 700; flex: none; }
.clients-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 2rem; flex: 1; justify-content: space-between; }
.clients-list li { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink-3); }
.clients-list svg { width: 20px; height: 20px; color: var(--frost); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem 4rem; align-items: end; }
.section-head.split .section-lead { margin: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--frost);
  margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--signal); border-radius: 2px; }
.kicker-light { color: var(--ice); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
.section-lead { color: var(--slate); font-size: 1.08rem; margin-top: 1rem; max-width: 38em; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .7rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service h3 { font-size: 1.2rem; font-weight: 700; }
.service p { color: var(--slate); margin: 0; }
.service-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--frost-100); color: var(--frost-600); margin-bottom: .4rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-feature { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.service-media { min-height: 240px; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-feature:hover .service-media img { transform: scale(1.03); }
.service-body { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.service-feature h3 { font-size: 1.55rem; }
.service-tag { font-family: var(--mono); font-size: .8rem; color: var(--signal); font-weight: 600; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.ticks li {
  font-size: .85rem; font-weight: 600; color: var(--ink-3);
  background: var(--bg-2); border-radius: 999px; padding: .4rem .8rem .4rem 1.9rem; position: relative;
}
.ticks li::before {
  content: ""; position: absolute; left: .75rem; top: 50%; width: 7px; height: 11px; margin-top: -7px;
  border: solid var(--frost); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.service-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.service-dark p { color: #CBD5E1; }
.service-dark .service-icon { background: rgba(154,219,234,.14); color: var(--ice); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--ice); text-decoration: none; min-height: 44px; }
.link-arrow:hover { color: #fff; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translate(2px,-2px); }

/* ---------- Process ---------- */
.process { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(14,116,144,.35), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 48px;
}
.process .container { position: relative; }
.process .section-lead { color: #B6C3D1; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; position: relative; z-index: 1; }
.step {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .65rem; position: relative;
}
.step-num { font-family: var(--mono); font-size: .8rem; color: #7C8DA0; }
.step-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(154,219,234,.12); color: var(--ice); }
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 1.12rem; }
.step p { color: #B6C3D1; font-size: .95rem; margin: 0; }
.step-temp {
  margin-top: auto; align-self: flex-start; font-family: var(--mono); font-weight: 600; font-size: .85rem;
  color: var(--ink); background: var(--ice); border-radius: 999px; padding: .25rem .65rem;
}
.chain-line { height: 4px; margin-top: 2rem; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.chain-line span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ice), var(--frost), var(--ice)); transform-origin: left; transform: scaleX(.15); }

/* ---------- Coverage ---------- */
.coverage-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.regions { margin: 2rem 0; border-top: 1px solid var(--line); }
.region { border-bottom: 1px solid var(--line); }
.region summary {
  list-style: none; display: flex; align-items: center; gap: .75rem; min-height: 56px;
  font-weight: 700; font-size: 1.05rem; cursor: pointer;
}
.region summary::-webkit-details-marker { display: none; }
.region summary svg { margin-left: auto; width: 20px; height: 20px; color: var(--slate); transition: transform .25s var(--ease); }
.region[open] summary svg { transform: rotate(180deg); }
.region p { margin: 0 0 1rem 1.6rem; color: var(--slate); font-family: var(--mono); font-size: .9rem; }
.region-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--frost); box-shadow: 0 0 0 4px var(--frost-100); }

.pt-callout {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.pt-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--ok) 0 40%, var(--signal) 40%); }
.pt-callout-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.pt-flag { display: inline-flex; width: 26px; height: 18px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pt-flag span:first-child { width: 40%; background: #046A38; }
.pt-flag span:last-child { flex: 1; background: #DA291C; }
.pt-date { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--signal); background: var(--signal-100); padding: .2rem .6rem; border-radius: 999px; }
.pt-callout h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.pt-callout > p { color: var(--slate); }
.pt-cities { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pt-cities figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-2); }
.pt-cities img { width: 100%; height: 100%; object-fit: cover; }
.pt-cities figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .85rem .7rem; color: #fff;
  background: linear-gradient(transparent, rgba(11,27,43,.85));
  display: flex; flex-direction: column; line-height: 1.25;
}
.pt-cities figcaption strong { font-size: 1.05rem; }
.pt-cities figcaption span { font-size: .78rem; color: #E2E8F0; }

.map-card {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  background: linear-gradient(180deg, #fff, var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1rem, 2.5vw, 2rem); box-shadow: var(--shadow-sm);
}
.map { width: 100%; height: auto; overflow: visible; }
.map-land { fill: #E3EBF0; stroke: #B7C7D3; stroke-width: 1.5; }
.map-dots { opacity: .7; }
.map-border { fill: none; stroke: #9FB2C1; stroke-width: 1.4; stroke-dasharray: 4 5; }
.route { fill: none; stroke: var(--frost); stroke-width: 2.5; stroke-linecap: round; opacity: .85; }
.route-planned { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 2 8; stroke-linecap: round; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.city circle { fill: #fff; stroke: var(--frost); stroke-width: 3; }
.city text { font-family: var(--font); font-size: 15px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 4px; stroke-linejoin: round; }
.city-new circle { fill: var(--signal); stroke: #fff; stroke-width: 3; }
.city-new text { font-size: 17px; }
.city-new .city-sub { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--signal); }
.city-hq circle { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.city-hq .hq-pulse { fill: none; stroke: var(--ink); stroke-width: 2; transform-origin: 712px 192px; animation: hq 2.4s var(--ease) infinite; }
@keyframes hq { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
.hq-label { font-size: 16px !important; }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--slate); }
.map-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.lg { display: inline-block; flex: none; }
.lg-hq { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.lg-route { width: 22px; height: 3px; background: var(--frost); border-radius: 2px; }
.lg-new { width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }

/* ---------- Quality ---------- */
.quality { background: #fff; border-block: 1px solid var(--line); }
.quality-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.quality-photo { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.quality-photo img { width: 100%; height: 100%; object-fit: cover; }
.quality-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; }
.q-chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .55rem .9rem; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); }
.q-chip svg { width: 16px; height: 16px; color: var(--frost); }
.quality-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.qcard { padding: 1.2rem; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.qcard svg { width: 24px; height: 24px; color: var(--frost); margin-bottom: .6rem; }
.qcard h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.qcard p { color: var(--slate); font-size: .92rem; margin: 0; }

/* ---------- Company ---------- */
.company-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.company-copy > p { color: var(--slate); font-size: 1.05rem; }
.company-copy .section-title { margin-bottom: 1.4rem; }
.company-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.company-facts div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.company-facts div:nth-child(odd) { padding-right: 1rem; }
.company-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-2); font-weight: 700; }
.company-facts dd { margin: .2rem 0 0; font-weight: 700; font-family: var(--mono); font-size: .95rem; }

.ceo-card { margin: 0; position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-lg); }
.ceo-photo { position: absolute; inset: 0; }
.ceo-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ceo-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,43,.1) 0%, rgba(11,27,43,.92) 62%); }
.ceo-card blockquote { position: relative; margin: 0; padding: 2rem 2rem 1rem; }
.ceo-card blockquote svg { width: 34px; height: 34px; color: var(--signal); margin-bottom: .8rem; }
.ceo-card blockquote p { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.ceo-card figcaption { position: relative; display: flex; align-items: center; gap: .9rem; padding: 0 2rem 2rem; }
.ceo-card figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.ceo-card figcaption > span:last-child span { color: #B6C3D1; font-size: .9rem; }
.ceo-initials { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--ink); font-weight: 800; font-size: .85rem; letter-spacing: .03em; flex: none; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-grid .btn { margin-top: 1.6rem; }
.accordion { display: flex; flex-direction: column; gap: .7rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, border-color .2s; }
.acc-item[open] { box-shadow: var(--shadow-sm); border-color: #C9D5DE; }
.acc-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px; padding: 1rem 1.3rem; font-weight: 700; font-size: 1.02rem; cursor: pointer;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary svg { width: 20px; height: 20px; flex: none; color: var(--frost); transition: transform .25s var(--ease); }
.acc-item[open] summary svg { transform: rotate(45deg); }
.acc-body { padding: 0 1.3rem 1.2rem; color: var(--slate); }
.acc-body p { margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; bottom: -350px; border-radius: 50%; background: radial-gradient(rgba(14,116,144,.45), transparent 65%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact .section-lead { color: #B6C3D1; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; margin-top: 2.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list li > span:last-child { display: flex; flex-direction: column; }
.contact-list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #94A3B8; margin-bottom: .2rem; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--ice); text-decoration: underline; }
.ci { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(154,219,234,.12); color: var(--ice); }
.ci svg { width: 22px; height: 22px; }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; font-size: .9rem; }
.opt { font-weight: 500; color: var(--slate-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 48px; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.6rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B7C7D3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--frost); background: #fff; box-shadow: 0 0 0 4px rgba(14,116,144,.15); }
.field-help { margin: 0; font-size: .82rem; color: var(--slate-2); }
.field-error { display: none; margin: 0; font-size: .84rem; color: var(--err); font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: var(--err); background: #FEF2F2; }
.field.has-error .field-error { display: block; }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .7rem; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--frost); flex: none; padding: 0; }
.field-check label { font-weight: 500; flex: 1; min-width: 0; }
.field-check .field-error { flex-basis: 100%; }
.form-status { margin: 1rem 0 0; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: #07131F; color: #B6C3D1; padding: 4rem 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; max-width: 26em; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.footer-links a, .site-footer address a { color: #B6C3D1; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-links a:hover, .site-footer address a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.75; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #B6C3D1; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 1rem; bottom: 1rem; max-width: 460px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.3rem; display: flex; gap: 1rem; align-items: flex-end;
  animation: rise .4s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-title { display: flex; align-items: center; gap: .45rem; font-weight: 800; margin-bottom: .3rem; }
.cookie-title svg { width: 18px; height: 18px; color: var(--signal); }
.cookie-text p:last-child { font-size: .88rem; color: var(--slate); margin: 0; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; border-bottom: 1px solid var(--line); background: #fff; }
.legal-hero .section-title { font-size: clamp(2rem, 4vw, 3rem); }
.legal-meta { color: var(--slate); margin-top: .8rem; font-size: .95rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .88rem; margin-bottom: 1.2rem; color: var(--slate); }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: .9rem; }
.legal-toc p { font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; color: var(--slate); margin-bottom: .6rem; }
.legal-toc ul { list-style: none; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; font-weight: 600; }
.legal-toc a:hover { color: var(--ink); border-color: var(--frost); }
.legal-body { max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.legal-body h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.legal-body p, .legal-body li { color: #334155; }
.legal-body ul { padding-left: 1.2rem; margin-bottom: 1em; }
.legal-body li { margin-bottom: .35rem; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
.legal-body th, .legal-body td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--bg); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.data-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; margin: 1rem 0 1.5rem; }
.data-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.data-card dt { font-weight: 700; }
.data-card dd { margin: 0; color: #334155; }

/* ---------- Reveal (JS adds .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a:not(.btn) { padding: 0 .6rem; font-size: .9rem; }
  .header-cta { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .2s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { min-height: 52px; font-size: 1.05rem; border-radius: 12px; padding: 0 .8rem; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: .8rem; }
  .header-actions { margin-left: auto; }

  .hero-grid, .coverage-grid, .quality-grid, .company-grid, .faq-grid, .contact-grid, .section-head.split { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 0 2rem 0; max-width: 640px; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .telemetry { left: 1rem; }
  .clients-inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .clients-list { justify-content: flex-start; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-feature { grid-column: span 2; grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .map-card { position: static; order: -1; }
  .quality-photo { aspect-ratio: 16 / 10; }
  .ceo-card { min-height: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 2rem); }
  .brand-text { font-size: 1rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .hero-facts li:last-child { grid-column: span 2; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { right: .75rem; top: .75rem; font-size: .72rem; padding: .55rem .75rem; }
  .telemetry { position: relative; left: auto; width: auto; margin: -3rem .75rem 0; }
  .hero-visual { padding-bottom: 0; }
  .services-grid, .steps, .quality-cards, .form-row, .pt-cities, .footer-grid, .company-facts { grid-template-columns: 1fr; }
  .service-feature { grid-column: auto; }
  .form-row { gap: 0; }
  .company-facts div:nth-child(odd) { padding-right: 0; }
  .cookie-banner { left: .75rem; right: .75rem; max-width: none; flex-direction: column; align-items: stretch; }
  .data-card dl { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .brand-text { display: none; }
}

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