/* iComm Energy Solutions — marketing site
   Palette matches the iComm Energy CRM for brand consistency. */
:root {
  --surface: #ffffff;
  --surface-2: #f3f5f7;
  --surface-3: #eaedf1;
  --border: #dde2e8;
  --ink: #1a2128;
  --ink-muted: #5b6673;
  --ink-faint: #8993a1;
  --accent: #4f9a2c;
  --accent-dark: #3d7a21;
  --accent-soft: #e9f5df;
  --brand-green: #74c540;
  --navy: #1f4e78;
  --navy-soft: #e5edf5;
  --amber: #b8860b;
  --amber-soft: #fbf1dc;
  --shadow-sm: 0 1px 2px rgba(20,30,45,0.05), 0 4px 10px rgba(20,30,45,0.04);
  --shadow-md: 0 4px 14px rgba(20,30,45,0.10), 0 1px 3px rgba(20,30,45,0.06);
  --radius: 14px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; background: var(--surface); color: var(--ink);
  font-family: "IBM Plex Sans Condensed", system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Poppins", system-ui, sans-serif; margin: 0 0 .5em; line-height: 1.2; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
header.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.brand .logo-img { height: 46px; width: auto; display: block; }
@media (min-width: 720px) { .brand .logo-img { height: 52px; } }
nav.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
nav.main-nav a:hover { color: var(--accent-dark); text-decoration: none; }
nav.main-nav a.current { color: var(--accent-dark); font-weight: 700; }
/* The nav link rules above are more specific than .btn-primary's own color,
   so without this override the header's CTA button text was never actually
   white — and on hover it matched the darkened green background exactly,
   making it invisible. */
nav.main-nav a.btn-primary,
nav.main-nav a.btn-primary:hover { color: #fff; }

/* ---------- mobile nav toggle ---------- */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin: 0;
  background: transparent; border: none; border-radius: var(--radius-sm);
  cursor: pointer; flex-direction: column; gap: 5px;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    width: 100%; order: 3;
    padding: 10px 0 16px; border-top: 1px solid var(--border);
    margin-top: 12px;
  }
  nav.main-nav.is-open { display: flex; }
  nav.main-nav a { padding: 10px 4px; }
  nav.main-nav a.btn-primary { margin-top: 10px; text-align: center; }
}
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 700;
  font-size: 14.5px; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy-soft); text-decoration: none; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #163d5c 100%);
  color: #fff; padding: 72px 0 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: 42px; color: #fff; }
.hero p.lead { font-size: 18px; color: #dce6f0; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 22px 24px;
}
.hero-badge .big { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 28px; color: var(--brand-green); }
.hero-badge .cap { font-size: 13px; color: #cdd9e5; margin-top: 4px; }
.hero-badge hr { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 16px 0; }

.page-hero {
  background: var(--navy-soft); padding: 52px 0 44px; border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--navy); font-size: 34px; }
.page-hero p { color: var(--ink-muted); font-size: 17px; max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 700; color: var(--accent-dark); margin-bottom: 10px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-muted); font-size: 16.5px; }

.usp-strip { background: var(--ink); }
.usp-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 780px) { .usp-strip .wrap { grid-template-columns: 1fr; } }
.usp-item { padding: 22px 20px; text-align: center; color: #fff; border-left: 1px solid rgba(255,255,255,.12); }
.usp-item:first-child { border-left: none; }
@media (max-width: 780px) { .usp-item { border-left: none; border-top: 1px solid rgba(255,255,255,.12); } .usp-item:first-child { border-top: none; } }
.usp-item .num { color: var(--brand-green); font-weight: 800; font-family: "Poppins", sans-serif; font-size: 15px; margin-bottom: 4px; }
.usp-item p { color: #cdd5de; font-size: 14.5px; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card .icon-tag {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-size: 20px; margin-bottom: 14px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--ink-muted); font-size: 15px; margin-bottom: 0; }
.card a.more { font-weight: 700; font-size: 14.5px; display: inline-block; margin-top: 12px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.project-card .thumb { aspect-ratio: 4/3; width: 100%; object-fit: cover; display: block; background: var(--surface-2); }
.project-card .body { padding: 20px 22px; }
.project-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.project-card .tag { font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark); padding: 4px 10px; border-radius: 999px; }
.project-card h3 { font-size: 17px; margin-bottom: 6px; }
.project-card .loc { font-size: 13px; color: var(--ink-faint); margin-bottom: 10px; }
.project-card p { color: var(--ink-muted); font-size: 14.5px; margin: 0; }

.empty-state { text-align: center; padding: 64px 24px; background: var(--surface-2); border-radius: var(--radius); }
.empty-state .icon { font-size: 40px; margin-bottom: 16px; }
.empty-state h3 { font-size: 21px; margin-bottom: 10px; color: var(--navy); }
.empty-state p { color: var(--ink-muted); max-width: 50ch; margin: 0 auto 24px; font-size: 15.5px; }

.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step .step-num {
  counter-increment: step; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 700;
}
.step .step-num::before { content: counter(step); }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--ink-muted); margin: 0; font-size: 15px; }

