/* =========================================================
   LIMA SISTEMAS DE SEGURANÇA E ENERGIA SOLAR — Design tokens
   Navy tech #0B1220 | Branco #fff | Cinza claro #F4F6F8
   Âmbar solar #F5A623 | Azul segurança #2F86EB | Verde WhatsApp #25D366
   Tipografia: Space Grotesk (display, técnica) + Inter (corpo)
   Assinatura: mira/retícula de câmera (reticle corners) no hero
   ========================================================= */

:root {
  --navy: #0B1220;
  --navy-soft: #131B2E;
  --white: #ffffff;
  --gray-light: #F4F6F8;
  --gray-mid: #E5E9EF;
  --text-soft: #616b7a;
  --amber: #F5A623;
  --amber-dark: #D68C0F;
  --blue: #2F86EB;
  --green: #25D366;
  --green-dark: #1ba851;
  --radius: 8px;
  --shadow-card: 0 14px 32px -14px rgba(11,18,32,0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: var(--white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

h1, h2, h3, .display-font {
  font-family: 'Space Grotesk', sans-serif;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--navy);
  color: #b9c2d1;
  font-size: 12.5px;
  padding: 7px 16px;
  text-align: center;
  letter-spacing: 0.2px;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-sep { color: rgba(255,255,255,0.2); }

/* ===================== HEADER ===================== */
.header {
  background: var(--white);
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px;
  background: var(--navy);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
  letter-spacing: 0.4px;
}
.logo-text strong { font-weight: 700; }
.footer-logo { font-size: 15px; color: var(--white); }

.btn-header {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-header:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,18,32,0.94) 0%, rgba(11,18,32,0.86) 40%, rgba(11,18,32,0.6) 68%, rgba(11,18,32,0.4) 100%);
}

/* Signature: camera-reticle corners framing the hero, echoing CFTV monitoring */
.hero-reticle { position: absolute; inset: 40px; z-index: 1; pointer-events: none; }
.hero-reticle .corner {
  position: absolute;
  width: 34px; height: 34px;
  color: var(--amber);
  opacity: 0.55;
}
.hero-reticle .tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.hero-reticle .tr { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.hero-reticle .bl { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.hero-reticle .br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 24px 0 6vw;
  padding: 60px 0;
  color: var(--white);
}
.tag-selo {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px 0;
  letter-spacing: -0.4px;
}
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin: 0 0 32px 0;
  max-width: 520px;
}
.btn-cta-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 17px);
  padding: 18px 34px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-cta-hero:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--green-dark);
}
.wa-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ===================== SECTION SHARED ===================== */
.section { padding: 84px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber-dark);
  text-align: center;
  margin: 0 0 10px 0;
  font-family: 'Inter', sans-serif;
}
.section-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 52px 0;
  letter-spacing: -0.2px;
}

/* ===================== REVIEWS ===================== */
.reviews-section { background: var(--gray-light); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 24px;
  justify-content: center;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--blue);
}
.stars { color: var(--amber); font-size: 17px; letter-spacing: 2px; margin-bottom: 14px; }
.review-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #333;
  margin: 0 0 18px 0;
  font-weight: 300;
}
.review-author { font-weight: 600; font-size: 14px; color: var(--navy); font-family: 'Space Grotesk', sans-serif; }
.google-badge {
  text-align: center;
  margin-top: 40px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.google-badge .stars { display: inline; margin: 0 8px 0 0; }

/* ===================== BENEFITS ===================== */
.benefits-section { background: var(--white); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.benefit-card {
  text-align: center;
  padding: 34px 20px;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.benefit-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.benefit-icon {
  width: 58px; height: 58px;
  margin: 0 auto 20px auto;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px 0; font-family: 'Space Grotesk', sans-serif; }
.benefit-card p { font-size: 13.5px; font-weight: 300; color: var(--text-soft); line-height: 1.6; margin: 0; }

/* ===================== PORTFOLIO ===================== */
.portfolio-section { background: var(--gray-light); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.portfolio-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(11,18,32,0.88), transparent);
  color: var(--white);
  font-size: 13px;
  font-weight: 400;
  padding: 30px 16px 12px 16px;
}

/* ===================== STEPS ===================== */
.steps-section { background: var(--white); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step-card { text-align: center; padding: 10px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  color: var(--navy);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 20px;
}
.step-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px 0; }
.step-card p { font-size: 14px; font-weight: 300; color: var(--text-soft); line-height: 1.6; margin: 0 auto; max-width: 280px; }

/* ===================== MAP ===================== */
.map-section { background: var(--gray-light); }
.map-wrap {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-address {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-soft);
}

/* ===================== CTA FINAL ===================== */
.cta-final {
  background: var(--navy);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-decor {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 {
  color: var(--white);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  margin: 0 0 14px 0;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.cta-final p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  font-weight: 300;
  margin: 0 0 36px 0;
}
.btn-cta-final {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 19px 38px;
  border-radius: 999px;
}
.pulse { animation: pulse-cta 2.1s infinite; }
@keyframes pulse-cta {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== FOOTER ===================== */
.footer {
  background: #080d17;
  color: rgba(255,255,255,0.6);
  padding: 56px 0 30px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
.footer-col h4 {
  color: var(--amber);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 16px 0;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.footer-col p { font-size: 13.5px; line-height: 1.8; margin: 0 0 8px 0; font-weight: 300; }
.footer-col a { color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--amber); }
.footer-logo { display: inline-block; margin-bottom: 14px; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px; height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.6);
  z-index: 100;
  animation: pulse-cta 2.5s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; gap: 2px; }
  .topbar-sep { display: none; }
  .logo-text { font-size: 10.5px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-mark svg { width: 18px; height: 18px; }
  .btn-header { font-size: 12.5px; padding: 8px 14px; }
  .hero { min-height: 100vh; }
  .hero-reticle { inset: 20px; }
  .hero-content { margin: 0 20px; padding: 100px 0 60px 0; max-width: 100%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.9) 55%, rgba(11,18,32,0.97) 100%); }
  .btn-cta-hero { width: 100%; justify-content: center; padding: 18px 20px; }
  .section { padding: 56px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item img { height: 210px; }
  .map-wrap { height: 280px; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .cta-final { padding: 64px 0; }
  .btn-cta-final { width: calc(100% - 40px); justify-content: center; padding: 18px 20px; font-size: 15.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pulse, .whatsapp-float { animation: none; }
  * { transition: none !important; }
}

/* Visible focus for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
