:root {
  --blue-950: #031b33;
  --blue-900: #003f73;
  --blue-800: #064d83;
  --blue-600: #0875b8;
  --blue-300: #80d8f7;
  --silver: #d8e4ee;
  --ink: #102033;
  --muted: #647084;
  --line: #dce5ee;
  --surface: #ffffff;
  --soft: #f4f8fb;
  --shadow: 0 24px 70px rgba(3, 27, 51, 0.14);
  --radius: 8px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  color: #fff;
  background: var(--blue-600);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-900);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 27, 51, 0.64);
  backdrop-filter: blur(22px);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 32, 51, 0.08);
  box-shadow: 0 10px 32px rgba(3, 27, 51, 0.08);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: #fff;
  font-weight: 760;
  letter-spacing: 0;
}

.site-header.is-scrolled .brand,
.site-footer .brand {
  color: var(--blue-950);
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand span {
  font-size: 1rem;
  text-transform: uppercase;
}

.brand strong {
  color: var(--blue-300);
}

.site-header.is-scrolled .brand strong,
.site-footer .brand strong {
  color: var(--blue-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.93rem;
  font-weight: 650;
}

.site-header.is-scrolled .nav-links {
  color: var(--ink);
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a:focus-visible {
  color: var(--blue-900);
  background: rgba(8, 117, 184, 0.08);
}

.nav-links .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-300));
  box-shadow: 0 14px 28px rgba(8, 117, 184, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.site-header.is-scrolled .menu-toggle {
  background: rgba(3, 27, 51, 0.06);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 4px;
}

.site-header.is-scrolled .menu-toggle span {
  background: var(--blue-950);
}

.section {
  padding: 104px 0;
}

.section-muted {
  background: var(--soft);
}

.section-dark {
  color: #fff;
  background: var(--blue-950);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 136px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 27, 51, 0.94) 0%, rgba(3, 27, 51, 0.72) 42%, rgba(3, 27, 51, 0.34) 100%),
    linear-gradient(180deg, rgba(3, 27, 51, 0.1) 0%, rgba(3, 27, 51, 0.72) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.48fr);
  gap: 48px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--blue-300);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 920px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.05rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 780;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-300));
  box-shadow: 0 18px 36px rgba(8, 117, 184, 0.26);
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px);
}

.hero-panel img {
  margin-bottom: 18px;
}

.hero-panel p,
.hero-panel li {
  color: rgba(255, 255, 255, 0.82);
}

.hero-panel ul {
  margin: 20px 0 0;
  padding-left: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: 64px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 1.06fr) minmax(0, 0.94fr);
}

.section-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--blue-800);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.image-stack {
  position: relative;
}

.image-main,
.wide-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 300px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(3, 27, 51, 0.18);
  backdrop-filter: blur(16px);
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 46px rgba(3, 27, 51, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(3, 27, 51, 0.12);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-body {
  padding: 24px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: var(--blue-900);
  border-radius: 999px;
  background: #e9f6fc;
  font-weight: 900;
}

.service-body p {
  color: var(--muted);
}

.service-body h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.service-body a {
  color: var(--blue-800);
  font-weight: 800;
}

.feature-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 248, 251, 0.8) 100%);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 680;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-300));
}

.soft-dark {
  background:
    linear-gradient(135deg, rgba(3, 27, 51, 0.98), rgba(0, 63, 115, 0.96)),
    url("/assets/images/padrao-azul-zenvor.webp") center / cover;
}

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

.benefit {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  grid-auto-rows: 240px;
  gap: 14px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery img:nth-child(1),
.gallery img:nth-child(4) {
  grid-row: span 2;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    linear-gradient(135deg, rgba(3, 27, 51, 0.96), rgba(0, 63, 115, 0.88)),
    url("/assets/images/cftv-monitores.webp") center / cover;
}

.cta-content {
  max-width: 880px;
}

.cta-content h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.cta-content p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-list a {
  display: inline-flex;
  color: var(--blue-800);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 780;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(8, 117, 184, 0.12);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--blue-800);
  font-weight: 760;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  color: #fff;
  border-radius: 999px;
  background: #19b361;
  box-shadow: 0 18px 36px rgba(25, 179, 97, 0.34);
  font-weight: 850;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  padding: 156px 0 84px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 27, 51, 0.96), rgba(0, 63, 115, 0.86)),
    url("/assets/images/padrao-azul-zenvor.webp") center / cover;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

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

.detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--blue-900);
    background: rgba(8, 117, 184, 0.08);
  }

  .nav-links .nav-cta {
    justify-self: start;
  }

  .hero-grid,
  .split,
  .split.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .benefit-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 68px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .section {
    padding: 72px 0;
  }

  .hero,
  .page-hero {
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-panel,
  .metric-card {
    position: static;
  }

  .metric-card {
    margin-top: 14px;
  }

  .actions,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .benefit-grid,
  .detail-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-auto-rows: 230px;
  }

  .gallery img:nth-child(1),
  .gallery img:nth-child(4) {
    grid-row: span 1;
  }

  .contact-form {
    padding: 20px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
