:root {
  color-scheme: dark;
  --page-background: #071322;
  --header-background: rgba(4, 18, 32, 0.28);
  /* Ajustar ao azul oficial quando a identidade da marca for fornecida. */
  --brand-blue: #278bdb;
  --text: #e2e7ee;
  --header-height: 54px;
  --content-width: 1200px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

* { box-sizing: border-box; }

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--page-background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

/* Sobreposto: o banner começa no topo, atrás do cabeçalho. */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: var(--header-background);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgb(255 255 255 / 3%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 24px, var(--content-width));
  gap: 8px;
  min-height: var(--header-height);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  width: 55.2px;
  height: 39.1px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  visibility: hidden;
}

.brand-logo.is-loaded { visibility: visible; }

.hero {
  display: block;
  margin: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.hero picture,
.hero img {
  display: block;
  width: 100%;
}

.hero img { height: auto; }

.navigation { flex-shrink: 0; }

.navigation ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #d3dee8;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

a:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
}

.navigation a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 16px;
  height: 1px;
  background: var(--brand-blue);
  transform: translateX(-50%) scaleX(0);
  transition: transform 160ms ease;
}

.navigation a:focus-visible,
.navigation a[aria-current="location"] { color: var(--brand-blue); }

.navigation a:focus-visible::after,
.navigation a[aria-current="location"]::after { transform: translateX(-50%) scaleX(1); }

@media (hover: hover) {
  .navigation a:hover { color: var(--brand-blue); }
  .navigation a:hover::after { transform: translateX(-50%) scaleX(1); }
}

@media (min-width: 375px) {
  .header-inner { width: min(100% - 32px, var(--content-width)); }
  .brand { width: 73.6px; }
  .navigation ul { gap: 8px; }
}

@media (min-width: 390px) {
  .brand { width: 82.8px; }
  .navigation a { font-size: 12.5px; }
}

@media (min-width: 414px) {
  .brand { width: 92px; }
  .navigation ul { gap: 10px; }
}

@media (min-width: 768px) {
  .header-inner { width: min(100% - 64px, var(--content-width)); }
  .brand { width: 128.8px; height: 43.7px; }
  .navigation ul { gap: 24px; }
  .navigation a { font-size: 13px; }
}

@media (min-width: 1024px) {
  :root { --header-height: 68px; }
  .brand { width: 165.6px; height: 48.3px; }
  .navigation ul { gap: 32px; }
  .navigation a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .navigation a,
  .navigation a::after { transition: none; }
}

/* Serviços — estilos limitados à seção. */
.services {
  padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px);
  /* Transicao restrita ao fundo: navy do Hero se dissipa no tom quase preto. */
  background-color: #040d17;
  background-image:
    radial-gradient(ellipse 85% 280px at 50% 0, rgb(39 139 219 / 5%), transparent 100%),
    linear-gradient(to bottom, #071322 0, rgb(7 19 34 / 0%) 320px);
  background-repeat: no-repeat;
  font-family: "Manrope", sans-serif;
  color: #e6eef5;
}

.services-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgb(84 129 165 / 14%);
  border-radius: 6px;
  background: #122332;
}

/* A imagem reserva a área fotográfica mesmo antes de o PNG existir. */
.service-image {
  display: block;
  width: 100%;
  height: clamp(144px, 42vw, 220px);
  object-fit: cover;
  visibility: hidden;
}

.service-image.is-loaded { visibility: visible; }

.service-content {
  width: 100%;
  padding: 13px 16px 15px;
  background: #0b1b2b;
}

.service-content h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-description {
  margin: 6px 0 0;
  color: #bdccd9;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .services-list { gap: 20px; }
  .service { display: flex; min-height: 320px; align-items: center; }
  .service-image { position: absolute; inset: 0; z-index: -2; height: 100%; }
  .service::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgb(4 18 32 / 95%) 0%, rgb(4 18 32 / 80%) 28%, rgb(4 18 32 / 30%) 60%, rgb(4 18 32 / 0%) 85%);
    pointer-events: none;
  }
  .service-content { max-width: 420px; padding: 40px; background: transparent; }
  .service-content h2 { font-size: 28px; }
  .service-content h2::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 14px;
    background: var(--brand-blue);
  }
  .service-description { margin-top: 18px; font-size: 14px; font-weight: 600; line-height: 1.7; }
}

@media (min-width: 1024px) {
  .service { min-height: 340px; }
  .service-content { max-width: 440px; padding: 48px; }
}

