/* ==========================================================================
   PMQ+ — Disciplina Operacional Digital
   Folha de estilo única do site. Mobile-first, sem dependências externas
   além das fontes Barlow / Barlow Condensed.
   ========================================================================== */

:root {
  /* Marca */
  --navy-900: #0a1730;
  --navy-800: #102542;
  --navy-700: #17355c;
  --navy-600: #1f4676;

  --brand-100: #eaf4fd;
  --brand-200: #cfe6fa;
  --brand-300: #a6d1f6;
  --brand-400: #6cb4ef;
  --brand-500: #2a95e6;
  --brand-600: #0f77cc;
  --brand-700: #0a5da4;
  --brand-800: #0b4778;
  --brand-900: #0b3255;

  --ink: #14202f;
  --ink-soft: #47576b;
  --ink-mute: #6d7b8c;

  --bg: #f4f7fc;
  --bg-alt: #e9f0f9;
  --surface: #ffffff;
  --divider: rgba(20, 32, 47, 0.14);
  --divider-strong: rgba(20, 32, 47, 0.24);

  --ok: #12a06a;
  --warn: #c9821c;
  --alert: #d2453c;

  --font-heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Paleta dos quatro pilares (paletacores.png). Cada card recebe um tom via
     data-tone="..." e usa --tone / --tone-soft / --tone-grad nos detalhes. */
  --p-processos: #0b2d4c;
  --p-manufatura: #2a6fa1;
  --p-qualidade: #5c6770;
  --p-manutencao: #2196f3;

  --accent-warm: #e8873a;
  --accent-warm-soft: #fdf1e6;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 28px);

  /* Raios — a identidade antiga era toda de canto vivo (2px). */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --radius: var(--r-sm);

  --grad-brand: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  --grad-navy: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  --grad-soft: linear-gradient(180deg, var(--brand-100), transparent);

  --shadow-sm: 0 1px 2px rgba(10, 23, 48, 0.05), 0 3px 10px rgba(10, 23, 48, 0.06);
  --shadow-md: 0 8px 28px rgba(10, 23, 48, 0.11);
  --shadow-lg: 0 20px 56px rgba(10, 23, 48, 0.2);
}

