:root {
  --navy: #092c4d;
  --blue: #0f5684;
  --sky: #4fa4c6;
  --orange: #ef8e3f;
  --gold: #f7c76a;
  --ink: #14283a;
  --muted: #5c6d7b;
  --cream: #fffaf2;
  --paper: #ffffff;
  --line: #dce6eb;
  --shadow: 0 24px 70px rgba(6, 39, 67, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding: 14px clamp(22px, 5vw, 78px);
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(108px, 10vw, 145px);
  height: auto;
  filter: drop-shadow(0 7px 13px rgba(0, 18, 30, 0.28));
}

nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
nav a { color: white; font-weight: 800; text-decoration: none; text-shadow: 0 2px 10px rgba(0, 20, 34, 0.65); }
nav a:hover { color: #ffe09b; }

.nav-call {
  padding: 11px 19px;
  color: white !important;
  background: rgba(7, 39, 64, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 7px 24px rgba(0, 18, 30, 0.24);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.72fr);
  gap: clamp(26px, 5vw, 72px);
  min-height: 100svh;
  padding: clamp(158px, 16vh, 210px) clamp(20px, 7vw, 110px) clamp(50px, 7vh, 88px);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(3, 27, 45, 0.94) 0%, rgba(4, 38, 61, 0.76) 34%, rgba(5, 46, 69, 0.28) 62%, rgba(5, 35, 52, 0.03) 82%),
    linear-gradient(0deg, rgba(2, 24, 39, 0.46) 0%, rgba(2, 24, 39, 0.02) 46%),
    url("assets/dream-again-splash.webp") center 42% / cover no-repeat;
}

.hero__content,
.hero__card { position: relative; z-index: 3; }
.hero__content { align-self: center; max-width: 650px; text-shadow: 0 3px 18px rgba(0, 20, 33, 0.42); }

.eyebrow {
  margin: 0 0 15px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 { margin: 0; font-family: "Manrope", sans-serif; line-height: 1.1; letter-spacing: -0.04em; }
h1 { max-width: 720px; font-size: clamp(48px, 7vw, 82px); }
.hero__lead { max-width: 650px; margin: 25px 0 31px; color: #e6f2f7; font-size: clamp(18px, 2vw, 22px); line-height: 1.58; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 21px; height: 21px; fill: currentColor; }
.button--primary { color: #0e2d44; background: var(--gold); box-shadow: 0 10px 28px rgba(247, 199, 106, 0.18); }
.button--primary:hover { background: #ffd985; box-shadow: 0 13px 32px rgba(247, 199, 106, 0.28); }
.button--secondary { color: white; background: rgba(255, 255, 255, 0.11); border: 1px solid rgba(255, 255, 255, 0.4); }
.button--secondary:hover { background: rgba(255, 255, 255, 0.18); }
.button--wide { width: 100%; }
.contact-note { margin: 12px 0 0; color: #bcd4df; font-size: 13px; }

.hero__certification {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: clamp(20px, 7vw, 110px);
  width: clamp(105px, 8.5vw, 145px);
  filter: drop-shadow(0 10px 22px rgba(0, 18, 30, 0.38));
}

.hero__certification img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.hero__card {
  align-self: end;
  width: min(100%, 410px);
  margin-right: auto;
  margin-bottom: 1vh;
  margin-left: clamp(-118px, -7.5vw, -74px);
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(1, 20, 32, 0.25);
  color: var(--ink);
  text-shadow: none;
}

.status { margin: 0 0 8px; color: #2f6b4b; font-size: 13px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.status span { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: #47a56c; border-radius: 50%; box-shadow: 0 0 0 5px rgba(71, 165, 108, 0.12); }
.quick-facts { margin: 8px 0 17px; }
.quick-facts div { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.quick-facts dt { color: var(--muted); font-weight: 600; }
.quick-facts dd { margin: 0; color: var(--navy); font: 800 24px/1 "Manrope", sans-serif; }
.quick-facts__note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.services { padding: 100px clamp(20px, 7vw, 110px); background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.1fr 0.8fr; gap: 60px; align-items: end; max-width: 1220px; margin: 0 auto 46px; }
.section-heading h2,
.estimate h2 { color: var(--navy); font-size: clamp(35px, 4.5vw, 56px); }
.section-heading > p { max-width: 520px; margin: 0 0 5px; color: var(--muted); font-size: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1220px; margin: 0 auto; }
.service-card { padding: 29px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 14px 45px rgba(14, 55, 80, 0.05); }
.service-card h3 { margin: 18px 0 10px; color: var(--navy); font-size: 21px; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }
.service-icon { display: grid; width: 46px; height: 46px; place-items: center; color: white; background: var(--blue); border-radius: 13px; font-size: 23px; font-weight: 800; }
.service-icon--water { background: #4c94b2; transform: rotate(-18deg); }
.service-icon--water + h3 { margin-top: 18px; }
.service-icon--comfort { color: var(--navy); background: var(--gold); }

.scope-banner { display: grid; grid-template-columns: 48px 1fr; gap: 18px; max-width: 1220px; margin: 22px auto 0; padding: 23px 26px; border: 1px solid #f0d4b6; border-radius: 16px; background: #fff9ef; }
.scope-banner__icon { display: grid; width: 42px; height: 42px; place-items: center; color: #854313; background: #ffe0b9; border-radius: 50%; font: 800 23px/1 "Manrope", sans-serif; }
.scope-banner h3 { margin: 1px 0 5px; color: #673411; font-size: 18px; }
.scope-banner p { margin: 0; color: #745235; }

.estimate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr); gap: clamp(48px, 9vw, 128px); padding: 105px clamp(20px, 7vw, 110px); background: var(--cream); }
.estimate__intro { align-self: center; max-width: 650px; }
.estimate__intro > p:not(.eyebrow):not(.fine-print) { margin: 23px 0; color: var(--muted); font-size: 18px; }
.rate-list { margin: 27px 0; padding: 0; list-style: none; border-top: 1px solid #e4d8c9; }
.rate-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #e4d8c9; }
.rate-list span { color: var(--muted); }
.rate-list strong { color: var(--navy); }
.fine-print { color: #7b746c; font-size: 13px; }

.calculator { padding: clamp(25px, 4vw, 38px); background: white; border: 1px solid #e9ded0; border-radius: 22px; box-shadow: var(--shadow); }
.calculator__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.calculator__badge { padding: 5px 9px; color: #436a52; background: #e8f6ec; border-radius: 999px; letter-spacing: 0.05em; }
.calculator h3 { max-width: 380px; margin-bottom: 23px; color: var(--navy); font-size: 28px; }
.calculator label { display: block; margin-bottom: 8px; color: #466070; font-size: 14px; font-weight: 700; }
.distance-input { position: relative; }
.distance-input input { width: 100%; height: 58px; padding: 10px 88px 10px 16px; color: var(--navy); background: #fbfdfe; border: 2px solid #cbdce5; border-radius: 12px; font: 800 23px/1 "Manrope", sans-serif; outline: 0; }
.distance-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 86, 132, 0.1); }
.distance-input span { position: absolute; top: 50%; right: 17px; color: var(--muted); font-weight: 600; transform: translateY(-50%); }
.input-help { margin: 7px 0 21px; color: var(--muted); font-size: 12px; }
.estimate-result { margin-bottom: 18px; padding: 19px; color: white; background: var(--navy); border-radius: 15px; }
.estimate-result > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.estimate-result span { color: #c8dae5; font-size: 14px; }
.estimate-result strong { color: var(--gold); font: 800 34px/1 "Manrope", sans-serif; }
.estimate-result p { margin: 7px 0 0; color: #c8dae5; font-size: 12px; }
.calculator__contact { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; }
.calculator__contact a,
.calculator__contact button { padding: 0; color: var(--blue); background: transparent; border: 0; font: 700 13px/1.2 "DM Sans", sans-serif; text-decoration: underline; cursor: pointer; }
.copy-status { min-height: 19px; margin: 7px 0 0; color: #467358; font-size: 12px; text-align: right; }

footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; padding: 34px clamp(20px, 7vw, 110px); color: #9fb3c0; background: #071f34; font-size: 13px; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }
.footer-logo { display: block; width: 108px; height: auto; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28)); }

@media (max-width: 880px) {
  nav > a:not(.nav-call) { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding-top: 154px;
    background-position: 61% center;
  }
  .hero__card { width: min(100%, 520px); margin: 4px 0 0; }
  .hero__certification {
    position: relative;
    bottom: auto;
    left: auto;
    width: 118px;
    margin-top: 2px;
  }
  .section-heading,
  .estimate { grid-template-columns: 1fr; }
  .section-heading { gap: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .brand { justify-self: center; }
  footer p:last-child { text-align: center; }
}

@media (max-width: 560px) {
  .site-header { min-height: 96px; padding: 11px 16px; }
  .brand-logo { width: 92px; }
  .nav-call { padding: 9px 14px; font-size: 14px; }
  .hero {
    padding: 126px 19px 64px;
    background:
      linear-gradient(180deg, rgba(3, 27, 45, 0.82) 0%, rgba(3, 31, 49, 0.64) 37%, rgba(3, 31, 49, 0.28) 72%, rgba(2, 24, 39, 0.58) 100%),
      url("assets/dream-again-splash.webp") 68% center / cover no-repeat;
  }
  h1 { font-size: clamp(43px, 13vw, 61px); }
  .hero__lead { margin-top: 20px; font-size: 18px; }
  .hero__actions { display: grid; }
  .hero__actions .button { width: 100%; }
  .hero__card { padding: 24px; }
  .hero__certification { width: 104px; margin: 6px auto 0; }
  .services,
  .estimate { padding: 76px 19px; }
  .service-card { padding: 24px; }
  .scope-banner { grid-template-columns: 1fr; padding: 21px; }
  .calculator { padding: 23px 19px; }
  .estimate-result > div { align-items: flex-start; flex-direction: column; gap: 9px; }
  .calculator__contact { align-items: center; flex-direction: column; }
  .copy-status { text-align: center; }
}

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