/* ====== VARIÁVEIS DE MARCA (troque as cores da SOLMAB aqui) ====== */
:root {
  --azul: #1B1D36;        /* Azul Oceano (Pantone 4141 C) */
  --azul-2: #2b2e52;      /* azul mais claro p/ gradiente */
  --sol: #f5901f;         /* laranja claro (gradiente) */
  --sol-2: #EA7600;       /* Laranja Solar (Pantone 716 C) */
  --cinza: #EEE8ED;       /* Cinza Fumaça (Pantone P 83-9 C) */
  --texto: #1B1D36;
  --texto-suave: #5c5d6e;
  --bg: #ffffff;
  --bg-suave: #f6f3f6;
  --borda: #e6e0e6;
  --radius: 16px;
  --sombra: 0 12px 40px rgba(11, 42, 74, 0.10);
  --container: 1160px;
  --header-h: 76px;
}

/* ====== RESET / BASE ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Exo', system-ui, sans-serif;
  color: var(--texto);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .logo__text { font-family: 'Exo', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ====== BOTÕES ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: 'Exo', sans-serif; font-weight: 600;
  font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--sol), var(--sol-2));
  color: #3a1d00;
  box-shadow: 0 8px 22px rgba(249, 176, 36, .35);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.03); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

.link { color: var(--sol-2); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ====== HEADER ====== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(11,42,74,.08); border-color: var(--borda); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; }
.logo__img { height: 42px; width: auto; display: block; }

.nav { display: flex; gap: 26px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--texto-suave); transition: color .2s; white-space: nowrap; }
.nav__link:hover { color: var(--azul); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { font-size: 14px; font-weight: 600; color: var(--azul); white-space: nowrap; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--azul); border-radius: 2px; transition: .3s; }

/* ====== HERO ====== */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 96px) 0 96px;
  background: url("assets/solar-hero.jpg") center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,17,32,.90) 0%, rgba(20,23,45,.78) 45%, rgba(27,29,54,.35) 100%);
}
.hero__inner { position: relative; display: block; }
.hero__content { max-width: 640px; }
.badge {
  display: inline-block; background: rgba(234,118,0,.18); color: #ffb45f;
  font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  border: 1px solid rgba(234,118,0,.35);
}
.hero__title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; color: #fff; }
.hero__subtitle { font-size: 18px; color: #d7dae6; margin: 20px 0 30px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Calculadora */
.calc { background: #fff; border: 1px solid var(--borda); border-radius: var(--radius); padding: 24px; box-shadow: var(--sombra); max-width: 520px; }
.calc__label { font-family: 'Exo', sans-serif; font-weight: 600; margin-bottom: 14px; color: var(--azul); }
.calc__options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.calc__opt {
  flex: 1 1 auto; padding: 10px 14px; border: 1.5px solid var(--borda); background: #fff;
  border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: .2s; white-space: nowrap;
}
.calc__opt:hover { border-color: var(--sol); }
.calc__opt.active { border-color: var(--sol-2); background: rgba(249,176,36,.12); color: #7a4a00; }
.calc__result { margin-top: 14px; padding: 12px 16px; background: rgba(234,118,0,.1); border-radius: 10px; font-weight: 600; color: var(--sol-2); text-align: center; }

/* Arte do hero */
.hero__art { display: flex; justify-content: center; }
.hero__panel {
  width: 320px; height: 320px; border-radius: 24px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.15) 0 2px, transparent 2px 40px),
    linear-gradient(135deg, var(--azul), var(--azul-2));
  box-shadow: var(--sombra); transform: rotate(-6deg) perspective(600px) rotateY(12deg);
  border: 6px solid #fff; position: relative;
}
.hero__panel::after {
  content: "☀"; position: absolute; top: -26px; left: -26px; font-size: 54px;
  filter: drop-shadow(0 4px 10px rgba(249,176,36,.5));
}

/* ====== SEÇÕES GENÉRICAS ====== */
.section { padding: 88px 0; }
.section__eyebrow { text-align: center; color: var(--sol-2); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.section__title { text-align: center; font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; color: var(--azul); margin-bottom: 44px; }

/* ====== STATS ====== */
.stats { padding: 72px 0; background: var(--azul); color: #fff; }
.stats .section__eyebrow { color: var(--sol); }
.stats .section__title { color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px; }
.stat__num { display: block; font-family: 'Exo', sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 48px); color: var(--sol); }
.stat__label { color: #c7d6e6; font-size: 15px; }

/* ====== SOBRE ====== */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--sombra); }
.about__eyebrow { text-align: left; }
.about__title { font-size: clamp(24px, 3vw, 34px); color: var(--azul); margin-bottom: 18px; }
.about__content p { color: var(--texto-suave); margin-bottom: 14px; font-size: 16px; }
.about__facts { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.about__facts div { display: flex; flex-direction: column; padding-right: 28px; border-right: 1px solid var(--borda); }
.about__facts div:last-child { border-right: none; padding-right: 0; }
.about__facts strong { font-family: 'Exo', sans-serif; font-weight: 800; font-size: 24px; color: var(--sol-2); line-height: 1.1; }
.about__facts span { font-size: 13.5px; color: var(--texto-suave); margin-top: 2px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.pillar { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--bg-suave); border: 1px solid var(--borda); border-radius: var(--radius); }
.pillar__icon { font-size: 26px; line-height: 1; }
.pillar strong { display: block; color: var(--azul); font-size: 16px; margin-bottom: 4px; }
.pillar span { color: var(--texto-suave); font-size: 14px; }

/* ====== COMO FUNCIONA ====== */
.how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how__step { background: var(--bg-suave); border: 1px solid var(--borda); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform .25s, box-shadow .25s; }
.how__step:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.how__icon { font-size: 38px; display: block; margin-bottom: 12px; }
.how__step h3 { font-size: 18px; color: var(--azul); margin-bottom: 8px; }
.how__step p { font-size: 14.5px; color: var(--texto-suave); }

/* ====== SERVICES / CARDS ====== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--borda); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.card__tag { display: inline-block; background: rgba(11,42,74,.07); color: var(--azul); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.card h3 { font-size: 20px; color: var(--azul); margin-bottom: 10px; }
.card p { color: var(--texto-suave); margin-bottom: 18px; }

/* ====== PROJECTS ====== */
.projects { background: var(--bg-suave); }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { background: #fff; border: 1px solid var(--borda); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.project__img { height: 180px; background: linear-gradient(135deg, var(--azul), var(--azul-2)); position: relative; }
.project__img::after { content: "☀"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; opacity: .85; }
.project__img[style*="--i:2"] { background: linear-gradient(135deg, var(--sol-2), var(--sol)); }
.project__img[style*="--i:3"] { background: linear-gradient(135deg, var(--sol-2), var(--azul)); }
.project__body { padding: 22px; }
.project__cat { font-size: 12.5px; font-weight: 600; color: var(--sol-2); text-transform: uppercase; letter-spacing: .05em; }
.project__body h3 { font-size: 19px; color: var(--azul); margin: 6px 0 8px; }
.project__body p { font-size: 14.5px; color: var(--texto-suave); }

/* ====== TESTIMONIALS ====== */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--bg-suave); border: 1px solid var(--borda); border-radius: var(--radius); padding: 28px; }
.testimonial p { font-size: 16px; color: var(--texto); margin-bottom: 18px; font-style: italic; }
.testimonial footer { display: flex; flex-direction: column; }
.testimonial footer strong { color: var(--azul); }
.testimonial footer span { font-size: 13.5px; color: var(--texto-suave); }

/* ====== FAQ ====== */
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; background: #fff; }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: 'Exo', sans-serif; font-weight: 600; font-size: 16px; color: var(--azul);
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__icon { font-size: 22px; color: var(--sol-2); transition: transform .25s; flex-shrink: 0; }
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; color: var(--texto-suave); }

