/* InjectFOR — one stylesheet, no build step. Tokens first; every colour and size below
   comes from them. The contrast and size floors these values meet are in
   .agent/skills/site-quality/SKILL.md; check there before changing a token. */

:root {
  --navy: #111b2b;
  --navy-deep: #0c1421;
  --orange: #f26a21;        /* brand: fills, icons, large text */
  --orange-ink: #b8460f;    /* small orange text on light grounds (4.5:1) */
  --orange-soft: #ff8a4c;   /* orange text on navy */
  --cyan: #52b9d3;          /* fills with navy text; text on navy */
  --cyan-ink: #117f98;      /* large cyan text on light grounds */
  --cream: #f4f3ef;
  --ink: #172231;
  --muted: #5a6573;         /* secondary text on white and cream */
  --on-dark: #c5cdd6;       /* secondary text on navy */
  --line: #d5d8db;
  --line-dark: #ffffff2b;
  --font: Arial, Helvetica, sans-serif;

  /* Type scale: one step between levels, so headings stay distinct without dwarfing text. */
  --fs-sm: 0.8125rem;                                   /* 13px: eyebrows, captions, legal */
  --fs-body: 1rem;                                      /* 16px */
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);   /* 17–20px */
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); /* 18–21px */
  --fs-h3-lg: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); /* 22–28px */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem);   /* 30–44px */
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.625rem);    /* 36–58px */

  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: var(--fs-body)/1.6 var(--font); color: var(--ink); background: #fff; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.shell { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block; flex: none; width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px;
  background: #fff; color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Shared text pieces */
