/* ==========================================================================
   QES — Tesla-inspired clean design system
   ========================================================================== */

:root {
  --navy: #373435;
  --navy-2: #2A2728;
  --accent: #2A9F1B;
  --accent-2: #43D42C;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FA;
  --bg-warm: #EAF8E3;
  --border: #D8DEE6;
  --text: #1F2937;
  --muted: #5C6B7A;
  --success: #15803D;
  --shadow-sm: 0 1px 2px rgba(55,52,53,0.06);
  --shadow: 0 4px 24px rgba(55,52,53,0.08);
  --shadow-lg: 0 12px 40px rgba(55,52,53,0.12);
  --r: 10px;
  --r-lg: 18px;
  --container: 1180px;
  --tx-1: clamp(2.4rem, 4.4vw, 4rem);
  --tx-2: clamp(1.8rem, 3vw, 2.6rem);
  --tx-3: clamp(1.4rem, 2vw, 1.8rem);
  --tx-body: 1.05rem;
  --tx-sm: 0.92rem;
  --tx-xs: 0.78rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: var(--tx-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: var(--tx-1); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: var(--tx-2); line-height: 1.1; }
h3 { font-size: var(--tx-3); line-height: 1.2; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.tiny { font-size: var(--tx-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.center { text-align: center; }

/* ---------- Top nav ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.topnav.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,0.96); }
.topnav .brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.topnav .brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-2), var(--navy));
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 0.85rem;
}
.topnav nav { display: flex; align-items: center; gap: 28px; }
.topnav nav a { color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.topnav nav a:hover { color: var(--accent); }
.topnav .cta-btn { padding: 9px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 0.9rem; }
.topnav .cta-btn:hover { background: var(--accent); color: #fff; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--navy); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .topnav nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 16px 24px 28px; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .25s ease; }
  .topnav nav.open { transform: translateY(0); }
  .topnav nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .topnav nav .cta-btn { margin-top: 12px; text-align: center; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 76vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero.dark {
  background: radial-gradient(ellipse at top right, #525050 0%, var(--navy) 60%, #1C1B1B 100%);
  color: #fff;
}
.hero.dark h1, .hero.dark h2 { color: #fff; }
.hero.dark .lead { color: rgba(255,255,255,0.82); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 640px; margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow { color: var(--accent); }
.hero.dark .eyebrow { color: var(--accent-2); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 110px 0 60px; min-height: auto; } }

/* Decorative artwork in hero (CSS-only sun + panels) */
.hero-art {
  position: relative; aspect-ratio: 1/1; max-width: 460px; width: 100%; margin: 0 auto;
}
.hero-art .sun {
  position: absolute; inset: 8% 8% auto auto; width: 38%; aspect-ratio: 1;
  background: radial-gradient(circle, #FFD37A 0%, #FFB237 60%, transparent 75%);
  border-radius: 50%; filter: blur(0.5px);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.8; transform: scale(1);} 50% { opacity: 1; transform: scale(1.05);} }
.hero-art .panels {
  position: absolute; bottom: 6%; left: 0; right: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  transform: perspective(700px) rotateX(48deg); transform-origin: bottom;
}
.hero-art .panels div {
  aspect-ratio: 1.4/1;
  background: linear-gradient(135deg, #1f4ea0 0%, #0e2e62 70%);
  border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%);
  background-size: 16px 16px;
}

/* ---------- Sections ---------- */
section { padding: clamp(72px, 9vw, 140px) 0; }
section.tight { padding: clamp(48px, 6vw, 88px) 0; }
section.loose { padding: clamp(96px, 12vw, 180px) 0; }
section.soft { background: var(--bg-soft); }
section.dark { background: var(--navy); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark .muted { color: rgba(255,255,255,0.72); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-row .stat {
  background: #fff; padding: 32px 24px; border-radius: var(--r-lg);
  border: 1px solid var(--border); text-align: center;
  box-shadow: var(--shadow-sm);
}
section.dark .stat { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: #fff; }
.stat .big { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
section.dark .stat .big { color: #fff; }
.stat .lbl { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }
section.dark .stat .lbl { color: rgba(255,255,255,0.72); }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Feature grid (sectors / loads) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature {
  background: #fff; padding: 28px 26px; border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature .num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-warm); color: var(--accent);
  font-weight: 700; font-size: 0.95rem; margin-bottom: 14px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- CTA box ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--navy) 100%);
  color: #fff; padding: 52px 44px; border-radius: var(--r-lg);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
}
.cta-box h2 { color: #fff; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-box .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; padding: 36px 24px; } .cta-box .actions { justify-content: flex-start; } }

/* ---------- Tables (system sizes) ---------- */
.size-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.size-table th, .size-table td { padding: 16px 18px; text-align: left; }
.size-table th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.95rem; }
.size-table tr + tr td { border-top: 1px solid var(--border); }
.size-table td:first-child { font-weight: 700; color: var(--navy); }
@media (max-width: 720px) {
  .size-table thead { display: none; }
  .size-table tr { display: block; padding: 14px; border-bottom: 1px solid var(--border); }
  .size-table tr:last-child { border-bottom: 0; }
  .size-table td { display: flex; justify-content: space-between; padding: 6px 0; border: 0; }
  .size-table td::before { content: attr(data-label); color: var(--muted); font-weight: 500; margin-right: 12px; }
  .size-table td:first-child { font-size: 1.1rem; margin-bottom: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
  .size-table td:first-child::before { display: none; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border); padding: 24px 0;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-weight: 600; color: var(--navy); font-size: 1.08rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--accent); transition: transform .2s ease; font-weight: 400;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { padding-bottom: 28px; }
.faq details p { color: var(--muted); margin: 14px 0 0; }

/* ---------- Calculator ---------- */
.calc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 36px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.calc h3 { margin-top: 0; }
.calc-field { margin-bottom: 22px; }
.calc-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.calc-field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-display { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.9rem; color: var(--muted); }
.range-display strong { color: var(--navy); font-size: 1.2rem; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-cards label {
  position: relative; cursor: pointer; padding: 12px 8px; text-align: center;
  border: 1.5px solid var(--border); border-radius: var(--r);
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--bg-warm); color: var(--navy); font-weight: 700; }
.calc-results { background: var(--bg-soft); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.result-row:last-of-type { border-bottom: 0; }
.result-row .lbl { color: var(--muted); font-size: 0.95rem; }
.result-row .val { color: var(--navy); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.015em; }
.result-row .val.big { font-size: 1.9rem; color: var(--accent); }
.calc-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.calc-actions .btn { justify-content: center; }
.calc-disclaimer { font-size: 0.8rem; color: var(--muted); margin-top: 14px; text-align: center; }
@media (max-width: 780px) { .calc { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }

/* ---------- Form ---------- */
.lead-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r);
  background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,159,27,0.18);
}
.field textarea { min-height: 90px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 8px 0 18px; }
.consent input { margin-top: 4px; accent-color: var(--accent); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.honeypot { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } .lead-form { padding: 24px; } }

/* ---------- Equipment / suppliers ---------- */
.suppliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.supplier {
  background: #fff; padding: 22px 18px; border: 1px solid var(--border); border-radius: var(--r);
  text-align: center; color: var(--navy); font-weight: 700; font-size: 0.95rem;
}
.supplier .sub { display: block; color: var(--muted); font-weight: 500; font-size: 0.78rem; margin-top: 4px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.step h4 { color: var(--navy); margin: 0 0 8px; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.08); color: #fff; }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab .tooltip {
  position: absolute; right: 76px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
  font-size: 0.85rem; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.wa-fab:hover .tooltip { opacity: 1; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 32px; }
footer.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
footer.site-footer .grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; margin-bottom: 36px; }
footer.site-footer a { color: rgba(255,255,255,0.75); display: block; padding: 5px 0; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .brand-block .brand { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
footer.site-footer .copy { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
@media (max-width: 720px) { footer.site-footer .grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Misc helpers ---------- */
.rule { height: 1px; background: var(--border); margin: 56px 0; border: 0; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg-warm); color: var(--accent); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.kbd { background: var(--bg-soft); padding: 2px 8px; border-radius: 6px; font-family: 'SF Mono', Menlo, monospace; font-size: 0.92em; color: var(--navy); }
.lead { font-size: 1.15rem; color: var(--muted); }

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

/* ---------- Brand logo (replaces the placeholder Q mark) ---------- */
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity .15s ease;
}
.brand-logo:hover { opacity: 0.85; }
@media (max-width: 880px) { .brand-logo { height: 44px; } }
.topnav .brand { gap: 0; }
.brand-logo.footer-logo { height: 64px; margin-bottom: 14px; }

/* ---------- Full-bleed photo hero ---------- */
.hero.photo { color: #fff; position: relative; }
.hero.photo::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28,27,27,0.78) 0%, rgba(28,27,27,0.55) 45%, rgba(28,27,27,0.15) 85%, rgba(28,27,27,0) 100%),
    linear-gradient(0deg, rgba(28,27,27,0.55) 0%, rgba(28,27,27,0) 60%);
  z-index: 0;
}
.hero.photo .container { position: relative; z-index: 1; }
.hero.photo h1, .hero.photo h2 { color: #fff; }
.hero.photo .lead { color: rgba(255,255,255,0.92); }
.hero.photo .eyebrow { color: var(--accent-2); }
/* On photo hero, drop the side-by-side grid — text takes the left half */
.hero.photo .hero-grid { grid-template-columns: 1fr; }
.hero.photo .hero-art { display: none; }
@media (max-width: 880px) {
  .hero.photo::before {
    background:
      linear-gradient(180deg, rgba(28,27,27,0.55) 0%, rgba(28,27,27,0.85) 100%);
  }
}

/* ---------- Per-page hero photo (uses --hero-img CSS variable) ---------- */
.hero.photo { background-color: #1a1818; background-image: url('../img/hero.jpg'); background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero.photo .btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.45); }
.hero.photo .btn-secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero.photo .tiny.eyebrow, .hero.photo .eyebrow { color: var(--accent-2); }

/* ---------- Brand marquee (suppliers strip — continuously scrolling) ---------- */
.brand-marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.brand-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-card {
  flex: 0 0 auto;
  width: 180px;
  height: 84px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--accent-2); }
.brand-card img { max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 720px) {
  .brand-card { width: 140px; height: 70px; padding: 12px; }
  .brand-marquee-track { gap: 16px; animation-duration: 45s; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ---------- "What we install" text bullet list (below the marquee) ---------- */
.install-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 18px;
  max-width: 880px;
}
.install-list li {
  position: relative;
  padding: 18px 22px 18px 56px;
  background: var(--bg-soft);
  border-radius: var(--r);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
}
.install-list li::before {
  content: "";
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(67,212,44,0.18);
}
.install-list li strong { color: var(--navy); font-weight: 700; margin-right: 4px; }
@media (max-width: 720px) { .install-list li { padding: 16px 18px 16px 48px; font-size: 0.95rem; } }

/* ---------- WhatsApp chat popup (Option A "smart pre-message picker") ---------- */
.wa-popup {
  position: fixed; bottom: 94px; right: 22px; z-index: 41;
  width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22), 0 6px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.96);
  transition: opacity .22s ease, transform .22s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
.wa-popup.open { opacity: 1; transform: translateY(0) scale(1); }
.wa-popup[hidden] { display: none; }

.wa-popup-header {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.wa-popup-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.wa-popup-avatar svg { width: 22px; height: 22px; }
.wa-popup-info { flex: 1; line-height: 1.3; min-width: 0; }
.wa-popup-info strong { display: block; font-size: 0.98rem; font-weight: 600; }
.wa-popup-info span { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: rgba(255,255,255,0.85); margin-top: 2px; }
.wa-popup-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6DFFA5;
  box-shadow: 0 0 6px #6DFFA5;
  animation: wa-pulse 1.6s ease-in-out infinite;
}
@keyframes wa-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.wa-popup-close {
  background: transparent; border: 0; color: #fff; cursor: pointer;
  padding: 6px; border-radius: 50%; display: grid; place-items: center;
  transition: background .15s ease;
}
.wa-popup-close:hover { background: rgba(255,255,255,0.15); }
.wa-popup-close svg { width: 18px; height: 18px; }

.wa-popup-body {
  padding: 18px;
  background:
    linear-gradient(180deg, #ECE5DD 0%, #F4F0EA 100%);
}
.wa-popup-msg {
  background: #fff; color: #1F2937;
  padding: 12px 14px; border-radius: 4px 14px 14px 14px;
  font-size: 0.92rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  margin-bottom: 14px; max-width: 88%;
}

.wa-popup-options { display: flex; flex-direction: column; gap: 8px; }
.wa-popup-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: #fff; border: 1px solid transparent;
  padding: 10px 12px; border-radius: 12px;
  color: var(--navy); font-family: inherit; cursor: pointer;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.wa-popup-option:hover { border-color: #25D366; transform: translateX(2px); box-shadow: 0 4px 12px rgba(37,211,102,0.18); }
.wa-popup-option-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(37,211,102,0.12);
  color: #128C7E; flex-shrink: 0;
  display: grid; place-items: center;
}
.wa-popup-option-icon svg { width: 20px; height: 20px; }
.wa-popup-option > span:last-child { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wa-popup-option strong { font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.wa-popup-option small { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }

.wa-popup-footer {
  margin-top: 14px; padding-top: 12px;
  text-align: center; font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.wa-popup-footer a { color: #128C7E; font-weight: 600; }

@media (max-width: 480px) {
  .wa-popup { right: 12px; bottom: 88px; width: calc(100vw - 24px); }
}

/* ---------- Our Work — project grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-2);
}
.project-card-img {
  position: relative;
  aspect-ratio: 5 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.03); }

.project-card-body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column;
  flex: 1;
}
.project-card-body h3 {
  margin: 12px 0 4px;
  font-size: 1.25rem;
}
.project-card-body .project-loc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 12px;
  font-weight: 500;
}
.project-card-body .project-spec {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

/* Category tags */
.tag-residential {
  background: rgba(67,212,44,0.14);
  color: #1F6B12;
}
.tag-commercial {
  background: rgba(27,111,184,0.14);
  color: #1B4F8A;
}
.tag-farming {
  background: rgba(245,158,11,0.16);
  color: #92580D;
}
.tag-irrigation {
  background: rgba(14,165,233,0.14);
  color: #0C648E;
}

@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Blog grid (listing page) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-2);
}
.blog-card-link { display: block; color: inherit; }
.blog-card-link:hover { color: inherit; }
.blog-card-img {
  aspect-ratio: 5 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.03); }

.blog-card-body { padding: 22px 24px 26px; }
.blog-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.blog-card-date { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.blog-card-body h3 { margin: 0 0 6px; font-size: 1.22rem; line-height: 1.25; }
.blog-card-subtitle { color: var(--muted); font-weight: 500; font-size: 0.95rem; margin: 0 0 14px; }
.blog-card-excerpt { color: var(--text); font-size: 0.94rem; line-height: 1.55; margin: 0 0 18px; }
.blog-card-readmore {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-weight: 600; font-size: 0.92rem;
  transition: gap .2s ease;
}
.blog-card:hover .blog-card-readmore { gap: 10px; }

/* Topic tags */
.tag-tax        { background: rgba(67,212,44,0.14); color: #1F6B12; }
.tag-market     { background: rgba(27,111,184,0.14); color: #1B4F8A; }
.tag-residential{ background: rgba(67,212,44,0.14); color: #1F6B12; }
.tag-commercial { background: rgba(27,111,184,0.14); color: #1B4F8A; }
.tag-farming    { background: rgba(245,158,11,0.16); color: #92580D; }

@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Long-form blog post body typography ---------- */
.blog-post-body { font-size: 1.05rem; line-height: 1.75; color: #2A2C30; }
.blog-post-body p.lead { font-size: 1.22rem; line-height: 1.6; color: var(--navy); font-weight: 500; margin-bottom: 32px; }
.blog-post-body h2 { font-size: 1.65rem; margin: 48px 0 16px; line-height: 1.25; color: var(--navy); }
.blog-post-body h3 { font-size: 1.22rem; margin: 36px 0 12px; color: var(--navy); }
.blog-post-body p { margin: 0 0 20px; }
.blog-post-body ul { padding-left: 24px; margin: 0 0 24px; }
.blog-post-body ul li { margin-bottom: 10px; }
.blog-post-body strong { color: var(--navy); font-weight: 700; }
.blog-post-body em { color: var(--text); }
.blog-post-body table { margin: 24px 0; }
.blog-post-body table th { font-size: 0.92rem; }
.blog-post-body table td { font-size: 0.96rem; }
