/* =========================================================================
   Klauck Solutions — Design System
   Marca Klauck (Manrope / Inter) em layout editorial limpo.
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Marca — cores oficiais */
  --navy:        #2A2F6B; /* Azul Klauck — primária, títulos, marca */
  --navy-deep:   #1D2048; /* Azul profundo — fundos e profundidade */
  --amber:       #E8912A; /* Âmbar — destaque, botões, links */
  --amber-dark:  #A85D00; /* Âmbar escuro — links de texto sobre branco (contraste AA) */
  --graphite:    #2C2E3A; /* Grafite — texto principal */
  --gray:        #6E7183; /* Cinza — texto secundário */
  --cloud:       #F5F6FB; /* Nuvem — fundo claro */
  --white:       #ffffff;

  /* Superfícies */
  --surface-0: var(--white);
  --surface-1: var(--cloud);
  --surface-line: #e6e7f0;

  /* Tipografia */
  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text:    'Inter',   ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala tipográfica */
  --text-caption:    0.8125rem; /* 13 */
  --text-body:       1rem;      /* 16 */
  --text-body-lg:    1.0625rem; /* 17 */
  --text-subheading: 1.125rem;  /* 18 */
  --text-h3:         1.25rem;   /* 20 */
  --text-h2:         1.625rem;  /* 26 */
  --text-h1:         2.25rem;   /* 36 */
  --text-display:    clamp(2.125rem, 4.4vw, 3.375rem); /* 34–54 */

  /* Espaçamento */
  --sp-4: 4px;  --sp-8: 8px;   --sp-12: 12px; --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-32: 32px; --sp-40: 40px;
  --sp-48: 48px; --sp-64: 64px; --sp-80: 80px; --sp-100: 100px;

  /* Layout */
  --page-max: 1180px;
  --section-y: clamp(56px, 8vw, 96px);

  /* Formas */
  --radius-card:   20px;
  --radius-input:  8px;
  --radius-pill:   999px;
  --radius-image:  8px;

  /* Sombra sutil (marca evita sombras pesadas) */
  --shadow-soft: 0 1px 2px rgba(29,32,72,0.06), 0 8px 24px rgba(29,32,72,0.06);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Toque: remove o flash cinza padrão do Android/iOS ao tocar em links */
  -webkit-tap-highlight-color: rgba(42, 47, 107, 0.12);
}

/* Impede que qualquer elemento largo cause rolagem lateral no celular */
.container, .hero, .section, .site-footer { max-width: 100%; }

/* Quebra palavras longas (e-mails, URLs) em vez de estourar a tela */
p, li, a, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* Elementos interativos respondem imediatamente ao toque */
.btn, .wa-float, .btn-whatsapp, .nav__toggle, .nav__links a { touch-action: manipulation; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 var(--sp-16);
  letter-spacing: -0.02em;
  font-weight: 800;
}

p { margin: 0 0 var(--sp-16); }

a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  /* max() respeita a área segura do iPhone (notch em modo paisagem) */
  padding-left: max(var(--sp-24), env(safe-area-inset-left, 0px));
  padding-right: max(var(--sp-24), env(safe-area-inset-right, 0px));
}

.section { padding-block: var(--section-y); }
.section--cloud { background: var(--cloud); }
.section--navy  { background: var(--navy-deep); color: rgba(255,255,255,0.82); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin: 0 0 var(--sp-16);
}
.section--navy .eyebrow { color: var(--amber); }

.lead {
  font-size: var(--text-body-lg);
  color: var(--gray);
  max-width: 60ch;
}
.section--navy .lead { color: rgba(255,255,255,0.72); }

.section-head { max-width: 46rem; margin-bottom: var(--sp-48); }
.section-head--center { margin-inline: auto; text-align: center; }

.text-amber { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-body);
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--amber); color: var(--navy-deep); }
.btn--primary:hover { background: #f5a03f; }

.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-deep); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-16); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--surface-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
  height: 68px;
}

/* Logo (símbolo SVG + wordmark em HTML para herdar a fonte) */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}
.logo__word span { color: var(--amber); font-weight: 600; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  list-style: none;
}
.nav__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--graphite);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--navy); text-decoration: none; }
.nav__links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--amber);
}

.nav__actions { display: flex; align-items: center; gap: var(--sp-16); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
  /* Fundo padrão (placeholder). Ao adicionar mídia via .hero__bg, ela cobre este gradiente. */
  background:
    radial-gradient(1100px 620px at 88% 118%, rgba(42,47,107,0.85), transparent 62%),
    linear-gradient(158deg, #1b1f45 0%, var(--navy-deep) 46%, #23275c 100%);
}
/* Camada de mídia opcional: vídeo ou imagem de fundo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Overlay garante contraste do texto sobre qualquer mídia */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(29,32,72,0.94) 0%,
    rgba(29,32,72,0.82) 42%,
    rgba(29,32,72,0.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(72px, 12vw, 132px);
  max-width: 46rem;
}
.hero h1 {
  color: var(--white);
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-20);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
  margin-bottom: var(--sp-32);
}
/* Marca d'água K no canto */
.hero__watermark {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: min(560px, 52vw);
  color: rgba(255,255,255,0.05);
  z-index: 1;
  pointer-events: none;
}
.hero--compact .hero__inner { padding-block: clamp(56px, 8vw, 84px); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--sp-24); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-card);
  padding: var(--sp-32);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: transparent; }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(42,47,107,0.08);
  color: var(--navy);
  margin-bottom: var(--sp-20);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--text-h3); margin-bottom: var(--sp-8); }