/* Tom de cor por card. --tone é a cor cheia; --tone-soft um fundo bem claro. */
[data-tone="processos"]  { --tone: var(--p-processos);  --tone-soft: #e8eef4; --tone-grad: linear-gradient(135deg, #1a4a78, var(--p-processos)); }
[data-tone="manufatura"] { --tone: var(--p-manufatura); --tone-soft: #e6f0f8; --tone-grad: linear-gradient(135deg, #3d86bd, var(--p-manufatura)); }
[data-tone="qualidade"]  { --tone: var(--p-qualidade);  --tone-soft: #eceef0; --tone-grad: linear-gradient(135deg, #78838c, var(--p-qualidade)); }
[data-tone="manutencao"] { --tone: var(--p-manutencao); --tone-soft: #e6f3fe; --tone-grad: linear-gradient(135deg, #4daaf7, var(--p-manutencao)); }

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  /* Base 18px: o site é lido em monitor grande de sala de reunião. */
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 10% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(90% 70% at 100% 6%, var(--bg-alt) 0%, rgba(233, 240, 249, 0) 60%),
    linear-gradient(rgba(20, 32, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 47, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--brand-700); text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
}

::selection { background: var(--brand-200); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.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;
}

/* ------------------------------------------------------------- layout -- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(52px, 8vw, 84px); }
.section--tight { padding-block: clamp(40px, 6vw, 60px); }
.section--line { border-top: 1px solid var(--divider); }

.kicker {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 12px;
}
.kicker--light { color: var(--brand-300); }

.h-xl { font-size: clamp(38px, 6.4vw, 66px); letter-spacing: -0.02em; line-height: 1.02; }
.h-lg { font-size: clamp(30px, 4.4vw, 46px); }
.h-md { font-size: clamp(24px, 2.8vw, 30px); }

.lead {
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.note {
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* --------------------------------------------------------- blueprint -- */
/* Detalhe industrial: cantos marcados, como em desenho técnico. */

.blueprint {
  position: relative;
  border: 1px solid var(--divider);
  background: var(--surface);
}
.blueprint > .corner {
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--brand-600);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.blueprint > .tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.blueprint > .tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.blueprint > .bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.blueprint > .br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.blueprint--light > .corner { border-color: var(--brand-300); }

/* ------------------------------------------------------------ botões -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(15, 119, 204, 0.28);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 119, 204, 0.36);
  transform: translateY(-1px);
}
.btn--primary:active { transform: none; box-shadow: none; }

.btn--secondary {
  border-color: var(--brand-300);
  color: var(--brand-800);
  background: rgba(255, 255, 255, 0.6);
}
.btn--secondary:hover {
  background: var(--brand-100);
  border-color: var(--brand-400);
  color: var(--brand-800);
}

.btn--ghost { color: var(--brand-700); padding-inline: 6px; }
.btn--ghost:hover { color: var(--brand-800); text-decoration: underline; }

.btn--light { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--light:hover { background: var(--brand-100); color: var(--navy-900); }

.btn--lg { font-size: 18px; padding: 13px 22px; }

.btn--wa::before {
  content: "";
  width: 17px; height: 17px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--wa-mask) center / contain no-repeat;
  mask: var(--wa-mask) center / contain no-repeat;
  --wa-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2Zm5.8 14.06c-.24.68-1.4 1.3-1.94 1.34-.5.04-.97.22-3.27-.68-2.76-1.09-4.5-3.9-4.64-4.08-.13-.18-1.1-1.46-1.1-2.79 0-1.33.7-1.98.94-2.25.25-.27.54-.34.72-.34.18 0 .36 0 .52.01.17.01.39-.06.61.47.23.54.77 1.87.84 2.01.07.14.11.3.02.48-.09.18-.13.29-.27.45-.13.16-.28.35-.4.47-.13.13-.27.28-.12.54.15.27.67 1.1 1.43 1.79.98.87 1.8 1.14 2.07 1.27.27.13.42.11.58-.07.16-.18.67-.78.85-1.05.18-.27.36-.22.6-.13.25.09 1.57.74 1.84.87.27.13.45.2.52.31.07.11.07.64-.17 1.32Z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 247, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-block: 14px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--divider-strong);
  padding: 8px 12px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 16px;
  background: none;
  cursor: pointer;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 34px);
  flex-wrap: wrap;
}
.site-nav a:not(.btn) {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.7vw, 21px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:not(.btn):hover { color: var(--brand-700); }
.site-nav a[aria-current="page"] { color: var(--brand-700); box-shadow: inset 0 -2px 0 var(--brand-500); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    text-align: center;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 10px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 13px 2px;
    border-bottom: 1px solid var(--divider);
  }
  .site-nav .btn { margin-top: 12px; }
}

/* -------------------------------------------------------------- hero -- */

.brandband {
  border-bottom: 1px solid var(--divider);
  background: #eef4fb;
}
.brandband img { width: 100%; }
.brandband a { display: block; }

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 52px) clamp(40px, 5vw, 56px);
}
.hero > * { min-width: 0; }

/* Hero sem figura: texto centralizado e mais largo. */
.hero--center { justify-items: center; text-align: center; }
.hero--center > div { max-width: 920px; }
.hero--center .lead { margin-inline: auto; max-width: 68ch; }
.hero--center .hero__actions,
.hero--center .hero__notes { justify-content: center; }
@media (min-width: 900px) {
  .hero:not(.hero--center) { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--divider);
  padding: 5px 12px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.7);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--brand-500);
}
.eyebrow span {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__notes {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: 16px;
  color: var(--ink-mute);
}
.hero__notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero__notes span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--brand-400);
  flex: none;
}

/* ------------------------------------------------------- ciclo (SVG) -- */

.panel-figure {
  position: relative;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--navy-700);
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
}
.panel-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.panel-figure svg { position: relative; width: 100%; height: auto; display: block; }
.panel-figure figcaption {
  position: relative;
  margin-top: 14px;
  font-size: 15px;
  color: var(--brand-300);
  line-height: 1.5;
}

/* ---------------------------------------------------------- benefícios -- */
/* Substituiu a faixa numérica antiga (−80%, 6 módulos, < 30s). */

