/* Energy-Experts site styles
   Colors, type and spacing all start in :root below.
   Change a value there and it updates everywhere. */

:root {
  --bg: #e8edf1;
  --panel: #f8fafb;
  --ink: #16222e;
  --ink-soft: #2c3b49;
  --muted: #536373;
  --line: #c3ced8;
  --accent: #007b00;        /* brand green, from the logo */
  --accent-hover: #005c00;
  --accent-light: #76c75e;  /* green that reads on the dark bands */
  --heat: #d4480c;          /* heat leaving a house: the drawings only */
  --cold: #2a6fa8;
  --dark: #16222e;
  --dark-line: #2d3c4a;
  --dark-text: #cdd8e2;
  --dark-muted: #9fb0c0;
  --warm-room: #fff6ec;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: 24px;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: 68px; }
h2 { font-size: 44px; }
h3 { font-family: var(--font-body); font-size: 22px; line-height: 1.25; }

p { margin: 0; }

a { color: var(--ink); }
a:hover { color: var(--accent); }

a:focus-visible,
.btn:focus-visible { outline: 2px solid var(--cold); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead { font-size: 19px; }

.more { font-weight: 600; display: inline-block; padding: 10px 0; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--panel); color: var(--ink); border-color: var(--ink); }
.btn-accent { background: var(--accent-light); color: var(--dark); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.grid-2,
.grid-3 { display: flex; flex-wrap: wrap; gap: 20px; }
.grid-2 > * { flex: 1 1 340px; min-width: 0; }
.grid-3 > * { flex: 1 1 300px; min-width: 0; }

.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); max-width: 40em; }

/* ---------- Header ---------- */

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.brand-logo { display: block; width: 250px; height: auto; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a { text-decoration: none; padding: 12px 0; }

.btn-phone {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero-inner {
  padding-top: 64px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
}

.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-copy .lead { font-size: 20px; color: var(--ink-soft); max-width: 34em; }

.hero-figure {
  flex: 1 1 380px;
  min-width: 0;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 18px 14px;
}

.hero-figure svg { display: block; width: 100%; height: auto; }
.hero-figure figcaption { margin: 10px 4px 0; font-size: 14px; color: var(--muted); }

/* House drawing */
.ground { stroke: var(--line); stroke-width: 2; }
.room { fill: var(--warm-room); }
.glow { fill: var(--heat); opacity: 0.16; }
.furnace { fill: var(--heat); }
.roof { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.shell { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.glass { stroke: var(--cold); stroke-width: 7; }
.dots { fill: var(--heat); }
.rings-warm { fill: none; stroke: var(--heat); stroke-width: 1.8; }
.rings-cold { fill: none; stroke: var(--cold); stroke-width: 1.8; }
.t-in, .t-btu, .t-out { font-family: var(--font-display); font-weight: 600; }
.t-in { font-size: 24px; fill: var(--heat); }
.t-btu { font-size: 22px; fill: var(--ink); }
.t-out { font-size: 24px; fill: var(--cold); }

/* ---------- Audiences ---------- */

.audiences { padding-bottom: 64px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h2 { font-size: 30px; line-height: 1.1; }

/* ---------- Services ---------- */

.services {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 60px;
  padding-bottom: 64px;
}

.service {
  border-top: 4px solid var(--ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--muted);
}

/* ---------- Training ---------- */

.training { padding-top: 64px; padding-bottom: 64px; }
.training .section-head h2 { max-width: 18em; }

.stat {
  border-top: 4px solid var(--ink);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}

/* ---------- Where the heat goes ---------- */

.heat { background: var(--dark); color: #e4ebf1; }
.heat .eyebrow { color: var(--dark-muted); }
.heat h2 { font-size: 48px; line-height: 1.02; }
.heat p { color: var(--dark-text); max-width: 34em; }

.heat-inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px 56px;
}

.heat-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.heat-table { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.heat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--dark-line);
  padding-bottom: 10px;
}

.heat-row .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.heat-total { border-bottom: 0; font-weight: 600; }
.heat-total .num { font-size: 38px; color: var(--heat-light, #ff8a4c); }
.heat-note { margin: 0; font-size: 14px; color: var(--dark-muted); }

/* ---------- Case file ---------- */

.casefile { padding-top: 68px; padding-bottom: 68px; }
.casefile .grid-2 { gap: 28px 56px; align-items: flex-start; }
.casefile .grid-2 > :first-child { flex: 1 1 300px; }
.casefile .grid-2 > :last-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }

.big { font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 1; }
.big-accent { color: var(--accent); }

/* ---------- About ---------- */

.about {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 56px;
  padding-bottom: 56px;
}

.about .grid-2 { gap: 28px 56px; }
.about .grid-2 > :first-child { display: flex; flex-direction: column; gap: 12px; }
.about h2 { font-size: 40px; }

.creds { margin: 0; padding: 0; list-style: none; }
.creds li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.creds li:last-child { border-bottom: 0; }

/* ---------- Articles ---------- */

.articles { padding-top: 64px; padding-bottom: 64px; }
.articles h2 { font-size: 40px; margin-bottom: 24px; }
.articles .grid-3 { margin-bottom: 4px; }

.article {
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article:hover { border-color: var(--ink); }
.article-title { font-size: 21px; font-weight: 600; line-height: 1.25; }
.article-sub { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: var(--dark-text); }

.footer-inner {
  padding-top: 44px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  justify-content: space-between;
  font-size: 15px;
}

.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col a { color: #fff; padding: 6px 0; }
.footer-col a:hover { color: var(--accent-light); }
.footer-logo { display: block; width: 260px; height: auto; margin-bottom: 8px; }
.copyright { color: var(--dark-muted); }

/* ---------- Narrow screens ---------- */

@media (max-width: 760px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .heat h2 { font-size: 34px; }
  .about h2, .articles h2 { font-size: 30px; }
  .big { font-size: 44px; }
  .hero-inner { padding-top: 40px; }
  .brand-logo { width: 220px; }
}