.cta-banner {
  background: var(--accent); color: #fff; border-radius: var(--radius); padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta-banner p { color: #eafbe0; margin: 0; }
.cta-banner .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-banner .btn-primary:hover { background: #f2f2f2; }

.info-box {
  border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0;
}
.info-box.navy { border-left-color: var(--navy); background: var(--navy-soft); }
.info-box.amber { border-left-color: var(--amber); background: var(--amber-soft); }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { display: block; margin-bottom: 4px; font-family: "Poppins", sans-serif; font-size: 14.5px; }

table.compare { width: 100%; border-collapse: collapse; margin: 20px 0; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 15px; }
table.compare th { background: var(--surface-2); font-family: "Poppins", sans-serif; font-weight: 700; }

/* ---------- forms ---------- */
form.lead-form { display: grid; gap: 16px; max-width: 620px; }
form.lead-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form.lead-form .row-2 { grid-template-columns: 1fr; } }
form.lead-form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-muted); margin-bottom: 6px; }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.lead-form textarea { min-height: 110px; resize: vertical; }
form.lead-form .btn-primary { justify-self: start; padding: 13px 30px; font-size: 15.5px; }
.form-note { font-size: 13px; color: var(--ink-faint); }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; font-weight: 600; min-height: 1.2em; margin: 0; }
.form-status[data-state="error"] { color: #b3261e; }
.form-status[data-state="ok"] { color: var(--accent); }

.map-embed {
  position: relative; width: 100%; padding-top: 42%; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.map-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 15.5px;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer p { color: var(--ink-muted); font-size: 15px; padding: 14px 0 18px; margin: 0; }
.faq-answer a { color: var(--accent-dark); font-weight: 600; }

/* ---------- savings calculator ---------- */
.calc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.calc-card label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-muted); margin-bottom: 6px; }
.calc-input-row { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.calc-prefix { padding: 12px 14px; background: var(--surface-2); color: var(--ink-muted); font-weight: 700; }
.calc-input-row input { border: none; padding: 12px 14px; font-size: 17px; font-family: inherit; flex: 1; min-width: 0; }
.calc-input-row input:focus { outline: none; }
.calc-checkbox { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); font-size: 14.5px; margin-bottom: 22px; cursor: pointer; }
.calc-checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.calc-result { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; gap: 12px; }
.calc-result-label { color: var(--ink-muted); font-size: 14px; }
.calc-result-value { font-weight: 700; text-align: right; }
.calc-result-value.calc-highlight { color: var(--accent-dark); font-size: 20px; }
.calc-disclaimer { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }
.calc-cap-note { background: var(--amber-soft); color: var(--ink); border-left: 3px solid var(--amber); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; }
.calc-error { color: #b3261e; font-size: 14px; font-weight: 600; margin-top: 14px; }
@media (max-width: 700px) { .map-embed { padding-top: 75%; } }

/* ---------- footer ---------- */
footer.site-footer { background: var(--ink); color: #cdd5de; padding: 48px 0 28px; margin-top: 40px; }
footer.site-footer .grid-4 { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 980px) { footer.site-footer .grid-4 { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 780px) { footer.site-footer .grid-4 { grid-template-columns: 1fr 1fr; } }
footer.site-footer .footer-logo-chip {
  display: inline-block; background: #fff; border-radius: var(--radius-sm);
  padding: 10px 14px; line-height: 0;
}
footer.site-footer .footer-logo-chip img { height: 34px; width: auto; display: block; }
footer.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
footer.site-footer a { color: #cdd5de; }
footer.site-footer a:hover { color: var(--brand-green); }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
footer.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; font-size: 13px; color: var(--ink-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } }
.post-card .meta { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
article.post h1 { font-size: 32px; color: var(--navy); }
article.post .meta { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 24px; }
article.post h2 { font-size: 22px; margin-top: 34px; }
article.post h3 { font-size: 17.5px; margin-top: 22px; }
article.post p, article.post li { font-size: 16.5px; color: var(--ink); }
article.post ul, article.post ol { padding-left: 22px; }
