/* Attic Ventilation Calculator — scoped under .avc so nothing here leaks into the rest of the site. */

.avc{ margin-top:6px; }

.avc-hero{
  position:relative;
  background:radial-gradient(circle at top right, rgba(95,100,28,0.28), transparent 42%), linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.avc-hero .wrap{
  padding-top:44px;
  padding-bottom:52px;
}
.avc-hero-top{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:flex-end;
  margin-bottom:24px;
}
.avc-hero-badge{
  display:inline-flex;
  align-items:center;
  padding:11px 18px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.16);
  color:#f2e9d7;
  font-size:12.5px;
  font-weight:700;
  white-space:nowrap;
}
.avc-hero-eyebrow{
  position:relative;
  z-index:2;
  color:#F7D35B;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin-bottom:14px;
}
.avc-hero h2{
  position:relative;
  z-index:2;
  font-family:'Baloo 2',var(--font-head);
  text-transform:none;
  letter-spacing:0;
  color:#fff;
  font-size:clamp(32px,4.2vw,52px);
  line-height:1.08;
  margin-bottom:16px;
  max-width:760px;
}
.avc-hero-sub{
  position:relative;
  z-index:2;
  color:rgba(255,255,255,0.85);
  font-size:16px;
  line-height:1.6;
  max-width:640px;
  margin:0 0 20px;
}
.avc-hero-brandline{
  position:relative;
  z-index:2;
  color:rgba(255,255,255,0.55);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  margin-bottom:20px;
}
.avc-hero-chip{
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,0.95);
  color:var(--primary-dark);
  border-radius:999px;
  padding:7px 18px 7px 7px;
  font-size:13px;
  font-weight:700;
}
.avc-hero-chip img{
  width:30px;
  height:30px;
  border-radius:50%;
  object-fit:cover;
  background:#fff;
}
.avc-hero-mascot{
  position:absolute;
  right:0;
  bottom:-24px;
  width:280px;
  max-width:32%;
  opacity:0.14;
  pointer-events:none;
  z-index:1;
}

@media(max-width:760px){
  .avc-hero .wrap{ padding-top:28px; padding-bottom:32px; }
  .avc-hero-badge{ white-space:normal; }
  .avc-hero-mascot{ width:170px; opacity:0.12; bottom:-16px; }
}

.avc-sr-only{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

.avc-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:28px;
  align-items:start;
}

