/* =========================================================
   ASR Solar Engenharia — Identidade visual
   Paleta: azul-marinho (fundo técnico), laranja solar (energia),
   papel quente (áreas claras). Página única, focada em conversão.
   ========================================================= */

:root {
  --navy-900: #161c3f;
  --navy-800: #1e2a5e;
  --navy-700: #263876;
  --orange-500: #f07d1c;
  --orange-400: #ff9f4d;
  --blue-600: #2b3a8f;
  --paper-100: #fbf7f0;
  --paper-200: #f1ebdd;
  --slate-600: #4a5568;
  --slate-400: #8a93b8;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(22, 28, 63, 0.1);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1180px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--paper-100);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--orange-500); }

section { position: relative; }
.section-pad { padding: 88px 0; }
@media (max-width: 720px) { .section-pad { padding: 60px 0; } }

.grid-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 8px 24px rgba(240, 125, 28, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240, 125, 28, 0.42); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--paper-100); }
.btn-outline:hover { border-color: var(--orange-500); color: var(--orange-400); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(22, 28, 63, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  color: var(--paper-100);
  font-size: 16.5px;
  line-height: 1.2;
}
.brand-name span { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--orange-400); letter-spacing: 0.1em; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--paper-100); font-family: var(--font-mono); font-size: 13.5px; }
@media (max-width: 720px) { .header-phone { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 100% at 15% 0%, var(--navy-700) 0%, var(--navy-900) 55%);
  color: var(--paper-100);
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--orange-400); }
.hero p.lead { font-size: 17.5px; color: rgba(251, 247, 240, 0.78); max-width: 480px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
  background: var(--navy-800);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo {
  animation: kenburns 18s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
}
@media (max-width: 900px) {
  .hero { padding: 128px 0 64px; }
  .hero .container { grid-template-columns: 1fr; }
}

/* ---------- Stats bar ---------- */
.stats { background: var(--navy-800); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding: 32px 24px; }
.stat { text-align: center; border-left: 1px solid var(--line); padding: 4px 12px; }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); color: var(--orange-400); }
.stat span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--slate-400); text-transform: uppercase; }
@media (max-width: 700px) { .stats .container { grid-template-columns: repeat(2, 1fr); gap: 20px 0; } .stat { border-left: none; } }

/* ---------- Section headers ---------- */
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(24px, 2.8vw, 36px); color: var(--navy-900); }
.section-head p { color: var(--slate-600); margin-top: 14px; font-size: 16px; }
.section-head.on-dark h2 { color: var(--paper-100); }
.section-head.on-dark p { color: var(--slate-400); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Projetos ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.projects-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; background: var(--paper-200); }
.projects-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.projects-grid a:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Dark section ---------- */
.dark-section { background: var(--navy-900); color: var(--paper-100); }

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.diff-card { background: var(--navy-900); padding: 32px 26px; }
.diff-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--orange-400); letter-spacing: 0.1em; }
.diff-card h3 { font-size: 17px; margin: 14px 0 8px; }
.diff-card p { color: var(--slate-400); font-size: 14.5px; }
@media (max-width: 900px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---------- Benefícios ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit-card { background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px 22px; }
.benefit-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(240, 125, 28, 0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-500); margin-bottom: 16px;
}
.benefit-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--orange-500); font-weight: 700; }
.benefit-card p { font-size: 14px; color: var(--slate-600); }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ---------- Sobre (texto centralizado, sem imagem) ---------- */
.about-text { max-width: 720px; text-align: center; margin: 0 auto; }
.about-text .eyebrow { justify-content: center; }
.about-text h2 { font-size: clamp(24px, 2.8vw, 34px); }
.badge-crea {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(240, 125, 28, 0.12); border: 1px solid rgba(240, 125, 28, 0.3);
  border-radius: 100px;
  padding: 10px 18px; margin-top: 24px;
  font-family: var(--font-mono); font-size: 13px; color: var(--orange-400);
}

/* ---------- Marquee (carrossel dinâmico contínuo) ---------- */
.marquee-wrap {
  overflow: hidden;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-wrap { overflow-x: auto; }
}

/* projetos dentro do carrossel */
.projects-track a {
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-200);
  display: block;
}
.projects-track img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .projects-track a { width: 200px; } }

/* depoimentos dentro do carrossel */
.testi-track { align-items: stretch; }
.testi-card {
  flex: 0 0 auto;
  width: 340px;
  background: var(--paper-100);
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testi-card .stars { color: var(--orange-500); font-size: 14px; letter-spacing: 2px; }
.testi-card p { font-size: 14.5px; color: var(--slate-600); line-height: 1.55; flex: 1; }
.testi-card .testi-foot { display: flex; align-items: center; justify-content: space-between; }
.testi-card .testi-author { display: flex; align-items: center; gap: 10px; }
.testi-card .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
}
.testi-card .testi-name { font-size: 13.5px; font-weight: 600; color: var(--navy-900); }
.testi-card .testi-time { font-size: 12px; color: var(--slate-400); }
@media (max-width: 600px) { .testi-card { width: 280px; } }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { color: var(--paper-100); }
.contact-info .info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-info .info-row:first-of-type { border-top: none; }
.contact-info .info-row b { display: block; font-size: 14px; }
.contact-info .info-row span { color: var(--slate-400); font-size: 14px; }

.form-card { background: var(--paper-100); border-radius: var(--radius); padding: 32px; color: var(--navy-900); }
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card > p { color: var(--slate-600); font-size: 14.5px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--slate-600); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px;
  border: 1px solid var(--line-dark); background: #fff;
  font-family: var(--font-body); font-size: 14.5px; color: var(--navy-900);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange-500); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 90px; }
.form-submit { width: 100%; justify-content: center; border: none; }
.form-msg { margin-top: 14px; font-size: 13.5px; display: none; }
.form-msg.ok { color: #1c7c3e; display: block; }
.form-msg.err { color: #c23b3b; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--slate-400); border-top: 1px solid var(--line); padding: 44px 0 24px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 42px; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; max-width: 280px; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-100); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--orange-400); }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) { .footer .container { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
