/* ===== RESET & BASE ===== */

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

:root {
  --blue: #063689;
  --blue-dark: #041f4f;
  --blue-light: #0d59d6;
  --bg: #ffffff;
  --bg-alt: #f2f5fa;
  --bg-mid: #e4eaf3;
  --text: #1a1a1a;
  --text-mid: #444444;
  --text-light: #777777;
  --white: #ffffff;
  --border: rgba(6, 54, 137, 0.12);
  --border-soft: rgba(0, 0, 0, 0.08);
  --font-title: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-blue: 0 4px 24px rgba(6, 54, 137, 0.25);
  --radius: 12px;

  /* Seções escuras */
  --dark-bg: var(--blue-dark);
  --dark-bg-alt: #03163a;
  --text-on-dark: #ffffff;
  --text-on-dark-mid: rgba(255, 255, 255, 0.75);
  --text-on-dark-light: rgba(255, 255, 255, 0.55);
  --border-on-dark: rgba(255, 255, 255, 0.12);
  --card-on-dark: rgba(255, 255, 255, 0.05);
  --card-on-dark-hover: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-color: var(--dark-bg) #ffffff;
  scrollbar-width: thin;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-title);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: var(--dark-bg); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-tag--on-dark {
  color: #7dd3fc;
}

.section-title {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 6px;
  transition: var(--transition);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 54, 137, 0.4);
}

/* Variante para uso sobre fundo escuro — o azul sólido do .btn-primary
   se mistura com fundos --dark-bg/--dark-bg-alt, então essa variante
   inverte para fundo branco com texto azul. */
.btn-primary--on-dark {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary--on-dark:hover {
  background: #e8f2f7;
  color: var(--blue-dark);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 6px;
  border: 1.5px solid var(--blue);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 6px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  /* env() evita o botao ficar sob a barra do Safari no iOS. */
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* O spread usa 0.01px em vez de 0 de propósito: o esbuild colapsa
   `0 0 0 0` para `0 0`, e o Safari não interpola box-shadows cujos
   keyframes tenham contagens de componentes diferentes — a animação
   simplesmente não roda. Um valor não-zero preserva os 4 componentes. */
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0.01px rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0.01px rgba(37,211,102,0); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .whatsapp-float {
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    width: 56px;
    height: 56px;
  }
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

/* "Reduzir movimento" so remove os deslocamentos de entrada.

   Tickers e o pulso do WhatsApp continuam rodando, alinhado com os
   demais projetos (lrmarcal, speedyfunilaria), que nao suprimem nada.

   A versao original disso usava `*, *::before, *::after` com
   !important e matava TODA animacao e transicao do site — era a causa
   do site ficar sem nenhuma animacao e piscar a cada toque. */
@media (prefers-reduced-motion: reduce) {
  .servicos__grid--visible .servico-card,
  .galeria__item {
    transform: none !important;
  }
}

/* ===== SCROLL MOBILE =====
   `scroll-behavior: smooth` some vezes conflita com animações de
   scroll (useInView/whileInView) no Android/iOS e trava o scroll.
   Em telas pequenas, o scroll fica nativo (sem smooth). */
@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: padding 0.35s ease, box-shadow 0.35s ease;
  /* Um passo abaixo de --blue: sobre o topo escuro da foto do hero, o
     mesmo tom do botao "Agendar revisao" lia mais claro do que o botao
     (que tem a foto clara em volta). Escurecer alinha a percepcao. */
  background: #052c72;
}

/* Sem backdrop-filter aqui de propósito: combinado com position:
   fixed, o Safari promove a página inteira a uma camada de composição
   e a reconstrói a cada repaint — a tela pisca a cada toque e as
   animações CSS sao descartadas antes de completar um ciclo. */
/* Mesma cor de fundo do estado inicial de proposito: trocar o tom no
   scroll dava um salto brusco de cor. Aqui so a altura e a sombra
   mudam, o que le como a barra "assentando" em vez de piscar. */
.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(3, 22, 58, 0.28);
}

.navbar.menu-open {
  background: #052c72;
}

.navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 0 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
}

.navbar__logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar__logo:hover .navbar__logo-img {
  transform: scale(1.05);
}

.navbar__links--desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.navbar__links--desktop a {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar__links--desktop a {
  position: relative;
  padding-bottom: 4px;
}

/* Sublinhado que cresce do centro — marca a seção em vista e responde
   ao hover, dando vida à barra sem poluir. */
.navbar__links--desktop a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #7dd3fc;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.28s ease;
}

.navbar__links--desktop a:hover::after,
.navbar__links--desktop a.ativo::after {
  width: 100%;
}

.navbar__links--desktop a:hover,
.navbar__links--desktop a.ativo {
  color: #7dd3fc;
}

.navbar__actions--desktop {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.navbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar__phone:hover {
  color: #7dd3fc;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.navbar__cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--blue);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .navbar__links--desktop,
  .navbar__actions--desktop {
    display: none;
  }

  .navbar__inner {
    padding: 0 16px;
  }

  .navbar__logo {
    margin-left: 0;
  }

  .navbar__logo-img {
    height: 42px;
  }

  .navbar__hamburger { display: flex; }

  .navbar__mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #052c72;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
  }

  .navbar__mobile-menu a {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 12px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
  }

  .navbar__mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar__mobile-menu .navbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border-color: #ffffff;
    color: var(--blue);
  }
}
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* CARROSSEL */
.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.active {
  opacity: 1;
}

/* OVERLAY DIAGONAL */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 20, 32, 0.94) 0%,
    rgba(5, 20, 32, 0.78) 40%,
    rgba(5, 20, 32, 0) 100%
  );
  z-index: 1;
}

/* CONTENT */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 108px 32px 72px;
  width: 100%;
  max-width: 720px;
  text-align: left;
}

/* BADGE */
.hero__badge {
  color: #7dd3fc;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* TITLE */
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(3, 18, 48, 0.45);
  text-transform: uppercase;
}

.hero__title-highlight {
  color: #4fc3ff;
  white-space: nowrap;
}

/* SUBTITLE */
.hero__subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 32px;
}

/* ACTIONS */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-outline--hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

/* STATS */
.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  align-self: flex-start;
  background: rgba(3, 18, 48, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 24px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-number {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.hero__stat-number--rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__stat-star {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero__stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.hero__stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
}

/* DOTS */
.hero__dots {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero__dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .hero__content { max-width: 100%; padding: 88px 20px 56px; }
  .hero__title { font-size: clamp(26px, 7vw, 40px); }
  .hero__subtitle { font-size: 14px; max-width: 100%; }
  .hero__dots { display: none; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(22px, 6.5vw, 32px); }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn-primary,
  .hero__actions .btn-outline--hero { text-align: center; justify-content: center; }
  /* Os tres stats ficam numa linha so: flex-wrap: nowrap impede a
     quebra e o min-width: 0 deixa os itens encolherem de verdade
     (por padrao um item flex nao encolhe abaixo do proprio conteudo). */
  .hero__stats {
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    padding: 12px 14px;
  }
  .hero__stat { min-width: 0; flex: 1; align-items: flex-start; }
  .hero__stat-number { font-size: 15px; white-space: nowrap; }
  .hero__stat-label { font-size: 10px; line-height: 1.25; white-space: nowrap; }
  .hero__stat-star { width: 13px; height: 13px; }
  .hero__stat-divider { height: 28px; flex-shrink: 0; }
}
