/* =========================================================
   AMAZONAS WINDBANNER — style.css
   Palette extraída da logo: verde-folha (leaf) + azul-rio (wave).
   Terceira cor (dourado-areia) derivada para dar contraste em CTAs
   sobre fundo escuro — remete ao sol/areia dos rios amazonenses.
   Tipografia: Plus Jakarta Sans (peso 800 nos títulos), diferente
   da Montserrat usada no template-base, para variar a linguagem
   visual entre clientes.
   ========================================================= */

:root {
  /* Cores da marca (derivadas da logo) */
  --blue:        #2F84C1;   /* azul-rio — extraído da fita azul da logo */
  --deep:        #123D24;   /* verde profundo — headers escuros, footer (antes era azul) */
  --green:       #6FA827;   /* verde-folha — extraído da folha da logo (também usado no botão do WhatsApp) */
  --lime:        #8DD73E;   /* verde claro vivo — usado onde antes havia dourado/amarelo */
  --sky:         #77AFD6;   /* azul claro — variação mais suave do azul-rio */
  --cream:       #F4F9F4;   /* fundo claro, leve tom esverdeado (folhagem) */
  --ink:         #10241B;   /* texto principal — verde bem escurecido */
  --ink-soft:    #4C6357;   /* texto secundário */
  --white:       #FFFFFF;

  /* Raio assimétrico (2 cantos vivos + 2 arredondados) — variação de
     linguagem visual em relação ao raio uniforme do template-base */
  --radius-sm: 8px;
  --radius-md: 10px 28px 10px 28px;
  --radius-lg: 12px 46px 12px 46px;
  --shadow-sm: 0 4px 16px rgba(18,61,36,0.10);
  --shadow-md: 0 12px 32px rgba(18,61,36,0.16);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --container: 1180px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.2px; margin: 0 0 .5em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Proteção de conteúdo (client-side) ---------- */
body.no-copy {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
body.no-copy img { -webkit-user-drag: none; pointer-events: auto; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}
.eyebrow--light { color: var(--lime); }

.section-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--deep); }
.section-title--light { color: var(--white); }
.section-lede { color: var(--ink-soft); max-width: 60ch; margin: 0 0 32px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
/* Variação de forma: em vez do pill 100% arredondado, um corte em
   ponta (clip-path) que evoca a ponta de um windbanner/flâmula.
   IMPORTANTE: nunca usar border:transparent junto de clip-path (ver
   armadilha do playbook, item 7) — o contorno da variante "outline"
   é feito com preenchimento translúcido (background), não com border. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px 14px 24px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--deep); }
.btn--outline { background: rgba(47,132,193,.12); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--outline-light { background: rgba(255,255,255,.14); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,.24); }
.btn--gold { background: var(--lime); color: var(--deep); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: #A3E263; }
.btn--whatsapp { background: var(--green); color: var(--white); padding: 10px 20px 10px 16px; font-size: .9rem; }
.btn--whatsapp svg { width: 18px; height: 18px; fill: currentColor; }
.btn--sm { padding: 10px 20px 10px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  transition: transform .18s ease;
}
.btn-icon:hover { transform: scale(1.08); }
.btn-icon svg { width: 22px; height: 22px; fill: var(--white); }

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--deep);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.header__row { display: flex; align-items: center; justify-content: space-between; padding: 4px 24px; gap: 16px; }
.brand { padding: 0; }
.brand img { height: 76px; width: auto; display: block; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { font-weight: 600; font-size: 0.95rem; color: var(--white); position: relative; }
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--lime); transition: width .2s ease;
}
.nav-menu a:hover::after { width: 100%; }
.nav-cta { background: var(--blue); color: var(--white) !important; padding: 8px 20px 8px 16px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.nav-cta::after { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; z-index: 101; }
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.header__whatsapp { flex-shrink: 0; }

/* ================= HERO ================= */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(18,61,36,.86) 0%, rgba(10,37,22,.94) 100%),
    url('../assets/img/manaus-amazonas.webp') center 42% / cover no-repeat;
  padding: 60px 0 0;
  overflow: hidden;
}
/* Densidade da hero variada: 60/40 em vez de 65/35, para dar mais
   espaço ao mockup vertical das três flags */
