/* ============================================================
   Net Zero Homes LLC — Design System
   Palette: Ink #14181D | Concrete #F4F3F0 | Accent #E06A1F | Steel #33414E
   Type: Archivo (display) + Inter (body)
   ============================================================ */

:root {
  --ink: #14181d;
  --ink-2: #1e242b;
  --steel: #33414e;
  --steel-2: #4d6070;
  --concrete: #f4f3f0;
  --concrete-2: #e9e7e1;
  --white: #ffffff;
  --accent: #e06a1f;
  --accent-2: #c2540f;
  --accent-soft: #fbe9dc;
  --text: #2a2f36;
  --text-soft: #5b6470;
  --text-inv: #eef1f4;
  --text-inv-soft: #aeb8c2;
  --line: #dcd9d2;
  --line-dark: #2c343d;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20,24,29,.06), 0 8px 24px -12px rgba(20,24,29,.18);
  --shadow-lg: 0 2px 4px rgba(20,24,29,.08), 0 24px 48px -16px rgba(20,24,29,.28);
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --wrap-narrow: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--concrete);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); }
blockquote {
  margin: 1.6em 0; padding: 1em 1.4em;
  border-left: 4px solid var(--accent);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05em; color: var(--ink);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- Utility bar ---------- */
.topbar {
  background: var(--ink); color: var(--text-inv-soft);
  font-size: .82rem; padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.topbar a { color: var(--text-inv); font-weight: 600; }
.topbar .tb-note { letter-spacing: .02em; }
@media (max-width: 640px) { .topbar .tb-note { display: none; } .topbar .wrap { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo .logo-mark {
  width: 38px; height: 38px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--steel), var(--ink));
  display: grid; place-items: center;
}
.logo .logo-mark span { width: 18px; height: 18px; border: 3px solid var(--accent); border-radius: 3px; display: block; }
.logo em { font-style: normal; color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent-2); text-decoration: none; }
.nav a.active { color: var(--accent-2); }
.btn-nav { margin-left: 4px; }

.nav-toggle { display: none; }
.nav-toggle-btn { display: none; margin-left: auto; cursor: pointer; padding: 10px; border-radius: 8px; }
.nav-toggle-btn span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 1020px) {
  .nav-toggle-btn { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 0 16px; display: none; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav a { padding: 12px 28px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 24px 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-display);
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 8px; border: 2px solid transparent;
  transition: .18s; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(224,106,31,.55); }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-inv { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-inv:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(224,106,31,.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--text-inv);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .kicker { color: var(--accent); }
.hero p.lead { color: var(--text-inv-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: 44px; max-width: 640px; }
.hero-stats div { background: var(--ink-2); padding: 16px 18px; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.hero-stats small { color: var(--text-inv-soft); font-size: .8rem; letter-spacing: .02em; }

.kicker {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(180deg, var(--ink), var(--ink-2)); color: var(--text-inv); }
.page-hero .wrap { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p.lead { color: var(--text-inv-soft); font-size: 1.15rem; max-width: 62ch; margin-bottom: 0; }
.breadcrumbs { font-size: .84rem; color: var(--text-inv-soft); margin-bottom: 22px; }
.breadcrumbs a { color: var(--text-inv-soft); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: linear-gradient(180deg, var(--ink), var(--ink-2)); color: var(--text-inv); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--text-inv-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); transition: .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfccc4; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-soft); font-size: .97rem; margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .92rem; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; }

.card-icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; font-size: 1.3rem;
}

.num-badge {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--ink); color: #fff; font-family: var(--font-display);
  font-weight: 700; display: grid; place-items: center; margin-bottom: 14px;
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: .8em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 8px; height: 5px; border-left: 2.5px solid var(--accent-2);
  border-bottom: 2.5px solid var(--accent-2); transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--ink); position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-2);
  transition: .2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .faq-a { padding: 0 4px 22px; color: var(--text-soft); max-width: 70ch; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote-card p { font-size: 1.02rem; color: var(--text); }
.quote-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; font-size: .95rem; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--ink); font-size: .92rem; }
.quote-card cite small { display: block; font-weight: 500; color: var(--text-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 15% 120%, rgba(224,106,31,.25), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--steel) 130%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px); text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band p { color: var(--text-inv-soft); max-width: 58ch; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }
.cta-phone { display: block; margin-top: 18px; color: var(--text-inv-soft); font-size: .95rem; }
.cta-phone a { color: #fff; font-weight: 700; }

/* ---------- Article / prose ---------- */
.prose { max-width: var(--wrap-narrow); }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.prose th { background: var(--ink); color: #fff; text-align: left; padding: 12px 14px; font-family: var(--font-display); font-weight: 700; }
.prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.article-meta { display: flex; gap: 14px; align-items: center; color: var(--text-inv-soft); font-size: .88rem; flex-wrap: wrap; }
.article-meta .cat { background: rgba(224,106,31,.18); color: #f5b183; padding: 3px 12px; border-radius: 99px; font-weight: 600; }

/* ---------- Blog index ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .post-img { aspect-ratio: 16/9; overflow: hidden; background: var(--concrete-2); }
.post-card .post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat-tag { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.post-card h3 { font-size: 1.18rem; }
.post-card time { color: var(--text-soft); font-size: .85rem; margin-top: auto; padding-top: 14px; }

/* ---------- Media / photo slots ---------- */
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--concrete-2); }
.media-frame img { width: 100%; object-fit: cover; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption { font-size: .85rem; color: var(--text-soft); padding-top: 8px; }

/* ---------- Trust bar ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; justify-content: center; padding: 22px 0; }
.trust-bar span { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--steel); }
.trust-bar span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-soft); font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: clamp(44px, 6vw, 72px) 0 40px; }
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: var(--text-inv-soft); }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 20px 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row a { background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: 99px; font-size: .9rem; font-weight: 600; color: var(--steel); }
.tag-row a:hover { border-color: var(--accent); color: var(--accent-2); text-decoration: none; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
