/* ═══════════════════════════════════════════════════
   RE360 Store v2 — Modern Solar Store Design
   ═══════════════════════════════════════════════════ */

:root {
  --navy: #072b3f;
  --navy-d: #041c2b;
  --navy-l: #0d3a55;
  --gold: #FFB800;
  --gold-d: #E5A600;
  --gold-l: #FFD54F;
  --green: #22c55e;
  --green-d: #16a34a;
  --green-bg: #f0fdf4;
  --red: #ef4444;
  --ink: #0f172a;
  --ink2: #475569;
  --ink3: #94a3b8;
  --line: #e2e8f0;
  --line-l: #f1f5f9;
  --bg: #f8fafc;
  --white: #ffffff;
  --r: 16px;
  --r-sm: 10px;
  --r-full: 999px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 48px rgba(15,23,42,.12);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--navy); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ─── HEADER ─── */
.sh { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.sh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 64px; gap: 32px; }
.sh-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--navy); text-decoration: none; }
.sh-logo b { color: var(--gold); }
.sh-logo img { flex-shrink: 0; height: 40px; width: auto; }
.sh-nav { display: flex; gap: 6px; margin-left: auto; }
.sh-nav a { padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--ink2); transition: all .2s var(--ease); }
.sh-nav a:hover { color: var(--navy); background: var(--line-l); }
.sh-nav a.active { color: var(--navy); background: rgba(255,184,0,.15); }
.sh-actions { display: flex; align-items: center; gap: 12px; }
.sh-wa { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; transition: transform .2s; }
.sh-wa:hover { transform: scale(1.08); }
.sh-menu { display: none; width: 36px; height: 36px; background: none; border: 0; padding: 6px; flex-direction: column; justify-content: center; gap: 5px; }
.sh-menu span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }

@media (max-width: 860px) {
  .sh-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 4px; z-index: 99; }
  .sh-nav.open { display: flex; }
  .sh-nav a { padding: 14px 16px; font-size: 16px; border-radius: var(--r-sm); }
  .sh-menu { display: flex; }
  .sh-menu.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .sh-menu.open span:nth-child(2) { opacity: 0; }
  .sh-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

/* ─── HERO ─── */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-d) 0%, var(--navy) 40%, var(--navy-l) 100%); color: #fff; padding: 80px 0 90px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-sun { position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,184,0,.25) 0%, rgba(255,184,0,.05) 50%, transparent 70%); border-radius: 50%; animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
.hero-panels { position: absolute; bottom: -10px; right: -20px; width: 50%; max-width: 600px; opacity: .15; }
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-full); padding: 8px 18px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--gold-l); margin-bottom: 24px; }
.hero h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; max-width: 680px; margin-bottom: 18px; }
.hero p { font-size: 18px; line-height: 1.6; color: #b8c8d8; max-width: 560px; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 16px 24px; min-width: 140px; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.hero-stat span { font-size: 13px; color: #8fa8be; }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-sm); padding: 14px 28px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-d); }
.btn-gold:hover { background: var(--gold-d); box-shadow: 0 4px 20px rgba(255,184,0,.35); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-l); }
.btn-white { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn-white:hover { border-color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ─── TRUST BAR ─── */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.trust-item svg { flex-shrink: 0; color: var(--green); margin-top: 2px; }
.trust-item b { display: block; font-size: 14px; font-weight: 700; color: var(--navy); }
.trust-item span { font-size: 12px; color: var(--ink3); }
@media (max-width: 860px) { .trust-wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-wrap { grid-template-columns: 1fr; gap: 8px; } }

/* ─── STORE BODY ─── */
.store { padding: 40px 0 80px; }
.store-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── TABS ─── */
.tabs { display: flex; gap: 6px; margin-bottom: 32px; border-bottom: 2px solid var(--line); padding-bottom: 0; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 16px 20px; font-size: 14px; font-weight: 700; color: var(--ink3); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all .2s; }
.tab:hover { color: var(--ink2); }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.tab svg { flex-shrink: 0; }
.tab-badge { background: var(--gold); color: var(--navy-d); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-full); }

/* ─── CONTROLS ─── */
.controls { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.ctrl-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); }
.seg { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 10px 18px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--ink2); transition: all .2s; text-align: left; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.seg button:hover:not([aria-pressed="true"]) { background: var(--line-l); }
.seg small { display: block; font-weight: 500; font-size: 11px; opacity: .7; margin-top: 2px; }

