:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --ink: #17211b;
  --muted: #5f6b63;
  --line: #d9e0d8;
  --panel: #ffffff;
  --accent: #147a5c;
  --accent-dark: #0d513f;
  --accent-soft: #dff1e9;
  --warn: #b56a14;
  --shadow: 0 18px 45px rgba(23, 33, 27, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 224, 216, 0.82);
  background: rgba(245, 247, 244, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: white !important;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(20, 122, 92, 0.14), rgba(255, 255, 255, 0) 48%),
    var(--bg);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.75rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: var(--line);
  background: white;
}

.button.full {
  width: 100%;
}

.hero-panel,
.tool-panel,
.result-panel,
.lead-form,
.content-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 38px);
}

.panel-label {
  color: var(--muted);
  font-weight: 700;
}

.hero-panel strong {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.hero-panel span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: clamp(50px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: start;
}

.tool-panel,
.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 122, 92, 0.18);
  border-color: var(--accent);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.result-panel {
  position: sticky;
  top: 92px;
  padding: clamp(18px, 3vw, 28px);
}

.price {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  font-weight: 900;
}

.result-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.breakdown {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.breakdown dt {
  color: var(--muted);
}

.breakdown dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.quote-section {
  background: #eef4f5;
}

.lead-form {
  max-width: 960px;
}

.lead-form label:nth-child(6),
.lead-form .hidden-field,
.form-disclaimer,
.lead-form .button,
.form-status {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.form-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-disclaimer a,
.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.content-grid article {
  min-height: 190px;
  padding: 22px;
}

.content-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.location-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.location-list a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
}

.article-page {
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.article-layout {
  max-width: 880px;
}

.article-layout .lede {
  margin-bottom: 28px;
}

.article-card {
  margin: 18px 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-card p {
  color: var(--muted);
  line-height: 1.65;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 42%;
  background: var(--accent-soft);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .result-panel {
    position: static;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tool-panel,
  .lead-form,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .nav-cta {
    padding: 9px 12px;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 4.3rem);
  }
}
