/* ==========================================================
   Influx Climatização — style.css
   Identidade: azul-marinho da logo + laranja da chama.
   Índice: 1 Tokens · 2 Base · 3 Botões · 4 Header · 5 Hero
           6 Seções · 7 Componentes · 8 FAQ · 9 CTA/Contato/Footer
           10 Animações · 11 Responsivo · 12 Movimento reduzido
   Para trocar as cores do site inteiro, edite só a seção 1.
   ========================================================== */

/* 1. TOKENS ------------------------------------------------ */
:root {
  --bg: #082a47;          /* azul-marinho da logo, clareado para fundo */
  --bg-deep: #061f36;     /* seções alternadas */
  --bg-raise: #0d3a5f;    /* painéis e cartões */
  --bg-footer: #041829;
  --orange: #f26b21;      /* laranja da chama */
  --orange-hot: #ff8a4a;  /* laranja claro para texto pequeno e brilhos */
  --ink: #06192b;         /* texto escuro sobre laranja (contraste AA) */
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.13);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}

/* 2. BASE -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(242, 107, 33, 0.16), transparent 62%),
    radial-gradient(900px 520px at -10% 28%, rgba(30, 110, 175, 0.32), transparent 62%),
    var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, address { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--text-soft); text-wrap: pretty; }

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

.container { width: min(100% - 48px, 1180px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  padding: 12px 18px; border-radius: var(--radius-s);
  background: var(--orange); color: var(--ink); font-weight: 700;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-hot));
  transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none;
}

/* 3. BOTÕES ------------------------------------------------ */
.button {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--orange-hot), var(--orange));
  box-shadow: 0 12px 30px -12px rgba(242, 107, 33, 0.8);
}
.button-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(242, 107, 33, 0.95); }
.button-primary:hover::after { transform: translateX(120%); }
.button-primary:active { transform: translateY(0); }
.button-secondary { color: var(--text); border: 2px solid rgba(255, 255, 255, 0.5); background: transparent; }
.button-secondary:hover { border-color: var(--orange-hot); background: rgba(242, 107, 33, 0.14); transform: translateY(-2px); }

