/*
 * Landing do GRUPO PROATIVA (spec 0040). Layout e valores do artboard
 * (specs/0040-landing-page-do-grupo-proativa/design-landing.dc.html), sem estilo inline: a CSP da landing
 * (`style-src 'self'`) bloqueia o atributo `style`. Cor só por var(--…) de tokens.css;
 * as cores de marca vêm de lá (spec 0058).
 */

/* Fontes servidas pela própria landing (OFL, ver fonts/OFL.txt). Só o subconjunto
   latin: cobre o português inteiro. Archivo é variável (100–900). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2?v=8f704806db") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-400-latin.woff2?v=b0a8ad37ac") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-500-latin.woff2?v=cd759df8ef") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-600-latin.woff2?v=4b52ddd483") format("woff2");
}

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

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }

a { color: var(--color-brand); }
a:hover { color: var(--color-brand-strong); }
a:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }

/* Âncoras não ficam escondidas sob o cabeçalho fixo. */
[id] { scroll-margin-top: var(--size-header); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Divergência 5 (plan.md §4.5): visível só no foco. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 40;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--color-on-dark); }

.wrap {
  width: 100%;
  max-width: var(--width-content);
  margin: 0 auto;
  padding-left: var(--space-gutter);
  padding-right: var(--space-gutter);
}

.sec { padding-top: var(--space-section); padding-bottom: var(--space-section); }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-body { display: flex; flex-direction: column; gap: 48px; }

.h2 { font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }

/* ── botões ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}
.btn-primary { padding: 0 28px; background: var(--color-brand); color: var(--color-on-dark); }
.btn-primary:hover { background: var(--color-brand-strong); color: var(--color-on-dark); }
.btn-ghost { padding: 0 26px; border: 2px solid var(--color-ink); color: var(--color-ink); }
.btn-ghost:hover { background: var(--color-ink); color: var(--color-on-dark); }
.btn-ghost--small { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-light {
  min-height: 60px;
  padding: 0 32px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 800;
  font-size: 18px;
}
.btn-light:hover { color: var(--color-ink); }
.btn-light:focus-visible { outline-color: var(--color-on-dark); }

/* ── cabeçalho ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-surface-header);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(8px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--size-header);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-ink); }
.brand:hover { color: var(--color-ink); }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__group {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-ink-subtle);
}
.brand__word { font-family: var(--font-heading); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-text { color: var(--color-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-text:hover { color: var(--color-brand); }
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-ink);
}

/* ── topo ─────────────────────────────────────────────────────────────── */
.hero-sec { padding-top: 88px; background: var(--color-surface); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero__rule { width: 28px; height: 2px; background: var(--color-brand); }
.h1 { font-size: 64px; line-height: 1.02; font-weight: 900; letter-spacing: -0.02em; color: var(--color-ink); }
.h1__accent { color: var(--color-brand); }
.hero__lead { font-size: 20px; line-height: 1.55; color: var(--color-ink-muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero__phone { font-size: 15px; color: var(--color-ink-subtle); }
.hero__phone a { color: var(--color-ink); font-weight: 600; }

.hero-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--color-line-strong);
}
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: var(--color-surface-alt);
}
.hero-logo__img {
  position: relative;
  z-index: 1;
  width: 84%;
  height: auto;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.hero-logo picture { display: contents; }

/* ── o que fazemos ────────────────────────────────────────────────────── */
.alt-sec { background: var(--color-surface-alt); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 6px solid var(--color-steel);
}
.card--brand { border-top-color: var(--color-brand); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-steel-tint);
  color: var(--color-ink-muted);
}
.card--brand .card__icon { background: var(--color-brand-tint); color: var(--color-brand); }
.card__title { font-size: 28px; font-weight: 800; }
.card__text { font-size: 18px; line-height: 1.6; color: var(--color-ink-muted); }

/* ── materiais ────────────────────────────────────────────────────────── */
.dark-sec { background: var(--color-ink); color: var(--color-on-dark); }
.mats-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.mats-head .section-head { max-width: 640px; }
.dark-sec .eyebrow { color: var(--color-on-dark-accent); }
.dark-sec .h2 { color: var(--color-on-dark); }
.mats-head__text { font-size: 18px; line-height: 1.6; color: var(--color-on-dark-muted); max-width: 420px; }
.mats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.mat {
  background: var(--color-surface-dark-raised);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.mat__number { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--color-steel); }
