/* KA Solar Energy — site styles */
:root {
  --cell: #18245a;      /* monocrystalline panel blue */
  --cell-deep: #101a45;
  --cell-soft: #24336f;
  --ink: #0f1733;
  --body: #2c3550;
  --muted: #5b6480;
  --line: #d9dfeb;
  --sky: #eef2f8;
  --paper: #ffffff;
  --sun: #f2b705;
  --sun-deep: #c99400;
  --grid: #1f8a5b;      /* savings / net-metering green */
  --wa: #1fa855;
  --radius: 6px;
  --wrap: 1200px;
  --display: "Archivo", system-ui, sans-serif;
  --text: "Archivo", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cell); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-stretch: 115%;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; font-stretch: 122%; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 760; }
h3 { font-size: 21px; font-weight: 700; font-stretch: 108%; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--sun); color: var(--ink); padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 2px solid transparent;
  font: 650 16px/1 var(--text); font-stretch: 105%;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffc82a; color: var(--ink); }
.btn--cell { background: var(--cell); color: #fff; }
.btn--cell:hover { background: var(--ink); color: #fff; }
.btn--line { border-color: var(--cell); color: var(--cell); background: transparent; }
.btn--line:hover { background: var(--cell); color: #fff; }
.btn--line-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--line-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a45; color: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--cell-deep); color: #c9d2ee; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__right { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 640px) { .topbar__hours { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo img { width: 52px; height: 52px; flex: none; }
.logo__name { font: 800 19px/1 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.logo__name small { display: block; font-size: 12px; font-weight: 600; font-stretch: 100%; color: var(--muted); letter-spacing: .01em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 10px; border-radius: 4px;
  color: var(--body); text-decoration: none;
  font-size: 15px; font-weight: 560; font-stretch: 92%;
}
.nav a:hover { color: var(--ink); background: var(--sky); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--sun); border-radius: 0; }

.quote-link { position: relative; }
.quote-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
}
.quote-count[hidden] { display: none; }
.btn--sun .quote-count { background: var(--ink); color: var(--sun); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 18px 30px -18px rgba(15,23,51,.35);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 8px; font-size: 17px; font-stretch: 100%; border-bottom: 1px solid var(--sky); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); padding-left: 14px; }
}

/* ---------- Sections ---------- */
.sec { padding: 88px 0; }
.sec--sky { background: var(--sky); }
.sec--tight { padding: 56px 0; }
@media (max-width: 640px) { .sec { padding: 56px 0; } }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 8px 0 0; color: var(--muted); }
.lede { font-size: 19px; color: var(--body); max-width: 60ch; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--cell); color: #d8def3; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; }
.hero .lede { color: #d8def3; }
.hero__facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; font-size: 15px; }
.hero__facts li { display: flex; gap: 10px; align-items: baseline; }
.hero__facts li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--sun); border-radius: 1px; transform: translateY(1px); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; } }

.estimator { background: var(--cell-deep); border-radius: 10px; padding: 22px; color: #fff; }
.roof {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px;
  padding: 14px; border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 60%),
    #0b1438;
}
.roof span {
  aspect-ratio: 1 / 1.6; border-radius: 2px;
  background-color: var(--cell-soft);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 33.33% 16.66%;
  transition: background-color .22s ease;
}
.roof span.on {
  background-color: var(--sun);
  background-image:
    linear-gradient(90deg, rgba(15,23,51,.18) 1px, transparent 1px),
    linear-gradient(rgba(15,23,51,.18) 1px, transparent 1px);
}
@media (max-width: 560px) { .roof { grid-template-columns: repeat(8, 1fr); } }
@media (prefers-reduced-motion: reduce) { .roof span { transition: none !important; } }

