/* GPP Solar — shared styles. Solar-orange / dark-sky palette, mobile-first. */
:root {
  --sky: #0b1e3a;
  --sky-2: #14315c;
  --sun: #f7a41d;
  --sun-2: #ffcf5c;
  --green: #1f9d55;
  --red: #d64545;
  --ink: #1c2733;
  --muted: #5c6b7a;
  --paper: #ffffff;
  --paper-2: #f4f8fc;
  --line: #e3eaf2;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 30, 58, .10);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--sun); text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 10px; }
.section .lead { color: var(--muted); max-width: 640px; margin-bottom: 28px; font-size: 17px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 30, 58, .97);
  backdrop-filter: blur(8px); color: #fff;
}
.site-header .bar { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; border-radius: 8px; }
.logo .wordmark { font-weight: 800; letter-spacing: .5px; font-size: 18px; }
.logo .wordmark small { display: block; font-weight: 500; font-size: 11px; color: #b9c6d8; letter-spacing: 2px; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #dbe5f0; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 900px) { .main-nav { display: none; } .site-header .cta-mini { display: inline-block; } }
.cta-mini { display: none; margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px;
  border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: #20bf5b; }
.btn-sun { background: var(--sun); color: #3a2600; box-shadow: 0 6px 18px rgba(247,164,29,.4); }
.btn-sun:hover { background: var(--sun-2); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--sun); color: var(--sun); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(247,164,29,.25), transparent 60%),
    linear-gradient(160deg, var(--sky) 0%, var(--sky-2) 70%, #1d4076 100%);
  color: #fff; padding: 72px 0 96px; position: relative; overflow: hidden;
}
.hero .badge { display: inline-block; background: rgba(247,164,29,.18); color: var(--sun-2); border: 1px solid rgba(247,164,29,.4); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.12; max-width: 720px; }
.hero p.sub { color: #c6d4e5; font-size: clamp(15px, 2.2vw, 18px); max-width: 620px; margin: 16px 0 30px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-benefits { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 42px; }
.chip { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); color: #e7eefa; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }

/* Hero layout: copy + photo (banner image) */
.hero-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
@media (max-width: 860px) { .hero-layout { grid-template-columns: 1fr; } }
.hero-media { margin-top: 8px; }
@media (max-width: 860px) { .hero-media { margin-top: 26px; } }
.hero-media img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(4,16,38,.55); border: 1px solid rgba(255,255,255,.12); }

/* Sun animation over the hero (CSS only, lightweight) */
.sky-scene { position: absolute; inset: 0; pointer-events: none; }
.sun-orbit {
  position: absolute; width: 90px; height: 90px; left: 50%; top: 34px;
  animation: orbit 34s linear infinite; transform-origin: 0 0;
}
.sun-orbit::before {
  content: ''; position: absolute; width: 64px; height: 64px; border-radius: 50%;
  left: 130px; background: radial-gradient(circle at 35% 35%, #ffe9a8, var(--sun) 60%, #e8890c);
  box-shadow: 0 0 42px 14px rgba(247, 164, 29, .55);
}
.sun-orbit::after {
  content: ''; position: absolute; width: 340px; height: 420px; left: 0; top: -160px;
  border: 1.5px dashed rgba(255, 255, 255, .22); border-radius: 50%;
  border-top-color: transparent; border-left-color: transparent;
}
@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 720px) { .sun-orbit { width: 56px; height: 56px; } .sun-orbit::before { left: 90px; width: 40px; height: 40px; } .sun-orbit::after { width: 220px; height: 260px; top: -100px; } }

/* Energy flow animation (panel -> battery -> house) */
.flow { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; overflow: hidden; }
.flow .nodes { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flow .node { text-align: center; flex: 1; min-width: 70px; }
.flow .node .ic { font-size: 34px; line-height: 1; display: block; margin-bottom: 8px; }
.flow .node .lbl { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.flow .node .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.flow .wire { flex: 1.4; height: 2px; background: repeating-linear-gradient(90deg, var(--sun) 0 10px, transparent 10px 18px); position: relative; border-radius: 2px; }
.flow .wire .spark {
  position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d6, var(--sun)); box-shadow: 0 0 10px 3px rgba(247,164,29,.65);
  animation: spark 2.4s linear infinite;
}
.flow .wire .spark.s2 { animation-delay: .8s; }
.flow .wire .spark.s3 { animation-delay: 1.6s; }
@keyframes spark { from { left: -4px; } to { left: calc(100% + 4px); } }
.flow .caption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.flow.dark { background: var(--sky); border-color: #2a4a7d; }
.flow.dark .node .lbl { color: #fff; }
.flow.dark .node .lbl small { color: #9fb2ca; }
.flow.dark .caption { color: #9fb2ca; }
.flow .label-top { text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--sun); margin-bottom: 18px; text-transform: uppercase; }

/* Night PJU animation */
.night-scene { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(#07142e 0%, #0d2450 60%, #143a75 100%); min-height: 240px; padding: 30px 18px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.night-scene .stars span { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; opacity: .8; animation: twinkle 2.6s ease-in-out infinite; }
.night-scene .stars span:nth-child(1) { top: 18%; left: 12%; } .night-scene .stars span:nth-child(2) { top: 30%; left: 44%; animation-delay: .6s; } .night-scene .stars span:nth-child(3) { top: 14%; left: 70%; animation-delay: 1.1s; } .night-scene .stars span:nth-child(4) { top: 42%; left: 84%; animation-delay: .3s; } .night-scene .stars span:nth-child(5) { top: 55%; left: 25%; animation-delay: 1.7s; }
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.pole { position: relative; align-self: center; width: 8px; height: 150px; background: linear-gradient(#c9d4e0, #8fa0b5); border-radius: 4px; }
.pole .arm { position: absolute; top: 8px; right: -30px; width: 34px; height: 6px; background: #c9d4e0; border-radius: 3px; }
.pole .lamp { position: absolute; top: 8px; right: -40px; width: 20px; height: 12px; background: #ffd34d; border-radius: 3px; box-shadow: 0 0 0 0 rgba(255,211,77,.8); animation: lampGlow 2s ease-in-out infinite; }
@keyframes lampGlow { 0%,100% { box-shadow: 0 0 24px 10px rgba(255,211,77,.55); } 50% { box-shadow: 0 0 44px 22px rgba(255,211,77,.85); } }
.pole .cone {
  position: absolute; top: 18px; right: -52px; width: 96px; height: 130px;
  background: radial-gradient(ellipse at top, rgba(255,211,77,.5), transparent 70%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); animation: coneFlicker 2s ease-in-out infinite;
}
@keyframes coneFlicker { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
.night-scene .moon { position: absolute; top: 16px; left: 22px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f5f1da, #cfc7a1); box-shadow: 0 0 24px 6px rgba(245,241,218,.4); }
.night-scene .ground { height: 8px; background: #0a1a38; border-radius: 4px; margin-top: 14px; }
.night-scene .caption { color: #cfe0f5; font-size: 13.5px; text-align: center; margin-top: 14px; position: relative; z-index: 1; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card .icon-lg { font-size: 30px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .price-tag { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--green); font-size: 16px; }

/* Solution tiles */
.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.tile:hover { transform: translateY(-4px); border-color: var(--sun); }
.tile .em { font-size: 34px; display: block; margin-bottom: 10px; }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 14.5px; }
.tile .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--sun); }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.pl { width: 100%; border-collapse: collapse; min-width: 560px; }
table.pl th { background: var(--sky); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; padding: 12px 14px; text-align: left; white-space: nowrap; }
table.pl td { padding: 11px 14px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
table.pl tr:nth-child(even) td { background: var(--paper-2); }
table.pl .price { font-weight: 800; color: var(--green); white-space: nowrap; }
table.pl tr:hover td { background: #fff7e6; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Calculator */
.calc-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.calc-box label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.calc-box input, .calc-box select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; }
.calc-box input:focus, .calc-box select:focus { outline: none; border-color: var(--sun); }
.calc-result { margin-top: 22px; display: none; }
.calc-result.show { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-card { background: var(--sky); color: #fff; border-radius: var(--radius); padding: 24px; }
.result-card .big { font-size: 30px; font-weight: 800; color: var(--sun-2); }
.result-card ul { margin: 14px 0 18px 18px; color: #cfe0f5; font-size: 14.5px; }
.result-card li { margin-bottom: 6px; }
.result-wa { margin-top: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.team-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.team-card .avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--sun), #e8890c); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.wa-qr { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wa-qr img { width: 100%; max-height: 380px; object-fit: cover; object-position: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 560px) { .wa-qr { grid-template-columns: 1fr; } }

/* Floating WA button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--wa); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 8px 22px rgba(0,0,0,.28); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 8px 22px rgba(37,211,102,.5); } 50% { box-shadow: 0 8px 30px rgba(37,211,102,.85); } }

/* Footer */
.site-footer { background: var(--sky); color: #aebdd2; padding: 34px 0; font-size: 13.5px; }
.site-footer a { color: var(--sun-2); }
.site-footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .site-footer .f-grid { grid-template-columns: 1fr; } }
.site-footer .f-grid img { height: 40px; margin-bottom: 10px; }
.site-footer .legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid #223a5e; font-size: 12px; color: #7387a3; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(150deg, var(--sky), var(--sky-2)); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.page-hero .ph-banner { position: absolute; inset: 0; }
.page-hero .ph-banner img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.9); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(24px, 4vw, 38px); }
.page-hero p { color: #c6d4e5; max-width: 640px; margin-top: 8px; }
.page-hero .crumbs { font-size: 12.5px; color: #8fa3bd; margin-bottom: 10px; }

/* Tabs (pju page) */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); }
.tab-btn.active { background: var(--sky); color: #fff; border-color: var(--sky); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: rise .3s ease; }

/* Benefits list */
.benefits { list-style: none; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.benefits li::before { content: '✓'; color: var(--green); font-weight: 900; }

/* Toast for admin */
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: var(--sky); color: #fff; padding: 12px 22px; border-radius: 10px; z-index: 99; display: none; box-shadow: var(--shadow); }
.toast.show { display: block; animation: rise .25s ease; }
.toast.err { background: var(--red); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px; }
.gcard { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; }
.gcard img { width:100%; height:230px; object-fit:cover; display:block; }
.gcard .gcap { padding:10px 12px; font-size:13px; font-weight:600; color:var(--ink); }
@media (max-width:860px){ .gallery-grid { grid-template-columns:1fr; } .gcard img { height:210px; } }
