/* ===== TOKENS ===== */
:root {
  --navy: #062B60;
  --navy-light: #0d3d82;
  --white: #FDFCFC;
  --orange: #FE9412;
  --gray: #979392;
  --gray-tint: #F4F3F2;
  --verde-whatsapp: #25D366; /* cor oficial do WhatsApp, usada só nos botões que levam pra lá */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(6, 43, 96, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

[id] { scroll-margin-top: 76px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -999px;
  z-index: 1000;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--tint { background: var(--gray-tint); }
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark h2 { color: var(--white); }

.section > .container > h2 {
  text-align: center;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  margin-bottom: 40px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Versão mais rápida e sutil, usada nos cards de Diferenciais, Serviços
   e nas fotos do Portfólio — cada card/foto revela por conta própria */
.card.reveal,
.carrossel__item.reveal {
  transform: translateY(14px);
  transition: opacity .35s ease-out, transform .35s ease-out;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
}

/* Botão verde do WhatsApp com texto branco, no mesmo estilo do botão oficial do WhatsApp */
.btn--whatsapp {
  background: var(--verde-whatsapp);
  color: var(--white);
  border: none;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(6, 43, 96, 0.16);
}
.btn--whatsapp:active {
  transform: scale(.97); /* efeito de "afundar" ao clicar/tocar */
}

.btn--outline {
  background: transparent;
  border: 1.5px solid currentColor;
  cursor: pointer;
  padding: 10px 20px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(6,43,96,.08);
  transition: box-shadow .2s ease-in-out;
}
.nav.is-scrolled {
  box-shadow: 0 4px 18px rgba(6,43,96,.16);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 38px;
  width: auto;
}

.nav__toggle {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.nav__menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
  gap: 4px;
  transform: translateY(-140%);
  opacity: 0;
  transition: transform .25s ease-in-out, opacity .25s ease-in-out;
  box-shadow: 0 8px 18px rgba(6,43,96,.1);
}
.nav__menu.is-open {
  transform: translateY(0);
  opacity: 1;
}
.nav__menu a {
  color: var(--navy);
  padding: 12px 4px;
  border-bottom: 1px solid rgba(6,43,96,.08);
  font-weight: 500;
  transition: color .15s ease-out, transform .15s ease-out;
}
.nav__menu a:hover { color: var(--orange); }
.nav__menu a.is-active:not(.nav__cta) { color: var(--orange); }
.nav__cta {
  margin-top: 8px;
  background: var(--orange);
  color: var(--navy) !important;
  border-radius: 999px;
  text-align: center;
  padding: 12px !important;
  border-bottom: none !important;
  font-weight: 700;
}
.nav__cta:active {
  transform: scale(.97); /* efeito de "afundar" ao clicar/tocar */
}

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    padding: 0;
    transform: none;
    opacity: 1;
    gap: 28px;
    box-shadow: none;
  }
  .nav__menu a { border-bottom: none; padding: 0; }
  .nav__cta {
    margin-top: 0;
    padding: 8px 18px !important; /* levemente menor no computador */
    background: rgba(254, 148, 18, 0.88); /* mesma cor laranja, com as bordas levemente translúcidas */
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(253,252,252,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253,252,252,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, transparent 35%, black 78%);
  mask-image: radial-gradient(ellipse at 50% 40%, transparent 35%, black 78%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero__logo {
  /* logo maior, mas com margem menor embaixo — a altura total do hero
     (padding + logo + título + texto) fica praticamente igual à de antes */
  height: clamp(56px, 11vw, 110px);
  width: auto;
  margin: 0 auto clamp(2px, calc(20px - 1.5vw), 12px);
}
.hero h1 {
  /* tamanho inicial só até o JS calcular o valor exato que cabe numa linha só */
  font-size: clamp(1.3rem, 6vw, 2.6rem);
  margin-bottom: .4em;
}
.hero__subhead {
  /* tamanho inicial só até o JS calcular o valor exato que cabe numa linha só */
  font-size: clamp(.75rem, 3vw, 1.1rem);
  color: rgba(253,252,252,.85);
  margin-bottom: 0;
}

/* ===== CARDS ===== */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid rgba(151,147,146,.25);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gray-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background .2s ease-out, color .2s ease-out; /* bônus: destaca no hover (desktop) */
}
.card:hover .card__icon {
  background: rgba(254, 148, 18, .15);
  color: var(--orange);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.1rem; }
.card p { color: #3d4a5c; margin: 0; }

/* ===== STEPS ===== */
.steps {
  list-style: none;
  display: grid;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step__number {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: .2em; }
.step p { color: #3d4a5c; margin: 0; }

/* ===== PORTFOLIO (carrossel) ===== */
.carrossel {
  position: relative;
}
.carrossel__trilho {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* esconde a barra de rolagem nativa — quem navega usa as setas ou arrasta */
  scrollbar-width: none;
}
.carrossel__trilho::-webkit-scrollbar { display: none; }

.carrossel__item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(6, 43, 96, 0.06);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
  margin: 0;
}
.carrossel__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.carrossel__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* fundo visível enquanto a imagem carrega (efeito "lazy loading") */
  background: var(--gray-tint);
}
.carrossel__item figcaption {
  padding: 16px 18px;
  font-size: .95rem;
}

@media (min-width: 700px) {
  .carrossel__item { flex: 0 0 calc((100% - 2 * 20px) / 3); }
}

/* Setas do carrossel: discretas por padrão, se destacam só no hover */
.carrossel__seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 43, 96, .55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s ease-out, background .2s ease-out;
}
.carrossel__seta svg { width: 22px; height: 22px; }
.carrossel__seta:hover { opacity: 1; background: var(--navy); }
.carrossel__seta.is-desabilitada {
  opacity: .2;
  pointer-events: none;
}
.carrossel__seta--esquerda { left: 6px; }
.carrossel__seta--direita { right: 6px; }

/* Texto de autorização de uso das imagens, exigido pela LGPD */
.portfolio__aviso {
  text-align: center;
  color: var(--gray);
  font-size: .8rem;
  margin: 28px 0 0;
}

/* Chamada para o Instagram, logo abaixo das fotos do portfólio */
.portfolio__instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  width: fit-content;
  color: var(--navy);
  font-weight: 600;
  transition: color .15s ease-out;
}
.portfolio__instagram:hover { color: var(--orange); }

/* ===== TESTIMONIALS (empty state) ===== */
.testimonials-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  border: 1.5px dashed rgba(6,43,96,.25);
  border-radius: var(--radius);
  padding: 40px 32px;
  color: #3d4a5c;
}
.testimonials-empty svg { color: var(--orange); margin-bottom: 14px; }
.testimonials-empty p { margin: 0; }

/* ===== ABOUT ===== */
.about {
  max-width: 720px;
  text-align: center;
}
.about p { color: rgba(253,252,252,.88); font-size: 1.05rem; }
.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(253,252,252,.08);
  border: 1px solid rgba(253,252,252,.2);
  border-radius: 999px;
  padding: 12px 22px;
  margin-top: 8px;
  font-size: .9rem;
}
.about__badge svg { color: var(--orange); flex: 0 0 auto; }