.hero__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 32px;
  padding-bottom: 40px;
}
.hero .eyebrow { color: var(--lime); }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  display: flex;
  flex-direction: column;
}
.hero__title--single { font-size: clamp(2.8rem, 7.2vw, 5.2rem); line-height: 1.05; letter-spacing: -0.5px; }
.hero__title-line1 { color: var(--lime); font-size: calc(1em - 2px); }
.hero__title-line2 { color: var(--white); font-size: calc(1em + 4px); }
.hero__subtitle { font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; color: #E3F0EA; margin: 18px 0 8px; }
.hero__lede { color: rgba(227,240,234,.9); font-size: 1.15rem; font-weight: 500; max-width: 50ch; margin: 26px 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { display: flex; justify-content: center; position: relative; }
.hero__visual img { position: relative; z-index: 1; max-height: 480px; width: auto; filter: drop-shadow(0 20px 40px rgba(10,37,22,.3)); }

/* Assinatura: as flags "balançam" como se estivessem ao vento */
@keyframes flagSway {
  0%   { transform: rotate(-2.5deg) translateY(0); }
  50%  { transform: rotate(2deg) translateY(-4px); }
  100% { transform: rotate(-2.5deg) translateY(0); }
}
.flag-sway {
  transform-origin: bottom center;
  animation: flagSway 5.5s ease-in-out infinite;
  will-change: transform;
}
.model-card:hover .flag-sway,
.model-card:focus-within .flag-sway { animation-duration: 1.8s; }

/* Wave divider — motivo de "correnteza de rio", com curvas mais
   pronunciadas e assimétricas do que a onda suave do template-base.
   Mesmo princípio usado na hero: o divisor fica dentro da seção clara
   (.orcamento), a parte de cima é transparente (revela o próprio fundo
   claro da seção) e a parte de baixo é preenchida com a cor da PRÓXIMA
   seção (--deep), garantindo que a onda caia exatamente em cima da
   costura, sem sobra de fundo sólido antes da curva começar. */
.wave-divider { display: block; width: 100%; height: 96px; margin: -1px 0 -3px; }
.wave-divider__ribbon--green { fill: var(--green); opacity: .88; }
.wave-divider__ribbon--gold  { fill: var(--lime); opacity: .92; }
.wave-divider__ribbon--sky   { fill: var(--cream); }
.orcamento .wave-divider__ribbon--sky { fill: var(--deep); }

/* ================= SECTIONS GENERIC ================= */
.section { padding: 80px 0; }
.diferenciais { background: var(--cream); padding-top: 40px; }

.cards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
/* Cards de diferenciais: selo numerado (01, 02, 03...) em forma de
   escudo via clip-path, no lugar do ícone emoji + tarja no topo */
.mini-card {
  background: var(--white); border-radius: var(--radius-md); padding: 30px 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  counter-increment: mini-counter;
  position: relative;
}
.diferenciais .cards-row { counter-reset: mini-counter; }
.mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mini-card__icon {
  display: none;
}
.mini-card::before {
  content: counter(mini-counter, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 46px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  margin-bottom: 14px;
}
.mini-card:nth-child(2)::before { background: var(--blue); }
.mini-card:nth-child(3)::before { background: var(--lime); color: var(--deep); }
.mini-card:nth-child(4)::before { background: var(--sky); color: var(--deep); }
.mini-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; color: var(--deep); margin: 0 0 6px; }
.mini-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.beneficios { background: var(--white); }
.beneficios__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.beneficio { border-left: 4px solid var(--green); padding-left: 18px; }
.beneficio:nth-child(2n) { border-left-color: var(--lime); }
.beneficio:nth-child(3n) { border-left-color: var(--sky); }
.beneficio h3 { font-family: var(--font-body); font-weight: 800; color: var(--deep); font-size: 1.1rem; margin-bottom: 6px; }
.beneficio p { color: var(--ink-soft); margin: 0; }

/* ---------- Campanhas políticas ---------- */
.campanhas {
  background: radial-gradient(circle at 20% 20%, #1F5C36 0%, var(--deep) 60%);
  color: var(--white);
  position: relative;
}
.campanhas__grid { max-width: 760px; }
.campanhas__text { color: #C9E2D6; margin-bottom: 16px; }
.campanhas__text strong { color: var(--lime); }

/* ---------- Modelos ---------- */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* Cards de modelo: canto dobrado triangular no lugar da tarja lisa
   no topo (truque de triângulo CSS via ::before), remetendo à dobra
   de um tecido de flâmula */
.model-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.model-card:hover, .model-card:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow-md); outline: none; }
.model-card__media { background: var(--white); padding: 22px; display: flex; align-items: flex-end; justify-content: center; height: 240px; }
.model-card__media img { height: 100%; width: auto; object-fit: contain; transition: filter .25s ease; }
/* Valores de hue-rotate calibrados e testados visualmente contra as
   6 fotos de mockup (não por alternância de índice — ver mapa de
   tingimento explícito em index.php / config.php) */
.flag-tint-blue  { filter: hue-rotate(205deg) saturate(1.5) brightness(1.05); }
.flag-tint-green { filter: hue-rotate(140deg) saturate(1.45) brightness(1.03); }
.model-card:hover .flag-tint-blue,
.model-card:focus-within .flag-tint-blue { filter: hue-rotate(205deg) saturate(1.7) brightness(1.1); }
.model-card:hover .flag-tint-green,
.model-card:focus-within .flag-tint-green { filter: hue-rotate(140deg) saturate(1.65) brightness(1.08); }
.model-card__body { padding: 24px 22px 24px; border-top: none; position: relative; }
.model-card__body::before {
  content: "";
  position: absolute; top: 0; left: 22px; right: 22px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}
.model-card__body h3 { font-family: var(--font-body); font-weight: 800; color: var(--deep); font-size: 1.15rem; margin: 6px 0 10px; }
.model-card__sizes { display: flex; gap: 8px; margin-bottom: 18px; }
.chip { background: var(--cream); border: 1px solid #D7E8D2; color: var(--blue); font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.model-card__actions { display: flex; align-items: center; gap: 10px; }
.model-card__actions .btn--sm { flex: 1; justify-content: center; }

/* ---------- Galeria (carrossel) ---------- */
.gallery-carousel { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 24px; max-width: var(--container); margin: 0 auto; }
.gallery-track {
  display: flex; gap: 20px; flex: 1; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0 12px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 calc((100% - 3 * 20px) / 4);
  scroll-snap-align: start;
  position: relative; border: none; padding: 0; border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.07); }

.carousel-btn {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--white); color: var(--blue); box-shadow: var(--shadow-sm);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.carousel-btn:hover { background: var(--blue); color: var(--white); transform: scale(1.06); }
.carousel-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,20,17,.92); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 720px; text-align: center; }
.lightbox img { max-height: 75vh; margin: 0 auto; border-radius: var(--radius-md); }
.lightbox figcaption { color: var(--white); margin-top: 14px; font-weight: 700; }
.lightbox__close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  color: var(--white); font-size: 2.4rem; line-height: 1; z-index: 2;
}