.est__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; }
.est__row label { font-weight: 600; font-size: 16px; }
.est__row output { font: 800 26px/1 var(--display); font-stretch: 118%; color: var(--sun); white-space: nowrap; }
.estimator input[type="range"] { width: 100%; margin: 14px 0 6px; accent-color: var(--sun); height: 28px; }
.est__scale { display: flex; justify-content: space-between; font-size: 13px; color: #9aa6cf; }
.est__results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0; border-top: 1px solid rgba(255,255,255,.14); }
.est__results div { padding: 14px 12px 0 0; }
.est__results div + div { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
.est__results dt { font-size: 13px; color: #9aa6cf; line-height: 1.3; }
.est__results dd { margin: 6px 0 0; font: 750 22px/1.1 var(--display); font-stretch: 112%; color: #fff; }
@media (max-width: 560px) {
  .est__results { grid-template-columns: 1fr 1fr; }
  .est__results div:nth-child(3) { border-left: 0; padding-left: 0; }
}
.est__note { font-size: 13px; color: #9aa6cf; margin: 14px 0 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--cell); color: #d8def3; }
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); }
.page-hero .lede { color: #d8def3; margin-bottom: 0; }
.crumbs { font-size: 14px; margin-bottom: 18px; color: #9aa6cf; }
.crumbs a { color: #fff; }
.page-hero__aside { border-left: 3px solid var(--sun); padding-left: 20px; font-size: 15px; }
.page-hero__aside strong { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }
.page-hero__aside p { margin: 0; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Brand strip ---------- */
.brands { border-bottom: 1px solid var(--line); }
.brands .wrap { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brands p { margin: 0; color: var(--muted); font-size: 15px; }
.brands ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 0; padding: 0; }
.brands li { font: 800 18px/1 var(--display); font-stretch: 120%; color: #8790ab; letter-spacing: -.01em; }

/* ---------- Category trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.trio a { padding: 28px 28px 32px 0; text-decoration: none; color: var(--body); display: flex; flex-direction: column; gap: 12px; }
.trio a + a { padding-left: 28px; border-left: 1px solid var(--line); }
.trio svg { width: 56px; height: 56px; color: var(--cell); }
.trio h3 { margin: 6px 0 0; }
.trio p { margin: 0; font-size: 16px; }
.trio .from { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--ink); }
.trio a:hover h3 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; }
  .trio a, .trio a + a { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Rate list ---------- */
.rate-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.updated { font-size: 15px; color: var(--muted); margin: 0; }
.updated strong { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--body);
  border-radius: 999px; padding: 8px 15px; font: 600 14px/1 var(--text); cursor: pointer;
}
.chip:hover { border-color: var(--cell); }
.chip[aria-pressed="true"] { background: var(--cell); border-color: var(--cell); color: #fff; }

.rate-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
.rate-table caption { text-align: left; }
.rate-table th {
  text-align: left; font-size: 14px; font-weight: 650; color: var(--muted);
  padding: 12px 14px; background: var(--sky); border-bottom: 2px solid var(--ink);
}
.rate-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rate-table tbody tr:hover td { background: #fafbfe; }
.rate-table .num { text-align: right; white-space: nowrap; }
.rate-table .prod { display: flex; align-items: center; gap: 14px; }
.rate-table .prod svg { width: 34px; height: 34px; color: var(--cell); flex: none; }
.rate-table .prod b { display: block; color: var(--ink); font-weight: 700; line-height: 1.3; }
.rate-table .prod small { color: var(--muted); font-size: 14px; }
.price { font-weight: 800; color: var(--ink); font-size: 18px; }
.price small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 4px;
  background: var(--sky); color: var(--cell); white-space: nowrap;
}
.tag--grid { background: #e3f3eb; color: #166a45; }
.tag--sun { background: #fff3cc; color: #7a5a00; }
.add-btn { min-width: 128px; }
.add-btn[aria-pressed="true"] { background: var(--grid); border-color: var(--grid); color: #fff; }

@media (max-width: 760px) {
  .rate-table thead { display: none; }
  .rate-table, .rate-table tbody, .rate-table tr, .rate-table td { display: block; width: 100%; }
  .rate-table tr { border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .rate-table td { border: 0; padding: 0; }
  .rate-table td.c-prod { grid-column: 1 / -1; }
  .rate-table td.c-spec { grid-column: 1 / -1; font-size: 15px; }
  .rate-table td.c-spec::before, .rate-table td.c-warr::before { content: attr(data-label) ": "; color: var(--muted); }
  .rate-table td.c-warr { grid-column: 1 / -1; font-size: 15px; }
  .rate-table td.num { text-align: left; }
  .rate-table td.c-act { text-align: right; align-self: center; }
  .rate-table tbody tr:hover td { background: transparent; }
}
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }

.disclaimer { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---------- Packages ---------- */
.seg { display: inline-flex; border: 2px solid var(--cell); border-radius: var(--radius); overflow: hidden; }
.seg button {
  border: 0; background: #fff; color: var(--cell); padding: 10px 18px; font: 650 15px/1 var(--text); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--cell); color: #fff; }

.pkg-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.pkg { padding: 24px 22px 26px 0; display: flex; flex-direction: column; gap: 6px; }
.pkg + .pkg { padding-left: 22px; border-left: 1px solid var(--line); }
.pkg__kw { font: 800 44px/1 var(--display); font-stretch: 125%; color: var(--ink); letter-spacing: -.02em; }
.pkg__kw span { font-size: 20px; font-stretch: 110%; margin-left: 2px; }
.pkg__use { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.pkg dl { margin: 0 0 14px; display: grid; gap: 4px; font-size: 15px; }
.pkg dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line); padding: 4px 0; }
.pkg dt { color: var(--muted); }
.pkg dd { margin: 0; font-weight: 650; color: var(--ink); text-align: right; }
.pkg .price { font-size: 22px; margin-top: auto; padding-top: 6px; }
.pkg .btn { margin-top: 12px; align-self: flex-start; }
@media (max-width: 1000px) {
  .pkg-list { grid-template-columns: 1fr 1fr; }
  .pkg:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pkg { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pkg-list { grid-template-columns: 1fr; }
  .pkg, .pkg + .pkg { padding: 22px 0; border-left: 0; }
}

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sun); color: var(--ink); font: 800 19px/1 var(--display); margin-bottom: 18px;
  position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; }
.steps p { font-size: 16px; margin: 0; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .steps, .steps--5 { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .steps li::after { top: 44px; left: 21px; width: 2px; height: calc(100% - 16px); right: auto; }
}

/* ---------- Split / prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split--wide { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; gap: 36px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.ticks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%;
  background: var(--grid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ticks b { color: var(--ink); }

.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--sky); border-bottom: 2px solid var(--ink); font-size: 15px; color: var(--ink); }
.compare tbody th { color: var(--ink); font-weight: 650; width: 26%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .compare { min-width: 620px; }

.note {
  border-left: 4px solid var(--sun); background: #fffaeb; padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px; margin: 24px 0;
}
.note p:last-child { margin: 0; }

.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.service { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.service svg { width: 40px; height: 40px; color: var(--cell); }
.service h3 { margin-bottom: 6px; }
.service p { margin: 0; font-size: 16px; }
@media (max-width: 800px) { .service-list { grid-template-columns: 1fr; } }

.cities { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.cities li { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; color: var(--ink); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 650 18px/1.35 var(--text); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2.5px solid var(--cell); border-bottom: 2.5px solid var(--cell);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sun); color: var(--ink); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { margin: 0; color: #3b3210; }
.cta-band .actions { margin: 0; }
.cta-band .btn--line { border-color: var(--ink); color: var(--ink); }
.cta-band .btn--line:hover { background: var(--ink); color: var(--sun); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #c3cbdc; border-radius: var(--radius);
  font: 400 16px/1.4 var(--text); color: var(--ink); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cell); outline: 3px solid rgba(242,183,5,.6); outline-offset: 0; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 5px; }
.field .error { font-size: 14px; color: #b42318; margin-top: 5px; display: none; }
.field.invalid input { border-color: #b42318; }
.field.invalid .error { display: block; }

.contact-card { background: var(--cell); color: #d8def3; padding: 32px; border-radius: 10px; }
.contact-card h2 { color: #fff; font-size: 28px; }
.contact-card dl { margin: 0; display: grid; gap: 20px; }
.contact-card dt { font-size: 14px; color: #9aa6cf; }
.contact-card dd { margin: 4px 0 0; color: #fff; font-size: 18px; font-weight: 600; }
.contact-card a { color: #fff; }
.map-slot {
  margin-top: 28px; aspect-ratio: 16 / 9; border-radius: 6px; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #1d2b66 0 12px, #1a275e 12px 24px); color: #9aa6cf; font-size: 15px; padding: 20px;
}

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.appl { width: 100%; border-collapse: collapse; font-size: 16px; }
.appl th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 650; padding: 10px 8px; border-bottom: 2px solid var(--ink); }
.appl td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.appl td:first-child { font-weight: 600; color: var(--ink); }
.appl td small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.appl input { width: 76px; min-height: 42px; padding: 6px 10px; border: 1.5px solid #c3cbdc; border-radius: 4px; font: 500 16px var(--text); text-align: right; }
.appl input:focus { border-color: var(--cell); outline: 3px solid rgba(242,183,5,.6); }
@media (max-width: 560px) {
  .appl thead { display: none; }
  .appl tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .appl td { border: 0; padding: 0; }
  .appl td:first-child { grid-column: 1 / -1; }
  .appl td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
  .appl input { width: 100%; }
}
.calc-out { position: sticky; top: 96px; background: var(--cell); color: #d8def3; border-radius: 10px; padding: 28px; }
.calc-out h2 { color: #fff; font-size: 24px; }
.calc-out dl { margin: 0 0 20px; display: grid; gap: 0; }
.calc-out dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.calc-out dt { font-size: 15px; }
.calc-out dd { margin: 0; font: 750 22px/1.1 var(--display); font-stretch: 112%; color: #fff; text-align: right; }
.calc-out dd.big { color: var(--sun); font-size: 30px; }
.calc-out .field label { color: #fff; }
.calc-out .est__note { color: #9aa6cf; }

/* ---------- Quote page ---------- */
.quote-items { border-top: 2px solid var(--ink); }
.qi { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.qi b { color: var(--ink); display: block; }
.qi small { color: var(--muted); }
.qty { display: inline-flex; border: 1.5px solid #c3cbdc; border-radius: var(--radius); overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: var(--sky); cursor: pointer; font-size: 18px; color: var(--ink); }
.qty span { min-width: 40px; display: grid; place-items: center; font-weight: 700; }
.link-btn { background: none; border: 0; color: #b42318; cursor: pointer; font: 600 15px var(--text); text-decoration: underline; padding: 6px; }
@media (max-width: 600px) { .qi { grid-template-columns: 1fr auto; } .qi .price { grid-column: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb6d1; font-size: 15px; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 16px; font-stretch: 105%; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #dfe4f4; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo__name small { color: #aeb6d1; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-bottom p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(15,23,51,.3);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #178a45; color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 15px; z-index: 70;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--sun); margin-left: 8px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* small-screen header fit */
.logo__name, .header-quote { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; }
  .logo img { width: 44px; height: 44px; }
  .logo__name { font-size: 17px; }
  .header-quote { padding: 0 10px; }
}
.est__results dd { white-space: nowrap; font-size: clamp(18px, 1.55vw, 22px); }

/* ---------- Photos ---------- */
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-top: 28px; background: var(--sky); }

.page-hero--img .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
.page-hero--img .page-hero__aside { margin-top: 28px; }
.page-hero__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--cell-soft); }
@media (max-width: 860px) {
  .page-hero--img .wrap { grid-template-columns: 1fr; gap: 32px; }
  .page-hero__img { aspect-ratio: 16 / 9; }
}

.trio__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--sky); }
.trio a, .trio a + a { padding: 28px 24px 32px; }
@media (max-width: 860px) { .trio a, .trio a + a { padding: 24px 0; } }

/* ---------- Home hero photo ---------- */
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(16,26,69,.94) 0%, rgba(24,36,90,.8) 36%, rgba(24,36,90,.25) 64%, rgba(16,26,69,.15) 100%),
    linear-gradient(0deg, rgba(16,26,69,.55), transparent 35%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1, .hero .lede { text-shadow: 0 2px 18px rgba(8,14,40,.5); }
.hero .estimator { background: rgba(11,20,56,.8); backdrop-filter: blur(6px); box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }
@media (max-width: 980px) {
  .hero__bg { height: 560px; object-position: 92% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(16,26,69,.5) 0, rgba(24,36,90,.78) 300px, var(--cell) 560px); }
}

/* ---------- Hero without estimator ---------- */
.hero .wrap { grid-template-columns: minmax(0, 680px); padding-top: 104px; padding-bottom: 112px; }
@media (max-width: 980px) {
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero__bg { height: 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(16,26,69,.55) 0%, rgba(24,36,90,.82) 55%, rgba(16,26,69,.92) 100%); }
}

/* ---------- Estimator section ---------- */
.sec--estimate { background: var(--cell); color: #d8def3; }
.sec--estimate h2 { color: #fff; }
.sec--estimate .lede { color: #d8def3; }
.est-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .est-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero__bg { transform: scaleX(-1); }

/* Home headline: always two lines */
.hero .wrap { grid-template-columns: minmax(0, 780px); }
.hero h1 { font-size: min(64px, calc((100vw - 40px) / 11.2)); }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lede { max-width: 60ch; }

/* One-line logo name; compact header on very small phones */
.quote-icon { display: none; }
@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .logo { gap: 8px; }
  .logo img { width: 34px; height: 34px; }
  .logo__name { font-size: 14px; }
  .header-quote { padding: 0 10px; gap: 6px; }
  .header-quote .label { display: none; }
  .quote-icon { display: block; width: 20px; height: 20px; }
}
