/* ============================================================================
   PD Solar — Folha de estilos principal
   Identidade: cinza + branco, accent âmbar (energia solar)
   Abordagem: mobile-first, responsiva
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1) Variáveis (design tokens)
   ---------------------------------------------------------------------------- */
:root {
    /* Cores base */
    --branco:      #ffffff;
    --cinza-50:    #f8f9fb;
    --cinza-100:   #eef1f4;
    --cinza-200:   #dde1e6;
    --cinza-300:   #c4cad2;
    --cinza-400:   #9aa4af;
    --cinza-500:   #6b7684;
    --cinza-600:   #4a5561;
    --cinza-700:   #333d47;
    --cinza-800:   #212a33;
    --cinza-900:   #141b22;

    /* Accent (energia solar) */
    --ambar:       #f5a623;
    --ambar-escuro:#d98c0a;
    --ambar-claro: #ffd88a;

    /* WhatsApp */
    --verde-zap:   #25d366;

    /* Texto */
    --texto:       var(--cinza-800);
    --texto-suave: var(--cinza-500);
    --texto-claro: var(--cinza-100);

    /* Superfícies */
    --fundo:       var(--branco);
    --fundo-alt:   var(--cinza-50);

    /* Tipografia */
    --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Layout */
    --largura-max: 1200px;
    --raio:        12px;
    --raio-sm:     8px;

    /* Sombras */
    --sombra-sm: 0 1px 3px rgba(20, 27, 34, .08);
    --sombra:    0 4px 16px rgba(20, 27, 34, .10);
    --sombra-lg: 0 12px 40px rgba(20, 27, 34, .14);

    /* Transição */
    --transicao: .25s ease;
}

/* ----------------------------------------------------------------------------
   2) Reset básico
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--fonte);
    font-size: 16px;
    line-height: 1.65;
    color: var(--texto);
    background: var(--fundo);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }

h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

/* ----------------------------------------------------------------------------
   3) Utilitários de layout
   ---------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--largura-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 72px 0; }
.section--alt { background: var(--fundo-alt); }

.section__titulo { text-align: center; margin-bottom: 8px; }
.section__sub { text-align: center; color: var(--texto-suave); max-width: 640px; margin: 0 auto 48px; }

/* ----------------------------------------------------------------------------
   4) Botões
   ---------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--raio-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transicao);
    font-family: inherit;
    line-height: 1;
}

.btn--accent {
    background: var(--ambar);
    color: var(--cinza-900);
}
.btn--accent:hover { background: var(--ambar-escuro); transform: translateY(-2px); box-shadow: var(--sombra); }

.btn--zap {
    background: var(--verde-zap);
    color: #fff;
}
.btn--zap:hover { background: #1fb959; transform: translateY(-2px); box-shadow: var(--sombra); }

.btn--outline {
    background: transparent;
    border-color: var(--cinza-300);
    color: var(--texto);
}
.btn--outline:hover { border-color: var(--cinza-500); background: var(--cinza-50); }

/* ----------------------------------------------------------------------------
   5) Header
   ---------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cinza-100);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--cinza-900); }
.logo__icon { width: 36px; height: 36px; }

/* Logo oficial (imagem) — usada quando assets/img/logo.png existe */
.logo__img { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.footer__brand .logo__img { height: 46px; }

.nav { display: none; gap: 28px; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--cinza-600); transition: var(--transicao); }
.nav a:hover { color: var(--ambar-escuro); }

.header__cta { display: none; }

/* Menu mobile */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: var(--cinza-800);
}

/* Menu mobile aberto: nav em coluna abaixo do header */
.header.is-open .nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--branco);
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--cinza-200);
    box-shadow: var(--sombra);
}
.header.is-open .nav a { padding: 10px 0; font-size: 1.05rem; }

/* ----------------------------------------------------------------------------
   6) Hero
   ---------------------------------------------------------------------------- */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, var(--cinza-800), var(--cinza-900));
    overflow: hidden;
}

/* Foto de fundo do topo (arquivo fixo: assets/img/hero-fundo.jpeg) */
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
}

/* Véu escuro sobre a foto — garante leitura do texto branco.
   Mais forte à esquerda (onde fica o texto) e mais leve à direita
   (onde a foto aparece de verdade). */
.hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        90deg,
        rgba(24, 29, 35, .88) 0%,
        rgba(24, 29, 35, .80) 40%,
        rgba(24, 29, 35, .62) 70%,
        rgba(24, 29, 35, .48) 100%
    );
}

/* No celular o texto ocupa a largura toda — o véu precisa ser uniforme */
@media (max-width: 719px) {
    .hero__bg::after {
        background: linear-gradient(
            180deg,
            rgba(24, 29, 35, .84) 0%,
            rgba(24, 29, 35, .80) 100%
        );
    }
}

.hero__inner { position: relative; z-index: 2; padding: 90px 0; max-width: 720px; }

.hero__badge {
    display: inline-block;
    background: rgba(245, 166, 35, .18);
    border: 1px solid var(--ambar);
    color: var(--ambar-claro);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__sub { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--cinza-200); margin-bottom: 32px; max-width: 600px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----------------------------------------------------------------------------
   7) Benefícios
   ---------------------------------------------------------------------------- */
.cards-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    background: var(--branco);
    border: 1px solid var(--cinza-100);
    border-radius: var(--raio);
    padding: 32px 26px;
    transition: var(--transicao);
}
.card:hover { border-color: var(--cinza-200); box-shadow: var(--sombra); transform: translateY(-4px); }

.card__icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cinza-50);
    border-radius: var(--raio-sm);
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--texto-suave); margin: 0; }

/* ----------------------------------------------------------------------------
   8) Como Funciona (passos)
   ---------------------------------------------------------------------------- */
.passos { display: grid; grid-template-columns: 1fr; gap: 24px; counter-reset: passo; }

.passo {
    position: relative;
    background: var(--branco);
    border: 1px solid var(--cinza-100);
    border-radius: var(--raio);
    padding: 30px 26px 26px;
}
.passo::before {
    counter-increment: passo;
    content: counter(passo);
    position: absolute;
    top: -18px; left: 26px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ambar);
    color: var(--cinza-900);
    border-radius: 50%;
    font-weight: 800; font-size: 1.15rem;
    box-shadow: var(--sombra-sm);
}
.passo h3 { margin-top: 14px; margin-bottom: 8px; }
.passo p { color: var(--texto-suave); margin: 0; }

/* ----------------------------------------------------------------------------
   8.5) Nossa História
   ---------------------------------------------------------------------------- */
.historia {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 980px;
    margin: 0 auto;
    align-items: start;
}

.historia__texto p {
    color: var(--cinza-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.historia__destaque {
    background: var(--branco);
    border: 1px solid var(--cinza-100);
    border-left: 4px solid var(--ambar);
    border-radius: var(--raio);
    padding: 28px 26px;
    box-shadow: var(--sombra-sm);
    text-align: center;
}

.historia__numero {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ambar-escuro);
    line-height: 1;
    letter-spacing: -.03em;
}

.historia__legenda {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cinza-500);
    margin-top: 8px;
}

.historia__destaque hr {
    border: 0;
    border-top: 1px solid var(--cinza-100);
    margin: 20px 0;
}

.historia__destaque p {
    margin: 0;
    font-size: .92rem;
    color: var(--cinza-600);
}

/* ----------------------------------------------------------------------------
   8.6) Marcas parceiras
   ---------------------------------------------------------------------------- */
.marcas__label {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--cinza-500);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
}

.marcas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.marca {
    background: var(--branco);
    border: 1px solid var(--cinza-200);
    border-radius: 100px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--cinza-700);
    transition: var(--transicao);
}

.marca:hover {
    border-color: var(--ambar);
    color: var(--cinza-900);
    transform: translateY(-2px);
    box-shadow: var(--sombra-sm);
}

/* ----------------------------------------------------------------------------
   9) Preços / Kits
   ---------------------------------------------------------------------------- */
.precos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1060px;
    margin: 0 auto;
}

.preco {
    position: relative;
    background: var(--branco);
    border: 1px solid var(--cinza-200);
    border-radius: var(--raio);
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: var(--transicao);
}

.preco:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }

.preco--destaque {
    border: 2px solid var(--ambar);
    box-shadow: var(--sombra-md);
}