.eyebrow {
  font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: #d1d7df;
}
.eyebrow--accent { color: var(--orange-ink); }
h1, h2 { font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; margin-top: 0.35em; }
h2 em { font-style: normal; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; text-decoration: none;
}
.text-link .icon { color: var(--orange); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 14px 22px; border: 0; border-radius: 0; cursor: pointer;
  font: 700 0.9375rem/1.25 var(--font); text-decoration: none;
  transition: background-color 0.2s;
}
/* Filled buttons carry navy text: white on the brand orange measured 3.06:1. */
.button--orange { background: var(--orange); color: var(--navy); }
.button--orange:hover { background: #ff8340; }
.button--cyan { background: var(--cyan); color: var(--navy); }
.button--cyan:hover { background: #74c9de; }
.button--outline { background: transparent; color: #fff; border: 1px solid #8a94a3; }
.button--outline:hover { background: #ffffff14; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30; background: #fff;
  box-shadow: 0 2px 16px #101b2b14;
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); font-size: 0.9375rem; font-weight: 700; color: #354252; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover { color: var(--orange-ink); }
.nav .nav__cta { padding: 0 18px; background: var(--cyan); color: var(--navy); }
.nav .nav__cta:hover { background: #74c9de; color: var(--navy); }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid #8d96a1; background: #fff; color: var(--navy); cursor: pointer;
  font: 700 0.9375rem var(--font);
}
.menu-toggle .icon { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; display: grid; align-items: center; min-height: min(760px, calc(100svh - var(--header-h))); background: var(--navy); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, #101a2c 0%, #101a2cdd 46%, #101a2c33 100%); }
.hero__content { position: relative; padding-block: clamp(56px, 8vw, 96px); }
.hero h1 { font-size: var(--fs-h1); line-height: 1.04; max-width: 16ch; margin: 0.35em 0 0.4em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: #dde2e8; max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.hero__note { display: flex; align-items: center; gap: 10px; margin-top: 48px; font-size: 0.875rem; color: #c9d0d8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Sections */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); align-items: end;
  gap: 20px 56px; margin-bottom: clamp(32px, 4vw, 48px);
}
.section-heading > p { color: var(--muted); line-height: 1.7; }

/* Services: the tall card spans both rows and the wide one closes the second row,
   so four cards fill the grid without an empty cell. */
.services h2 em, .different h2 em, .team h2 em, .video-section h2 em { color: var(--cyan-ink); }
.service-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 300px 280px;
  grid-template-areas: "tall a b" "tall wide wide";
}
.service-card { position: relative; overflow: hidden; background: #1b2738; }
.service-card--tall { grid-area: tall; }
.service-card:nth-child(2) { grid-area: a; }
.service-card:nth-child(3) { grid-area: b; }
.service-card--wide { grid-area: wide; }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 0.5s; }
.service-card--wide img { object-position: center 60%; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #111b2bf2 100%); }
.card-label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.card-label__kicker { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd2b8; }
.card-label h3 { margin-top: 6px; max-width: 18em; }
.service-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 20px; color: var(--muted); }

/* Warning signs */
.pathology { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: #fff; }
.pathology__media { display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 32px); background: #0d1625; }
.pathology__media img { width: auto; max-height: 560px; }
.pathology__copy { align-self: center; max-width: 620px; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.pathology h2 em { color: var(--orange-soft); }
.pathology__copy > p:not(.eyebrow) { margin: 20px 0 28px; color: var(--on-dark); line-height: 1.7; max-width: 32em; }

/* Differentials */
.different { background: var(--cream); }
.different-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.different-grid li { padding: 28px 24px 28px 0; }
.different-grid li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.different-grid__icon { width: 34px; height: 34px; margin-bottom: 16px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.different-grid h3 { margin-bottom: 8px; }
.different-grid p { color: var(--muted); line-height: 1.65; }

.compare { margin-top: clamp(32px, 4vw, 48px); }
/* Each criterion is a <tbody>: label and the traditional text stacked on the left, the
   InjectFOR cell spanning both rows on the right — so it centres on the whole block and its
   border draws the divider unbroken from header to bottom. No orange text here: the brand
   orange fails contrast at this size, so it stays in the header fill. */
.compare table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 28px #1622360d; }
.compare caption { caption-side: top; text-align: left; padding-bottom: 14px; font-size: var(--fs-h3); font-weight: 700; }
.compare thead th { width: 50%; padding: 18px 20px; text-align: left; font-size: var(--fs-h3); line-height: 1.3; vertical-align: top; }
.compare thead th span { display: block; font-size: 0.9375rem; font-weight: 400; }
.compare #col-tradicional { background: var(--navy); color: #fff; }
.compare #col-inject { background: var(--orange); color: var(--navy); }
.compare tbody { border-top: 1px solid var(--line); }
.compare tbody th { padding: 18px 20px 4px; text-align: left; vertical-align: bottom; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.compare td { padding: 4px 20px 18px; vertical-align: top; line-height: 1.6; }
.compare .compare__inject { padding-block: 18px; vertical-align: middle; border-left: 1px solid var(--line); }
.compare td strong { font-weight: 700; color: var(--ink); }

/* Clients and region */
.clients { background: var(--navy); color: #fff; }
.clients .section-heading > p { color: var(--on-dark); }
.client-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.client-list li { padding: 12px 16px; border: 1px solid #ffffff40; font-size: 0.9375rem; color: #e5e8eb; }
.territory { padding-top: 40px; border-top: 1px solid var(--line-dark); }
.territory h3 { font-size: var(--fs-h3-lg); margin: 12px 0 6px; }
.territory > p:not(.eyebrow) { margin-bottom: 20px; color: var(--on-dark); }
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.city-list li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-dark); background: #ffffff08; color: #eef3f7; font-size: 0.9375rem; }
.city-list .icon { color: var(--cyan); stroke-width: 1.7; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.person img { width: 100%; aspect-ratio: 4 / 9; object-fit: cover; object-position: center top; background: #d9dce0; }
.person h3 { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--orange); }
.person p { margin-top: 8px; color: var(--muted); line-height: 1.7; }

/* Process */
.process { background: var(--navy); color: #fff; }
.process h2 em, .clients h2 em { color: var(--cyan); }
.process__layout { display: grid; gap: 40px; }
.process__copy { max-width: 760px; }
.process__copy > p:not(.eyebrow) { margin-top: 20px; color: var(--on-dark); line-height: 1.7; }
.steps { counter-reset: step; margin: 28px 0 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4em 1fr; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark); line-height: 1.6; }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--orange); font-weight: 800; }
.steps strong { color: #fff; }
.process__figure a { display: block; padding: 8px; border: 1px solid var(--line-dark); background: #0e263a; }
.process__figure img { width: 100%; }
.process__figure figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--on-dark); }
.process__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.process__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line-dark); }
.process__photos img:first-child { object-position: center 40%; }
.process__photos img:last-child { object-position: center 70%; }

/* Video: the clip is portrait (720x1280), so it gets a portrait frame instead of a
   16:9 box with black bars. */
.video-section__layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px); }
.video-section__layout p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.video-section video { width: min(340px, 100%); height: auto; aspect-ratio: 9 / 16; background: #111; object-fit: cover; }

/* Quote */
.quote { background: var(--cream); }
.quote__layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quote__copy > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); line-height: 1.7; max-width: 28em; }
.contact-links { margin-top: 24px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-links .icon { width: 22px; height: 22px; color: var(--cyan-ink); }

.quote-form { padding: clamp(20px, 3vw, 32px); background: #fff; box-shadow: 0 12px 40px #151c2a14; }
.quote-form label { display: block; margin-bottom: 18px; font-size: 0.9375rem; font-weight: 700; color: #3e4957; }
.optional { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
.quote-form input, .quote-form select, .quote-form textarea {
  display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 12px;
  border: 1px solid #7b8591; border-radius: 0; background: #fff; color: var(--ink);
  font: 1rem/1.4 var(--font);
}
.quote-form textarea { resize: vertical; }
.quote-form :user-invalid { border-color: #b42318; border-width: 2px; }
.quote-form .button { width: 100%; }
.form-note { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.form-note a { font-weight: 700; }

/* Footer */
.footer { padding-block: 36px; background: var(--navy-deep); color: #b8c0cb; font-size: 0.875rem; }
.footer__layout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 40px; }
.footer__logo { width: 140px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #fff; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { grid-column: 1 / 3; }
.credit {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px 8px 10px;
  border: 1px solid #52b9d366; border-radius: 99px; background: #52b9d30d; color: var(--cyan);
  text-decoration: none; transition: background-color 0.2s;
}
.credit:hover { background: #52b9d326; }
.credit__mark { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }

/* The one floating element: WhatsApp, a green dark enough for the white mark (4.5:1). */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: #12884a; color: #fff;
  box-shadow: 0 6px 20px #0004;
}
.whatsapp-float .icon { width: 28px; height: 28px; }

/* 404 */
.not-found { display: grid; align-content: center; gap: 18px; min-height: 100svh; width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: 48px; }
.not-found img { width: 150px; margin-bottom: 16px; }
.not-found h1 { font-size: var(--fs-h2); line-height: 1.1; }
.not-found p:not(.eyebrow) { color: var(--muted); }
.not-found .actions { margin-top: 8px; }
.not-found .text-link { color: var(--ink); }

@media (hover: hover) {
  .service-card:hover img { transform: scale(1.04); }
}

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gutter) 20px; background: #fff; box-shadow: 0 14px 18px #0000001a; font-size: 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { border-bottom: 1px solid #e6e8eb; }
  .nav .nav__cta { justify-content: center; margin-top: 14px; border-bottom: 0; }
  .different-grid { grid-template-columns: 1fr 1fr; }
  .different-grid li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .different-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}

@media (max-width: 860px) {
  .section-heading { grid-template-columns: 1fr; }
  .pathology { grid-template-columns: 1fr; }
  .pathology__media img { max-height: 440px; }
  .quote__layout { grid-template-columns: 1fr; }
  .footer__layout { grid-template-columns: 1fr; justify-items: start; }
  .footer__legal { grid-column: auto; }
}

@media (max-width: 700px) {
  :root { --header-h: 64px; }
  .brand img { width: 128px; }
  .hero__media { object-position: 72% 18%; }
  .hero__shade { background: linear-gradient(90deg, #101a2cf2, #101a2cb3 75%, #101a2c80); }
  .service-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 240px 200px; grid-template-areas: "tall tall" "a b" "wide wide"; gap: 10px; }
  .card-label { left: 14px; right: 14px; bottom: 14px; }
  .video-section__layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .different-grid { grid-template-columns: 1fr; }
  .different-grid li, .different-grid li + li { padding: 24px 0; border-left: 0; }
  .different-grid li + li { border-top: 1px solid var(--line); }
  .compare thead th, .compare tbody th, .compare td { padding-inline: 12px; }
  .compare td { font-size: 0.9375rem; }
  /* Photo beside the text: four full-width portraits would fill several screens. */
  .team-grid { grid-template-columns: 1fr; gap: 28px; }
  .person { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: start; }
  .person img { grid-row: 1 / 3; }
  .person h3 { margin-top: 0; }
  .city-list { grid-template-columns: 1fr 1fr; }
  .city-list li { padding: 8px 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
