/*
Theme Name: Aeriva
Theme URI: https://aeriva.co.uk
Author: Matt Poulter
Description: Custom lightweight theme for Aeriva Heat Pumps — no page builder.
Version: 1.8
Text Domain: aeriva
*/

:root{
  --ink:#101A1D;
  --ink-soft:#1B2A2E;
  --paper:#EEF1EF;
  --paper-dim:#E2E7E3;
  --flow-cold:#3E7C9A;
  --flow-hot:#FF6A2B;
  --teal:#2F6E5C;
  --line:rgba(16,26,29,0.12);
  --line-on-dark:rgba(238,241,239,0.16);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter',sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}
h1,h2,h3{font-family:'Fraunces',serif; font-weight:600; line-height:1.08; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono',monospace; letter-spacing:0.02em;}
.wrap{max-width:1100px; margin:0 auto; padding:0 24px;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}

/* ---------- HEADER ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(238,241,239,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:16px 24px;}
.logo{font-family:'Fraunces',serif; font-weight:700; font-size:20px; letter-spacing:-0.01em;}
.logo span{color:var(--flow-hot);}
.header-cta{
  font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:600;
  background:var(--ink); color:var(--paper);
  padding:10px 16px; border-radius:100px;
  letter-spacing:0.03em;
}

/* ---------- NAV (minimal, dropdown) ---------- */
.nav-cluster{position:relative; display:flex; align-items:center; gap:10px;}
.menu-toggle-input{position:absolute; opacity:0; pointer-events:none;}
.menu-toggle{
  display:flex; flex-direction:column; justify-content:center; gap:4px;
  width:34px; height:34px; cursor:pointer; border-radius:8px;
}
.menu-toggle span{width:18px; height:2px; background:var(--ink); transition:transform .2s ease, opacity .2s ease;}
.menu-toggle-input:checked ~ .menu-toggle span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.menu-toggle-input:checked ~ .menu-toggle span:nth-child(2){opacity:0;}
.menu-toggle-input:checked ~ .menu-toggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

.menu-panel{
  position:absolute; top:calc(100% + 12px); right:0; z-index:60;
  min-width:200px;
  background:var(--ink); border:1px solid var(--line-on-dark); border-radius:14px;
  padding:10px; box-shadow:0 12px 28px rgba(16,26,29,0.18);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.menu-toggle-input:checked ~ .menu-panel{opacity:1; visibility:visible; transform:translateY(0);}
.menu-panel-list{list-style:none;}
.menu-panel-list li + li{border-top:1px solid var(--line-on-dark);}
.menu-panel-list a{
  display:block; padding:11px 12px; font-family:'IBM Plex Mono',monospace;
  font-size:12px; letter-spacing:0.02em; color:var(--paper); border-radius:8px;
}
.menu-panel-list a:hover{background:rgba(255,255,255,0.06);}

/* ---------- HERO ---------- */
.hero{
  background:var(--ink);
  color:var(--paper);
  padding:56px 0 40px;
  position:relative;
  overflow:hidden;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:500;
  letter-spacing:0.08em; text-transform:uppercase;
  color:var(--flow-hot);
  border:1px solid rgba(255,106,43,0.35);
  padding:6px 12px; border-radius:100px;
  margin-bottom:22px;
}
.eyebrow::before{content:''; width:6px; height:6px; border-radius:50%; background:var(--flow-hot);}
.hero h1{font-size:38px; color:#fff; margin-bottom:16px;}
.hero h1 em{font-style:normal; color:var(--flow-hot);}
.hero p.lede{font-size:16px; color:rgba(238,241,239,0.72); max-width:46ch; margin-bottom:28px;}

.flow-gauge{
  margin:28px 0 32px;
  border:1px solid var(--line-on-dark);
  border-radius:16px;
  padding:20px;
  background:rgba(255,255,255,0.03);
}
.flow-gauge-label{
  display:flex; justify-content:space-between; align-items:baseline;
  font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(238,241,239,0.55);
  text-transform:uppercase; letter-spacing:0.06em; margin-bottom:12px;
}
.gauge-track{
  position:relative; height:10px; border-radius:100px;
  background:linear-gradient(90deg, var(--flow-cold) 0%, #8AA96B 50%, var(--flow-hot) 100%);
  margin-bottom:14px;
}
.gauge-marker{
  position:absolute; top:-7px; width:2px; height:24px; background:#fff;
}
.gauge-marker::after{
  content:attr(data-label);
  position:absolute; top:-30px; left:50%; transform:translateX(-50%);
  font-family:'IBM Plex Mono',monospace; font-size:10px; white-space:nowrap;
  color:#fff; background:var(--ink-soft); padding:3px 7px; border-radius:5px;
  border:1px solid var(--line-on-dark);
}
.gauge-marker.typical{left:82%;}
.gauge-marker.aeriva{left:34%;}
.gauge-foot{display:flex; justify-content:space-between; font-size:12px; color:rgba(238,241,239,0.45);}

.hero-ctas{display:flex; flex-direction:column; gap:10px;}
.btn-primary{
  background:var(--flow-hot); color:#fff; text-align:center;
  padding:15px 20px; border-radius:12px; font-weight:600; font-size:15px;
  border:none; display:block;
}
.btn-secondary{
  text-align:center; padding:15px 20px; border-radius:12px; font-weight:600; font-size:15px;
  border:1px solid var(--line-on-dark); color:var(--paper);
}
.trust-row{
  display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:24px;
  font-family:'IBM Plex Mono',monospace; font-size:11px; color:rgba(238,241,239,0.5);
}
.trust-row span{display:flex; align-items:center; gap:6px;}
.trust-row span::before{content:'✓'; color:var(--flow-hot);}

/* ---------- SECTION GENERIC ---------- */
section{padding:52px 0;}
.section-head{margin-bottom:28px;}
.section-eyebrow{
  font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--teal); margin-bottom:10px; display:block;
}
.section-head h2{font-size:28px;}
.section-head p{color:rgba(16,26,29,0.62); margin-top:10px; max-width:52ch; font-size:15px;}

/* ---------- DIFFERENTIATORS ---------- */
.diff-list{display:flex; flex-direction:column; gap:1px; background:var(--line); border-radius:16px; overflow:hidden; border:1px solid var(--line);}
.diff-item{background:var(--paper); padding:22px; display:flex; gap:16px;}
.diff-num{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--flow-hot); font-weight:600; padding-top:2px;}
.diff-item h3{font-size:17px; margin-bottom:6px; font-family:'Inter',sans-serif; font-weight:700;}
.diff-item p{font-size:14px; color:rgba(16,26,29,0.62);}

/* ---------- PROCESS ---------- */
.process-wrap{background:var(--ink-soft); color:var(--paper); border-radius:20px; padding:36px 24px;}
.process-wrap .section-head h2{color:#fff;}
.process-wrap .section-head p{color:rgba(238,241,239,0.6);}
.process-wrap .section-eyebrow{color:var(--flow-hot);}
.step{display:flex; gap:16px; padding:18px 0; border-top:1px solid var(--line-on-dark);}
.step:first-of-type{border-top:none;}
.step-num{font-family:'IBM Plex Mono',monospace; font-size:22px; font-weight:600; color:var(--flow-hot); min-width:34px;}
.step h3{font-size:16px; color:#fff; margin-bottom:5px; font-family:'Inter',sans-serif; font-weight:700;}
.step p{font-size:14px; color:rgba(238,241,239,0.6);}

/* ---------- GRANT BANNER ---------- */
.grant{
  background:linear-gradient(135deg, var(--teal), #234E42);
  color:#fff; border-radius:20px; padding:32px 24px; position:relative; overflow:hidden;
}
.grant .section-eyebrow{color:rgba(255,255,255,0.75);}
.grant h2{font-size:24px; color:#fff; margin-bottom:10px;}
.grant p{font-size:14px; color:rgba(255,255,255,0.75); max-width:44ch; margin-bottom:20px;}
.grant-figure{
  font-family:'IBM Plex Mono',monospace; font-size:52px; font-weight:600; color:#fff;
  margin:16px 0 6px; letter-spacing:-0.02em;
}
.grant-figure span{font-size:22px; vertical-align:top; opacity:0.7;}
.grant-sub{font-size:12px; color:rgba(255,255,255,0.6); margin-bottom:22px;}
.btn-light{background:#fff; color:var(--teal); font-weight:700; padding:14px 22px; border-radius:12px; display:inline-block; font-size:14px;}

/* ---------- SERVICES ---------- */
.service-grid{display:flex; flex-direction:column; gap:14px;}
.service-card{
  border:1px solid var(--line); border-radius:16px; padding:22px; background:#fff;
}
.service-card .mono-tag{
  font-size:10px; color:var(--flow-cold); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:10px; display:block;
}
.service-card h3{font-size:18px; margin-bottom:8px;}
.service-card p{font-size:14px; color:rgba(16,26,29,0.6);}

/* ---------- FAQ ---------- */
.faq-item{border-bottom:1px solid var(--line); padding:18px 0;}
.faq-q{display:flex; justify-content:space-between; align-items:center; font-weight:600; font-size:15px; cursor:pointer;}
.faq-q::after{content:'+'; font-family:'IBM Plex Mono',monospace; font-size:20px; color:var(--flow-hot);}
.faq-item[open] .faq-q::after{content:'–';}
.faq-a{font-size:14px; color:rgba(16,26,29,0.62); margin-top:10px; max-width:56ch;}

/* ---------- FINAL CTA ---------- */
.final-cta{
  background:var(--ink); color:#fff; border-radius:20px; padding:40px 24px; text-align:left;
}
.final-cta .eyebrow{margin-bottom:16px;}
.final-cta h2{color:#fff; font-size:26px; margin-bottom:12px;}
.final-cta p{color:rgba(238,241,239,0.65); font-size:14px; margin-bottom:24px; max-width:40ch;}

/* ---------- FOOTER ---------- */
.site-footer{padding:32px 0 40px; border-top:1px solid var(--line); margin-top:8px;}
.footer-inner{display:flex; flex-direction:column; gap:14px; font-size:12px; color:rgba(16,26,29,0.5);}
.footer-links{display:flex; gap:16px; flex-wrap:wrap; font-family:'IBM Plex Mono',monospace; font-size:11px;}

/* ---------- FORM (Contact Form 7 / WPForms default markup) ---------- */
.aeriva-form-wrap{margin-top:8px;}
.aeriva-form-wrap input[type=text],
.aeriva-form-wrap input[type=email],
.aeriva-form-wrap input[type=tel],
.aeriva-form-wrap textarea,
.aeriva-form-wrap select{
  width:100%; background:rgba(255,255,255,0.05); border:1px solid var(--line-on-dark);
  border-radius:10px; padding:13px 14px; color:#fff; font-family:'Inter',sans-serif; font-size:14px;
  margin-bottom:14px;
}
.aeriva-form-wrap input::placeholder,
.aeriva-form-wrap textarea::placeholder{color:rgba(238,241,239,0.4);}
.aeriva-form-wrap input[type=submit]{
  background:var(--flow-hot); color:#fff; border:none; border-radius:12px;
  padding:14px 24px; font-weight:600; font-size:15px; cursor:pointer;
}
.aeriva-form-wrap label{font-size:13px; color:rgba(238,241,239,0.7); display:block; margin-bottom:6px;}
.aeriva-form-wrap .wpcf7-not-valid-tip{color:var(--flow-hot); font-size:12px; margin-top:-10px; margin-bottom:10px;}
.aeriva-form-wrap .wpcf7-response-output{
  border:1px solid var(--line-on-dark); border-radius:10px; padding:12px 14px;
  color:rgba(238,241,239,0.8); font-size:13px; margin-top:14px;
}

/* ---------- EPC SUMMARY ---------- */
.epc-summary{margin-top:14px; border:1px solid var(--line-on-dark); border-radius:12px; padding:14px 16px; background:rgba(255,255,255,0.03);}
.epc-summary[hidden]{display:none;}
.epc-summary-title{font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--flow-hot); margin-bottom:10px;}
.epc-summary-row{display:flex; justify-content:space-between; gap:12px; font-size:13px; padding:5px 0; border-top:1px solid var(--line-on-dark);}
.epc-summary-row:first-of-type{border-top:none;}
.epc-summary-row span{color:rgba(238,241,239,0.55);}
.epc-summary-row strong{color:#fff; font-weight:500; text-align:right;}
.epc-summary-foot{font-size:12px; color:rgba(238,241,239,0.45); margin-top:10px;}

/* ---------- ISSUES / ATTENTION BAND ---------- */
.issues-band{
  background:rgba(255,106,43,0.07);
  border:1px solid rgba(255,106,43,0.18);
  border-radius:20px; padding:32px 24px;
}
.issues-band .section-eyebrow{color:var(--flow-hot);}

/* ---------- ESTIMATOR ---------- */
.estimator{
  background:var(--ink); color:var(--paper); border-radius:20px; padding:28px 22px;
  border:1px solid var(--line-on-dark);
}
.estimator-progress{margin-bottom:26px;}
.estimator-progress-label{
  display:flex; justify-content:space-between; font-family:'IBM Plex Mono',monospace;
  font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:rgba(238,241,239,0.55); margin-bottom:10px;
}
.estimator-progress-track{height:6px; border-radius:100px; background:rgba(255,255,255,0.08); overflow:hidden;}
.estimator-progress-fill{height:100%; background:var(--flow-hot); border-radius:100px; width:20%; transition:width .25s ease;}

.estimator-step{display:none;}
.estimator-step.active{display:block;}
.estimator-step h2{color:#fff; font-size:22px; margin-bottom:18px;}

.choice-grid{display:flex; flex-direction:column; gap:10px;}
.choice-card{
  width:100%; text-align:left; background:rgba(255,255,255,0.04);
  border:1px solid var(--line-on-dark); border-radius:12px; padding:15px 16px;
  color:var(--paper); font-family:'Inter',sans-serif; font-size:15px; font-weight:500;
  cursor:pointer; transition:border-color .15s ease, background .15s ease;
}
.choice-card:hover{border-color:rgba(255,106,43,0.4);}
.choice-card.selected{border-color:var(--flow-hot); background:rgba(255,106,43,0.1);}
.choice-card .sub{display:block; font-size:12px; color:rgba(238,241,239,0.5); margin-top:2px; font-weight:400;}

.estimator-step input[type=text]{
  width:100%; background:rgba(255,255,255,0.05); border:1px solid var(--line-on-dark);
  border-radius:12px; padding:15px 16px; color:#fff; font-family:'Inter',sans-serif; font-size:16px;
}
.estimator-step input::placeholder{color:rgba(238,241,239,0.4);}

.estimator-nav{display:flex; gap:10px; margin-top:24px;}
.btn-ghost{
  padding:14px 18px; border-radius:12px; font-weight:600; font-size:14px;
  border:1px solid var(--line-on-dark); color:var(--paper); background:transparent; cursor:pointer;
}
.btn-continue{
  flex:1; background:var(--flow-hot); color:#fff; border:none; border-radius:12px;
  padding:14px 18px; font-weight:600; font-size:15px; cursor:pointer;
}
.btn-continue:disabled{opacity:0.35; cursor:not-allowed;}

.estimator-result{}
.result-figure-row{display:flex; gap:14px; flex-wrap:wrap; margin:20px 0 24px;}
.result-figure{
  flex:1; min-width:130px; border:1px solid var(--line-on-dark); border-radius:14px; padding:16px;
  background:rgba(255,255,255,0.03);
}
.result-figure .mono-tag{font-size:10px; color:var(--flow-cold); text-transform:uppercase; letter-spacing:0.06em; display:block; margin-bottom:8px;}
.result-figure .figure-value{font-family:'IBM Plex Mono',monospace; font-size:24px; font-weight:600; color:#fff;}
.result-note{font-size:13px; color:rgba(238,241,239,0.55); margin-bottom:26px;}

.lead-form{border-top:1px solid var(--line-on-dark); padding-top:22px; margin-top:6px;}
.lead-form h3{color:#fff; font-size:18px; margin-bottom:6px; font-family:'Inter',sans-serif;}
.lead-form p{font-size:13px; color:rgba(238,241,239,0.55); margin-bottom:16px;}
.lead-form input{
  width:100%; background:rgba(255,255,255,0.05); border:1px solid var(--line-on-dark);
  border-radius:10px; padding:13px 14px; color:#fff; font-family:'Inter',sans-serif; font-size:14px;
  margin-bottom:12px;
}
.lead-form input::placeholder{color:rgba(238,241,239,0.4);}
.lead-form button{
  background:var(--flow-hot); color:#fff; border:none; border-radius:12px;
  padding:14px 22px; font-weight:600; font-size:15px; cursor:pointer; width:100%;
}
.lead-form button:disabled{opacity:0.5; cursor:not-allowed;}
.lead-response{font-size:13px; margin-top:14px; padding:12px 14px; border-radius:10px; display:none;}
.lead-response.success{display:block; background:rgba(47,110,92,0.2); border:1px solid rgba(47,110,92,0.4); color:#9FD6C3;}
.lead-response.error{display:block; background:rgba(255,106,43,0.12); border:1px solid rgba(255,106,43,0.3); color:#FFB48A;}

/* ---------- GENERIC PAGE / POST CONTENT (used by index.php fallback) ---------- */
.page-content{padding:60px 0;}
.page-content h1{font-size:32px; margin-bottom:20px;}
.page-content p{margin-bottom:16px; font-size:15px; color:rgba(16,26,29,0.75);}

@media (min-width:720px){
  .hero h1{font-size:52px;}
  .diff-list{flex-direction:row;}
  .diff-item{flex:1; flex-direction:column; gap:10px;}
  .service-grid{flex-direction:row; flex-wrap:wrap;}
  .service-card{flex:1 1 30%;}
  .grant{display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:24px;}
  .hero-ctas{flex-direction:row;}
  .btn-primary,.btn-secondary{padding:15px 26px;}
}