.preco__selo {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ambar);
    color: var(--cinza-900);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 6px 18px;
    border-radius: 100px;
    white-space: nowrap;
}

.preco__titulo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cinza-900);
    margin-bottom: 10px;
}

.preco__desc {
    color: var(--cinza-600);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 22px;
    flex-grow: 1;
}

.preco__valor {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ambar-escuro);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 24px;
}

.preco__valor small {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cinza-500);
    margin-bottom: 4px;
}

/* ----------------------------------------------------------------------------
   10) Galeria
   ---------------------------------------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 44px; text-align: center; }
.stat__num { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--ambar-escuro); line-height: 1; }
.stat__label { font-size: .9rem; color: var(--texto-suave); margin-top: 6px; }

.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.galeria__item {
    position: relative;
    border-radius: var(--raio-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--cinza-100);
}
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transicao); }
.galeria__item:hover img { transform: scale(1.06); }

.galeria__info {
    position: absolute; inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(20,27,34,.85), transparent);
    color: #fff;
    padding: 30px 16px 14px;
    font-size: .88rem;
}
.galeria__info strong { display: block; font-size: 1rem; }
.galeria__info span { color: var(--cinza-300); }

/* ----------------------------------------------------------------------------
   10) Vídeos
   ---------------------------------------------------------------------------- */
.videos { display: grid; grid-template-columns: 1fr; gap: 20px; }

.video-embed {
    position: relative;
    border-radius: var(--raio);
    overflow: hidden;
    background: var(--cinza-100);
    aspect-ratio: 16 / 9;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----------------------------------------------------------------------------
   11) Promoções
   ---------------------------------------------------------------------------- */
.promo {
    background: linear-gradient(135deg, var(--cinza-800), var(--cinza-700));
    color: #fff;
    border-radius: var(--raio);
    padding: 40px 32px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between;
}
.promo__texto h3 { color: #fff; margin-bottom: 6px; }
.promo__texto p { color: var(--cinza-300); margin: 0; }

/* ----------------------------------------------------------------------------
   12) CTA final
   ---------------------------------------------------------------------------- */
.cta-final {
    background: var(--cinza-50);
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid var(--cinza-100);
}
.cta-final h2 { margin-bottom: 12px; }
.cta-final p { color: var(--texto-suave); max-width: 560px; margin: 0 auto 28px; }

/* ----------------------------------------------------------------------------
   13) Footer
   ---------------------------------------------------------------------------- */
.footer { background: var(--cinza-900); color: var(--cinza-300); padding: 56px 0 26px; }
.footer a { color: var(--cinza-300); transition: var(--transicao); }
.footer a:hover { color: var(--ambar); }

.footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
.footer__brand .logo { color: #fff; margin-bottom: 14px; }
.footer__brand p { color: var(--cinza-400); font-size: .92rem; }

.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: .92rem; }

.footer__contato li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contato li span { flex-shrink: 0; }
.footer__contato li a { word-break: break-word; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    text-align: center;
    font-size: .85rem;
    color: var(--cinza-500);
}

.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    transition: var(--transicao);
    font-size: 1.1rem;
}
.social a:hover { background: var(--ambar); color: var(--cinza-900); }

/* Botão flutuante do WhatsApp */
.zap-float {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    background: var(--verde-zap);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--sombra-lg);
    z-index: 200;
    font-size: 1.7rem;
    transition: var(--transicao);
}
.zap-float:hover { transform: scale(1.1); }

/* ----------------------------------------------------------------------------
   14) Responsivo (tablet / desktop)
   ---------------------------------------------------------------------------- */
@media (min-width: 720px) {
    .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .passos { grid-template-columns: repeat(2, 1fr); }
    .videos { grid-template-columns: repeat(2, 1fr); }
    .galeria { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1.6fr; }
    .historia { grid-template-columns: 1.9fr 1fr; }
    .precos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (min-width: 1024px) {
    .nav { display: flex; }
    .header__cta { display: inline-flex; }
    .menu-toggle { display: none; }
    .passos { grid-template-columns: repeat(4, 1fr); }
    .videos { grid-template-columns: repeat(3, 1fr); }
    .galeria { grid-template-columns: repeat(4, 1fr); }
    .section { padding: 96px 0; }
}