.benefits {
  background: linear-gradient(180deg, var(--brand-100), rgba(234, 244, 253, 0));
  border-top: 1px solid var(--brand-200);
  padding-block: clamp(48px, 7vw, 76px);
}
.benefit__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.15;
  color: var(--tone, var(--navy-800));
}
.benefit__body { font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

/* ------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid--narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Faixa de cor no topo — o detalhe que tira o ar de caixa seca. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tone-grad, var(--grad-brand));
}
.card__kicker {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.12;
  color: var(--ink);
  transition: color 0.18s ease;
}
.card__body { font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

.card--routine {
  text-decoration: none;
  color: inherit;
  gap: 12px;
}
.card--routine:hover {
  border-color: var(--tone, var(--brand-300));
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.card--routine:hover .card__title { color: var(--tone, var(--brand-700)); }
.card--routine .card__kicker { color: var(--tone, var(--ink-mute)); }
.card--routine .card__cta { color: var(--tone, var(--brand-700)); }
.card--routine .tag {
  background: var(--tone-soft, var(--brand-100));
  border-color: transparent;
  color: var(--tone, var(--brand-800));
}
.card--case .card__kicker { color: var(--tone); }
.card--case .metrics__value { color: var(--tone); }
.card--routine:hover .card__cta { gap: 12px; }

.card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
  padding-top: 10px;
  transition: gap 0.18s ease;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--brand-200);
  border-radius: var(--r-pill);
  background: var(--brand-100);
  color: var(--brand-800);
}
.tag--accent {
  border-color: var(--brand-400);
  background: var(--brand-200);
  color: var(--brand-900);
}

/* ------------------------------------------------------- split panel -- */

.split {
  display: grid;
  /* Coluna explícita: sem ela o grid cria uma coluna implícita `auto`, e o
     carrossel (flex + overflow-x) colapsa para min-content dentro dela. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: start;
}
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.24fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
}

/* ----------------------------------------------------------- escuro --- */

.dark {
  background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #e2ecf7;
}
.dark h2, .dark h3 { color: #fff; }
.dark p { color: #c6d8ea; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: rgba(226, 236, 247, 0.22);
  border: 1px solid rgba(226, 236, 247, 0.22);
  margin-top: 26px;
}
.tiles__item { background: var(--navy-900); padding: 20px; }
.tiles__title { font-family: var(--font-heading); font-size: 20px; color: #fff; }
.tiles__body { font-size: 16px; color: #b8cee4; margin-top: 6px; line-height: 1.45; }

/* ---------------------------------------------------------- personas -- */

.persona {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.persona:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.persona__head {
  position: relative;
  background: var(--tone-grad, var(--grad-navy));
  padding: 22px 24px 34px;
  display: flex;
  align-items: flex-start;
}
.persona__head::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 26px;
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.persona__role {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.persona__icon {
  position: absolute;
  right: 24px;
  bottom: 0;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--tone, var(--brand-600));
  color: #fff;
  box-shadow: 0 0 0 5px var(--surface);
}
.persona__icon svg { width: 26px; height: 26px; }

.persona__body { padding: 6px 24px 20px; flex: 1; }
.persona__name {
  font-family: var(--font-heading);
  font-size: 27px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
  padding-right: 60px;
}
.persona__text { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }

.persona__quote {
  position: relative;
  margin: 0;
  padding: 18px 24px 20px 46px;
  background: var(--tone-soft, var(--brand-100));
  border-top: 1px solid var(--divider);
  font-size: 17px;
  line-height: 1.55;
  font-style: italic;
  color: var(--tone, var(--brand-800));
}
.persona__quote::before {
  content: "C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-family: var(--font-heading);
  font-size: 46px;
  line-height: 1;
  color: var(--tone, var(--brand-400));
  opacity: 0.5;
}

/* ------------------------------------------------------------ steps --- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
}
.steps__item {
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.steps__head { display: flex; align-items: center; gap: 10px; }
.steps__num {
  font-family: var(--font-heading);
  font-size: 16px;
  background: var(--tone, var(--brand-600));
  color: #fff;
  padding: 2px 9px;
  border-radius: var(--r-sm);
}
.steps__when {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------- form --- */

.briefing { background: rgba(224, 234, 247, 0.5); border-top: 1px solid var(--divider); }

.form {
  background: rgba(255, 255, 255, 0.86);
  padding: clamp(22px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.input {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid var(--divider-strong);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}
.input::placeholder { color: var(--ink-mute); }
.input:focus { border-color: var(--brand-500); }
textarea.input { min-height: 130px; resize: vertical; }

.checklist {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  color: var(--ink-soft);
}
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  margin-top: 8px;
  background: var(--brand-500);
}

.bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.bullets::marker { color: var(--brand-500); }

/* --------------------------------------------------------- galeria --- */

.gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}
.shot {
  border: 1px solid var(--divider);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.shot__frame {
  position: relative;
  margin: 0;
  background: var(--navy-900);
  border-bottom: 1px solid var(--divider);
  cursor: zoom-in;
  overflow: hidden;
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #0d1b31;
}
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.shot__bar span {
  margin-left: 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
}
.shot__frame img {
  width: 100%;
  transition: transform 0.3s ease;
}
.shot__frame:hover img { transform: scale(1.015); }
.shot__meta { padding: 16px 18px 18px; }
.shot__title { font-family: var(--font-heading); font-size: 21px; color: var(--ink); }
.shot__caption { font-size: 16px; line-height: 1.5; color: var(--ink-soft); margin-top: 5px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 17, 33, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 36px);
}
.lightbox.is-open { display: flex; }
.has-lightbox .wa-float { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  color: #cfe0f2;
  font-size: 16px;
  text-align: center;
  margin-top: 12px;
  max-width: 70ch;
}
.lightbox__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.12); }

/* ----------------------------------------------------------- módulo --- */

.crumbs {
  font-size: 16px;
  color: var(--ink-mute);
  padding-block: 18px 0;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); text-decoration: underline; }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
}
.specs__col { background: var(--bg); padding: 24px; }
.specs__title {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 14px;
}

.pitch {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  color: #e2ecf7;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.pitch h2 { color: #fff; margin-bottom: 8px; }
.pitch p { color: #c6d8ea; max-width: 60ch; font-size: 18px; }

/* ------------------------------------------------------------ footer -- */

.site-footer { background: #081426; color: #c6d8ea; }
.site-footer a { color: #dceafa; }
.site-footer__grid {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  padding-block: clamp(44px, 6vw, 64px) 34px;
}
@media (min-width: 860px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.9fr); }
}
.site-footer__label {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86aad2;
  margin-bottom: 12px;
}
.site-footer__wa {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 23px;
  display: inline-block;
}
.site-footer__wa:hover { color: var(--brand-300); }
.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 17px;
}
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { color: #fff; text-decoration: underline; }
.site-footer__mark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
  color: #fff;
  line-height: 1;
}
.site-footer__mark span { color: var(--brand-400); }
.site-footer__legal {
  border-top: 1px solid rgba(226, 236, 247, 0.18);
  padding-block: 16px 20px;
  font-size: 15px;
  color: #86aad2;
}
.site-footer__band { display: block; width: 100%; }

/* ------------------------------------------------------ WhatsApp fixo -- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .wa-float { right: 12px; bottom: 12px; padding: 11px 16px; font-size: 17px; }
}

/* --------------------------------------------------------------- 404 -- */

.err {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 60px;
}
.err__code {
  font-family: var(--font-heading);
  font-size: clamp(80px, 16vw, 150px);
  line-height: 1;
  color: var(--brand-300);
}

/* ------------------------------------------------------------ print -- */

@media print {
  .site-header, .wa-float, .lightbox, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* =========================================================== o problema == */
/* Item 4: a segunda oração ganha caixa alta, cor e marca-texto.
   Item 5: os quatro cards saem da coluna lateral e ocupam linha própria. */

.problema__head { max-width: 60ch; margin-bottom: clamp(30px, 4vw, 44px); }

.problema__title { line-height: 1.12; }

.mark {
  display: inline;
  font-weight: 700;
  font-size: 1.14em;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--brand-700);
  background-image: linear-gradient(var(--brand-200), var(--brand-200));
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  background-position: 0 88%;
  padding-inline: 2px;
}

.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.pain {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px 24px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pain::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tone-grad, var(--grad-brand));
}
.pain:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tone);
}

