:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #596675;
  --line: #d9e2e8;
  --paper: #f7f9f8;
  --white: #ffffff;
  --navy: #16324f;
  --blue: #1c78a6;
  --green: #287463;
  --amber: #f5b23c;
  --shadow: 0 18px 50px rgba(21, 38, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 20px);
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav-links {
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-links a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-cta {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 740px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("basement-waterproofing-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 28, 45, 0.9) 0%, rgba(13, 28, 45, 0.76) 43%, rgba(13, 28, 45, 0.23) 74%, rgba(13, 28, 45, 0.08) 100%),
    linear-gradient(0deg, rgba(13, 28, 45, 0.34), rgba(13, 28, 45, 0.08));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 78px);
  padding: 88px 0 112px;
}

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

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

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #101820;
  background: var(--amber);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
}

.trust-list li {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.quote-band,
.services,
.seo-links,
.areas,
.faq,
.disclaimer {
  padding: clamp(58px, 8vw, 100px) clamp(18px, 5vw, 64px);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--white);
}

.section-intro {
  max-width: 760px;
}

.section-intro p:not(.eyebrow),
.areas p,
.disclaimer p,
.thank-you-panel p {
  color: var(--muted);
  font-size: 1.08rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(245, 178, 60, 0.55);
  outline-offset: 2px;
}

.span-2 {
  grid-column: 1 / -1;
}

.checkbox {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 400;
}

.checkbox input {
  min-height: 20px;
  margin-top: 2px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.services {
  background: var(--paper);
}

.seo-links {
  background: var(--white);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.link-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  text-decoration: none;
}

.link-card strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.link-card span {
  color: var(--muted);
}

.link-card:hover {
  border-color: rgba(28, 120, 166, 0.45);
  box-shadow: 0 12px 28px rgba(21, 38, 56, 0.1);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card.accent {
  border-color: rgba(40, 116, 99, 0.35);
  background: #eef7f3;
}

.service-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

.areas {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  background: var(--navy);
}

.areas h2,
.areas p {
  color: var(--white);
}

.areas p {
  color: rgba(255, 255, 255, 0.78);
}

.area-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.area-list li {
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.faq {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-top: 28px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

summary {
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.disclaimer {
  background: #edf2f4;
}

.disclaimer h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.disclaimer p {
  max-width: 980px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: #101820;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-page {
  background: var(--white);
}

.seo-page {
  background: var(--paper);
}

.seo-hero {
  padding: clamp(62px, 8vw, 110px) clamp(18px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 43, 67, 0.94), rgba(22, 50, 79, 0.82)),
    url("basement-waterproofing-hero.png") center right / cover no-repeat;
}

.seo-hero-inner {
  max-width: 880px;
}

.seo-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.seo-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.seo-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(28px, 5vw, 62px);
  padding: clamp(54px, 7vw, 86px) clamp(18px, 5vw, 64px);
}

.seo-main {
  display: grid;
  gap: 26px;
}

.content-panel,
.cta-panel,
.related-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.content-panel {
  padding: clamp(22px, 4vw, 34px);
}

.content-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.content-panel p,
.content-panel li {
  color: var(--muted);
}

.content-panel ul {
  padding-left: 20px;
}

.seo-side {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 88px;
}

.cta-panel,
.related-panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.cta-panel h2,
.related-panel h2 {
  font-size: 1.45rem;
}

.cta-panel p,
.related-panel p {
  color: var(--muted);
}

.related-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.related-links a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.related-links a:last-child {
  border-bottom: 0;
}

.mini-disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.legal-content h1 {
  max-width: 14ch;
  color: var(--navy);
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 20px;
}

.thank-you-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(247, 249, 248, 0.96), rgba(247, 249, 248, 0.84)),
    url("basement-waterproofing-hero.png") center right / cover no-repeat;
}

.thank-you {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 34px;
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0;
}

.thank-you-panel {
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.thank-you-panel h1 {
  max-width: 12ch;
  color: var(--navy);
  font-size: clamp(2.7rem, 8vw, 5.6rem);
}

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

@media (max-width: 900px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 680px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(13, 28, 45, 0.92) 0%, rgba(13, 28, 45, 0.78) 62%, rgba(13, 28, 45, 0.2) 100%),
      linear-gradient(0deg, rgba(13, 28, 45, 0.38), rgba(13, 28, 45, 0.1));
  }

  .quote-band,
  .areas {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .link-grid,
  .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-content {
    grid-template-columns: 1fr;
  }

  .seo-side {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    max-width: calc(100% - 116px);
    white-space: normal;
    line-height: 1.1;
  }

  .header-cta {
    padding: 9px 11px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
    padding: 58px 0 72px;
  }

  h1 {
    max-width: 10ch;
  }

  .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .service-grid,
  .link-grid,
  .area-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
