:root {
  --ink: #13201f;
  --muted: #586766;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --soft: #e8f0ed;
  --line: #d8e2df;
  --deep: #0f2423;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --copper: #b44b24;
  --gold: #d09a2d;
  --white: #ffffff;
  --shadow: 0 18px 58px rgba(15, 36, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(216, 226, 223, 0.9);
  background: rgba(247, 248, 243, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  text-decoration: none;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 24px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 780;
}

.nav-links a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 36, 35, 0.94) 0%, rgba(15, 36, 35, 0.78) 45%, rgba(15, 36, 35, 0.12) 82%),
    linear-gradient(0deg, rgba(15, 36, 35, 0.16), rgba(15, 36, 35, 0.02));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 76px 0 90px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.25rem, 5.4vw, 4.85rem);
  line-height: 0.99;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  font-weight: 560;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.54);
}

.button.dark-secondary {
  color: var(--teal-dark);
  background: transparent;
  border: 1px solid rgba(15, 118, 110, 0.34);
}

.trust-band {
  color: var(--white);
  background: var(--deep);
}

.trust-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0;
}

.trust-inner span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 750;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading h2,
.page-header h1,
.form-copy h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p,
.page-header p,
.form-copy p,
.contact-panel p,
.service-card p,
.info-block p,
.city-card p,
.notice p {
  color: var(--muted);
  font-size: 1rem;
}

.service-grid,
.city-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.city-card,
.info-block,
.notice {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 8px 30px rgba(15, 36, 35, 0.06);
}

.service-card h3,
.city-card h3,
.info-block h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.service-card a,
.city-card a,
.text-link {
  color: var(--teal-dark);
  font-weight: 850;
}

.split-section {
  width: 100%;
  background: var(--soft);
}

.split-layout {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.check-list div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--copper);
}

.lead-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.hidden-field {
  display: none;
}

.fine-print {
  color: var(--muted);
  font-size: 0.84rem;
}

.page-hero {
  padding: clamp(58px, 8vw, 100px) 0;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(15, 36, 35, 0.96), rgba(15, 118, 110, 0.74)),
    url("./assets/crawlspace-waterproofing-hero.png") center / cover;
}

.page-header {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
}

.page-header p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.content-layout {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 5vw, 58px);
}

.article-copy {
  display: grid;
  gap: 26px;
}

.article-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.article-copy p,
.article-copy li {
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.mini-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding-left: 14px;
  border-left: 3px solid var(--copper);
  color: var(--muted);
}

.footer {
  padding: 34px clamp(18px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--deep);
}

.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--white);
}

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

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 4px;
    row-gap: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0;
  }

  .trust-inner,
  .service-grid,
  .city-grid,
  .info-grid,
  .split-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