.card p { color: var(--gray); margin-bottom: 0; }

.card--link { display: block; text-decoration: none; color: inherit; }
.card--link:hover { text-decoration: none; }

/* Card sobre fundo escuro */
.section--navy .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.section--navy .card h3 { color: var(--white); }
.section--navy .card p { color: rgba(255,255,255,0.68); }
.section--navy .card__icon { background: rgba(255,255,255,0.08); color: var(--amber); }

/* ---------- Feature rows (2 colunas alternadas) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature + .feature { margin-top: var(--section-y); }
.feature--reverse .feature__media { order: -1; }
.feature__media {
  border-radius: var(--radius-card);
  background: var(--navy);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: var(--sp-32);
}
.feature__media--cloud { background: var(--cloud); }
.feature h2 { font-size: var(--text-h2); }
.feature ul.check { margin-top: var(--sp-20); }

/* Lista com marcador âmbar */
.check { list-style: none; display: grid; gap: var(--sp-12); }
.check li {
  position: relative;
  padding-left: 32px;
  color: var(--graphite);
}
.section--navy .check li { color: rgba(255,255,255,0.82); }
.check li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-24); }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy);
  line-height: 1;
}
.section--navy .stat__num { color: var(--white); }
.stat__num em { color: var(--amber); font-style: normal; }
.stat__label { color: var(--gray); font-size: 0.95rem; margin-top: var(--sp-8); }
.section--navy .stat__label { color: rgba(255,255,255,0.66); }

/* ---------- Pilares / compromissos ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-32); }
.pillar__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(232,145,42,0.14);
  color: var(--amber-dark);
  margin-bottom: var(--sp-16);
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: var(--sp-8); }
.pillar p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }
.section--navy .pillar__icon { background: rgba(255,255,255,0.08); color: var(--amber); }
.section--navy .pillar p { color: rgba(255,255,255,0.66); }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-24); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-24); border-top: 2px solid var(--surface-line); }
.section--navy .step { border-top-color: rgba(255,255,255,0.16); }
.step__n {
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.9rem; color: var(--amber-dark);
  letter-spacing: 0.04em;
}
.section--navy .step__n { color: var(--amber); }
.step h3 { font-size: 1.2rem; margin: var(--sp-12) 0 var(--sp-8); }
.step p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }
.section--navy .step p { color: rgba(255,255,255,0.66); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--navy);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: var(--white);
}
.cta h2 { color: var(--white); font-size: var(--text-h2); }
.cta p { color: rgba(255,255,255,0.75); max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: var(--sp-32); }

/* ---------- Nexo submarca ---------- */
.nexo-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; color: var(--navy); letter-spacing: -0.02em;
}
.section--navy .nexo-badge { color: var(--white); }
.nexo-badge .dot { color: var(--amber); }
.nexo-flow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-24); margin-top: var(--sp-32); }

/* ---------- Painel visual da página de contato ---------- */
.contact-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-card);
  color: var(--white);
  background:
    radial-gradient(700px 420px at 90% 115%, rgba(42,47,107,0.85), transparent 62%),
    linear-gradient(158deg, #1b1f45 0%, var(--navy-deep) 46%, #23275c 100%);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  align-self: stretch;
}
.contact-art__watermark {
  position: absolute;
  right: -10%;
  bottom: -12%;
  width: min(380px, 70%);
  color: rgba(255,255,255,0.05);
  z-index: -1;
  pointer-events: none;
}
.contact-art__content img { margin-bottom: var(--sp-24); }
.contact-art__tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 var(--sp-24);
}
.contact-art__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}
.contact-art__tags li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.contact-list { list-style: none; display: grid; gap: var(--sp-24); }
.contact-list li { display: flex; gap: var(--sp-16); align-items: flex-start; }
.contact-list .ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(42,47,107,0.08); color: var(--navy);
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-display); color: var(--navy); }
.contact-list span, .contact-list a { color: var(--gray); }

/* ---------- Info badge / pills ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-caption);
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(42,47,107,0.08); color: var(--navy);
}
.badge--amber { background: rgba(232,145,42,0.15); color: var(--amber-dark); }
.badge--soon { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.28); }

/* Marca Cadeo (submarca de suprimentos) — usa o device do ponto âmbar */
.brand-cadeo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: var(--sp-16) 0 var(--sp-20);
}
.section--navy .brand-cadeo { color: var(--white); }
.cadeo-note { max-width: 54ch; margin: 0 auto; }

