/* ================================================================
   STYLE.CSS — Preventiva Redes de Proteção
   Global: tokens, reset, utilitários, navbar, botões, serviços
================================================================ */


/* ----------------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  /* Cores */
  --color-primary:        #0B3C5D;
  --color-primary-light:  #1E5F8A;
  --color-accent:         #F2A900;
  --color-accent-dark:    #d99600;
  --color-bg:             #F5F7FA;
  --color-white:          #FFFFFF;
  --color-text:           #2B2B2B;
  --color-text-light:     #6B6B6B;
  --color-border:         #E5E7EB;
  --color-whatsapp:       #25D366;
  --color-whatsapp-dark:  #1fba59;

  /* Tipografia */
  --font-base:  'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;

  /* Espaçamentos */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Bordas */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.20);

  /* Transições */
  --transition-base: all 0.2s ease;
  --transition-slow: all 0.35s ease;

  /* Navbar */
  --navbar-height: 108px;
  --navbar-logo-h: 70px;
  --navbar-zone-gap: clamp(2rem, 4.75vw, 3.75rem);
  /* Itens na barra de ações do header (redes | WhatsApp) */
  --navbar-action-gap: clamp(0.5rem, 1.25vw, 0.75rem);
}


/* ----------------------------------------------------------------
   2. RESET
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  /* Espaço para botões flutuantes (ligar + WhatsApp) em telas pequenas */
  padding-bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}


/* ----------------------------------------------------------------
   3. UTILITÁRIOS
---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-6));
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }
.reveal--delay-6 { transition-delay: 0.6s; }


/* ----------------------------------------------------------------
   4. BOTÕES
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Primário */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(242, 169, 0, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(242, 169, 0, 0.38);
}

/* WhatsApp */
.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-dark);
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.48);
}

/* Outline / outline-white (hero escuro) — glass leve, CTA secundário */
.btn--outline,
.btn--outline-white {
  border-width: 1.5px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.btn--outline:hover,
.btn--outline-white:hover,
.btn--outline:focus-visible,
.btn--outline-white:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  outline: none;
}

/* Outline escuro (para fundos claros) */
.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Tamanhos */
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  min-height: 48px;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

@media (max-width: 639px) {
  .btn--lg {
    min-height: 52px;
    padding: var(--space-4) var(--space-5);
    font-size: 1.0625rem;
    width: 100%;
    max-width: 100%;
  }
}

/* Estado active */
.btn:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:active {
    transform: none;
  }
}


/* ----------------------------------------------------------------
   5. NAVBAR
---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  height: var(--navbar-height);
  background: rgba(10, 37, 64, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    -webkit-backdrop-filter 0.3s ease,
    backdrop-filter 0.3s ease;
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .navbar {
    background: rgba(10, 37, 64, 0.75);
  }
}

.navbar.scrolled {
  background: rgba(10, 37, 64, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .navbar.scrolled {
    background: rgba(10, 37, 64, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar {
    background: rgba(10, 37, 64, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .navbar.scrolled {
    background: rgba(10, 37, 64, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
}

.navbar > .container {
  padding-left: clamp(1.5rem, 5.5vw, 3.5rem);
  padding-right: clamp(1.5rem, 5.5vw, 3.5rem);
}

@media (min-width: 1024px) {
  /* Um pouco mais de respiro à direita (CTA e borda da janela) */
  .navbar > .container {
    padding-right: clamp(1.75rem, 5.75vw, 3.75rem);
  }
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: var(--navbar-height);
  column-gap: var(--navbar-zone-gap);
  row-gap: var(--space-3);
}

/* Desktop: logo | menu (1fr, pode encolher) | ações (mínimo reservado — redes/CTA não são cobertos pelo menu) */
@media (min-width: 1024px) {
  .navbar__inner {
    display: grid;
    /* Coluna 3: min ~260px para 2 ícones + CTA; evita o 1fr “comer” o espaço das redes */
    grid-template-columns: auto minmax(0, 1fr) minmax(260px, max-content);
    align-items: center;
    justify-content: stretch;
    column-gap: clamp(1rem, 2vw, 1.75rem);
  }

  .navbar__logo {
    grid-column: 1;
    justify-self: start;
  }

  /* stretch = ocupa só a coluna do meio; center encolhia o item ao conteúdo e invadia a coluna das redes */
  .navbar__nav {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    /* Recorte explícito: texto do menu não pinta por cima da coluna das ações */
    overflow-x: auto;
    overflow-y: hidden;
  }

  .navbar__actions {
    grid-column: 3;
    justify-self: end;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    isolation: isolate;
  }
}

