/* ============================================================
   Pearl Solar Energy — Website Styles
   ============================================================ */

:root {
  /* Brand palette — Andaman pearl + solar gold */
  --navy: #0a2740;
  --navy-2: #103a5c;
  --teal: #0e7c86;
  --teal-2: #14a3ad;
  --solar: #f6a623;
  --solar-2: #ff9e1b;
  --solar-light: #ffd15c;
  --green: #18a558;
  --pearl: #f5f9fb;
  --pearl-2: #eaf3f5;
  --ink: #0f1b24;
  --muted: #5b6b76;
  --line: #e2ebef;
  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(10, 39, 64, .06);
  --shadow-md: 0 12px 30px rgba(10, 39, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 39, 64, .16);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;

  --font-head: 'Prompt', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Prompt', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--navy); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Visible keyboard focus for everything */
:focus-visible { outline: 3px solid #1462ff; outline-offset: 2px; border-radius: 4px; }

/* Skip-to-content link */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: var(--navy);
  padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md); font-family: var(--font-head); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--solar); border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--solar { background: linear-gradient(135deg, var(--solar-light), var(--solar)); color: #3a2400; box-shadow: 0 10px 24px rgba(246,166,35,.35); }
.btn--solar:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(246,166,35,.45); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: var(--navy-2); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { height: 46px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--navy); letter-spacing: .2px; }
.brand-text span { font-size: .72rem; color: var(--teal); letter-spacing: .16em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .98rem; color: #243b4a; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--solar); transition: width .22s; }
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf6f8;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(246,166,35,.30), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(20,163,173,.30), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0c3252 55%, #0e4258 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
  z-index: 1;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: 1;
  /* poster เป็น CSS background → ภาพขึ้นทันที ไม่ต้องรอ video element โหลด แล้ววิดีโอเล่นทับ */
  background-image: url('assets/hero-poster.jpg'); background-size: cover; background-position: center; }