/* ====== CONTATO ====== */
.contact { background: var(--bg-suave); }
.contact__card { background: #fff; border: 1px solid var(--borda); border-radius: var(--radius); padding: 40px; box-shadow: var(--sombra); }
.contact__lead { text-align: center; color: var(--texto-suave); margin-bottom: 26px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--borda); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--texto); background: #fff;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--sol-2); }
.form__hint { text-align: center; font-size: 14px; color: var(--texto-suave); }
.form__hint a { color: var(--sol-2); font-weight: 600; }

/* ====== FOOTER ====== */
.footer { background: var(--azul); color: #c7d6e6; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__col a { display: block; color: #c7d6e6; font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--sol); }
.footer__tag { margin-top: 12px; max-width: 260px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13.5px; }
.footer__bottom .container { display: flex; justify-content: center; text-align: center; }

/* ====== WHATSAPP FLUTUANTE ====== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ====== ANIMAÇÃO REVEAL ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ====== RESPONSIVO ====== */
@media (max-width: 1080px) {
  .header__phone { display: none; }
}
@media (max-width: 960px) {
  .about__inner { grid-template-columns: 1fr; gap: 28px; }
  .about__media { order: -1; }
  .pillars, .how__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid, .projects__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .header__phone, .header__actions { display: none; }
  .nav-toggle { display: flex; }
  .logo__img { height: 36px; }
  .pillars { grid-template-columns: 1fr; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 20px 24px; gap: 16px; box-shadow: var(--sombra);
    transform: translateY(-120%); transition: transform .3s; border-bottom: 1px solid var(--borda);
  }
  .nav.open { display: flex; transform: translateY(0); }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