/* ── Logo: área própria, destaque, sem espremer ── */
.navbar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  min-width: clamp(88px, 13vw, 132px);
  min-height: calc(var(--navbar-logo-h) + 24px);
  padding: var(--space-3) clamp(1rem, 2.25vw, 1.75rem) var(--space-3) 0;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

.navbar__logo:hover {
  opacity: 0.85;
}

.navbar__logo img {
  height: var(--navbar-logo-h);
  width: auto;
  max-height: var(--navbar-logo-h);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  display: block;
}

/* ── Nav links (desktop, escondido no mobile) ── */
.navbar__nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(0.55rem, 1.15vw, 1.35rem);
  margin: 0;
  padding: 0 clamp(0.35rem, 1.25vw, 1rem);
  min-width: 0;
}

.navbar__nav a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 0;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* Underline animado (amarelo institucional) */
.navbar__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #facc15;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navbar__nav a:hover {
  color: var(--color-white);
}

.navbar__nav a:hover::after {
  width: 100%;
}

/* Estado ativo (setado via JS) */
.navbar__nav a.is-active {
  color: #fde047;
}

.navbar__nav a.is-active::after {
  width: 100%;
  background: #facc15;
}

/* ── Bloco 3: barra de ações (uma linha) + hambúrguer no mobile ── */
.navbar__actions {
  display: flex;
  align-items: center;
  align-self: center;
  flex-wrap: nowrap;
  gap: var(--space-3);
  flex-shrink: 0;
  /* Desktop grid col 3 usa max-content + min-width: max-content no media query */
  min-width: 0;
}

.navbar__action-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--navbar-action-gap);
  min-width: 0;
}

/* Redes — só desktop (dentro da action-bar) */
.navbar__social {
  display: none;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
}

.navbar__social li {
  display: flex;
}

.navbar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.navbar__social-link svg {
  width: 18px;
  height: 18px;
}

.navbar__social-link:hover {
  color: var(--color-accent);
  transform: translateY(-1px);
}

.navbar__social-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .navbar__social-link:hover {
    transform: none;
  }
}

.navbar__cta {
  padding: 0.65rem 1.15rem;
  font-size: var(--text-sm);
  font-weight: 700;
  gap: var(--space-2);
  white-space: nowrap;
  line-height: 1.2;
  border: none;
  flex-shrink: 0;
  align-self: center;
}

/* Texto do CTA: compacto no mobile e em telas médias (evita cobrir o hambúrguer) */
.navbar__cta-text--short {
  display: none;
}

@media (max-width: 1023px) {
  .navbar__cta-text--full {
    display: none;
  }
  .navbar__cta-text--short {
    display: inline;
  }

  .navbar__cta {
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .navbar__cta-text--full {
    display: none;
  }
  .navbar__cta-text--short {
    display: inline;
  }
}

/* CTA WhatsApp da navbar: cor, sombra e hover (sobrescreve .btn--whatsapp) */
.navbar .btn.btn--whatsapp.navbar__cta {
  background: #25d366;
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.42);
  transition:
    background 0.3s ease,
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease;
}

.navbar .btn.btn--whatsapp.navbar__cta:hover {
  background: #20bd5a;
  color: var(--color-white);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.navbar .btn.btn--whatsapp.navbar__cta:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .navbar .btn.btn--whatsapp.navbar__cta:hover,
  .navbar .btn.btn--whatsapp.navbar__cta:active {
    transform: none;
  }
}

/* ── Hambúrguer (mobile) ── */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 2;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.navbar__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Menu mobile ── */
.navbar__mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-3) var(--space-5) var(--space-5);
}

.navbar__mobile-menu.is-open {
  display: flex;
}

/* Desktop: painel mobile nunca pode ficar visível (evita is-open “preso” após resize). */
@media (min-width: 1024px) {
  .navbar__mobile-menu,
  .navbar__mobile-menu.is-open {
    display: none !important;
  }
}

.navbar__mobile-menu > a {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-base);
  font-weight: 500;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar__mobile-menu > a:hover {
  color: var(--color-accent);
  padding-left: var(--space-3);
}

.navbar__mobile-social {
  padding: var(--space-4) 0 var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar__mobile-social-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-3);
}