@media (max-width: 900px) and (orientation: portrait) {
  .hero-video { background-image: url('assets/hero-poster-mobile.jpg'); } /* มือถือ: ภาพนิ่งแนวตั้ง */
}
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(10,39,64,.86), rgba(12,50,82,.72) 50%, rgba(14,66,88,.74)); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; padding: 84px 0 96px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px; color: #d8eef0;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--solar-light); box-shadow: 0 0 0 4px rgba(255,209,92,.25); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 600; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--solar-light); }
.hero .lead { margin-top: 20px; font-size: 1.13rem; color: #c9e2e6; max-width: 560px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; color: #bcd6db; font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--solar-light); }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.hero-sun { width: 100%; height: auto; }
.hero-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.hero-kpi { background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; }
.hero-kpi b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.hero-kpi span { font-size: .82rem; color: #bcd6db; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 34px; }
.stat { text-align: center; color: #dceaee; }
.stat b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 2rem; color: #fff; }
.stat .u { color: var(--solar-light); }
.stat span { font-size: .92rem; color: #9fc0c7; }

/* ---------- About ---------- */
.about { background: var(--pearl); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-md);
}
.about-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.about-points { list-style: none; display: grid; gap: 18px; }
.about-points li { display: flex; gap: 14px; }
.about-points .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pearl-2); color: var(--teal); }
.about-points .ic svg { width: 22px; height: 22px; }
.about-points b { display: block; color: var(--navy); }
.about-points p { color: var(--muted); font-size: .95rem; }
.about-copy p { color: #34505c; font-size: 1.06rem; margin-bottom: 16px; }
.about-copy .pearl-note {
  border-left: 3px solid var(--solar); padding-left: 16px; color: var(--navy);
  font-style: italic; background: linear-gradient(90deg, rgba(246,166,35,.08), transparent);
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.svc::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--teal), var(--solar)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--pearl-2), #fff); color: var(--teal); border: 1px solid var(--line); }
.svc .ic svg { width: 28px; height: 28px; }
.svc h3 { font-size: 1.16rem; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: .96rem; }

/* ---------- Why us ---------- */
.why { background: linear-gradient(180deg, var(--pearl), #fff); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.why-item .chk { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(24,165,88,.12); color: var(--green); }
.why-item .chk svg { width: 22px; height: 22px; }
.why-item b { display: block; color: var(--navy); margin-bottom: 3px; }
.why-item p { color: var(--muted); font-size: .92rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step .num {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; width: 42px; height: 42px;
  border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
}
.step h3 { font-size: 1.04rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 70px 0; background:
  radial-gradient(600px 300px at 90% 0, rgba(246,166,35,.30), transparent 60%),
  linear-gradient(135deg, var(--teal), #0a5560); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 640px; }
.cta-band p { color: #ffffff; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; }
.contact-info h2 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-info > p { color: var(--muted); margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--pearl-2); color: var(--teal); }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list b { display: block; color: var(--navy); font-family: var(--font-head); }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--teal); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; font-family: var(--font-head); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: .98rem; color: var(--ink); background: var(--pearl); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); background: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-color: var(--teal); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.form-card .btn { width: 100%; }
.form-status { margin-top: 12px; padding: 11px 14px; border-radius: 12px; font-size: .92rem; line-height: 1.55; text-align: center; }
.form-status[hidden] { display: none; }
.form-status.is-ok { background: rgba(24,165,88,.12); color: #0f7a40; }
.form-status.is-warn { background: rgba(246,166,35,.14); color: #7a4d00; }
.form-status.is-pending { background: var(--pearl-2); color: var(--muted); }
.form-status a { color: var(--teal); font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #07223a; color: #aac3cc; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer .brand-text b { color: #fff; }
.footer-about { margin-top: 16px; font-size: .94rem; color: #93b2bc; max-width: 340px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a, .footer ul li { color: #9fc0c7; font-size: .94rem; }
.footer ul a:hover { color: var(--solar-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: #7fa0aa; }
.footer-tm { margin-top: 14px; font-size: .76rem; color: #6b8a94; line-height: 1.6; }

/* ---------- Reveal animation (only hide when JS confirmed running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Floating contact (mobile) */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none; gap: 10px; }
.fab a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-md); color: #fff; }
.fab .call { background: var(--green); }
.fab .line { background: #06c755; }
.fab a svg { width: 24px; height: 24px; }

/* ---------- Calculator (Solar ROI) ---------- */
.calculator { background: var(--pearl); }
.calc-panel { display: grid; grid-template-columns: .92fr 1.08fr; gap: 28px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); }

/* --- inputs --- */
.calc-field { margin-bottom: 22px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 12px; }

.calc-bill { position: relative; }
.calc-bill input { width: 100%; padding: 16px 54px 16px 20px; border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--pearl); font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--navy);
  -moz-appearance: textfield; transition: border-color .2s, background .2s; }
.calc-bill input::-webkit-outer-spin-button, .calc-bill input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-bill input:focus { outline: none; border-color: var(--teal); background: #fff; }
.calc-bill input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.calc-bill-unit { position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--muted); pointer-events: none; }

.seg { display: flex; gap: 8px; background: var(--pearl); padding: 5px; border-radius: 12px; }
.seg button { flex: 1; padding: 12px 8px; border: none; background: transparent; border-radius: 9px; cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; color: var(--muted); transition: background .2s, color .2s; }
.seg button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); font-weight: 600; }

/* day / night dark card */
.calc-dn { background: var(--navy); border-radius: 16px; padding: 18px 20px; }
.calc-dn-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.calc-dn-head > span { font-family: var(--font-head); font-weight: 600; color: #fff; }
.calc-dn-val { display: inline-flex; gap: 14px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.calc-dn-val b { color: var(--solar-light); }
.calc-dn-val i { color: #7fa8c4; font-style: normal; }
.calc-dn-note { font-size: .8rem; color: #9fc0c7; margin-top: 12px; line-height: 1.55; }

.calc-inputs input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px;
  border-radius: 999px; background: linear-gradient(90deg, var(--solar), var(--solar-light)); outline: none; }
.calc-inputs input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; border: 3px solid var(--solar); box-shadow: var(--shadow-sm); cursor: pointer; }
.calc-inputs input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 3px solid var(--solar); cursor: pointer; }

/* extras toggle cards */
.calc-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-extra { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--pearl); cursor: pointer;
  font-family: var(--font-body); font-size: .9rem; color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
.calc-extra svg { width: 26px; height: 26px; color: var(--muted); transition: color .2s; }
.calc-extra:hover { border-color: var(--teal); }
.calc-extra[aria-pressed="true"] { border-color: var(--teal); background: rgba(20,163,173,.08);
  color: var(--navy); font-weight: 600; box-shadow: var(--shadow-sm); }
.calc-extra[aria-pressed="true"] svg { color: var(--teal); }

.calc-note { font-size: .8rem; color: var(--muted); line-height: 1.6; margin-top: 18px; }

/* --- results --- */
.calc-results { display: flex; flex-direction: column; gap: 16px; }
.calc-result-card { background: #fff; border: 1.5px solid rgba(20,163,173,.30); border-radius: 18px;
  padding: 24px; box-shadow: 0 14px 40px rgba(10,39,64,.10); }
.calc-rec-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.calc-rec-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--teal); }
.calc-rec-kw { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.calc-rec-kw b { font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--navy); }
.calc-rec-kw i { font-style: normal; font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.calc-rec-batt { display: block; margin-top: 7px; font-size: .82rem; font-weight: 600; color: var(--teal); }
.calc-rec-payback { text-align: right; flex: none; }
.calc-rec-payback span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.calc-rec-payback b { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--green); }

.calc-budget { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(120deg, rgba(20,163,173,.12), rgba(246,166,35,.14));
  border: 1.5px solid rgba(20,163,173,.30); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }
.calc-budget > span { font-size: .92rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.calc-budget > span i { font-style: normal; font-weight: 500; font-size: .8rem; color: var(--muted); }
.calc-budget > b { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy); white-space: nowrap; }

.calc-stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.calc-stat { background: var(--pearl); border-radius: 14px; padding: 14px 16px; }
.calc-stat span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.calc-stat b { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy); }

/* 10-year savings bar chart */
.calc-chart { height: 132px; }
.calc-bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; }
.calc-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.calc-bar > i { display: block; width: 100%; border-radius: 5px 5px 0 0; min-height: 4px;
  background: linear-gradient(180deg, var(--solar-light), var(--teal)); transition: height .5s ease; }
.calc-bar > small { font-size: .58rem; color: var(--muted); white-space: nowrap; }
.calc-chart-cap { font-size: .8rem; color: var(--muted); text-align: center; margin: 8px 0 18px; }

.calc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-actions .btn { width: 100%; padding: 14px 12px; font-size: .95rem; }
.calc-disclaimer { display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: .8rem; color: var(--muted); margin-top: 14px; }
.calc-disclaimer svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* "did you know" tip */
.calc-tip { display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(246,166,35,.10), rgba(20,163,173,.07));
  border: 1px solid rgba(246,166,35,.25); border-radius: 16px; padding: 16px 18px; }
.calc-tip-ic { font-size: 1.4rem; line-height: 1; flex: none; }
.calc-tip p { font-size: .88rem; color: var(--ink); line-height: 1.6; }
.calc-tip b { color: var(--navy); }

/* ---------- Review polish ---------- */
/* Alternate section backgrounds for rhythm */
.process { background: #fff; }

/* Custom chevron on selects to match the rounded inputs */
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b76' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Projects — case-study style (vanilla port, brand navy/gold)
   ============================================================ */
@keyframes marqueeProjects { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-projects { animation: marqueeProjects 28s linear infinite; }
.marquee-projects:hover { animation-play-state: paused; }
@keyframes pjBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pj { position: relative; background: #fff; color: var(--navy); overflow: hidden; }

/* Top / header with floating squares */
.pj-top { position: relative; max-width: 1200px; margin: 0 auto; padding: 96px 22px 30px; }
.pj-floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pj-float { position: absolute; will-change: transform; transition: transform .45s cubic-bezier(0.22,1,0.36,1); }
.pj-float-inner { width: 100%; height: 100%; background: var(--navy); opacity: .85;
  animation: pjBob var(--bd, 3s) ease-in-out var(--bdl, 0s) infinite; }
.pj-head { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; }
.pj-badge { display: inline-block; margin-bottom: 18px; background: var(--navy); color: #fff;
  padding: 6px 16px; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.pj-heading { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 600; line-height: 1.25;
  letter-spacing: -.01em; color: var(--navy); }
.pj-mute { color: rgba(10,39,64,.4); }

/* Cards grid */
.pj-cards { max-width: 1200px; margin: 0 auto; padding: 0 22px 56px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.pj-cards .pj-card:nth-child(2) { transition-delay: .08s; }
.pj-cards .pj-card:nth-child(3) { transition-delay: .16s; }
.pj-cards .pj-card:nth-child(4) { transition-delay: .24s; }
.pj-card { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.pj-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Pixel-dissolve hover overlay */
.pj-pixels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pj-px { position: absolute; background: rgba(10,39,64,.92); opacity: 0; transform: scale(0);
  transform-origin: center; transition: transform .25s ease, opacity .25s ease; transition-delay: var(--out, 0s); }
.pj-card:hover .pj-px { opacity: 1; transform: scale(1.02); transition-delay: var(--in, 0s); }

/* Magnetic gold squares */
.pj-mags { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pj-mag { position: absolute; background: var(--solar); will-change: transform;
  transition: transform .55s cubic-bezier(0.22,1,0.36,1); }

/* Plus button + info plate */
.pj-plus { position: absolute; right: 16px; top: 16px; z-index: 4; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 14px; line-height: 1; }
.pj-plate { position: absolute; bottom: 0; left: 0; z-index: 5; background: #fff; padding: 10px 16px 12px; max-width: 74%; }
.pj-name { font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-weight: 500; line-height: 1.12; color: var(--navy); }
.pj-meta { display: flex; gap: 16px; margin-top: 6px; align-items: baseline; }
.pj-cat { font-size: 12px; color: rgba(10,39,64,.6); }
.pj-scale { font-size: 12px; font-weight: 700; color: var(--navy); }

/* Footer area */
.pj-foot { max-width: 1200px; margin: 0 auto; padding: 4px 22px 26px; display: flex; flex-direction: column; gap: 28px; }
.pj-foot-left { max-width: 460px; }
.pj-plus-line { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border: 1px solid rgba(10,39,64,.2); color: var(--navy); font-size: 14px; margin-bottom: 16px; }
.pj-foot-text { font-size: 14px; line-height: 1.7; color: rgba(10,39,64,.6); }
.pj-cta { display: inline-flex; align-items: flex-end; margin-top: 22px; }
.pj-cta-label { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(10,39,64,.2);
  background: var(--navy); color: #fff; padding: 10px 14px; font-family: var(--font-head); font-size: 1rem; font-weight: 500; transition: background .2s; }
.pj-cta:hover .pj-cta-label { background: rgba(10,39,64,.85); }
.pj-cta-arrow { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  background: var(--navy); margin-bottom: 24px; transition: margin-bottom .3s cubic-bezier(0.22,1,0.36,1); }
.pj-cta:hover .pj-cta-arrow { margin-bottom: 36px; }

.pj-foot-right { flex: 1; overflow: hidden; }
.pj-marquee { overflow: hidden; padding: 20px 0; }
.pj-mq-track { display: flex; width: max-content; }
.pj-mq-item { display: flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 0 32px; color: var(--navy); }
.pj-mq-item svg { display: block; }
.pj-mq-name { white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: rgba(10,39,64,.8); }

@media (min-width: 768px) {
  .pj-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .pj-foot-right { margin-left: 48px; }
}
@media (max-width: 767px) {
  .pj-top { padding-top: 72px; }
  .pj-cards { grid-template-columns: 1fr; }
  .pj-foot-right { border-top: 1px solid rgba(10,39,64,.1); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 60px 0 70px; }
  .hero-visual { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-panel { grid-template-columns: 1fr; }
}

/* Collapse nav to hamburger early enough that 6 items never wrap */
@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 18px 22px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .3s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .fab { display: flex; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .calc-stats2, .calc-actions { grid-template-columns: 1fr; }
  .calc-budget { flex-direction: column; align-items: flex-start; gap: 4px; }
}
