/* ==========================================================
   Cia do Vento – Landing page
   Paleta extraída do logotipo e das peças gráficas da marca
   ========================================================== */
:root {
  --blue-900: #062a66;
  --blue-800: #0a3d8f;
  --blue-700: #0f55c4;
  --blue-500: #1a8be0;
  --cyan: #09c3f3;
  --cyan-soft: #e6f7fe;
  --gold: #f6b800;
  --ink: #0b1f44;
  --muted: #4a5b7a;
  --bg: #f3f7fc;
  --white: #fff;
  --whats: #16a34a;
  --whats-dark: #11833b;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(6, 42, 102, .12);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; text-align: center;
  border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-whats {
  background: linear-gradient(180deg, #1fbf59, var(--whats));
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
}
.btn-whats:hover { background: var(--whats-dark); transform: translateY(-2px); }
.btn-whats:focus-visible, .whats-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-whats.btn-outline { background: #fff; color: var(--whats-dark); border: 2px solid var(--whats); box-shadow: none; }
.btn-whats.btn-outline:hover { background: var(--whats); color: #fff; }
.btn-xl { padding: 1.05em 1.8em; font-size: 1.15rem; }
.ico-whats { width: 1.5em; height: 1.5em; flex: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(6, 42, 102, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.brand img { height: 64px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; color: var(--blue-800); font-size: 1.15rem; line-height: 1.1; }
.header-phone svg { width: 28px; height: 28px; fill: var(--blue-700); }
.header-phone small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff;
  color: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shape { position: absolute; display: block; border-radius: 50%; }
.shape-navy {
  width: 62vw; height: 62vw; right: -14vw; top: -30vw;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-900) 70%);
}
.shape-blue {
  width: 74vw; height: 40vw; right: -22vw; bottom: -12vw;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-500));
  transform: rotate(-12deg);
}
.shape-cyan {
  width: 110vw; height: 34vw; right: -34vw; bottom: -20vw;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan));
  transform: rotate(-9deg);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start; gap: 24px; padding-block: 32px 48px; min-height: 0;
}
.hero-text { padding-top: 28px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.05;
  font-weight: 900; letter-spacing: -.025em; color: var(--blue-800);
}
.hero h1 em { font-style: normal; display: block; color: var(--blue-500); }
.hero-text > p { margin: 20px 0 28px; font-size: 1.15rem; max-width: 30em; color: var(--muted); }

.hero-visual { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / .98; justify-self: end; }
.hv { position: absolute; height: auto; filter: drop-shadow(0 14px 18px rgba(6, 42, 102, .28)); }
.hv-parede { width: 34%; right: 2%; top: 0; z-index: 2; }
.hv-50     { width: 44%; right: 14%; top: 38%; z-index: 3; }
.hv-ecv    { width: 100%; left: 0; top: 5%; z-index: 4; }
.hv-clima  { width: 20%; right: 0; bottom: 0; z-index: 5; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-block: 36px 24px; gap: 8px; }
  .hero-text { padding-top: 0; }
  .hero-text > p { margin-inline: auto; }
  .hero-visual { justify-self: center; max-width: 560px; }
  .shape-navy { width: 70vw; height: 70vw; right: -26vw; top: auto; bottom: 14%; }
  .shape-blue { width: 120vw; height: 60vw; right: -30vw; bottom: -22vw; }
  .shape-cyan { width: 160vw; height: 50vw; right: -40vw; bottom: -30vw; }
}
@media (max-width: 720px) {
  .hero-text .btn-xl { width: 100%; font-size: 1.05rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .hero-text > p { font-size: 1.02rem; margin-block: 14px 22px; }
  .hero-inner { padding-bottom: 44px; }
  .hero-visual { margin-top: 14px; }
  .hv-clima { bottom: 3%; }
  .shape-navy { width: 100vw; height: 100vw; right: -46vw; top: auto; bottom: 16%; }
  .shape-blue { width: 150vw; height: 80vw; right: -40vw; bottom: -34vw; }
  .shape-cyan { width: 190vw; height: 66vw; right: -50vw; bottom: -42vw; }
}

/* ---------- Produtos ---------- */
.produtos { background: var(--bg); padding-block: 64px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2, .cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; color: var(--blue-800); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e3ebf7;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(6, 42, 102, .18); }
.card figure { margin: 0; background: #fff; border-bottom: 4px solid var(--cyan); }
.card figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.card h3 { font-size: 1.15rem; font-weight: 800; color: var(--blue-800); line-height: 1.25; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .btn { width: 100%; margin-top: 6px; }
.outros { text-align: center; margin-top: 32px; color: var(--muted); }
.outros a { color: var(--blue-700); font-weight: 800; }

/* ---------- Chamada comercial ---------- */
.cta {
  text-align: center; color: #fff; padding-block: 64px;
  background:
    radial-gradient(circle at 15% 80%, rgba(9, 195, 243, .4), transparent 40%),
    linear-gradient(135deg, var(--blue-800), var(--blue-700));
}
.cta h2 { color: #fff; max-width: 20em; margin-inline: auto; }
.cta p { margin: 16px auto 28px; max-width: 36em; font-size: 1.15rem; color: #dbe8fb; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--blue-900); color: #cfe0fa; padding-top: 44px; }
.footer-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: start; column-gap: 80px; gap: 32px; align-items: start; padding-bottom: 8px; }
.footer-col { font-style: normal; }
.footer-col h3 { color: var(--cyan); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-col li + li { margin-top: 6px; }
.footer-col a:not(.btn) { text-decoration: none; font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-col a:not(.btn):hover { color: var(--cyan); }
.footer-col p { color: #fff; font-weight: 600; font-size: 1.1rem; }
.copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; }
.copy { text-align: center; font-size: .85rem; padding: 28px 16px; opacity: .75; }

/* ---------- Botão flutuante (desktop) ---------- */
.whats-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  background: var(--whats); color: #fff; text-decoration: none; font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  animation: pulso 2.4s infinite;
}
.whats-float svg { width: 34px; height: 34px; }
.whats-float:hover { background: var(--whats-dark); }
@keyframes pulso {
  0%   { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 0 rgba(22,163,74,.55); }
  70%  { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 16px rgba(22,163,74,0); }
  100% { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 0 rgba(22,163,74,0); }
}

/* ---------- Barra fixa (mobile) ---------- */
.whats-bar { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .header-phone span small { display: none; }
  .header-actions .btn { display: none; }      /* o CTA fica na barra fixa */
  .header-phone { font-size: 1rem; }
  .brand img { height: 52px; }
  .produtos, .cta { padding-block: 44px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card { flex-direction: row; }
  .card figure { width: 38%; flex: none; border-bottom: 0; border-right: 4px solid var(--cyan); display: flex; align-items: center; }
  .card-body { padding: 14px; gap: 8px; }
  .card h3 { font-size: 1rem; }
  .card p { font-size: .88rem; }
  .card .btn { font-size: .92rem; padding: .75em 1em; }
  .cta .btn-xl { width: 100%; font-size: 1.05rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .whats-float { display: none; }              /* sem duplicidade no mobile */
  .whats-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 16px rgba(6, 42, 102, .22);
    border-top: 3px solid var(--cyan);
  }
  .whats-bar .btn { display: flex; width: 100%; min-height: 58px; font-size: 1.2rem; text-transform: none; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); background: var(--blue-900); }
}

@media (max-width: 400px) {
  .card { flex-direction: column; }
  .card figure { width: 100%; border-right: 0; border-bottom: 4px solid var(--cyan); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whats-float { animation: none; }
  .btn, .card { transition: none; }
}