/* 4. HEADER ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 42, 71, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { background: rgba(6, 31, 54, 0.95); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6); }

.header-inner {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  min-height: var(--header-h); transition: min-height 0.3s var(--ease);
}
.is-scrolled .header-inner { min-height: 64px; }

/* O recorte (cover + top) esconde só a margem transparente do PNG; a logo não é alterada */
.brand { display: inline-flex; flex-shrink: 0; }
.brand img {
  width: 58px; height: 58px; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: top center;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.is-scrolled .brand img { width: 48px; height: 48px; }

.menu-toggle {
  min-width: 44px; min-height: 44px; padding: 0 18px;
  font: inherit; font-weight: 700; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.menu-toggle[aria-expanded="true"] { border-color: var(--orange); background: rgba(242, 107, 33, 0.14); }

.site-nav ul { display: flex; flex-direction: column; gap: 2px; }
.site-nav a:not(.button) {
  display: block; padding: 12px 16px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.97rem;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:not(.button):hover { background: rgba(255, 255, 255, 0.09); }
.site-nav a.is-active { background: rgba(242, 107, 33, 0.18); color: var(--orange-hot); }
.nav-cta { min-height: 46px; padding: 0 22px; }

/* 5. HERO -------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-muted {
  background: var(--bg-deep);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(72px, 10vw, 128px); }

/* Linhas de fluxo de ar: o único movimento contínuo da página */
.hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 420px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400' fill='none'%3E%3Cpath d='M0 110C300 10 300 10 600 110S900 210 1200 110' stroke='%23ffffff' stroke-opacity='.12' stroke-width='2'/%3E%3Cpath d='M0 190C300 90 300 90 600 190S900 290 1200 190' stroke='%23f26b21' stroke-opacity='.4' stroke-width='2.5'/%3E%3Cpath d='M0 270C300 170 300 170 600 270S900 370 1200 270' stroke='%23ffffff' stroke-opacity='.08' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 1200px 400px; background-position: 0 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  animation: flow 70s linear infinite;
}

.hero-layout {
  position: relative; z-index: 1;
  display: grid; gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  color: var(--orange-hot); font-weight: 700; font-size: 0.97rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin-bottom: 24px; }
.hero-description { max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Espaço de imagem (hero e sobre): pronto para receber <img> */
.image-slot {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  border-radius: var(--radius-l); border: 1px solid var(--line);
  background: linear-gradient(145deg, #11466f, #0a3050);
  box-shadow: 12px 12px 0 var(--orange), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.4s var(--ease);
}
.image-slot:hover { box-shadow: 7px 7px 0 var(--orange), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.image-slot svg { width: 64px; height: 64px; fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.image-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Entrada do hero: a única sequência orquestrada ao carregar */
.hero-copy > * { animation: rise 0.9s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.hero-media { animation: rise 1.1s 0.35s var(--ease) backwards; }
.hero-media {
  --logo-opacity: 0.5;
  aspect-ratio: auto; border: 0; background: none; box-shadow: none; transition: none;
}
.hero-media:hover { box-shadow: none; }
.hero-media img {
  width: auto; height: auto; max-width: 100%; max-height: 560px;
  object-fit: contain; border-radius: 0;
  opacity: var(--logo-opacity); transition: opacity 0.4s;
}
.hero-media img:hover { opacity: 0.8; }

/* 6. SEÇÕES ------------------------------------------------ */
.section-heading { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-heading h2 { margin-bottom: 16px; }

/* 7. COMPONENTES ------------------------------------------- */
.benefit-list, .feature-list, .card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Benefícios: colunas abertas com filete laranja */
.benefit-list li { padding-left: 22px; border-left: 3px solid var(--orange); }
.benefit-list h3 { margin-bottom: 10px; }

/* Serviços */
.content-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 32px 28px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.content-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-hot));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.content-card:hover { transform: translateY(-6px); border-color: rgba(242, 107, 33, 0.55); background: rgba(255, 255, 255, 0.08); }
.content-card:hover::before { transform: scaleX(1); }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px;
  border-radius: 14px; background: rgba(242, 107, 33, 0.18);
  color: var(--orange-hot); font-weight: 800; font-size: 1rem;
}
.card-benefit { padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); font-size: 0.97rem; }
.card-benefit strong { color: var(--text); }
.content-card > a {
  align-self: flex-start; color: var(--orange-hot); font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px; transition: background-size 0.35s var(--ease);
}
.content-card > a:hover { background-size: 100% 2px; }

/* Diferenciais: blocos com marcador luminoso */
.feature-list li {
  padding: 28px; border-radius: var(--radius-m);
  background: var(--bg-raise); border: 1px solid var(--line);
}
.feature-list li::before {
  content: ""; display: block; width: 12px; height: 12px; margin-bottom: 18px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 6px rgba(242, 107, 33, 0.22);
}
.feature-list h3 { margin-bottom: 8px; }

/* Como funciona: sequência real, por isso numerada e conectada */
.steps-list { display: grid; gap: 32px; counter-reset: etapa; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps-list li { position: relative; padding-top: 72px; counter-increment: etapa; }
.steps-list li::before {
  content: counter(etapa); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 0 0 7px rgba(242, 107, 33, 0.2);
}
.steps-list li::after {
  content: ""; position: absolute; top: 23px; left: 64px; right: -16px; height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 255, 255, 0.14));
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s 0.3s var(--ease);
}
.steps-list li:last-child::after { display: none; }
.steps-list.is-in li::after { transform: scaleX(1); }
.steps-list h3 { margin-bottom: 8px; }

/* Sobre: uma coluna; duas apenas se o espaço de imagem existir */
.about-layout { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.about-layout > div:first-child { max-width: 66ch; }
.about-layout h2 { margin-bottom: 18px; }
.about-layout:has(.image-slot) { grid-template-columns: minmax(0, 1fr); }

/* 8. FAQ --------------------------------------------------- */
.faq-layout { display: grid; gap: 40px; }
.faq-layout .section-heading { margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; align-content: start; }
.faq-list details {
  border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}
.faq-list details[open] { border-color: rgba(242, 107, 33, 0.6); background: rgba(255, 255, 255, 0.08); }
.faq-list summary {
  position: relative; padding: 20px 60px 20px 24px; cursor: pointer;
  font-weight: 700; color: var(--text); list-style: none; border-radius: var(--radius-s);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(242, 107, 33, 0.2); color: var(--orange-hot); font-size: 1.3rem; line-height: 1;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.faq-list details[open] summary::after { transform: rotate(135deg); background: var(--orange); color: var(--ink); }
.faq-list details p { padding: 0 24px 22px; animation: fade-in 0.4s var(--ease); }

/* 9. CTA FINAL, CONTATO, FOOTER ---------------------------- */
.final-cta {
  text-align: center;
  background:
    radial-gradient(640px 320px at 82% 0%, rgba(242, 107, 33, 0.38), transparent 70%),
    linear-gradient(135deg, #0f4a7a, var(--bg));
  border-block: 1px solid var(--line);
}
.final-cta h2 { max-width: 22ch; margin: 0 auto 16px; }
.final-cta p:not(.eyebrow) { max-width: 52ch; margin: 0 auto 32px; }
.final-cta .eyebrow { justify-content: center; }

.contact-details { display: grid; gap: 0; max-width: 640px; }
.contact-details p { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-details strong { color: var(--text); }
.contact-details a { color: var(--orange-hot); font-weight: 700; text-underline-offset: 4px; }

.site-footer { background: var(--bg-footer); border-top: 3px solid var(--orange); padding-block: 48px 32px; }
.footer-layout { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.footer-brand img { width: 64px; height: 64px; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a:not(.brand) { text-decoration: none; font-weight: 600; background: linear-gradient(var(--orange-hot), var(--orange-hot)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 0.3s var(--ease); }
.site-footer a:not(.brand):hover { background-size: 100% 2px; }
.footer-layout > p { font-size: 0.92rem; }

/* 10. ANIMAÇÕES -------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes flow { to { background-position: -1200px 100%; } }

/* Revelação ao rolar: aplicada pelo script.js, só quando JS está ativo */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 11. RESPONSIVO ------------------------------------------- */
@media (max-width: 959px) {
  .site-nav {
    display: none; position: absolute; inset: 100% 0 auto 0;
    padding: 16px 24px 28px; background: rgba(6, 31, 54, 0.98);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  }
  .site-nav.is-open { display: block; animation: menu-in 0.25s var(--ease); }
  .nav-cta { width: 100%; margin-top: 14px; }
  .image-slot { box-shadow: 8px 8px 0 var(--orange), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
  .hero-media, .hero-media:hover { box-shadow: none; }
  .hero-media img { max-width: 70vw; }
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .site-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
  .site-nav ul { flex-direction: row; }
  .hero-layout { grid-template-columns: 1.05fr 0.95fr; }
  .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .faq-layout .section-heading { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .about-layout:has(.image-slot) { grid-template-columns: 1fr 1fr; gap: 72px; }
  .footer-layout { grid-template-columns: auto 1fr; gap: 28px 48px; }
  .footer-layout > nav { justify-self: end; }
  .footer-layout > p { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps-list li { padding: 4px 0 0 76px; }
  .steps-list li::after { top: 56px; bottom: -34px; left: 23px; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--orange), rgba(255, 255, 255, 0.14)); }
  .steps-list.is-in li::after { transform: scaleY(1); }
}

@media (max-width: 520px) {
  .container { width: min(100% - 32px, 1180px); }
  .hero-actions .button { width: 100%; }
  .content-card { padding: 28px 22px; }
}

/* 12. MOVIMENTO REDUZIDO ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .steps-list li::after { transform: none; }
}
