/*
Theme Name: ALICA-JGF Solar
Theme URI: https://jgfsolar.com.br/
Author: JGF Solar
Description: Landing page premium para o inversor de frequência híbrido AC/DC ALICA-JGF.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: alica-jgf-solar
*/

:root {
  --bg: #fff;
  --surface: #f5f5f5;
  --ink: #2b2b2b;
  --muted: #667085;
  --navy: #0f172a;
  --navy-deep: #09101f;
  --green: #22c55e;
  --green-dark: #112719;
  --line: #e5e7eb;
  --white: #fff;
  --radius: 24px;
  --shadow: 0 20px 50px -25px rgba(15, 23, 42, .28);
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand, .metric-value { font-family: "Sora", system-ui, sans-serif; letter-spacing: 0; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-muted { background: var(--surface); }
.section-dark { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--navy), var(--navy-deep)); color: var(--white); }
.grid-lines::before { position: absolute; inset: 0; content: ""; opacity: .08; background-image: linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px); background-size: 72px 72px; pointer-events: none; }
.eyebrow { display: block; margin-bottom: 16px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-title { max-width: 720px; margin-bottom: 54px; }
.section-title h2 { margin-bottom: 18px; color: var(--navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
.section-dark .section-title h2 { color: var(--white); }
.section-title p { margin: 0; color: var(--muted); line-height: 1.75; }
.section-dark .section-title p { color: rgba(255,255,255,.7); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.icon-box { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(34,197,94,.3); border-radius: 14px; color: var(--green); background: rgba(15,23,42,.04); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 24px; border: 0; border-radius: 999px; font-weight: 800; transition: transform .25s, filter .25s, background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, var(--green), #43d77a); color: var(--green-dark); box-shadow: 0 16px 36px -16px rgba(34,197,94,.7); }
.btn-outline { border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.07); color: var(--white); }
.glass { border: 1px solid rgba(15,23,42,.09); background: rgba(255,255,255,.78); box-shadow: var(--shadow); backdrop-filter: blur(16px); }

.site-header { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(15,23,42,.88); backdrop-filter: blur(18px); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: flex; min-width: 170px; align-items: center; gap: 11px; color: var(--white); }
.logo-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--green); color: var(--green-dark); }
.brand { display: block; font-size: 16px; font-weight: 800; }
.model { display: block; margin-top: 2px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.72); font-size: 14px; }
.main-nav a:hover { color: var(--green); }
.header-cta { white-space: nowrap; }

.hero { position: relative; isolation: isolate; min-height: 820px; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-bg { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .44; }
.hero::before { position: absolute; z-index: -2; inset: 0; content: ""; background: linear-gradient(105deg, var(--navy-deep) 8%, rgba(9,16,31,.82) 43%, transparent 80%), linear-gradient(to top, var(--navy-deep), transparent 58%); }
.hero .wrap { padding-top: 190px; padding-bottom: 110px; }
.hero-copy { max-width: 790px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { margin: 26px 0 24px; font-size: clamp(42px, 6vw, 70px); line-height: 1.05; }
.green-text { color: var(--green); }
.hero-copy > p { max-width: 740px; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.75; }
.hero .notice { margin: 18px 0 0; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.seals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 70px 0 0; padding: 0; list-style: none; }
.seal { display: flex; min-height: 72px; align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.07); font-size: 14px; font-weight: 700; backdrop-filter: blur(14px); }
.seal .icon { flex: 0 0 auto; color: var(--green); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 78px; }
.copy p { color: var(--muted); line-height: 1.75; }
.copy .important { color: var(--navy); font-size: 14px; font-weight: 700; }
.checks { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 11px; color: var(--navy); font-size: 14px; font-weight: 700; }
.checks .icon { flex: 0 0 auto; color: var(--green); }
.feature-image { position: relative; }
.feature-image img { width: 100%; aspect-ratio: 4/3; border-radius: 30px; object-fit: cover; box-shadow: 0 32px 60px -28px rgba(15,23,42,.45); }
.image-label { position: absolute; right: 24px; bottom: 24px; left: 24px; padding: 17px 20px; border-radius: 16px; }
.image-label small { display: block; color: var(--green); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.image-label strong { display: block; margin-top: 6px; color: var(--navy); font-size: 14px; line-height: 1.5; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border-radius: var(--radius); transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(34,197,94,.45); }
.card h3 { margin: 22px 0 9px; color: var(--navy); font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.applications { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.application { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 800; transition: .3s; }
.application:hover { transform: translateY(-4px); border-color: rgba(34,197,94,.5); box-shadow: var(--shadow); }
.application .icon { color: var(--green); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.step { min-height: 200px; padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.07); backdrop-filter: blur(16px); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-number { color: rgba(34,197,94,.45); font-family: "Sora"; font-size: 42px; font-weight: 800; }
.step .icon { color: var(--green); }
.step p { margin: 36px 0 0; font-weight: 700; line-height: 1.65; }
.system-note { max-width: 760px; margin: 42px 0 0; padding: 18px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; }
.metrics { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.metric { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.metric small { display: block; margin-bottom: 8px; color: var(--green); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.metric-value { color: var(--white); font-size: clamp(38px, 5vw, 58px); font-weight: 800; line-height: 1; }
.metric p { margin: 12px 0 0; color: rgba(255,255,255,.68); font-size: 14px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { display: flex; height: 100%; min-height: 0; flex-direction: column; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; flex: 1; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s; }
.gallery figure:first-child img { min-height: 520px; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { min-height: 72px; padding: 17px 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; }
.testimonial-stars { color: var(--green); letter-spacing: 3px; }
.testimonial-meta { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.testimonial-meta strong { display: block; color: var(--navy); }
.testimonial-meta small { color: var(--muted); }

.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 78px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; border: 0; background: none; color: var(--navy); text-align: left; font-weight: 800; cursor: pointer; }
.faq-question .icon { flex: 0 0 auto; color: var(--green); transition: transform .3s; }
.faq-question[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s, opacity .35s; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 40px 22px 0; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.final-cta { position: relative; max-width: 820px; margin-inline: auto; text-align: center; }
.final-cta h2 { margin: 26px 0 20px; font-size: clamp(34px, 5vw, 52px); line-height: 1.15; }
.final-cta p { color: rgba(255,255,255,.75); line-height: 1.75; }
.final-cta .btn { margin-top: 24px; min-height: 60px; padding-inline: 34px; }

.site-footer { padding: 68px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 70px; }
.site-footer h3 { margin-bottom: 20px; color: var(--navy); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.site-footer p, .contact-list { color: var(--muted); font-size: 14px; line-height: 1.75; }
.contact-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 11px; }
.contact-list .icon { width: 18px; color: var(--green); }
.copyright { margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.floating-whatsapp { position: fixed; z-index: 999; right: 22px; bottom: 22px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .split, .faq-layout { grid-template-columns: 1fr; gap: 50px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .applications, .steps, .metrics { grid-template-columns: repeat(2, 1fr); }
  .seals { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 30px), var(--wrap)); }
  .section { padding: 78px 0; }
  .header-inner { min-height: 66px; }
  .header-cta { padding: 10px 15px; font-size: 12px; }
  .model { display: none; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 132px; padding-bottom: 72px; }
  .hero h1 { font-size: 39px; }
  .hero-copy > p { font-size: 16px; }
  .actions { align-items: stretch; flex-direction: column; }
  .cards, .applications, .steps, .metrics, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; grid-row: auto; }
  .gallery figure:first-child img { min-height: 0; }
  .seals { gap: 10px; }
  .seal { font-size: 12px; }
  .metric { min-height: 110px; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { width: 56px; height: 56px; padding: 0; }
}