.pain__num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--tone-soft, var(--brand-100));
  pointer-events: none;
}
.pain__tag {
  position: relative;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tone, var(--brand-700));
}
.pain__title {
  position: relative;
  font-size: 24px;
  line-height: 1.15;
  color: var(--ink);
  padding-right: 42px;
}
.pain__body {
  position: relative;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================= carrossel == */

.carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  box-shadow: var(--shadow-lg);
}

.carousel__track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
}
.carousel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--navy-900);
}
.carousel__caption {
  padding: 16px 20px 18px;
  font-size: 17px;
  line-height: 1.5;
  color: #c6d8ea;
  background: var(--navy-900);
  min-height: 4.6em;
}

.carousel__arrow {
  position: absolute;
  top: calc(50% - 2.3em);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(10, 23, 48, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.carousel__arrow:hover { background: var(--brand-600); transform: translateY(-50%) scale(1.06); }
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(4.6em + 14px);
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background-color 0.18s ease, width 0.18s ease;
}
.carousel__dot[aria-current="true"] { background: var(--brand-400); width: 22px; }

/* Sem JS o track continua navegável por scroll horizontal. */
.carousel:not([data-ready]) .carousel__arrow,
.carousel:not([data-ready]) .carousel__dots { display: none; }
.carousel[data-ready] .carousel__slide[aria-hidden="true"] { visibility: visible; }

/* ================================================== banner e transições == */

.brandband__slogan {
  max-width: 54ch;
  margin: 0 auto;
  padding: 22px var(--pad) 28px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--navy-800);
  text-wrap: balance;
}
.brandband__slogan strong {
  color: var(--p-manutencao);
  font-weight: 700;
}

