/*RESET*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #071827;
  --bg-secondary: #0d2438;
  --primary: #238ae6;
  --primary-hover: #1b73c2;
  --text: #ffffff;
  --text-soft: #c7d3df;
  --success: #1db354;
  --card: #0d2438;
  --border: #1b3550;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

section {
  scroll-margin-top: 110px;
}

/*BODY*/

body {
  background-color: var(--bg-primary);
  font-family: "Poppins", sans-serif;
  color: var(--text);
}

header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #071827eb;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff0d;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*LOGOTIPO*/

.logo {
  width: 180px;
}

/*NAVBAR*/

.navbar {
  display: flex;
  gap: 30px;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: 0.3s;
}

.navbar a:hover {
  color: #238ae6;
}

.hero {
  background-color: var(--bg-secondary);
  padding: 80px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  color: #ffffff;
}

.highlight {
  color: #238ae6;
}

.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.04);
}

.hero-urgency {
  margin-top: 40px;
  background-color: var(--primary);
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-urgency p {
  font-size: 20px;
  font-weight: 600;
}

.urgency-text {
  font-size: 20px;
  font-weight: 600;
}

.hero-urgency-buttons {
  display: flex;
  gap: 10px;
}

.btn-whatsapp,
.btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp img,
.btn-call img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.btn-whatsapp {
  background-color: #1db354;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn-call {
  background-color: #0d2438;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-whatsapp,
.btn-call {
  transition: 0.3s ease;
}

.btn-whatsapp:hover,
.btn-call:hover {
  transform: translateY(-2px);
}

.services {
  padding: 100px 0;
  background-color: #071827;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-soft);
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.services-row-top .service-card {
  width: 390px;
}

.services-row-bottom .service-card {
  width: 300px;
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(35, 138, 230, 0.18);
}

.service-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d2438;
  border: 1px solid rgba(35, 138, 230, 0.25);
  border-radius: 22px;
  transition: 0.3s ease;
}

.service-icon svg {
  width: 44px;
  height: 44px;
  transition: 0.3s ease;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.5;
}

/*ABOUT SECTION*/
.about {
  background-color: var(--bg-secondary);
  padding: 80px 0;
}

/*TEXTO*/
.about-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.about-text h2 {
  font-size: 35px;
  font-weight: 800;
  color: #238ae6;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.about-text p {
  max-width: 900px;
  margin: 0 auto 15px auto;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/*GALERIA*/
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
}

/*IMAGEM*/
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

/*HOVER PROFISSIONAL*/
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/*REGIÕES*/
.regions {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.region-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.region-card.active:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(35, 138, 230, 0.18);
}

.pin {
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}

.region-card p {
  font-size: 15px;
}

/*CONTATO*/
.contact {
  padding: 100px 0;
  background-color: #0d2438;
  color: #ffffff;
}

/*CARD PRINCIPAL*/
.contact-card {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/*INFO*/
.contact-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border-right: 1px solid var(--border);
}

.contact-info h3 {
  font-size: 26px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.2px;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}

.contact-info a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/*MAPA*/
.contact-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/*FOOTER*/
.footer {
  background-color: #071827;
  padding: 20px 0;
  text-align: center;
}

.footer p {
  color: #ffffff;
  font-size: 14px;
}

/*RESPONSIVIDADE*/

@media (max-width: 992px) {

  /*HERO*/
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-urgency {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .hero-urgency-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn-whatsapp,
  .btn-call {
    width: 100%;
    justify-content: center;
  }

  /*ABOUT*/
  .about-gallery {
    grid-template-columns: 1fr;
  }

  /*REGIONS*/
  .regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /*CONTACT*/
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/*MOBILE*/
@media (max-width: 768px) {
  section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .container {
    padding: 0 18px;
  }

  /*HEADER*/
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .navbar a {
    font-size: 15px;
  }

  .logo {
    width: 150px;
  }

  /*HERO*/
  .hero {
    padding: 50px 0;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-text p {
    font-size: 16px;
  }

  /*TITLES*/
  .section-title h2,
  .about-text h2 {
    font-size: 28px;
  }

  .section-title p,
  .about-text p {
    font-size: 16px;
  }

  /*SERVICES*/
  .services-row {
    flex-direction: column;
    align-items: center;
  }

  .services-row-top .service-card,
  .services-row-bottom .service-card {
    width: 100%;
    max-width: 420px;
  }

  /*REGIONS*/
  .regions-grid {
    grid-template-columns: 1fr;
  }

  /*CONTACT*/
  .contact-info {
    padding: 30px 24px;
  }

  .contact-map {
    min-height: 260px;
  }

  /*FOOTER*/
  .footer p {
    font-size: 13px;
  }
}

/*HEADER SCROLL*/

.header-scroll {
  background-color: rgba(7, 24, 39, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/*ANIMAÇÕES*/

.service-card,
.gallery-item,
.region-card,
.contact-card {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.service-card.active,
.gallery-item.active,
.region-card.active,
.contact-card.active {
  opacity: 1;
  transform: translateY(0);
}

/*WHATSAPP FLUTUANTE*/

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background-color: #1db954;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.floating-whatsapp img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}