:root {
  --navy: #071b3d;
  --navy-light: #0d315f;
  --blue: #174f9a;
  --yellow: #ffd21f;
  --yellow-dark: #edbd00;
  --white: #ffffff;
  --text: #dbe6f7;
  --muted: #aebbd1;
  --card: #0b2852;
  --green: #25d366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}

.header.scrolled {
  background: rgba(5, 21, 48, .96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
}

.nav-container {
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -2px;
}

.logo-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 25%, 88% 78%, 50% 100%, 12% 78%, 0 25%);
  font-size: 1.15rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

nav a {
  font-size: .92rem;
  font-weight: 600;
  position: relative;
  transition: color .25s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--yellow);
  transition: right .25s ease;
}

nav a:hover {
  color: var(--yellow);
}

nav a:hover::after {
  right: 0;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  min-height: 700px;
  height: 92vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(circle at 82% 30%, rgba(255, 210, 31, .13), transparent 15%),
    linear-gradient(125deg, #071b3d 0%, #0b2c5b 70%, #174f9a 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 17, 42, .96) 0%, rgba(5, 25, 58, .82) 48%, rgba(5, 25, 58, .28) 100%);
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 8%;
  top: 18%;
  border: 1px solid rgba(255, 210, 31, .18);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(255, 210, 31, .09);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 5%;
  width: 310px;
  height: 310px;
  transform: translateY(-50%);
}

.hero-tool-mark {
  position: absolute;
  left: 12px;
  bottom: 20px;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(23, 79, 154, .82), rgba(7, 27, 61, .94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 7rem;
  transform: rotate(-9deg);
}

.hero-tool-mark i {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35));
}

.hero-bolt-mark {
  position: absolute;
  top: 12px;
  right: 4px;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 14px 36px rgba(255, 210, 31, .27);
  color: var(--navy);
  font-size: 5.2rem;
  transform: rotate(10deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 70px;
}

.eyebrow,
.section-eyebrow {
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow span {
  width: 38px;
  height: 3px;
  background: var(--yellow);
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -4px;
  margin-bottom: 24px;
}

.hero h1 strong {
  display: block;
  color: var(--yellow);
  font-weight: 800;
}

.hero-description {
  max-width: 660px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-primary {
  background: var(--yellow);
  color: #08182f;
  box-shadow: 0 12px 28px rgba(255, 210, 31, .16);
}

.btn-primary:hover {
  background: #ffe05d;
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(255, 210, 31, .24);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .05);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
}

.benefits {
  background: #09234a;
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.benefits-grid {
  min-height: 128px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.benefit:first-child {
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.benefit i {
  color: var(--yellow);
  font-size: 2.1rem;
}

.benefit div {
  display: flex;
  flex-direction: column;
}

.benefit strong {
  font-size: .86rem;
}

.benefit span {
  color: var(--muted);
  font-size: .72rem;
  margin-top: 3px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  left: -18px;
  bottom: -18px;
  border: 3px solid var(--yellow);
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 4px;
}

.experience-badge {
  position: absolute;
  right: -22px;
  bottom: 30px;
  width: 170px;
  height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--yellow);
  color: var(--navy);
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .28);
}

.experience-badge strong {
  font-size: 1.15rem;
}

.experience-badge span {
  font-size: .75rem;
  font-weight: 700;
}

.about-content h2,
.section-heading h2,
.cta h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -2px;
}

.about-content h2 {
  margin: 12px 0 24px;
}

.about-content h2 span,
.section-heading h2 span {
  color: var(--yellow);
}

.about-content p:not(.section-eyebrow) {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  font-weight: 800;
  margin-top: 12px;
}

.text-link i {
  transition: transform .25s ease;
}

.text-link:hover i {
  transform: translateX(5px);
}

.servicos {
  background: #06172f;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  margin: 10px 0 12px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 210, 31, .5);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.card-image {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #174f9a;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 24, 53, .75));
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.water-tank-image img {
  object-fit: cover;
  object-position: center;
}

.water-tank-image::after {
  background: none;
}

.fire-alarm-image img {
  object-fit: cover;
  object-position: center;
}

.outlets-image img {
  object-fit: cover;
  object-position: center 56%;
}

.card:hover .card-image img {
  transform: scale(1.07);
}

.card-image span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: -1px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 8px 8px 0 0;
  font-size: 1.35rem;
}

.card-body {
  padding: 24px 22px 26px;
}

.card h3 {
  color: var(--yellow);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 7px;
}

.card li {
  color: var(--text);
  font-size: .78rem;
  line-height: 1.35;
  padding-left: 15px;
  position: relative;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f4c9a 0%, #092858 62%, #06172f 100%);
  padding: 72px 0;
}

.cta-decoration {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -100px;
  top: -170px;
  border: 36px solid rgba(255, 210, 31, .08);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta h2 {
  margin: 8px 0 8px;
}

.cta-content p:last-child {
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: auto;
}

.contact-card {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 24px;
  transition: .3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 211, 102, .5);
}

.contact-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  font-size: 2rem;
}

.contact-card div {
  display: flex;
  flex-direction: column;
}

.contact-card small {
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-card strong {
  font-size: 1.15rem;
}

.contact-arrow {
  margin-left: auto;
  color: var(--muted);
  transition: transform .25s ease;
}

.contact-card:hover .contact-arrow {
  transform: translateX(5px);
  color: var(--yellow);
}

footer {
  background: #030d1e;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-grid {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
}

.footer-logo .logo-mark {
  width: 36px;
  height: 36px;
  font-size: .9rem;
}

.footer-grid p {
  color: var(--muted);
  font-size: .78rem;
}

.back-top {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
}

.whatsapp-float {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .34);
  transition: transform .25s ease;
  animation: pulse 2.2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.cards .reveal:nth-child(3n + 2) {
  transition-delay: .08s;
}

.cards .reveal:nth-child(3n + 3) {
  transition-delay: .16s;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, .34); }
  50% { box-shadow: 0 10px 38px rgba(37, 211, 102, .58); }
}