/* Transição suave entre seções, no lugar da linha dura de 1px. */
.section--soft {
  background: var(--grad-soft);
  border-top: 1px solid var(--brand-200);
}

/* ===================================================== pontos fortes ==== */
/* Cards que viram ao passar o mouse (ou ao tocar, no celular). As duas faces
   ocupam a mesma célula de grid, então o card mede a face mais alta — sem
   altura fixa e sem texto cortado. */

.benefits__head { max-width: 62ch; margin-bottom: clamp(24px, 3vw, 34px); }

.benefits__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.flip {
  flex: 1 1 250px;
  max-width: 420px;   /* 7 cards: a última linha não vira um banner esticado */
  min-width: 0;
  perspective: 1200px;
  cursor: default;
  outline: none;
  border-radius: var(--r-md);
}
.flip:focus-visible { outline: 3px solid var(--tone); outline-offset: 3px; }

.flip__inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--r-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip__front {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--tone-soft, var(--brand-200));
}
.flip__front::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--tone, var(--brand-500));
  margin-bottom: 8px;
}
.flip__hint {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tone);
  opacity: 0.8;
}

.flip__back {
  transform: rotateY(180deg);
  background: var(--tone-grad, var(--grad-navy));
  color: #fff;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
}
.flip__back .benefit__title { color: #fff; }
.flip__back .benefit__body { color: rgba(255, 255, 255, 0.9); }

/* Mouse: vira ao passar. Teclado: vira ao focar. */
@media (hover: hover) {
  .flip:hover .flip__inner { transform: rotateY(180deg); }
}
.flip:focus-visible .flip__inner,
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }

/* Celular/tablet: sem hover, o toque alterna (ver pmq.js). */
@media (hover: none) {
  .flip { cursor: pointer; }
  .flip__hint::after { content: " · toque"; }
}

@media (prefers-reduced-motion: reduce) {
  .flip__inner { transition: none; }
}

/* ========================================================== indústria 4.0 = */

.i40 {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--tone-grad, var(--grad-navy));
  color: #e2ecf7;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .i40 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}
.i40 > * { min-width: 0; }
.i40 h3 { color: #fff; margin: 4px 0 14px; }
.i40 p { font-size: 18px; line-height: 1.6; color: #c6d8ea; max-width: 58ch; }

.i40__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.i40__stage {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 2px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.i40__num {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--p-manutencao);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}
.i40__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  line-height: 1.1;
}
.i40__desc { font-size: 16px; line-height: 1.5; color: #c6d8ea; }
