:root {
  --azul: #102B42;
  --azul-medio: #173b59;
  --cinza: #CBCBCC;
  --branco: #FFFFFF;
  --texto: #1f1f1f;
  --texto-suave: #555555;
  --cinza-claro: #f5f5f5;
  --sombra: 0 20px 50px rgba(0, 0, 0, 0.14);
  --header-height: 92px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--branco);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.header {
  width: 100%;
  min-height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(203, 203, 204, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.header-content {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-area {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  width: clamp(112px, 12vw, 150px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 32px);
}

.nav a {
  color: var(--azul);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: #000;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(16, 43, 66, 0.18);
  border-radius: 8px;
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background-color: var(--azul);
  border-radius: 10px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

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

/* Hero */

.hero {
  min-height: 100svh;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 100%);
  color: var(--branco);
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 64px) 0 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.tagline,
.section-title span,
.contact-text span {
  display: inline-block;
  color: var(--cinza);
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--branco);
  color: var(--azul);
  border: 0;
}

.btn-primary:hover {
  background-color: var(--cinza);
}

.btn-secondary {
  border: 1px solid rgba(203, 203, 204, 0.9);
  color: var(--branco);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--branco);
  color: var(--azul);
}

.hero-card {
  background-color: var(--branco);
  color: var(--azul);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 12px;
  box-shadow: var(--sombra);
}

.hero-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 10px;
}

.hero-card p {
  color: var(--texto-suave);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.hero-card-line {
  height: 1px;
  background-color: var(--cinza);
  margin: 28px 0;
}

/* Sections */

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.center-title {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title h2,
.contact-text h2 {
  color: var(--azul);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--texto-suave);
}

.about-section {
  background-color: var(--branco);
}

.about-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.about-text-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(203, 203, 204, 0.8);
  border-radius: 12px;
  background-color: var(--branco);
  box-shadow: 0 16px 40px rgba(16, 43, 66, 0.06);
}

.about-text-card p+p {
  margin-top: 18px;
}

/* Differentials */

.differentials-section {
  background-color: var(--cinza-claro);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.testimonial-card,
.process-step {
  padding: 26px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
  border: 1px solid rgba(203, 203, 204, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.testimonial-card:hover,
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(16, 43, 66, 0.1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--azul);
  color: var(--branco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 22px;
}

.feature-card h3,
.process-step h3 {
  color: var(--azul);
  line-height: 1.25;
  margin-bottom: 10px;
}

.feature-card p,
.process-step p {
  color: var(--texto-suave);
}

/* Process */

.process-section {
  background-color: var(--branco);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.feature-card,
.process-step {
  min-height: 250px;
}

.process-step span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--azul);
  color: var(--branco);
  font-weight: 800;
  margin-bottom: 18px;
}

/* Works Map */

.works-map-section {
  background-color: var(--cinza-claro);
}

.works-map-area {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}

.works-map {
  width: 100%;
  min-height: 440px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(203, 203, 204, 0.8);
  background-color: var(--cinza-claro);
  box-shadow: 0 18px 48px rgba(16, 43, 66, 0.1);
  z-index: 1;
}

.leaflet-container {
  font-family: Arial, Helvetica, sans-serif;
}

.leaflet-control-attribution {
  font-size: 0.68rem;
}

.custom-map-marker {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 6px;
  background-color: var(--azul);
  border: 3px solid var(--branco);
  box-shadow: 0 14px 30px rgba(16, 43, 66, 0.28);
  transform: rotate(-45deg);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    scale 0.25s ease;
}

.custom-map-marker::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background-color: var(--branco);
}

.custom-map-marker.active,
.custom-map-marker:hover {
  background-color: var(--azul-medio);
  box-shadow: 0 18px 38px rgba(16, 43, 66, 0.36);
  scale: 1.12;
}

.map-info-card {
  padding: clamp(28px, 4vw, 38px);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, var(--azul), var(--azul-medio));
  color: var(--branco);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-info-card span {
  color: var(--cinza);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.map-info-card h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.map-info-card p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 24px;
}

.map-info-button {
  width: fit-content;
}

.map-info-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Gallery */

.gallery-section {
  background-color: var(--branco);
}

.gallery-title {
  margin-bottom: 26px;
}

.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.gallery-filter {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 43, 66, 0.18);
  background-color: var(--branco);
  color: var(--azul);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
  background-color: var(--azul);
  color: var(--branco);
  border-color: var(--azul);
  box-shadow: 0 12px 28px rgba(16, 43, 66, 0.16);
  transform: translateY(-2px);
}

