
:root {
  --azul: #12365a;
  --verde: #4d9586;
  --preto: #111;
  --branco: #fff;
  --cinza: #596572;
  --fundo: #f5f8f7;
  --borda: #dce6e3;
  --max: 1180px;
  --raio: 18px;
  --sombra: 0 12px 35px rgba(18, 54, 90, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--preto);
  background: var(--branco);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 1.5rem), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: .75rem;
  z-index: 9999;
  padding: .75rem 1rem;
  color: var(--branco);
  background: var(--azul);
  border-radius: 0 0 10px 10px;
  font-weight: 800;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(18,54,90,.10);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--azul);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--azul);
  color: var(--branco);
  font-size: .85rem;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--borda);
  border-radius: 10px;
  background: var(--branco);
  color: var(--azul);
  cursor: pointer;
  font-size: 1.2rem;
}

.nav-list {
  position: absolute;
  top: calc(100% + .5rem);
  left: .75rem;
  right: .75rem;
  display: none;
  flex-direction: column;
  gap: .2rem;
  padding: .65rem;
  margin: 0;
  list-style: none;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 14px;
  box-shadow: var(--sombra);
}

.nav-list.is-open { display: flex; }

.nav-list a {
  display: block;
  padding: .8rem .85rem;
  border-radius: 9px;
  font-weight: 800;
  font-size: .94rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--azul);
  background: var(--fundo);
}

.nav-list .nav-cta {
  color: var(--branco);
  background: var(--azul);
  text-align: center;
}
.nav-list .nav-cta:hover { color: var(--branco); background: var(--verde); }

.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(77,149,134,.18), transparent 30%),
    radial-gradient(circle at 5% 90%, rgba(18,54,90,.09), transparent 34%),
    var(--branco);
}

.hero::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -150px;
  bottom: -155px;
  border: 55px solid rgba(77,149,134,.11);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .85rem;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--azul);
  line-height: 1.12;
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: .2rem;
  font-size: clamp(2.7rem, 13vw, 5.8rem);
}

h2 { font-size: clamp(2rem, 7vw, 3.25rem); }
h3 { font-size: 1.2rem; }

.hero-subtitle {
  margin: 0 0 1.1rem;
  color: var(--preto);
  font-size: clamp(1.15rem, 4vw, 1.6rem);
  font-weight: 800;
}

.lead {
  max-width: 740px;
  margin: 0 auto 1.75rem;
  color: var(--cinza);
  font-size: 1.02rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .75rem 1.15rem;
  border: 2px solid var(--azul);
  border-radius: 10px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

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

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

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

.section { padding-block: clamp(4rem, 10vw, 7rem); }
.section-alt { background: var(--fundo); }

.section-heading {
  max-width: 730px;
  margin-bottom: 2rem;
}

.section-heading h2 { margin-bottom: .7rem; }
.section-heading p { margin: 0; color: var(--cinza); }

.grid { display: grid; gap: 1rem; }

.services-grid { grid-template-columns: 1fr; }

.card {
  padding: 1.4rem;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  box-shadow: 0 5px 22px rgba(18,54,90,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: var(--azul);
  background: rgba(77,149,134,.14);
  font-weight: 900;
}

.card h3 { margin-bottom: .55rem; }
.card p { margin: 0 0 1rem; color: var(--cinza); }

.text-link { color: var(--azul); font-weight: 900; }
.text-link:hover { color: var(--verde); }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3rem);
  color: var(--branco);
  background: var(--azul);
  border-radius: 25px;
}

.panel h2, .panel h3 { color: var(--branco); }
.panel p { color: rgba(255,255,255,.88); }

.panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -130px;
  bottom: -150px;
  border: 40px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.check-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 1.35rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--verde);
  font-weight: 900;
}

.page-hero {
  padding-block: clamp(3.7rem, 10vw, 6.5rem);
  background: linear-gradient(135deg, var(--fundo), var(--branco));
  border-bottom: 1px solid var(--borda);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 10vw, 4.7rem);
  max-width: 850px;
}

.page-hero > .container > p:last-child {
  max-width: 780px;
  color: var(--cinza);
  font-size: 1.05rem;
}

.breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--cinza);
  font-size: .88rem;
}
.breadcrumb a { color: var(--azul); font-weight: 800; }

.service-layout {
  display: grid;
  gap: 2.5rem;
}

.prose h2 { margin-top: 2.2rem; font-size: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--cinza); }
.prose ul { padding-left: 1.2rem; }

.side-card {
  padding: 1.2rem;
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
}

.side-card h2 { font-size: 1.1rem; }
.side-card ul { padding: 0; margin: 0; list-style: none; }
.side-card li + li { border-top: 1px solid var(--borda); }
.side-card a { display: block; padding: .7rem .2rem; color: var(--azul); font-weight: 800; }

.portfolio-grid { grid-template-columns: 1fr; }

.portfolio-item {
  min-height: 245px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--branco);
  background: linear-gradient(145deg, var(--azul), var(--verde));
  border-radius: var(--raio);
}

.portfolio-item::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -75px;
  width: 190px;
  height: 190px;
  border: 35px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.portfolio-item h3 { color: var(--branco); margin-bottom: .4rem; }
.portfolio-item p { margin: 0; color: rgba(255,255,255,.86); }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1.1rem;
  border: 1px solid var(--borda);
  border-radius: 14px;
}
.stat strong { display: block; color: var(--azul); font-size: 1.6rem; }
.stat span { color: var(--cinza); font-size: .9rem; }

.cta {
  color: var(--branco);
  background: var(--verde);
  text-align: center;
}

.cta h2 { color: var(--branco); }
.cta p { max-width: 700px; margin: 0 auto 1.5rem; color: rgba(255,255,255,.9); }

.site-footer {
  padding-block: 3rem 1.4rem;
  color: rgba(255,255,255,.76);
  background: #0c273f;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.site-footer h2, .site-footer h3 { color: var(--branco); }
.footer-links { display: grid; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.site-footer a:hover { color: var(--branco); }

.copyright {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
}

.whatsapp-float {
  position: fixed;
  right: 14px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1100;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--branco);
  background: #25D366;
  box-shadow: 0 9px 24px rgba(0,0,0,.20);
  animation: whatsapp-pulse 1.65s ease-in-out infinite;
}

.whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; }

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(37,211,102,.35);
  border-radius: 50%;
  animation: whatsapp-ring 1.65s ease-in-out infinite;
}

.whatsapp-label {
  position: absolute;
  right: 66px;
  white-space: nowrap;
  padding: .45rem .65rem;
  color: var(--branco);
  background: var(--azul);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 800;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-label { opacity: 1; transform: none; }

@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.08); }
}
@keyframes whatsapp-ring {
  0%, 100% { transform: scale(.95); opacity: .25; }
  50% { transform: scale(1.15); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .container { width: min(calc(100% - 2rem), var(--max)); }
  .button-group { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .btn { width: auto; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .navbar { min-height: 76px; }
  .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-list a { padding: .6rem .8rem; }
  .hero-content { padding-block: 6rem; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 5rem); }
  .service-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .side-card { position: sticky; top: 100px; }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
