/* Quality Energy Solutions — shared styles */
:root {
  --green: #2A9F1B;
  --green-bright: #43D42C;
  --charcoal: #373435;
  --ink: #1A1818;
  --text: #1F2937;
  --muted: #5C6B7A;
  --grey: #F4F7FA;
  --tint: #EAF8E3;
  --white: #FFFFFF;
  --line: #E3E8EE;
  --header-h: 120px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(26, 24, 24, .04), 0 8px 24px rgba(26, 24, 24, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, .hero-title { color: var(--charcoal); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
/* .hero-title = the big slogan in each page hero (a <p>, so the page's H1 can be the keyword line) */
h1, .hero-title { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 56px);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--charcoal); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #238a16; }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: #CBD3DC; }
.btn-ghost:hover { border-color: var(--charcoal); }
.btn-light { background: #fff; color: var(--charcoal); }
.btn-light:hover { background: var(--tint); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
/* Logo is sized large so the "Quality Energy Solutions" line under QES stays readable */
.logo img { height: 104px; width: auto; }
@media (max-width: 1180px) { :root { --header-h: 108px; } .logo img { height: 92px; } }
@media (max-width: 820px) { :root { --header-h: 96px; } .logo img { height: 80px; } }
@media (max-width: 400px) { :root { --header-h: 88px; } .logo img { height: 70px; } }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--text);
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--grey); }
.nav a[aria-current="page"] { color: var(--green); background: var(--tint); font-weight: 600; }
.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--charcoal); border-radius: 2px;
  position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mid widths: keep the page links, drop the header quote button (8 menu links need the room) */
@media (max-width: 1360px) { .header-cta { display: none; } }
@media (max-width: 1180px) {
  .header-inner { gap: 20px; }
  .nav a { padding: 8px 12px; }
}

/* Medium screens: tighter spacing so all 7 links stay on the bar */
@media (min-width: 821px) and (max-width: 1060px) {
  .header-inner { gap: 12px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: .92rem; }
}
@media (min-width: 821px) and (max-width: 920px) {
  .logo img { height: 72px; }
  .nav a { padding: 7px 7px; font-size: .88rem; }
}

/* Phones: links move into the tap-to-open menu */
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px clamp(16px, 3.5vw, 56px) 20px;
    display: none;
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav .nav-cta { display: flex; margin-top: 8px; color: #fff; }
  .nav .nav-cta:hover { background: var(--ink); }
}
@media (min-width: 821px) { .nav .nav-cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-grey { background: var(--grey); }
.section-tint { background: var(--tint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); line-height: 1.6; /* fixed so it looks the same as a label or an H1 */
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(67, 212, 44, .18); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(64px, 8vw, 120px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(67, 212, 44, .12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--grey) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 5vw, 96px); align-items: center; }
.hero .hero-title { margin-top: 18px; }
.hero .hero-title .accent { color: var(--green); }
.hero .lead { margin-top: 24px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

.hero-art {
  position: relative; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #DDF3FF 0%, #F2FBEE 70%);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
}
.hero-art svg { width: 100%; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 10px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(26, 24, 24, .12);
}
.photo-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); flex-shrink: 0; }
.photo-tag span { font: 500 .8rem var(--mono); color: var(--muted); }