@media (max-width: 980px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, .08);
  }

  .benefit:nth-child(3),
  .benefit:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .about-grid {
    gap: 42px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding: 72px 0;
  }

  .nav-container {
    height: 72px;
  }

  .logo {
    font-size: 1.55rem;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 72px;
    right: 16px;
    width: min(280px, calc(100% - 32px));
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: #09234a;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: .25s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
  }

  nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav a {
    padding: 14px;
  }

  nav a::after {
    display: none;
  }

  .hero {
    min-height: 660px;
    height: 88vh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(3, 17, 42, .95), rgba(5, 25, 58, .68));
  }

  .hero-content {
    padding-top: 45px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
    letter-spacing: -3px;
  }

  .hero-description {
    max-width: 520px;
  }

  .benefits-grid {
    width: 100%;
  }

  .benefit {
    padding: 20px 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    width: calc(100% - 16px);
  }

  .about-image img {
    height: 390px;
  }

  .experience-badge {
    right: -16px;
  }

  .cards {
    gap: 16px;
  }

  .cta-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 620px;
  }

  .eyebrow {
    font-size: .65rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-description {
    font-size: .92rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit,
  .benefit:first-child {
    min-height: 92px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .benefit:last-child {
    border-bottom: 0;
  }

  .about-image img {
    height: 300px;
  }

  .experience-badge {
    width: 145px;
    height: 112px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 18px;
  }

  .contact-icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .contact-card strong {
    font-size: 1rem;
  }

  .contact-arrow {
    display: none;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Seletor de número do WhatsApp */
.contact-picker {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  width: min(440px, calc(100% - 32px));
  max-width: none;
}

.contact-picker::backdrop {
  background: rgba(3, 12, 28, .72);
  backdrop-filter: blur(4px);
}

.contact-picker[open] {
  animation: picker-in .25s ease;
}

.contact-picker-box {
  position: relative;
  padding: 32px 24px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--navy-light), var(--navy));
  border: 1px solid rgba(255, 210, 31, .25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  text-align: center;
}

.contact-picker-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 1.8rem;
}

.contact-picker h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.contact-picker p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 20px;
}

.contact-picker-options {
  display: grid;
  gap: 12px;
  text-align: left;
}

.contact-picker-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}

.contact-picker-close:hover {
  background: rgba(255, 255, 255, .16);
}

@keyframes picker-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.contact-picker .contact-card {
  min-height: auto;
  padding: 16px 18px;
}

.contact-picker .contact-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 1.5rem;
}

.contact-picker .contact-card:hover {
  transform: translateY(-2px);
}
