/* ===================================================
   PETTRA SOLUÇÕES TÉCNICAS — Landing Page
   Sistema de Detector de Fumaça — Salvador/BA
=================================================== */

:root {
  --laranja: #f4691a;
  --laranja-escuro: #b94f13;
  --laranja-claro: #f7965e;
  --carvao: #1c1c1c;
  --carvao-2: #262626;
  --cinza-texto: #4d4d4d;
  --cinza-claro: #f4f2ef;
  --branco: #ffffff;
  --borda: #e8e4de;
  --whatsapp: #22c35e;
  --whatsapp-escuro: #1da851;

  --radius: 10px;
  --sombra: 0 8px 24px rgba(20, 20, 20, 0.08);
  --max-width: 1160px;

  font-size: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--carvao);
  background: var(--branco);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }

/* ================= BOTÕES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn--whatsapp:hover { background: var(--whatsapp-escuro); transform: translateY(-1px); }

.btn--lg { padding: 17px 30px; font-size: 1.05rem; }

.btn--header {
  padding: 9px 16px;
  font-size: .82rem;
}

.icon-wpp { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--laranja);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.header__logo img { height: 40px; width: auto; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--carvao);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,.35) 0%, rgba(15,15,15,.45) 40%, rgba(10,10,10,.94) 92%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 56px;
  max-width: 720px;
}
.badge {
  display: inline-block;
  background: rgba(244, 105, 27, .16);
  border: 1px solid rgba(244, 105, 27, .5);
  color: var(--laranja-claro);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.hero__headline {
  color: #fff;
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.hero__subheadline {
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.hero__microcopy {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
}

/* ================= SEÇÕES GERAIS ================= */
.section { padding: 72px 0; content-visibility: auto; contain-intrinsic-size: 1px 600px; }
.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 42px;
  letter-spacing: -.01em;
}
.section__title--left { text-align: left; margin-bottom: 20px; }

/* ================= BENEFÍCIOS ================= */
.beneficios { background: var(--cinza-claro); }
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
  border-color: rgba(244, 105, 27, .25);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: rgba(244, 105, 27, .1);
  color: var(--laranja);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--cinza-texto); font-size: .93rem; }

/* ================= SERVIÇO / COMO FUNCIONA ================= */
.servico__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.servico__intro {
  color: var(--cinza-texto);
  margin-bottom: 24px;
  font-size: 1.02rem;
}
.lista-check {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}
.lista-check li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--carvao);
  font-size: .98rem;
}
.lista-check span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--laranja);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.servico__imagem {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sombra);
}
.servico__imagem img { width: 100%; height: 100%; object-fit: cover; }

/* ================= CONFIANÇA ================= */
.confianca { background: var(--carvao); color: #fff; }
.confianca .section__title { color: #fff; }
.confianca__texto {
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
}
.selos { max-width: 900px; margin: 0 auto; }
.selo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 20px;
}
.selo svg { width: 26px; height: 26px; color: var(--laranja-claro); flex-shrink: 0; }
.selo span { font-size: .92rem; font-weight: 600; }

/* ================= REGIÃO ================= */
.regiao__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.regiao__info p { color: var(--cinza-texto); margin-bottom: 26px; }
.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.info-item svg { width: 24px; height: 24px; color: var(--laranja); flex-shrink: 0; margin-top: 2px; }
.info-item.icon-wpp svg { color: var(--whatsapp); }
.info-item strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.info-item p { color: var(--cinza-texto); font-size: .92rem; margin: 0; }

.regiao__mapa {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--cinza-claro);
  border: 1px solid var(--borda);
}
.mapa-iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ================= CTA FINAL ================= */
.cta-final {
  background: var(--laranja);
  padding: 64px 0 24px;
}
.cta-final__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-final h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-final p {
  color: rgba(255,255,255,.92);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ================= RODAPÉ ================= */
.footer {
  background: var(--laranja);
  color: var(--carvao);
  padding: 18px 0 24px;
}
.footer__inner { text-align: center; }
.footer__logo {
  height: 44px;
  width: auto;
  margin: 0 auto 18px;
}
.footer__dados p { margin-bottom: 6px; font-size: .86rem; color: rgba(28,28,28,.82); }
.footer__dados strong { color: #1c1c1c; font-size: .95rem; }
.footer__copy {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(28,28,28,.15);
  font-size: .76rem;
  color: rgba(28,28,28,.6);
}

/* ================= CTA FLUTUANTE MOBILE ================= */
.cta-float {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  padding: 15px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cta-float.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ================= ANIMAÇÕES (reveal ao rolar) ================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal--left { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero__content > * {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn .7s ease forwards;
}
.hero__content .badge { animation-delay: .05s; }
.hero__content .hero__headline { animation-delay: .15s; }
.hero__content .hero__subheadline { animation-delay: .25s; }
.hero__content .hero__ctas { animation-delay: .35s; }
.hero__content .hero__microcopy { animation-delay: .45s; }

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ================= RESPONSIVO ================= */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .servico__grid { grid-template-columns: 1fr; gap: 32px; }
  .servico__imagem { order: -1; }
  .regiao__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { min-height: 100vh; align-items: flex-end; }
  .hero__content { padding-bottom: 100px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .grid--4 { grid-template-columns: 1fr; }
  .cta-float { display: flex; }
  .footer__dados p { font-size: .85rem; }
}

@media (max-width: 400px) {
  .header__logo img { height: 32px; }
  .btn--header { padding: 8px 12px; font-size: .74rem; gap: 6px; }
  .btn--header .icon-wpp { width: 16px; height: 16px; }
}

@media (min-width: 641px) {
  .cta-float { display: none !important; }
}