/* Identificação semântica preservada sem texto visível nas artes mobile. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.service-picture { display: contents; }

@media (max-width: 767px) {
  #servicos .services-list { gap: 12px; }
  #servicos .service-item { border: 0; border-radius: 4px; }
  #servicos .service-content { display: none; }
  #servicos .service-item::before { content: none; }
  #servicos .service-picture { display: block; }
  #servicos .service-image {
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: contain;
  }
  /* Após carregar, respeita a proporção real da arte, sem cortes. */
  #servicos .service-image.is-loaded { aspect-ratio: auto; }
}

/* Diferenciais: transição do quase preto de Serviços para navy profundo. */
.differences {
  padding-block: clamp(40px, 5vw, 64px);
  background-color: #071728;
  background-image:
    linear-gradient(to bottom, #040d17, rgb(4 13 23 / 0%) 300px),
    radial-gradient(ellipse 85% 340px at 55% 0, rgb(39 139 219 / 5%), transparent 100%);
  background-repeat: no-repeat;
  font-family: "Manrope", sans-serif;
  color: #e6eef5;
}

.differences-list {
  display: grid;
  gap: 32px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.difference {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
}

.difference-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0;
  color: var(--section-accent);
}

.difference h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.difference p {
  max-width: 280px;
  margin: 7px auto 0;
  color: #bdccd9;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .difference h3 { font-size: 18px; }
  .difference p { font-size: 15px; }
}

@media (min-width: 1024px) {
  .differences-list { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* Sistema compartilhado de abertura das seções. */
.services,
.differences { --section-accent: #3289c7; }

.section-container {
  width: min(100% - 32px, var(--content-width));
  margin-inline: auto;
}

.section-heading {
  max-width: 600px;
  margin: 0 auto 32px;
  font-family: "Manrope", sans-serif;
  text-align: center;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--section-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: clamp(18px, 6vw, 32px);
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--section-accent));
  opacity: 0.65;
}

.section-eyebrow::after { transform: rotate(180deg); }

.section-title {
  max-width: 520px;
  margin: 0 auto;
  color: #e6eef5;
  font-size: clamp(25px, 7.1vw, 30px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-title-accent { display: block; color: var(--section-accent); }

.section-description {
  max-width: 460px;
  margin: 16px auto 0;
  color: #bdccd9;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .section-container { width: min(100% - 64px, var(--content-width)); }
  .section-heading { margin-bottom: 36px; }
}

/* Avaliações: uma composição central, com controles fora do texto. */
.reviews {
  --section-accent: #3289c7;
  padding-block: clamp(40px, 5vw, 64px);
  background-color: #040d17;
  background-image: linear-gradient(to bottom, #071728, rgb(7 23 40 / 0%) 320px);
  background-repeat: no-repeat;
  font-family: "Manrope", sans-serif;
  color: #e6eef5;
}

.reviews-carousel { max-width: 800px; margin-inline: auto; }
.reviews-stage {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
}

/* Todos ocupam a mesma célula: o maior texto define a altura, sem saltos. */
.reviews-slides {
  display: grid;
  min-width: 0;
  border: 1px solid rgb(111 153 187 / 16%);
  border-radius: 10px;
  background: #0a1929;
  touch-action: pan-y pinch-zoom;
}

.review-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.review-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.review-stars { margin: 0 0 16px; color: #d8b366; font-size: 17px; letter-spacing: 0.12em; line-height: 1; }
.review-slide blockquote { margin: 0 0 22px; font-size: 14px; font-weight: 400; line-height: 1.65; }
.review-slide blockquote p { margin: 0; }
.review-author { display: flex; align-items: center; gap: 10px; margin-top: auto; text-align: left; }
.review-avatar { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #142b40; color: #a7c5dc; font-size: 13px; }
.review-author strong { display: block; font-size: 14px; font-weight: 600; }
.review-location { display: block; margin-top: 3px; font-size: 12px; color: #a8bacb; }
.review-arrow { display: grid; place-items: center; width: 28px; height: 36px; padding: 0; border: 0; background: transparent; color: #b8cddd; cursor: pointer; position: relative; }
.review-arrow::before { content: ""; position: absolute; width: 26px; height: 26px; border: 1px solid rgb(111 153 187 / 24%); border-radius: 50%; }
.review-arrow svg { width: 16px; height: 16px; }
.review-indicators { display: flex; justify-content: center; gap: 2px; margin-top: 14px; }
.review-indicators button { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.review-indicators button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #344a5e; }
.review-indicators button[aria-current="true"]::before { background: var(--section-accent); }
.reviews button:focus-visible, .reviews-slides:focus-visible { outline: 2px solid var(--section-accent); outline-offset: 3px; }
@media (hover: hover) { .review-arrow:hover { color: var(--section-accent); } }
@media (min-width: 390px) {
  .reviews-stage { gap: 6px; }
  .review-slide { padding: 26px 20px; }
  .review-slide blockquote { font-size: 15px; }
}
@media (min-width: 768px) {
  .reviews-stage { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 20px; }
  .review-arrow { width: 40px; height: 44px; }
  .review-arrow::before { width: 36px; height: 36px; }
  .review-slide { padding: 36px 40px; }
  .review-slide blockquote { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .review-slide { transition: none; } }

/* Scroll reveal: ativado por JS apenas com suporte e sem movimento reduzido. */
.scroll-reveal-enabled [data-scroll-reveal] {
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.scroll-reveal-enabled [data-scroll-reveal="fade-up"] { transform: translateY(18px); }
.scroll-reveal-enabled [data-scroll-reveal="fade-up"] {
  transition-property: opacity, transform;
}
.scroll-reveal-enabled [data-scroll-revealed] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-enabled [data-scroll-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }
}

/* Arte integral, sem espacamento adicional entre as secoes existentes. */
.region-banner { margin: 0; padding: 0; }
.region-banner img { display: block; width: 100%; height: auto; }

/* Dúvidas: cabeçalho compartilhado e accordion em uma coluna. */
.faq {
  --section-accent: #3289c7;
  padding-block: clamp(40px, 5vw, 64px);
  background-color: #071728;
  background-image: linear-gradient(to bottom, #040d17, rgb(4 13 23 / 0%) 300px);
  background-repeat: no-repeat;
  font-family: "Manrope", sans-serif;
  color: #e6eef5;
}
.faq-list { display: grid; gap: 10px; max-width: 800px; margin-inline: auto; }
.faq-item { border: 1px solid rgb(111 153 187 / 16%); border-radius: 8px; background: rgb(10 25 41 / 65%); }
.faq-item h3 { margin: 0; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e6eef5;
  font: 600 14px/1.45 "Manrope", sans-serif;
  text-align: left;
  cursor: pointer;
}
.faq-question > span:first-child { min-width: 0; }
.faq-question:focus-visible { outline: 2px solid var(--section-accent); outline-offset: 3px; }
.faq-icon { position: relative; flex: 0 0 18px; height: 18px; color: var(--section-accent); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 8px; left: 2px; width: 14px; height: 1.5px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); transition: transform 180ms ease, opacity 180ms ease; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(0); opacity: 0; }
.faq-answer { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 180ms ease, visibility 180ms; }
.faq-answer[aria-hidden="false"] { grid-template-rows: 1fr; visibility: visible; }
.faq-answer-inner { min-height: 0; overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 16px 18px; color: #bdccd9; font-size: 14px; font-weight: 400; line-height: 1.6; }
@media (min-width: 768px) {
  .faq-question { padding-inline: 20px; font-size: 15px; }
  .faq-answer p { padding-inline: 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer, .faq-icon::after { transition: none; }
}

/* Assinatura de encerramento: reutiliza logo, container e paleta existentes. */
.site-footer {
  padding-block: 28px 24px;
  border-top: 1px solid rgb(111 153 187 / 10%);
  background: var(--page-background);
  font-family: "Manrope", sans-serif;
  text-align: center;
}
.footer-logo { display: block; width: 112px; max-width: 100%; height: auto; margin-inline: auto; }
.footer-accent { display: block; width: 24px; height: 1px; margin: 14px auto; background: var(--brand-blue); }
.footer-copyright { margin: 0; color: #bdccd9; font-size: 12px; font-weight: 400; line-height: 1.6; text-wrap: balance; }

/* Reorganizacao exclusiva do header mobile; superficie original preservada. */
.navigation-icon { display: none; }
@media (max-width: 767px) {
  .site-header .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding-block: 4px;
  }
  .site-header .brand { width: 160px; height: 55px; }
  .site-header .brand-logo { object-position: center; }
  .site-header .navigation { width: 100%; }
  .site-header .navigation ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .site-header .navigation a {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    font-size: 11.5px;
  }
  .site-header .navigation-icon { display: block; width: 18px; height: 18px; color: var(--brand-blue); }
  .site-header .navigation a::after { bottom: 0; }
}

.whatsapp-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.whatsapp-float svg { display: block; width: 30px; height: 30px; }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
  .whatsapp-float:hover {
    transform: translateY(-2px);
    background: #20bd5a;
    box-shadow: 0 7px 18px rgb(0 0 0 / 28%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