.gallery-empty {
  display: none;
  text-align: center;
  padding: clamp(34px, 5vw, 54px);
  border-radius: 16px;
  border: 1px solid rgba(203, 203, 204, 0.8);
  background-color: var(--cinza-claro);
}

.gallery-empty.active {
  display: block;
}

.gallery-empty h3 {
  color: var(--azul);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.gallery-empty p {
  color: var(--texto-suave);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--cinza);
  border: 1px solid rgba(203, 203, 204, 0.75);
  box-shadow: 0 12px 30px rgba(16, 43, 66, 0.08);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(16, 43, 66, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.82);
}

.gallery-item span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: rgba(16, 43, 66, 0.88);
  color: var(--branco);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 43, 66, 0.02) 0%,
    rgba(16, 43, 66, 0.58) 100%
  );
  pointer-events: none;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-more-area {
  display: none;
  justify-content: center;
  margin-top: 34px;
}

.gallery-more-area.active {
  display: flex;
}

.gallery-more-button {
  background-color: var(--azul);
  color: var(--branco);
  border: 0;
  cursor: pointer;
}

.gallery-more-button:hover {
  background-color: var(--azul-medio);
  color: var(--branco);
}

/* Image modal */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.84);
}

.image-modal.active {
  display: flex;
}

.image-modal-img {
  max-width: min(1100px, 100%);
  max-height: 86svh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.image-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background-color: var(--branco);
  color: var(--azul);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.image-modal-close:hover {
  background-color: var(--azul);
  color: var(--branco);
  transform: scale(1.06);
}

/* Testimonials */

.testimonials-section {
  background-color: var(--cinza-claro);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card p {
  color: var(--texto-suave);
  margin-bottom: 20px;
}

.testimonial-card strong {
  color: var(--azul);
}

/* Contact */

.contact-section {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 34%),
    var(--azul);
  color: var(--branco);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.contact-text h2 {
  color: var(--branco);
}

.contact-text p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 650px;
}

.contact-box {
  background-color: var(--branco);
  color: var(--azul);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 12px;
  box-shadow: var(--sombra);
}

.contact-box h3 {
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.contact-box .btn-primary {
  background-color: var(--azul);
  color: var(--branco);
  width: 100%;
}

.contact-box .btn-primary:hover {
  background-color: var(--azul-medio);
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(16, 43, 66, 0.18);
  color: var(--azul);
  font-weight: 800;
  word-break: break-word;
}

.contact-link:hover {
  background-color: var(--cinza-claro);
}

/* Footer */

.footer {
  background-color: var(--branco);
  border-top: 1px solid rgba(203, 203, 204, 0.7);
  padding: 18px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  width: 110px;
  margin: 0 auto;
}

.footer-powered {
  color: var(--azul);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}

.footer-powered strong {
  font-weight: 900;
}

.footer-empty {
  min-height: 1px;
}

/* Responsivo */

@media (max-width: 1180px) {

  .differentials-grid,
  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 82px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: calc(100svh - var(--header-height));
    overflow-y: auto;
    background-color: var(--branco);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px 20px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--cinza);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .hero-content,
  .about-content,
  .contact-content,
  .works-map-area {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .works-map {
    min-height: 380px;
  }

  .map-info-button {
    width: 100%;
  }

  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 48px) 0 64px;
  }

  .hero-buttons,
  .btn {
    width: 100%;
  }

  .differentials-grid,
  .process-steps,
  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .process-step,
  .testimonial-card {
    min-height: auto;
  }

  .works-map {
    min-height: 330px;
  }

  .gallery-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter {
    flex-shrink: 0;
  }

  .gallery-grid {
    gap: 18px;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 240px;
  }

  .image-modal {
    padding: 16px;
  }

  .image-modal-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .image-modal-img {
    max-height: 82svh;
    border-radius: 10px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-powered {
    text-align: center;
    order: 2;
  }

  .footer-empty {
    display: none;
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-card,
  .about-text-card,
  .feature-card,
  .process-step,
  .testimonial-card,
  .contact-box {
    padding: 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2,
  .contact-text h2 {
    font-size: 1.85rem;
  }

  .works-map {
    min-height: 300px;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 220px;
  }

  .gallery-item span {
    left: 14px;
    bottom: 14px;
    font-size: 0.7rem;
  }
}