.navbar__mobile-social-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar__mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.navbar__mobile-social-link svg {
  width: 20px;
  height: 20px;
}

.navbar__mobile-social-link:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

.navbar__mobile-whatsapp {
  margin-top: var(--space-2);
  padding-top: var(--space-4) !important;
  border-bottom: none !important;
  color: #25d366 !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar__mobile-whatsapp:hover {
  color: var(--color-whatsapp-dark) !important;
  padding-left: var(--space-3);
}

.navbar__mobile-whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── Responsivo navbar ── */
@media (max-width: 1023px) {
  :root {
    --navbar-height: 80px;
    --navbar-logo-h: 50px;
  }

  .navbar__inner {
    column-gap: var(--space-5);
  }

  .navbar__actions {
    gap: var(--space-2);
  }

  .navbar__logo {
    min-width: 0;
    max-width: calc(100vw - 5.75rem);
    min-height: calc(var(--navbar-logo-h) + 16px);
    padding: var(--space-2) var(--space-3) var(--space-2) 0;
  }

  .navbar__logo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: var(--navbar-logo-h);
  }
}

@media (min-width: 1024px) {
  .navbar__nav {
    display: flex;
    /* Encosta o menu no espaço antes das redes (evita centrálise que “vaza” dos dois lados) */
    justify-content: flex-end;
    padding: 0 clamp(0.25rem, 0.9vw, 0.65rem);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
  }

  .navbar__nav > li {
    flex-shrink: 0;
  }

  .navbar__nav::-webkit-scrollbar {
    display: none;
  }

  .navbar__social    { display: flex; }
  .navbar__hamburger { display: none; }

  /* Respiro explícito: bloco de ações nunca invade o texto do menu */
  .navbar__actions {
    margin-left: 0;
    padding-left: clamp(0.5rem, 1.25vw, 1rem);
    gap: var(--space-3);
    min-width: max-content;
  }

  .navbar__action-bar {
    gap: clamp(var(--space-2), 1vw, var(--space-3));
    flex-shrink: 0;
    min-width: max-content;
  }
}


/* ----------------------------------------------------------------
   6. CABEÇALHO DE SEÇÃO (reutilizável)
---------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 4vw, var(--space-16));
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-title em {
  font-style: normal;
  color: var(--color-accent-dark);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .section-title { font-size: var(--text-4xl); }
}

.section-header--services .section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #1c4e6e;
}

.section-header--services .section-title {
  font-size: clamp(1.875rem, 4.2vw, 2.375rem);
  font-weight: 700;
  color: #0b2a3c;
  margin-bottom: var(--space-4);
}

.section-header--services .section-title .services-title-em {
  font-style: normal;
  color: #facc15;
}

.section-header--services .section-subtitle {
  max-width: 600px;
  font-size: var(--text-base);
  font-weight: 400;
  color: #6b7280;
  line-height: 1.65;
}

/* Faixa entre autoridade e soluções */
.section-transition--to-solutions {
  position: relative;
  height: 80px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #eef2f6 0%, #ffffff 100%);
  overflow: hidden;
}

.section-transition--to-solutions::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 0h48v48H0z' fill='none'/%3E%3Cpath d='M0 0h48M0 16h48M0 32h48M0 48h48M0 0v48M16 0v48M32 0v48M48 0v48' stroke='%231C4E6E' stroke-width='0.6'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------
   7. SEÇÃO SERVIÇOS
---------------------------------------------------------------- */
.services {
  padding: 80px 0 100px;
  background: #ffffff;
}

.services__container {
  max-width: 1200px;
}

.services__grid-shell {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px;
}

@media (min-width: 640px) {
  .services__grid-shell {
    padding: 28px;
  }
}

@media (min-width: 1024px) {
  .services__grid-shell {
    padding: 32px;
  }
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* ── Card de serviço ── */
.service-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow: none;
}