/* ─── INFO BANNER ─── */
.info-banner { display: flex; gap: 16px; background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: var(--r); padding: 20px; margin-bottom: 24px; }
.info-icon { flex-shrink: 0; width: 40px; height: 40px; background: rgba(255,184,0,.2); border-radius: 50%; display: grid; place-items: center; }
.info-banner h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.info-banner p { font-size: 13px; color: var(--ink2); line-height: 1.6; margin: 0; }
.info-banner b { color: var(--navy); }
.section-note { font-size: 13px; color: var(--ink3); }

/* ─── PRODUCT GRID ─── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-top: 20px; }

/* ─── PRODUCT CARD ─── */
.kit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: all .3s var(--ease); }
.kit-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }

/* Card illustration */
.kit-visual { position: relative; background: linear-gradient(135deg, #0c2d42, #0f3d5c); padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 160px; overflow: hidden; }
.kit-visual::after { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255,184,0,.2) 0%, transparent 70%); border-radius: 50%; }
.kit-panels { display: grid; gap: 4px; }
.kit-panel { width: 32px; height: 20px; background: linear-gradient(135deg, #1a5276, #2980b9); border: 1px solid rgba(41,128,185,.6); border-radius: 2px; position: relative; }
.kit-panel::after { content: ''; position: absolute; inset: 3px; border: .5px solid rgba(255,255,255,.1); border-radius: 1px; }
.kit-size-label { position: absolute; bottom: 12px; right: 16px; font-size: 48px; font-weight: 800; color: rgba(255,255,255,.08); letter-spacing: -.03em; line-height: 1; }
.kit-badge-wrap { position: absolute; top: 12px; left: 12px; }
.kit-type-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kit-type-badge.subsidy { background: rgba(34,197,94,.15); color: #4ade80; }
.kit-type-badge.state { background: rgba(255,184,0,.2); color: var(--gold-l); }
.kit-type-badge.nosub { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }

/* Card body */
.kit-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.kit-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); margin-bottom: 4px; }
.kit-kw { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.kit-kw small { font-size: 16px; font-weight: 600; color: var(--ink3); margin-left: 2px; }

/* Panel selector */
.kit-select-wrap { margin: 14px 0; }
.kit-select-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink3); margin-bottom: 6px; }
.kit-select { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-sm); padding: 10px 12px; font: 500 13px var(--font); color: var(--ink); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.kit-select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Specs */
.kit-specs { font-size: 13px; color: var(--ink2); line-height: 1.5; margin-bottom: 16px; }
.kit-specs b { color: var(--ink); }

/* Pricing */
.kit-pricing { border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; }
.kit-price-main { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.kit-price-sub { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.kit-subsidy-lines { margin-top: 10px; }
.kit-subsidy-line { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 13px; color: var(--ink2); }
.kit-subsidy-line .neg { color: var(--green-d); font-weight: 700; }
.kit-net-line { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 10px; }
.kit-net-line span:first-child { font-size: 14px; font-weight: 700; color: var(--navy); }
.kit-net-line span:last-child { font-size: 20px; font-weight: 800; color: var(--green-d); }

/* Card actions */
.kit-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.kit-fine { font-size: 11px; color: var(--ink3); margin-top: 8px; text-align: center; }

/* ─── STEPS ─── */
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin: 56px 0 24px; }
.section-sub { color: var(--ink2); margin: -16px 0 24px; max-width: 600px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: relative; transition: all .3s var(--ease); }
.step:hover { box-shadow: var(--shadow); }
.step-num { width: 36px; height: 36px; background: var(--gold); color: var(--navy-d); font-size: 16px; font-weight: 800; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink2); line-height: 1.5; margin: 0; }