/* Feature photo (why-us) */
.feature-photo { margin-top: 36px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.project-card .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.04); }
.project-card figcaption { padding: 22px 24px 26px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.project-meta .tag { font: 600 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: var(--tint); padding: 5px 9px; border-radius: 7px; }
.project-meta .kw { font: 600 .82rem var(--mono); color: var(--charcoal); }
.project-card h3 { margin-top: 12px; font-size: 1.15rem; }
.project-card p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
/* A single project spans the row, photo beside the text */
.projects > .project-card:only-child { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .projects > .project-card:only-child { flex-direction: row; align-items: center; }
  .projects > .project-card:only-child .ph { flex: 0 0 62%; aspect-ratio: 16 / 9; }
  .projects > .project-card:only-child figcaption { padding: clamp(24px, 3vw, 48px); }
  .projects > .project-card:only-child h3 { font-size: 1.6rem; }
  .projects > .project-card:only-child p { font-size: 1.08rem; }
}
.hero-art .sun { transform-origin: 470px 110px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.page-hero .hero-grid { grid-template-columns: 1.2fr 1fr; }
.page-hero .hero-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }

@media (max-width: 960px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 16 / 11; }
}

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 36px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card h3 { margin-top: 20px; }
.card p { margin-top: 10px; color: var(--muted); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.icon-badge svg { width: 26px; height: 26px; }

.sector-card { display: flex; flex-direction: column; text-decoration: none; position: relative; overflow: hidden; min-height: 320px; }
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFE9C6; }
.sector-card .num { position: absolute; top: 28px; right: 32px; font: 600 .85rem var(--mono); color: #B7C2CD; }
.sector-card h3 { font-size: 1.6rem; margin-top: 28px; }
.sector-card p { flex-grow: 1; }
.sector-card .more { margin-top: 28px; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.sector-card .more svg { width: 18px; transition: transform .2s; }
.sector-card:hover .more svg { transform: translateX(4px); }

/* Why us */
/* Why QES: centred heading on top, then photo + four blocks side by side, same height */
.why-head { max-width: 900px; }
.why-head h2 { text-wrap: balance; }
.why-head .pill-list, .why-head .hero-actions { justify-content: center; }
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.why-grid .feature-photo { margin-top: 0; aspect-ratio: auto; min-height: 100%; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; } .why-grid .feature-photo { aspect-ratio: 16 / 9; min-height: 0; } }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
@media (max-width: 640px) { .why-list { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 600 .9rem var(--mono); color: var(--green);
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--green-bright); }
.step h3 { margin-top: 14px; }
.step p { margin-top: 10px; color: var(--muted); }

/* Range sliders and panel tiles (used by the savings calculators) */
input[type=range] {
  width: 100%; margin-top: 24px; -webkit-appearance: none; appearance: none; height: 6px;
  border-radius: 999px; background: linear-gradient(90deg, var(--green) var(--fill, 30%), var(--line) var(--fill, 30%));
  outline-offset: 6px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green); cursor: pointer;
}
.panel-viz { display: grid; grid-template-columns: repeat(auto-fill, minmax(22px, 1fr)); gap: 5px; position: relative; min-height: 64px; align-content: start; }
.panel-viz i {
  aspect-ratio: 3 / 5; border-radius: 3px;
  background: linear-gradient(160deg, #2F5E8A, #1B3A58);
  border: 1px solid #4A7AA6;
  animation: pop .3s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(40px, 6vw, 88px); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -8%; bottom: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 212, 44, .35), transparent 62%);
}
.cta-band h2 { color: #fff; max-width: 820px; position: relative; z-index: 1; }
.cta-band p { color: #C9D2DA; margin-top: 16px; max-width: 620px; position: relative; z-index: 1; font-size: 1.1rem; }
.cta-band .hero-actions { position: relative; z-index: 1; }

/* Checklists / pills */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A9F1B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.pill-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 112px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.feature-panel { background: #fff; border-radius: 28px; border: 1px solid var(--line); padding: clamp(28px, 3.5vw, 56px); box-shadow: var(--shadow); }
.feature-panel h3 { font-size: 1.5rem; margin-bottom: 24px; }

/* Option cards */
.option-card { position: relative; }
.option-card .tag {
  display: inline-block; font: 600 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: var(--tint); padding: 6px 10px; border-radius: 8px;
}
.option-card h3 { font-size: 1.5rem; margin-top: 18px; }
.option-card.featured { background: var(--ink); border-color: var(--ink); }
.option-card.featured h3 { color: #fff; }
.option-card.featured p { color: #C9D2DA; }
.option-card.featured .tag { background: rgba(67, 212, 44, .16); color: var(--green-bright); }
.option-diagram { display: flex; align-items: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.option-diagram span {
  font: 600 .78rem var(--mono); padding: 8px 12px; border-radius: 10px;
  background: var(--grey); color: var(--charcoal);
}
.option-card.featured .option-diagram span { background: rgba(255,255,255,.08); color: #fff; }
.option-diagram b { color: var(--green); font-weight: 700; }

/* FAQ */
.faq { max-width: 1000px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-weight: 600; font-size: 1.15rem; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--grey);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 400; color: var(--green);
  transition: transform .25s, background .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--tint); }
.faq details p { padding: 0 60px 26px 0; color: var(--muted); font-size: 1.05rem; }

/* Process list (numbered, vertical) */
.process { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: 0; }
.process li {
  counter-increment: p; display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 500; color: var(--charcoal);
}
.process li:first-child { border-top: 1px solid var(--line); }
.process li::before {
  content: "0" counter(p); font: 600 1rem var(--mono); color: var(--green);
  width: 56px; height: 56px; border-radius: 50%; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
}

/* Grid-type comparison */
.mode-cards .card { text-align: left; }
.mode-cards .card h3 { margin-top: 0; }
.mode-meter { display: flex; gap: 4px; margin-top: 20px; }
.mode-meter i { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.mode-meter i.on { background: var(--green); }
.mode-meter-label { font: 500 .78rem var(--mono); color: var(--muted); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 56px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; color: var(--charcoal); margin-bottom: 8px; padding: 0; }
.field .req { color: var(--green); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem var(--font); color: var(--text);
  border: 1.5px solid #D5DCE3; border-radius: 12px; padding: 14px 16px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(67, 212, 44, .15); }
.field.invalid input, .field.invalid select { border-color: #D14343; }
.field .error { display: none; color: #C13030; font-size: .85rem; margin-top: 6px; }
.field.invalid .error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid #D5DCE3; cursor: pointer; font-weight: 500; transition: all .2s; user-select: none;
}
.choice input:checked + span { background: var(--tint); border-color: var(--green); color: var(--green); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--green-bright); outline-offset: 2px; }
.field.invalid .choice span { border-color: #D14343; }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .small { color: var(--muted); font-size: .9rem; }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success .icon-badge { margin: 0 auto; width: 72px; height: 72px; border-radius: 50%; }
.form-success h2 { margin-top: 20px; font-size: 2rem; }
.form-success p { margin-top: 12px; color: var(--muted); }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }

.contact-card { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(24px, 3vw, 48px); }
.contact-card h2 { color: #fff; font-size: 1.6rem; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: rgba(67, 212, 44, .14); color: var(--green-bright); display: flex; align-items: center; justify-content: center; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: #A9B4BF; font-size: .8rem; font-weight: 500; }
.contact-list a, .contact-list span.v { color: #fff; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--green-bright); }
.placeholder { color: #F5C451 !important; font-family: var(--mono); font-size: .9em; }
.contact-card .btn { margin-top: 24px; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D2DA; padding: clamp(56px, 7vw, 96px) 0 32px; margin-top: clamp(72px, 9vw, 128px); }
.site-footer.flush { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer .logo img { height: 110px; }
.footer-tag { margin-top: 18px; max-width: 360px; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--green-bright); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #8C98A4; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .sun, .panel-viz i { animation: none; }
  .btn, .sector-card { transition: none; }
}

/* Very small phones: let grid children shrink below their content width, and let long buttons wrap */
.contact-grid > *, .form-grid > * { min-width: 0; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }

/* ---------- Savings calculator (agricultural page) ---------- */
.calc-card {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 3vw, 48px);
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(20px, 3vw, 40px); box-shadow: var(--shadow);
}
@media (max-width: 900px) { .calc-card { grid-template-columns: 1fr; } }
.calc-card > * { min-width: 0; }
.calc-controls { display: grid; gap: 44px; align-content: center; padding: 8px 0; }
.calc-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-group > label { display: block; padding: 0; font-weight: 600; color: var(--charcoal); margin-bottom: 14px; }
.calc-scale { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .9rem; }
.calc-scale output { font-size: 1.3rem; font-weight: 700; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.calc-group input[type=range] { margin-top: 14px; }

.calc-results { background: var(--grey); border-radius: 20px; padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; }
.calc-results dl { margin: 0 0 20px; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px dashed #D5DCE3; }
.calc-row dt { color: var(--muted); font-size: .95rem; }
.calc-row dd { margin: 0; font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 1.45rem); color: var(--charcoal); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.01em; }
.calc-row-main dd { color: var(--green); font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 800; }
.calc-btn { width: 100%; margin-top: 10px; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1EBE5A; }
.calc-note { margin-top: 14px; text-align: center; color: var(--muted); font-size: .85rem; }
.calc-row[hidden] { display: none; }
@media (max-width: 400px) { .calc-card { padding: 16px; } .calc-results { padding: 18px 16px; } }
.calc-row-sub dt, .calc-row-sub dd { font-size: .9rem; color: var(--muted); font-weight: 500; }
.calc-row-sub { padding: 10px 0 18px; }

/* Panel diagram inside the savings calculator */
.calc-panels { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px; margin-bottom: 16px; }
.calc-panels-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.calc-panels-head span { color: var(--muted); font-size: .95rem; }
.calc-panels-head strong { font-size: clamp(1.2rem, 1.6vw, 1.45rem); color: var(--charcoal); font-variant-numeric: tabular-nums; }
.calc-panels .panel-viz { grid-template-columns: repeat(auto-fill, minmax(15px, 1fr)); gap: 4px; min-height: 26px; }
.calc-panels-key { margin-top: 10px; font: 500 .78rem var(--mono); color: var(--muted); }

/* Stacked calculator (agricultural page): sliders, then panel diagram, then results */
.calc-actions { display: grid; gap: 10px; margin-top: 10px; }
.calc-actions .calc-btn { margin-top: 0; }
.calc-card.calc-stacked { grid-template-columns: 1fr; gap: clamp(20px, 2.4vw, 28px); }
.calc-stacked .calc-controls { grid-template-columns: 1fr 1fr; gap: 28px clamp(32px, 4vw, 64px); align-content: start; padding: 4px 0 0; }
.calc-stacked .calc-panels { margin: 0; padding: clamp(16px, 2vw, 24px); background: var(--grey); border: 0; border-radius: 20px; }
.calc-stacked .calc-panels .panel-viz { grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 5px; }
.calc-stacked .calc-results dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); margin-bottom: 8px; }
.calc-stacked .calc-row-main { grid-column: 1 / -1; }
.calc-stacked .calc-actions { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) {
  .calc-stacked .calc-controls, .calc-stacked .calc-results dl, .calc-stacked .calc-actions { grid-template-columns: 1fr; }
  .calc-stacked .calc-panels .panel-viz { grid-template-columns: repeat(auto-fill, minmax(14px, 1fr)); gap: 4px; }
}

/* Dark calculator card (agricultural page) */
.calc-card.calc-dark { background: var(--ink); border-color: var(--ink); color: #E6EBF0; box-shadow: 0 24px 60px rgba(26, 24, 24, .28); position: relative; overflow: hidden; }
.calc-dark::before {
  content: ""; position: absolute; right: -160px; top: -160px; width: 480px; height: 480px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(67, 212, 44, .18), transparent 65%);
}
.calc-dark > * { position: relative; }
.calc-dark .calc-group > label { color: #fff; }
.calc-dark .calc-scale { color: #8C98A4; }
.calc-dark .calc-scale output { color: #fff; }
.calc-dark input[type=range] { background: linear-gradient(90deg, var(--green-bright) var(--fill, 30%), rgba(255, 255, 255, .14) var(--fill, 30%)); }
.calc-dark input[type=range]::-webkit-slider-thumb { background: var(--ink); border-color: var(--green-bright); }
.calc-dark input[type=range]::-moz-range-thumb { background: var(--ink); border-color: var(--green-bright); }
.calc-dark .calc-panels, .calc-dark .calc-results { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.calc-dark .calc-panels-head span, .calc-dark .calc-panels-key { color: #A9B4BF; }
.calc-dark .calc-panels-head strong { color: #fff; }
.calc-dark .panel-viz i { border-color: #5C8FC0; }
.calc-dark .calc-row { border-bottom-color: rgba(255, 255, 255, .12); }
.calc-dark .calc-row dt { color: #A9B4BF; }
.calc-dark .calc-row dd { color: #fff; }
.calc-dark .calc-row-main dd { color: var(--green-bright); }
.calc-dark .calc-row-sub dt, .calc-dark .calc-row-sub dd { color: #8C98A4; }
.calc-dark .btn-dark { background: #fff; color: var(--charcoal); }
.calc-dark .btn-dark:hover { background: var(--tint); }
.calc-dark .calc-note { color: #8C98A4; }
.calc-dark :focus-visible { outline-color: var(--green-bright); }

/* Keep the calculator a comfortable width on wide screens, centred under a centred heading */
.calc-card.calc-stacked { max-width: 1180px; margin-inline: auto; }
#calculator .section-head { margin-inline: auto; text-align: center; }

/* Typed monthly bill */
.calc-money {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid #D5DCE3; border-radius: 16px; padding: 4px 18px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.calc-money:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(67, 212, 44, .15); }
.calc-money input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 10px 0;
  font: 700 clamp(1.4rem, 2vw, 1.8rem) var(--font); color: var(--charcoal); font-variant-numeric: tabular-nums;
}
.calc-money-r { font: 700 clamp(1.4rem, 2vw, 1.8rem) var(--font); color: var(--muted); }
.calc-money-unit { font-size: .95rem; color: var(--muted); white-space: nowrap; }
.calc-hint { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.calc-dark .calc-money { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.calc-dark .calc-money:focus-within { border-color: var(--green-bright); box-shadow: 0 0 0 4px rgba(67, 212, 44, .18); }
.calc-dark .calc-money input { color: #fff; }
.calc-dark .calc-money-r, .calc-dark .calc-money-unit, .calc-dark .calc-hint { color: #8C98A4; }

/* Sector switch (home page calculator) */
.calc-group-full { grid-column: 1 / -1; }
.calc-group legend { display: block; padding: 0; font-weight: 600; color: var(--charcoal); margin-bottom: 14px; }
.calc-sector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calc-sector label { position: relative; }
.calc-sector input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-sector span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 6px;
  border: 1.5px solid #D5DCE3; border-radius: 12px; font-weight: 600; font-size: .98rem; text-align: center;
  cursor: pointer; user-select: none; transition: background .2s, border-color .2s, color .2s;
}
.calc-sector input:focus-visible + span { outline: 3px solid var(--green-bright); outline-offset: 2px; }
.calc-dark .calc-group legend { color: #fff; }
.calc-dark .calc-sector span { border-color: rgba(255, 255, 255, .16); color: #C9D2DA; background: rgba(255, 255, 255, .03); }
.calc-dark .calc-sector span:hover { border-color: rgba(255, 255, 255, .32); color: #fff; }
.calc-dark .calc-sector input:checked + span { background: rgba(67, 212, 44, .14); border-color: var(--green-bright); color: #fff; }
@media (max-width: 400px) { .calc-sector span { font-size: .86rem; padding: 8px 2px; } }

/* ---------- Case studies & guides (long-form pages) ---------- */
/* Breadcrumb trail above a page's title */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #B7C2CD; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.article-meta { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* Comfortable reading width and spacing for article text */
.prose { max-width: 780px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: clamp(44px, 5vw, 64px); scroll-margin-top: 130px; }
.prose p, .prose li { font-size: 1.06rem; color: var(--text); }
.prose ul:not(.check-list):not(.pill-list) { padding-left: 1.2em; }
.prose ul:not(.check-list):not(.pill-list) li + li { margin-top: 6px; }
.prose a { color: var(--green); font-weight: 600; }
/* The short, direct answer that opens each section */
.answer { padding: 16px 20px; background: var(--tint); border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; font-size: 1.08rem; }
.toc { padding: 20px 24px; background: var(--grey); border-radius: 16px; }
.toc strong { display: block; margin-bottom: 8px; color: var(--charcoal); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li + li { margin-top: 4px; }

/* Simple data table (project specs, comparisons) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; background: #fff; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th { background: var(--grey); color: var(--charcoal); font-weight: 700; }
.spec-table tbody th { width: 38%; color: var(--muted); font-weight: 500; }
.confirm { background: #FFF4CC; color: #7A5A00; font-weight: 600; padding: 0 4px; border-radius: 4px; }

/* "Read the case study" link on a gallery card */
.project-card .more { display: inline-flex; margin-top: 12px; font-weight: 600; color: var(--green); text-decoration: none; }
.project-card .more:hover { text-decoration: underline; }

/* Text for screen readers only (e.g. an empty table corner) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Blog (blog.html + blog-*.html) ---------- */
.article-meta { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.article-title { max-width: 22ch; }
.article-photo { margin: 0 0 clamp(28px, 4vw, 44px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 3; background: var(--grey); }
.article-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose h3 { font-size: 1.2rem; margin-top: 32px; }
.prose > p.lead { font-size: 1.15rem; color: var(--charcoal); }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 48px !important; padding: 20px 24px; background: var(--grey); border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; }
.author-badge { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--charcoal); color: #fff; font-weight: 700; font-size: .9rem; }
.author-box p { font-size: .95rem; color: var(--muted); }
.author-box .author-name { color: var(--charcoal); font-weight: 600; margin-bottom: 4px; }
.blog-card .ph { display: block; }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card h3 a, .blog-card h2 a { color: var(--charcoal); text-decoration: none; }
.blog-card h3 a:hover { color: var(--green); }
.blog-card .more { margin-top: auto; padding-top: 14px; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* "Website by Quantum Forge Labs" credit in the footer */
.footer-bottom .credit a { color: #C9D2DA; text-decoration: none; font-weight: 600; }
.footer-bottom .credit a:hover { color: var(--green); text-decoration: underline; }

/* Quote form anti-spam field: off-screen for people, still in the page for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #A12626; font-weight: 500; }

/* Offers "coming soon" page */
.coming-soon { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(24px, 6vw, 80px) 0; }
.coming-soon .lead { margin: 20px auto 0; max-width: 620px; }
.coming-soon .hero-actions { justify-content: center; }

/* Home "Why trust us" row of credentials */
.trust-row { margin-top: 22px; }
.trust-row li { font-weight: 600; }

/* Opening hours in the footer "Get in touch" column */
.footer-links .footer-hours { color: #8C98A4; line-height: 1.6; }