/* Faixa do selo de segurança (SecurityScorecard) */
.trust { max-width: 48rem; margin-inline: auto; text-align: center; display: grid; gap: var(--sp-24); }
.trust h2 { font-size: var(--text-h2); }
.trust__badge { display: flex; justify-content: center; }
.trust__badge iframe { max-width: 100%; border: 0; color-scheme: light; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding-block: var(--sp-64) var(--sp-32); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-40);
  padding-bottom: var(--sp-40);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: var(--sp-16); letter-spacing: 0; }
.footer-grid ul { list-style: none; display: grid; gap: var(--sp-12); }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--white); }
.footer__brand p { color: rgba(255,255,255,0.6); max-width: 34ch; margin-top: var(--sp-16); }
.footer__logo .logo__word { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-16);
  justify-content: space-between; align-items: center;
  padding-top: var(--sp-24); font-size: var(--text-caption); color: rgba(255,255,255,0.5);
}

/* Contatos do rodapé com ícone */
.footer-contact { list-style: none; display: grid; gap: var(--sp-16); }
.footer-contact li { display: flex; align-items: center; gap: var(--sp-12); }
.footer-contact svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--amber); }
.footer-contact a, .footer-contact span { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.footer-contact a:hover { color: var(--white); }

/* ---------- Botão de WhatsApp em destaque (página de contato) ---------- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #25D366;              /* verde oficial do WhatsApp */
  color: #0b3d20;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-whatsapp:hover {
  text-decoration: none;
  color: #0b3d20;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
}
.btn-whatsapp svg { width: 30px; height: 30px; flex: 0 0 auto; }
.btn-whatsapp strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}
.btn-whatsapp small {
  display: block;
  font-family: var(--font-text);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- Botão flutuante de WhatsApp (circular, só ícone) ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;              /* verde oficial do WhatsApp, para reconhecimento imediato */
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover {
  text-decoration: none;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}
.wa-float svg { width: 30px; height: 30px; flex: 0 0 auto; }

@media (max-width: 560px) {
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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;
}

/* ---------- Responsivo ---------- */

/* Tablet */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* A mídia das seções vira faixa mais baixa, para não empurrar o texto */
  .feature__media { aspect-ratio: 16 / 9; padding: var(--sp-24); }
}

/* Celular */
@media (max-width: 680px) {
  .container { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

  /* --- Menu --- */
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;   /* alvo de toque mínimo recomendado */
    margin-right: -8px;
  }
  .nav[data-open="true"] .nav__links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--surface-line);
    padding: var(--sp-8) 20px var(--sp-16);
    box-shadow: 0 12px 24px rgba(29,32,72,0.10);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav[data-open="true"] .nav__links li { width: 100%; }
  .nav[data-open="true"] .nav__links a {
    display: flex; align-items: center;
    min-height: 52px;            /* confortável para o toque */
    padding: 14px 0; width: 100%;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--surface-line);
  }
  .nav[data-open="true"] .nav__links li:last-child a { border-bottom: 0; }

  /* --- Grades em coluna única --- */
  .grid--3, .grid--2, .nexo-flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-32); }

  /* --- Botões ocupam a largura toda (mais fáceis de acertar) --- */
  .btn-row { flex-direction: column; align-items: stretch; gap: var(--sp-12); }
  .btn-row .btn { width: 100%; justify-content: center; }
  .btn { padding: 15px 24px; }
  .btn-whatsapp { width: 100%; justify-content: center; }

  /* --- Respiro geral --- */
  .hero__inner { padding-block: 56px 64px; }
  .card { padding: var(--sp-24); }
  .cta { border-radius: 20px; padding: var(--sp-32) var(--sp-24); }
  .section-head { margin-bottom: var(--sp-32); }
  .feature__media { aspect-ratio: 3 / 2; }
  .feature + .feature { margin-top: var(--sp-48); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-8); }

  /* Marca d'água mais discreta em tela pequena */
  .hero__watermark { width: 70vw; right: -12%; bottom: -14%; }
}

/* Celular pequeno (iPhone SE, Android compactos) */
@media (max-width: 400px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .stats { grid-template-columns: 1fr; }
  .logo__word { font-size: 1.05rem; }
  .cta { padding: var(--sp-24) var(--sp-20); }
}

/* ---------- Ajustes específicos de toque / iOS / Android ---------- */
@media (hover: none) {
  /* Sem hover em telas de toque: remove o "pulo" dos elementos */
  .card:hover, .btn:hover, .wa-float:hover, .btn-whatsapp:hover { transform: none; }
}

/* Área segura do iPhone (notch e barra inferior) */
.wa-float {
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 560px) {
  .wa-float {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
.site-footer { padding-bottom: calc(var(--sp-32) + env(safe-area-inset-bottom, 0px)); }

/* Painel visual mais baixo em telas pequenas */
@media (max-width: 680px) {
  .contact-art { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