/* ─── FAQ ─── */
.faq { max-width: 800px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; transition: all .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--ink3); font-weight: 400; flex-shrink: 0; width: 28px; text-align: center; transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink2); font-size: 14px; line-height: 1.7; }
.faq a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ─── AMC PLANS ─── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; position: relative; transition: all .3s var(--ease); }
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-card.featured { border: 2px solid var(--green); }
.plan-ribbon { position: absolute; top: -12px; right: 18px; background: var(--green); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--r-full); }
.plan-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.plan-icon.lite { background: #eff6ff; color: #3b82f6; }
.plan-icon.std { background: #f0fdf4; color: var(--green); }
.plan-icon.prm { background: #fefce8; color: #eab308; }
.plan-icon.plus { background: #faf5ff; color: #a855f7; }
.plan-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.plan-range { font-size: 12px; color: var(--ink3); margin-bottom: 12px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--ink3); }
.plan-gst { font-size: 11px; color: var(--ink3); margin-bottom: 16px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; }
.plan-features li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: var(--ink2); }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan-card .btn { margin-top: auto; }

/* ─── DIALOG ─── */
dialog.dlg { border: 0; border-radius: var(--r); padding: 0; max-width: 640px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.dlg::backdrop { background: rgba(15,23,42,.6); backdrop-filter: blur(4px); }
.dlg-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 24px 8px; }
.dlg-header h3 { font-size: 22px; font-weight: 800; color: var(--navy); }
.dlg-close { border: 0; background: var(--line-l); border-radius: 50%; width: 36px; height: 36px; font-size: 20px; color: var(--ink2); display: grid; place-items: center; transition: all .2s; }
.dlg-close:hover { background: var(--line); }
.dlg-body { padding: 8px 24px 28px; font-size: 14px; }
.dlg-body .detail-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.dlg-body .detail-table th,
.dlg-body .detail-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.dlg-body .detail-table th { width: 40%; color: var(--ink2); font-weight: 600; }
.dlg-body .detail-table tr.tot td,
.dlg-body .detail-table tr.tot th { font-weight: 800; color: var(--navy); border-top: 2px solid var(--navy); border-bottom: 0; padding-top: 14px; font-size: 16px; }
.dlg-body .note { font-size: 12px; color: var(--ink3); line-height: 1.5; margin-top: 10px; }
.dlg-body .cta-wrap { margin-top: 18px; }
.dlg-body .ref { font-size: 11px; color: var(--ink3); margin-top: 10px; }

/* ─── FOOTER ─── */
.sf { background: var(--navy-d); color: #8fa8be; padding: 56px 0 0; }
.sf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.sf-brand strong { font-size: 18px; color: #fff; display: block; margin-bottom: 8px; }
.sf-brand p { font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.sf-contact { display: flex; flex-direction: column; gap: 4px; }
.sf-contact a { color: var(--gold); font-size: 14px; font-weight: 600; }
.sf-contact a:hover { text-decoration: underline; }
.sf-links h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.sf-links a { display: block; padding: 4px 0; font-size: 14px; color: #8fa8be; transition: color .2s; }
.sf-links a:hover { color: var(--gold); }
.sf-bottom { max-width: 1200px; margin: 48px auto 0; padding: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
@media (max-width: 700px) { .sf-wrap { grid-template-columns: 1fr; gap: 32px; } }

/* ─── EMPTY STATE ─── */
.empty-msg { padding: 48px; text-align: center; color: var(--ink2); background: var(--white); border: 2px dashed var(--line); border-radius: var(--r); font-size: 15px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .kit-actions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .seg { flex-wrap: wrap; }
  .seg button { flex: 1; min-width: 120px; }
  .controls { flex-direction: column; }
  .tabs { gap: 2px; }
  .tab { padding: 14px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