.service-card:hover {
  border-color: #22c55e;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

/* ── Imagem (proporção fixa + zoom no hover) ── */
.service-card__image {
  aspect-ratio: 16 / 9;
  min-height: 160px;
  max-height: 220px;
  overflow: hidden;
  background: var(--color-border);
  position: relative;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  will-change: transform;
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

/* Tag de categoria sobre a imagem */
.service-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 42, 60, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1;
}

@media (min-width: 640px) {
  .service-card__tag {
    top: 10px;
    left: 10px;
  }
}

/* ── Corpo do card ── */
.service-card__body {
  padding: var(--space-4) var(--space-3) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .service-card__body {
    padding: var(--space-5) var(--space-5) var(--space-6);
  }
}

.service-card__title {
  margin: 0 0 var(--space-2);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-card__title-link {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  display: inline;
  transition: color 0.2s ease;
}

.service-card__title-link:hover {
  color: var(--color-accent);
}

.service-card__title-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (min-width: 640px) {
  .service-card__title-link {
    font-size: var(--text-lg);
  }
}

.service-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .service-card__desc {
    font-size: var(--text-sm);
  }
}

.service-card__benefits {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-card__benefits li {
  position: relative;
  padding-left: var(--space-5);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--color-text);
}

@media (min-width: 640px) {
  .service-card__benefits li {
    font-size: var(--text-xs);
    line-height: 1.5;
  }
}

.service-card__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(242, 169, 0, 0.25);
}

.service-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-1);
}

@media (min-width: 480px) {
  .service-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .service-card__actions > * {
    flex: 1 1 calc(50% - var(--space-2));
    min-width: 0;
  }
}

.service-card__link-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0b2a3c;
  background: transparent;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

@media (min-width: 640px) {
  .service-card__link-detail {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
}

.service-card__link-detail:hover {
  background: #f1f5f9;
  color: #0b2a3c;
  border-color: #94a3b8;
}

.service-card__link-detail:active {
  transform: scale(0.98);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ffffff;
  background: #22c55e;
  text-decoration: none;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .service-card__cta {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
}

.service-card__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .service-card__cta svg {
    width: 16px;
    height: 16px;
  }
}

.service-card__cta:hover {
  background: #16a34a;
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.35);
}

.service-card__cta:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover {
    transform: none;
  }

  .service-card__image img {
    transition: none;
  }

  .service-card:hover .service-card__image img {
    transform: none;
  }

  .service-card__cta:hover,
  .service-card__link-detail:active,
  .service-card__cta:active {
    transform: none;
  }

  .btn--primary:hover,
  .btn--outline:hover,
  .btn--outline-white:hover {
    transform: none;
  }
}

/* ----------------------------------------------------------------
   8. BOTÕES FLUTUANTES (ligar + WhatsApp)
---------------------------------------------------------------- */
.fab-stack {
  position: fixed;
  z-index: 900;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Centraliza telefone e coluna do WhatsApp no mesmo eixo (evita desvio à direita) */
  align-items: center;
  animation: fab-stack-enter 0.55s ease-out both;
}

.fab-stack__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Wrapper não altera o layout do flex (filhos participam como antes) */
.floating-phone {
  display: contents;
}

.fab-stack__btn--call {
  width: 76px;
  height: 76px;
  background: var(--color-accent);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow:
    0 4px 18px rgba(242, 169, 0, 0.45),
    0 0 0 0 rgba(242, 169, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation:
    fab-stack-item-enter 0.45s ease-out 0.05s both,
    call-float-pulse 2.8s ease-in-out 0.5s infinite;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.28s ease;
}

.fab-stack__btn--call:hover {
  background: var(--color-accent-dark);
  transform: translateY(-4px) scale(1.05);
  animation: none;
  box-shadow:
    0 10px 28px rgba(242, 169, 0, 0.55),
    0 0 0 4px rgba(242, 169, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Mesmo amarelo institucional; pulso alinhado ao anel do WhatsApp, com leitura em fundo claro */
.floating-phone.is-on-light .fab-stack__btn--call {
  background: var(--color-accent);
  color: #ffffff;
  border: 1px solid rgba(11, 60, 93, 0.12);
  animation:
    fab-stack-item-enter 0.45s ease-out 0.05s both,
    call-float-pulse-light 2.8s ease-in-out 0.5s infinite;
}

.floating-phone.is-on-light .fab-stack__btn--call:hover {
  background: var(--color-accent-dark);
  animation: none;
  box-shadow:
    0 10px 28px rgba(11, 42, 60, 0.14),
    0 6px 22px rgba(242, 169, 0, 0.5),
    0 0 0 4px rgba(242, 169, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(11, 60, 93, 0.18);
}

.fab-stack__btn--call svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
}

/* Coluna: botão maior + faixa “Estamos online” */
.fab-stack__wa-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fab-stack__btn--whatsapp {
  width: 76px;
  height: 76px;
  background: #22c55e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 18px rgba(34, 197, 94, 0.45),
    0 0 0 0 rgba(34, 197, 94, 0.35);
  animation:
    fab-stack-item-enter 0.45s ease-out 0.12s both,
    wa-float-pulse 2.8s ease-in-out 0.6s infinite;
}

.fab-stack__online-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: min(100%, calc(100vw - 3rem));
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
  background: rgba(11, 60, 93, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.fab-stack__online-pulse {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
  animation: fab-wa-online-dot 2.2s ease-in-out infinite;
}

.fab-stack__btn--whatsapp:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 10px 28px rgba(34, 197, 94, 0.55),
    0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: none;
}

.fab-stack__btn--whatsapp svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
}

.fab-stack__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.fab-stack__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-text);
}