.mat__title { font-size: 30px; font-weight: 800; color: var(--color-on-dark); }
.mat__text { font-size: 17px; line-height: 1.55; color: var(--color-on-dark-muted); }

/* ── como funciona ────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--color-ink); }
.step__number { font-family: var(--font-heading); font-weight: 900; font-size: 40px; color: var(--color-brand); line-height: 1; }
.step__title { font-size: 21px; font-weight: 700; }
.step__text { font-size: 16px; line-height: 1.55; color: var(--color-ink-muted); }

/* ── onde estamos ─────────────────────────────────────────────────────── */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.visit__text { display: flex; flex-direction: column; gap: 22px; }
.visit__address { font-style: normal; font-size: 20px; line-height: 1.6; color: var(--color-ink); }

/* Horário de atendimento (P-40.1): no lugar e no tom da linha do artboard. */
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 16px; line-height: 1.5; color: var(--color-ink-subtle); }
.hours dt { font-weight: 600; color: var(--color-ink); }
.hours dd { margin: 0; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Divergência 4 (plan.md §4.5): a prévia desenhada do artboard, em CSS, com link. */
.map {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-map);
  text-decoration: none;
}
.map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line-strong) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map__road { position: absolute; background: var(--color-surface); }
.map__road--h { left: -10%; top: 58%; width: 120%; height: 22px; transform: rotate(-8deg); }
.map__road--v { left: 44%; top: -10%; width: 16px; height: 120%; transform: rotate(6deg); }
.map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.map__label {
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.map__marker { color: var(--color-brand); }
.map__marker-stroke { stroke: var(--color-surface); }
.map__marker-dot { fill: var(--color-surface); }
.map__caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}

/* ── chamada final ────────────────────────────────────────────────────── */
.cta-sec { padding-top: 88px; padding-bottom: 88px; background: var(--color-brand); color: var(--color-on-dark); }
.cta { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.cta__text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cta .h2 { font-weight: 900; color: var(--color-on-dark); }
.cta__lead { font-size: 19px; line-height: 1.55; color: var(--color-on-brand-muted); }

/* ── rodapé ───────────────────────────────────────────────────────────── */
/* padding-bottom: altura do botão flutuante + margem + folga (112 px no artboard), para
   o botão não cobrir texto nem link no fim da rolagem (critério 3). */
.site-footer {
  background: var(--color-ink);
  color: var(--color-on-dark-muted);
  padding-top: 56px;
  padding-bottom: calc(var(--size-fab) + var(--space-fab) * 2 + 8px);
}
.foot { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__logo { width: 56px; height: 56px; border-radius: 50%; }
.foot__name { display: flex; flex-direction: column; gap: 4px; }
.foot__word { font-family: var(--font-heading); font-weight: 900; font-size: 18px; color: var(--color-on-dark); }
.foot__tagline { font-size: 14px; }
.foot__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.foot__contact a { color: var(--color-on-dark); }
.foot__contact a:hover { color: var(--color-on-dark-muted); }
.foot__contact a:focus-visible { outline-color: var(--color-on-dark); }
.foot__copy { font-size: 14px; color: var(--color-steel); }

/* ── botão flutuante do WhatsApp ──────────────────────────────────────── */
.fab {
  position: fixed;
  right: var(--space-fab);
  bottom: var(--space-fab);
  z-index: 30;
  width: var(--size-fab);
  height: var(--size-fab);
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
}
.fab:hover { color: var(--color-on-dark); }
.fab:focus-visible { outline-color: var(--color-ink); }

/* Divergência 6 (plan.md §4.5): o movimento só sem `prefers-reduced-motion`. */
@media (prefers-reduced-motion: no-preference) {
  .fab { transition: transform 0.15s ease; }
  .fab:hover { transform: scale(1.06); }
}

/* ── responsivo (os dois cortes do artboard) ──────────────────────────── */
@media (max-width: 900px) {
  .hero, .visit { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-logo { order: -1; max-width: 300px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links .nav-text { display: none; }
}

@media (max-width: 640px) {
  .duo, .mats, .steps { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding-left: var(--space-gutter-mobile); padding-right: var(--space-gutter-mobile); }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .sec, .cta-sec { padding-top: var(--space-section-mobile); padding-bottom: var(--space-section-mobile); }
  .hero-sec { padding-top: var(--space-section-mobile); }
}