.avc-card{
  background:var(--card, #fff);
  border:1px solid rgba(0,0,0,0.08);
  border-radius:18px;
  padding:30px 32px;
  box-shadow:0 14px 32px -20px rgba(20,20,30,0.22);
}

.avc-card h2{
  font-size:22px;
  color:var(--ink);
  margin-bottom:6px;
  text-transform:none;
  letter-spacing:0;
}

.avc-card .avc-sub{
  font-size:13.5px;
  color:#5b5f66;
  line-height:1.6;
  margin:0 0 20px;
}

.avc-field{ margin-bottom:16px; }
.avc-field label{
  font-weight:600;
  font-size:13.5px;
  color:var(--ink);
  display:block;
  margin:0 0 7px;
}
.avc-field .avc-hint{
  font-size:12px;
  color:#8a8d92;
  margin-top:6px;
  line-height:1.5;
}

.avc-card input[type="number"],
.avc-card input[type="text"],
.avc-card input[type="tel"],
.avc-card select{
  width:100%;
  padding:13px 14px;
  border:1px solid #d9d9d3;
  border-radius:10px;
  font:inherit;
  font-size:15px;
  color:var(--ink);
  background:#fff;
}
.avc-card input:focus,
.avc-card select:focus{
  outline:2px solid var(--accent);
  outline-offset:1px;
}
.avc-card input.avc-invalid{
  border-color:#a33a2a;
}

.avc-error-text{
  display:none;
  font-size:12.5px;
  font-weight:600;
  color:#a33a2a;
  margin-top:7px;
}
.avc-error-text.show{ display:block; }

.avc-checkfield{
  border:0;
  margin:20px 0 0;
  padding:0;
}
.avc-checkfield legend{
  font-weight:600;
  font-size:13.5px;
  color:var(--ink);
  padding:0;
  margin:0 0 10px;
}
.avc-checkgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.avc-check{
  display:flex;
  gap:9px;
  align-items:flex-start;
  border:1px solid rgba(0,0,0,0.1);
  border-radius:10px;
  padding:11px 12px;
  font-size:13.5px;
  color:#3d4038;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.avc-check:hover{ border-color:var(--accent); background:var(--bg-soft); }
.avc-check input{ width:auto; margin-top:2px; accent-color:var(--accent); flex-shrink:0; }

.avc-submit{
  width:100%;
  border:0;
  border-radius:10px;
  padding:16px 18px;
  font:inherit;
  font-size:15.5px;
  font-weight:700;
  cursor:pointer;
  color:#fff;
  background:var(--brand-orange);
  margin-top:22px;
  transition:background .15s ease, transform .15s ease;
}
.avc-submit:hover{ background:var(--brand-orange-dark); transform:translateY(-1px); }
.avc-submit:disabled{ opacity:.6; cursor:not-allowed; transform:none; }

/* helper / measurement card */
.avc-helper-image-wrap{
  background:var(--bg-soft);
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  padding:10px;
  margin:0 0 18px;
}
.avc-helper-image{
  width:100%;
  display:block;
  border-radius:9px;
  height:auto;
}
.avc-tip-list{
  margin:0 0 18px;
  padding-left:18px;
  color:#3d4038;
  font-size:13.5px;
  line-height:1.65;
}
.avc-tip-list li{ margin:0 0 9px; }
.avc-mini-callout{
  padding:14px 16px;
  border-radius:12px;
  background:var(--bg-soft);
  border:1px solid rgba(0,0,0,0.06);
  font-size:13px;
  color:#4b4e54;
  line-height:1.55;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.avc-mini-callout img{
  width:26px;
  height:26px;
  flex-shrink:0;
  object-fit:contain;
  margin-top:1px;
}

/* results */
.avc-results{
  grid-column:1 / -1;
  margin-top:28px;
  background:var(--card, #fff);
  border:1px solid rgba(0,0,0,0.08);
  border-radius:18px;
  padding:30px 32px;
  box-shadow:0 14px 32px -20px rgba(20,20,30,0.22);
  display:none;
}
.avc-results.show{ display:block; }
.avc-results h2{
  font-size:22px;
  color:var(--ink);
  margin-bottom:6px;
  text-transform:none;
  letter-spacing:0;
}

.avc-eyebrow{
  color:var(--accent);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  display:block;
  margin-bottom:10px;
}

.avc-metricgrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:20px 0 6px;
}
.avc-metric{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  padding:18px;
  background:var(--bg-soft);
  text-align:center;
}
.avc-metric .avc-metric-label{
  display:block;
  font-size:12.5px;
  font-weight:700;
  color:#5b5f66;
  margin-bottom:8px;
}
.avc-metric strong{
  display:block;
  font-family:var(--font-head);
  font-size:30px;
  color:var(--ink);
  line-height:1;
}
.avc-metric .avc-metric-unit{
  font-size:11.5px;
  color:#8a8d92;
  margin-top:6px;
}

.avc-status{
  border-radius:12px;
  padding:15px 18px;
  font-weight:600;
  font-size:14px;
  line-height:1.5;
  margin:16px 0;
}
.avc-status.good{ background:#e8f4ee; color:#1f7a4d; }
.avc-status.warn{ background:#fbf1dc; color:#9b6a14; }
.avc-status.bad{ background:#f8e8e5; color:#a33a2a; }

.avc-score{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  padding:18px 20px;
  margin:18px 0;
  background:#fff;
}
.avc-score-copy strong{
  display:block;
  font-size:14.5px;
  color:var(--ink);
  margin-bottom:4px;
}
.avc-score-copy p{
  font-size:12.5px;
  color:#5b5f66;
  margin:0;
  line-height:1.5;
  max-width:420px;
}
.avc-score-num{
  font-family:var(--font-head);
  font-size:34px;
  font-weight:700;
  color:var(--accent-dark);
  white-space:nowrap;
}

.avc-plan{
  border-top:1px solid rgba(0,0,0,0.08);
  margin-top:20px;
  padding-top:20px;
}
.avc-plan h3{
  font-size:16px;
  color:var(--ink);
  margin-bottom:12px;
  text-transform:none;
  letter-spacing:0;
}
.avc-plan ul{
  margin:0;
  padding-left:20px;
  color:#3d4038;
  font-size:14px;
  line-height:1.7;
}
.avc-plan li{ margin-bottom:8px; }

/* lead capture */
.avc-lead{
  grid-column:1 / -1;
  background:linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
  color:#fff;
  border-radius:20px;
  padding:32px 36px;
  margin-top:22px;
}
.avc-lead-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}
.avc-lead-brand img{
  width:46px;
  height:46px;
  object-fit:contain;
  flex-shrink:0;
}
.avc-lead-brand-text{
  font-size:12.5px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  font-weight:700;
  color:#f2e9d7;
}
.avc-lead h2{
  color:#fff;
  font-size:26px;
  margin:6px 0 10px;
  text-transform:none;
  letter-spacing:0;
}
.avc-lead > .avc-sub{
  color:rgba(255,255,255,0.82);
  font-size:14.5px;
  line-height:1.65;
  margin:0 0 22px;
  max-width:640px;
}
.avc-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.avc-lead label{
  font-size:13px;
  font-weight:600;
  color:#f2ede0;
  display:block;
  margin:0 0 6px;
}
.avc-lead input{
  width:100%;
  padding:13px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.2);
  font:inherit;
  font-size:15px;
  background:rgba(255,255,255,0.96);
  color:var(--ink);
  margin-bottom:14px;
}
.avc-lead .avc-submit{
  background:var(--brand-orange);
  color:#fff;
}
.avc-lead .avc-submit:hover{ background:var(--brand-orange-dark); }
.avc-fine{
  font-size:11.5px;
  color:rgba(255,255,255,0.6);
  line-height:1.6;
  margin-top:16px;
}
.avc-lead-success{
  display:none;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:12px;
  padding:16px 18px;
  font-size:14.5px;
  line-height:1.55;
}
.avc-lead-success.show{ display:block; }
.avc-lead form.avc-hidden{ display:none; }

/* related links */
.avc-related{
  margin-top:16px;
  font-size:13.5px;
  color:#5b5f66;
}
.avc-related a{
  color:var(--accent);
  font-weight:600;
}
.avc-related a:hover{ text-decoration:underline; }

@media(max-width:900px){
  .avc-grid{ grid-template-columns:1fr; }
  .avc-metricgrid{ grid-template-columns:1fr; }
  .avc-checkgrid{ grid-template-columns:1fr; }
  .avc-form-row{ grid-template-columns:1fr; }
  .avc-score{ flex-direction:column; align-items:flex-start; }
  .avc-card{ padding:24px 22px; }
  .avc-lead{ padding:26px 22px; }
}