/* ---------- Clientes marquee ---------- */
.clientes { background: var(--white); text-align: center; }
.clientes .container { margin-bottom: 20px; }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item { flex: 0 0 auto; width: 160px; padding: 0 26px; display: flex; align-items: center; justify-content: center; }
.marquee__item img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.marquee__item img:hover { filter: grayscale(0); opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Orçamento ---------- */
.orcamento { background: var(--cream); position: relative; overflow: hidden; padding-bottom: 0; }
.orcamento__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; margin-bottom: 80px; }
.form { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row label { font-weight: 700; font-size: .9rem; color: var(--deep); }
.form__row input, .form__row select, .form__row textarea {
  border: 1.5px solid #D7E8D2; border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--cream); color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.form__row input:focus, .form__row select:focus, .form__row textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}
.form__row input:invalid:not(:placeholder-shown) { border-color: #E0554B; }
#modelo.is-highlighted { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(141,215,62,.4); }
.form__feedback { min-height: 1.4em; font-weight: 600; font-size: .9rem; }
.form__feedback.is-success { color: var(--green); }
.form__feedback.is-error { color: #C4342A; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================= FOOTER ================= */
.site-footer { background: var(--deep); color: #CFE6D9; overflow: hidden; }
.cta-final { background: var(--deep); padding: 88px 0 96px; }
.cta-final__inner { text-align: center; }
.cta-final h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 36px; }
.cta-final .hero__cta { justify-content: center; }

.footer__grid { display: grid; grid-template-columns: 1.5fr 2fr 2fr 2.5fr; gap: 24px; padding: 50px 24px; align-items: start; }
.footer__col h3 { font-family: var(--font-body); color: var(--white); font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.footer__col p { margin: 0 0 6px; font-size: .92rem; }
.footer__col p svg { vertical-align: middle; margin-right: 6px; position: relative; top: -1px; }
.footer__col a:hover { color: var(--lime); }
/* E-mail longo: sempre permitir quebra de linha (ver armadilha do
   playbook, item 9 — sem isso o texto pode ficar cortado e invisível
   por causa do overflow:hidden do rodapé) */
.footer__col a[href^="mailto:"] { word-break: break-word; overflow-wrap: break-word; }
.footer__logo { margin-bottom: 8px; }
.footer__social { display: flex; gap: 14px; margin-top: 10px; }
.footer__social a { font-size: .85rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.3); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: .82rem; color: #86A899; }

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(18,61,36,.35);
  animation: floatPulse 2.6s ease-in-out infinite;
}
.floating-whatsapp svg { width: 30px; height: 30px; fill: var(--white); }
@keyframes floatPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .brand img { height: 58px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__visual img { max-height: 320px; }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .beneficios__grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { flex-basis: calc((100% - 20px) / 2); }
  .orcamento__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .brand img { height: 44px; }
  .header__row { flex-wrap: wrap; }
  .main-nav { order: 3; position: fixed; inset: 72px 0 0 0; background: var(--cream); padding: 24px; transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s; z-index: 90; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav .nav-menu a { color: var(--ink); }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav-toggle { display: flex; order: 2; }
  .header__whatsapp { order: 1; }
  .header__whatsapp span { display: none; }
  .cards-row, .beneficios__grid, .models-grid { grid-template-columns: 1fr; }
  .gallery-item { flex-basis: 82%; }
  .gallery-carousel { padding: 0 12px; }
  .carousel-btn { width: 38px; height: 38px; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__social { justify-content: center; }
  .footer__col { align-items: center; display: flex; flex-direction: column; }
}