/* ===== FAQ ===== */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: var(--gray-tint);
  border-radius: var(--radius);
  padding: 4px 20px;
  transition: background .2s ease-in-out;
}
.faq__item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
  transition: color .15s ease-out;
}
.faq__item summary:hover { color: var(--navy-light); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.3rem;
  color: var(--orange);
  display: inline-block;
  transition: transform .25s ease-in-out;
}
/* ".is-aberto" é controlada pelo js/faq.js, junto com a animação de altura —
   por isso não usamos mais o seletor [open] aqui (ele mudaria de estado
   antes da animação de fechar terminar) */
.faq__item.is-aberto { background: #eeece9; }
.faq__item.is-aberto summary::after { transform: rotate(45deg); }
.faq__item p {
  padding-bottom: 18px;
  color: #3d4a5c;
  margin: 0;
  overflow: hidden; /* necessário pra animação de altura não "vazar" o texto */
}

/* ===== CTA FINAL ===== */
.cta-final { text-align: center; }
.cta-final p { color: rgba(253,252,252,.85); margin-bottom: 1.6em; }

/* ===== FORMULÁRIO DE TRIAGEM ===== */
.formulario-triagem {
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  text-align: left;
}
.campo {
  display: grid;
  gap: 6px;
}
.campo label {
  color: rgba(253,252,252,.85);
  font-size: .85rem;
  font-weight: 600;
}
.campo input,
.campo select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(253,252,252,.25);
  background: rgba(253,252,252,.06);
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
}
.campo input::placeholder { color: rgba(253,252,252,.45); }
.campo select option { color: var(--navy); }
.campo input:focus,
.campo select:focus {
  border-color: var(--orange);
}
.formulario-triagem .btn { margin-top: 6px; }

