:root {
  --azul-escuro: #0d3b66;
  --azul-medio: #1a5f8a;
  --azul-claro: #4a90b8;
  --azul-agua: #7eb8d4;
  --branco: #ffffff;
  --cinza-claro: #f5f7fa;
  --cinza-texto: #4a5568;
  --cinza-escuro: #2d3748;
  --whatsapp: #25d366;
  --sombra: 0 4px 20px rgba(13, 59, 102, 0.12);
  --sombra-hover: 0 8px 30px rgba(13, 59, 102, 0.18);
  --radius: 12px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cinza-texto);
  background: var(--branco);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--branco);
  border-bottom: 1px solid rgba(13, 59, 102, 0.08);
  font-size: 0.9rem;
  color: var(--cinza-texto);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.25rem;
}
.topbar-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.topbar-pin { color: #e53e3e; flex-shrink: 0; }

.header {
  position: fixed;
  top: 33px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--sombra);
  transition: background .3s, box-shadow .3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  min-height: 70px;
  gap: 1rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 84px;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--azul-escuro);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-list a {
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  color: var(--azul-escuro);
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-list a:hover,
.nav-list a.nav-link-active {
  background: transparent;
  color: var(--azul-escuro);
}
.nav-list a.nav-link-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-list a:hover:not(.nav-link-active) {
  background: var(--azul-escuro);
  color: var(--branco);
  text-decoration: none;
}

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--whatsapp);
  color: var(--branco) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.btn-whatsapp-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: var(--branco) !important;
}
.btn-whatsapp-header svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .topbar { font-size: 0.85rem; }
  .header { top: 32px; }
  .menu-toggle { display: flex; }
  .btn-whatsapp-header { padding: 0.6rem 0.85rem; font-size: 0.85rem; }
  .nav {
    position: fixed;
    top: 102px;
    left: 0;
    right: 0;
    background: var(--branco);
    box-shadow: var(--sombra);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
    flex: none;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { display: block; padding: 0.75rem 1rem; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0a2d4a url("../images/background-hero.png") center / cover no-repeat;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 30, 51, 0.82);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20h40v40H20z' fill='none' stroke='%231a5f8a' stroke-width='0.4' opacity='0.2'/%3E%3Cpath d='M0 40h80M40 0v80' stroke='%231a5f8a' stroke-width='0.3' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.25;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--branco);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 4.75rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  opacity: 0.98;
  margin: 0 0 1.1rem;
  font-weight: 500;
}

.hero-desc {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.btn-hero-cta {
  background: var(--branco);
  color: var(--azul-escuro);
  padding: 1.1rem 2.5rem;
  font-size: 1.2rem;
}
.btn-hero-cta:hover {
  background: var(--cinza-claro);
  color: var(--azul-escuro);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-hover); }

.btn-primary {
  background: var(--whatsapp);
  color: var(--branco);
}
.btn-secondary {
  background: var(--branco);
  color: var(--azul-escuro);
  border: 2px solid var(--branco);
}
.btn-secondary:hover {
  background: transparent;
  color: var(--branco);
  border-color: var(--branco);
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--azul-escuro);
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--azul-claro);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

.servicos {
  background: var(--branco);
  padding: 5rem 0;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.servico-card {
  background: rgba(13, 59, 102, 0.04);
  border: 1px solid rgba(13, 59, 102, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.servico-card:hover {
  border-color: rgba(13, 59, 102, 0.15);
  box-shadow: 0 8px 24px rgba(13, 59, 102, 0.08);
}

.servico-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: rgba(13, 59, 102, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servico-icon {
  width: 28px;
  height: 28px;
  color: var(--cinza-texto);
}
.servico-icon--water {
  color: var(--azul-claro);
}

.servico-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.servico-card-desc {
  font-size: 1.05rem;
  color: var(--cinza-texto);
  line-height: 1.6;
  margin: 0;
}

.servicos-footer {
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--azul-escuro);
  font-style: italic;
  margin: 0;
}

.galeria .section-title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.galeria-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--cinza-texto);
  margin: -1.5rem auto 2rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.galeria-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform .2s, box-shadow .2s;
}
.galeria-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}

.galeria-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.sobre {
  position: relative;
  background: #3d2463;
  padding: 5rem 0;
  overflow: hidden;
}

.sobre-bg {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
}
.sobre-bg::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url("../images/back-aboutus.jpg") center / cover no-repeat;
  filter: blur(8px);
}
.sobre-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sobre-inner {
  position: relative;
  z-index: 1;
}

.sobre-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--branco);
  text-align: center;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sobre-line {
  width: 50px;
  height: 3px;
  background: var(--branco);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

.sobre-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.sobre-content p {
  margin: 0 0 1.1rem;
  color: var(--branco);
  font-size: 1.3rem;
  line-height: 1.75;
  opacity: 0.95;
}
.sobre-content p:last-child { margin-bottom: 0; }

.atendimento {
  background: var(--cinza-claro);
}

.atendimento .section-title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.atendimento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.atendimento-card {
  background: var(--branco);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  transition: transform .2s, box-shadow .2s;
}
.atendimento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}

.atendimento-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--cinza-texto);
}
.atendimento-icon svg { width: 100%; height: 100%; }
.atendimento-icon--map { color: #e53e3e; }
.atendimento-icon--emergency { color: #e53e3e; }
.atendimento-icon--payment { color: #b7791f; }

.atendimento-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin: 0 0 0.75rem;
}

.atendimento-card p {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--cinza-texto);
}

.atendimento-note {
  margin-top: 0.75rem !important;
  font-size: 1rem !important;
  color: var(--cinza-texto) !important;
  opacity: 0.9;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contato-grid { grid-template-columns: 1fr; }
}

.contato-info h3 {
  font-size: 1.25rem;
  color: var(--azul-escuro);
  margin: 0 0 0.5rem;
}
.contato-info p { margin: 0 0 1rem; color: var(--cinza-texto); }

.contato-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(37, 211, 102, 0.12);
  color: #1a7c3a;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.contato-whatsapp:hover {
  background: var(--whatsapp);
  color: var(--branco);
}
.contato-whatsapp-icon {
  font-size: 0.85rem;
  opacity: 0.9;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contato-form label {
  font-weight: 500;
  color: var(--azul-escuro);
  font-size: 0.95rem;
}
.contato-form input,
.contato-form textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color .2s;
}
.contato-form input:focus,
.contato-form textarea:focus {
  outline: none;
  border-color: var(--azul-claro);
}
.contato-form textarea { resize: vertical; min-height: 100px; }
.contato-form button { align-self: flex-start; margin-top: 0.25rem; }

.footer {
  background: var(--azul-escuro);
  color: var(--branco);
  padding: 1rem 1.25rem;
  text-align: center;
}
.footer-logo {
  height: 44px;
  margin: 0 auto 0.5rem;
  opacity: 0.95;
}
.footer p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--whatsapp);
  color: var(--branco);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  color: var(--branco);
}
.whatsapp-float svg { flex-shrink: 0; }

@media (max-width: 480px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 1rem; }
}