/* Tooltip do WhatsApp — duas linhas (atendimento online) */
.fab-stack__tooltip--wa {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: normal;
  text-align: left;
  max-width: 11.5rem;
  padding: var(--space-2) var(--space-3);
  line-height: 1.25;
}

.fab-stack__tooltip-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fab-stack__tooltip-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.88;
}

.fab-stack__btn--call:hover .fab-stack__tooltip,
.fab-stack__btn--call:focus-visible .fab-stack__tooltip,
.fab-stack__btn--whatsapp:hover .fab-stack__tooltip,
.fab-stack__btn--whatsapp:focus-visible .fab-stack__tooltip {
  opacity: 1;
}

.fab-stack__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* ----------------------------------------------------------------
   9. ANIMAÇÕES GLOBAIS
---------------------------------------------------------------- */
@keyframes wa-float-pulse {
  0%, 100% {
    box-shadow:
      0 4px 18px rgba(34, 197, 94, 0.5),
      0 0 0 0 rgba(34, 197, 94, 0.35);
  }
  50% {
    box-shadow:
      0 6px 26px rgba(34, 197, 94, 0.65),
      0 0 0 10px rgba(34, 197, 94, 0);
  }
}

@keyframes call-float-pulse {
  0%, 100% {
    box-shadow:
      0 4px 18px rgba(242, 169, 0, 0.5),
      0 0 0 0 rgba(242, 169, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 6px 26px rgba(242, 169, 0, 0.62),
      0 0 0 10px rgba(242, 169, 0, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

@keyframes call-float-pulse-light {
  0%, 100% {
    box-shadow:
      0 4px 18px rgba(11, 42, 60, 0.12),
      0 4px 16px rgba(242, 169, 0, 0.4),
      0 0 0 0 rgba(242, 169, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow:
      0 6px 24px rgba(11, 42, 60, 0.14),
      0 6px 22px rgba(242, 169, 0, 0.48),
      0 0 0 10px rgba(242, 169, 0, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
}

@keyframes fab-wa-online-dot {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(74, 222, 128, 0.55),
      0 0 0 1px rgba(34, 197, 94, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(74, 222, 128, 0),
      0 0 0 1px rgba(34, 197, 94, 0.45);
    transform: scale(1.05);
  }
}

@keyframes fab-stack-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fab-stack-item-enter {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab-stack {
    animation: none;
  }

  .fab-stack__btn--call,
  .fab-stack__btn--whatsapp {
    animation: none;
  }

  .fab-stack__online-pulse {
    animation: none;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
    transform: none;
  }

  .fab-stack__btn--whatsapp:hover,
  .fab-stack__btn--call:hover {
    transform: none;
  }
}

@keyframes bounce-y {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ----------------------------------------------------------------
   Páginas internas de serviço (servicos/*.html)
---------------------------------------------------------------- */
.servico-page {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
}

.servico-page__back {
  display: inline-block;
  margin: var(--space-4) var(--space-4) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.servico-page__back:hover {
  text-decoration: underline;
}

.servico-page__header {
  padding: var(--space-4) var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.servico-page__header img {
  display: block;
  height: auto;
  max-width: 180px;
}

.servico-page__main {
  padding: var(--space-8) var(--space-4) var(--space-16);
  max-width: 720px;
}

.servico-page__hero-img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.servico-page__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.servico-page__main h1 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}

@media (min-width: 768px) {
  .servico-page__main h1 {
    font-size: var(--text-3xl);
  }
}

.servico-page__lead {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0 0 var(--space-6);
}

.servico-page__main p {
  font-size: var(--text-base);
  line-height: 1.65;
  margin: 0 0 var(--space-4);
}

.servico-page__list {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
}

.servico-page__list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.5;
}

.servico-page__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.servico-page__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .servico-page__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.servico-page__actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 200px;
}