/* ===== AVISO DE COOKIES (LGPD) ===== */
.aviso-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  box-shadow: 0 -4px 18px rgba(0,0,0,.2);
}
/* precisa ter mais especificidade que ".aviso-cookies", senão o "display" dos
   filhos acima sobrescreve o atributo "hidden" do HTML e o aviso nunca some */
.aviso-cookies[hidden] { display: none; }

.aviso-cookies__principal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.aviso-cookies p { margin: 0; font-size: .85rem; max-width: 640px; }

/* Botão "Saiba mais": parece um link, mas é um <button> (só abre/fecha o painel) */
.aviso-cookies__saiba-mais {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  color: inherit;
  text-decoration: underline;
  font-size: .85rem;
  cursor: pointer;
}
.aviso-cookies__saiba-mais:hover { color: var(--orange); }

.aviso-cookies__botoes {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.aviso-cookies .btn--outline {
  color: var(--white);
  border-color: rgba(253,252,252,.5);
}
.aviso-cookies .btn--outline:hover { border-color: var(--orange); color: var(--orange); }
.aviso-cookies .btn--aceitar {
  background: var(--orange);
  color: var(--navy);
  border: none;
  padding: 10px 20px;
}

/* Painel de detalhes que abre com o botão "Saiba mais" */
.aviso-cookies__detalhes {
  max-width: 720px;
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .8rem;
  line-height: 1.5;
  text-align: left;
}
.aviso-cookies__detalhes p { max-width: none; margin: 0 0 8px; }
.aviso-cookies__detalhes p:last-child { margin-bottom: 0; }
.aviso-cookies__detalhes a { color: var(--white); text-decoration: underline; }
.aviso-cookies__detalhes a:hover { color: var(--orange); }

@media (min-width: 640px) {
  .aviso-cookies__principal { flex-direction: row; justify-content: center; text-align: left; }
}

/* Enquanto o aviso de cookies está visível, sobe o botão flutuante do WhatsApp
   para eles não ficarem um em cima do outro */
body.tem-aviso-cookies .whatsapp-float {
  bottom: 96px;
}
@media (min-width: 640px) {
  body.tem-aviso-cookies .whatsapp-float {
    bottom: 90px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #041d43;
  color: var(--white);
  padding: 48px 0 24px;
}
.footer__inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
}
.footer__logo { height: 34px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: rgba(253,252,252,.7); font-size: .9rem; margin: .2em 0; }
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact a { font-size: .95rem; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(253,252,252,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease-out, color .15s ease-out;
}
.footer__social a:hover {
  background: var(--orange);
  color: var(--navy);
}
.footer__copy {
  text-align: center;
  color: rgba(253,252,252,.5);
  font-size: .8rem;
  margin: 40px 0 0;
}
.footer__top {
  color: rgba(253,252,252,.7);
  text-decoration: underline;
}
.footer__top:hover { color: var(--orange); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--verde-whatsapp);
  color: var(--white);
  display: flex;
  transition: bottom .2s ease-in-out, transform .15s ease-out;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 200;
  animation: pulse 2.4s infinite;
}
.whatsapp-float:active {
  transform: scale(.97); /* efeito de "afundar" ao clicar/tocar */
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5), 0 6px 18px rgba(0,0,0,.25); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 6px 18px rgba(0,0,0,.25); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 6px 18px rgba(0,0,0,.25); }
}
