:root {
  --ink: #172326;
  --muted: #5A686C;
  --paper: #F3EEE4;
  --paper-deep: #E8E1D3;
  --white: #FBF8F2;
  --teal: #145E5A;
  --teal-dark: #0E4845;
  --copper: #C45C26;
  --copper-dark: #9A3F14;
  --line: #D4CBBA;
  --danger-soft: #8A3B16;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(23, 35, 38, 0.05), 0 14px 36px rgba(23, 35, 38, 0.06);
  --radius: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-dark); }
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
}
.nav-cta:hover { background: var(--teal-dark); }

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(20, 94, 90, 0.12), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.05rem, 5vw, 3.55rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 42rem;
  margin: 0 0 1.8rem;
}
.hero .lede strong { font-weight: 600; }

/* Filters */
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.filters-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0.75rem 1rem;
}
label.field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .search-input {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.chip {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Results */
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 1.8rem 0 0.9rem;
}
.results-head h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0;
  font-weight: 600;
}
#result-count { color: var(--muted); font-size: 0.95rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-bottom: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
a.card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--teal); }
.areas {
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(20, 94, 90, 0.1);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}
.card-meta {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.phone { color: var(--ink); font-weight: 600; text-decoration: none; }
.phone:hover { color: var(--teal); }
.card-link { font-weight: 600; color: var(--teal); }

.empty {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--muted);
}
.empty[hidden] { display: none; }
.card[hidden] { display: none; }

/* Page shells */
.page-hero {
  padding: 2.4rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.7rem;
}
.page-hero p { margin: 0; max-width: 40rem; color: var(--ink); }
.crumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.crumb a { color: var(--muted); }
.section { padding: 2rem 0 3rem; }

/* Installer */
.installer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  padding: 2rem 0 3rem;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
}
.panel h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.7rem;
  font-weight: 600;
}
.panel p, .panel li { margin: 0 0 0.55rem; }
.panel ul { margin: 0; padding-left: 1.15rem; }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-row a { font-weight: 600; word-break: break-word; }
.actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.4rem; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); color: #fff; }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.source-note, .disclaimer, .fine {
  font-size: 0.9rem;
  color: var(--muted);
}
.source-note { margin-top: 1rem; }

.featured-slot {
  background: var(--paper-deep);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.featured-slot strong { font-family: var(--serif); }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}
.plan.highlight { border-color: var(--teal); box-shadow: var(--shadow); }
.plan h2 { font-family: var(--serif); margin: 0 0 0.3rem; font-size: 1.6rem; }
.price {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0.3rem 0 1rem;
}
.price span { font-size: 1rem; font-family: var(--sans); color: var(--muted); }
.plan ul { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.plan li { margin-bottom: 0.4rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #E8E1D3;
  padding: 2.4rem 0 1.6rem;
  margin-top: auto;
}
.site-footer a { color: #F3EEE4; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  color: #fff;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.legal {
  border-top: 1px solid rgba(243, 238, 228, 0.15);
  padding-top: 1rem;
  font-size: 0.88rem;
  color: #C9C2B3;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

@media (max-width: 800px) {
  .filters-grid, .cards, .installer-grid, .plans, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 2.1rem 0 1.6rem; }
  .nav { gap: 0.75rem; font-size: 0.95rem; }
  .logo-text span { display: none; }
  .header-inner { padding: 0.7rem 0; }
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.45rem;
    padding: 0.7rem 0 0.6rem;
  }
  .logo-text strong {
    white-space: nowrap;
    font-size: 1rem;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
    font-size: 0.95rem;
    padding-bottom: 0.15rem;
  }
  .nav-cta {
    margin-left: auto;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
  }
}
