:root {
  --ink: #14201c;
  --muted: #5a6964;
  --surface: #f7faf8;
  --white: #ffffff;
  --line: #dbe5df;
  --forest: #174f3a;
  --blue: #1f6f8b;
  --mint: #d9f2e6;
  --gold: #f2bd4b;
  --shadow: 0 24px 80px rgba(20, 32, 28, 0.16);
  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;
  color: var(--ink);
  background: var(--surface);
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
}

.skip:focus {
  left: 12px;
  background: var(--white);
  padding: 10px 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 229, 223, 0.85);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  font-size: 19px;
}

.brand em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

nav a,
.header-cta {
  text-decoration: none;
}

.header-cta {
  color: var(--white);
  background: var(--forest);
  padding: 11px 15px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

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

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 25, 21, 0.86) 0%, rgba(10, 25, 21, 0.64) 42%, rgba(10, 25, 21, 0.06) 100%),
    linear-gradient(0deg, rgba(20, 32, 28, 0.22), rgba(20, 32, 28, 0.05));
}

.hero-copy {
  width: min(620px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  color: var(--white);
  animation: rise-in 700ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow,
.final-cta .eyebrow {
  color: var(--mint);
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(54px, 8vw, 112px);
  max-width: 680px;
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
}

p {
  line-height: 1.65;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: 19px;
}

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

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

.button.primary {
  background: var(--gold);
  color: #1f2118;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button.ghost.light {
  border-color: rgba(255, 255, 255, 0.58);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.proof-band div {
  background: var(--white);
  padding: 26px clamp(18px, 3vw, 38px);
}

.proof-band strong,
.proof-band span {
  display: block;
}

.proof-band strong {
  font-size: 22px;
}

.proof-band span {
  margin-top: 8px;
  color: var(--muted);
}

.review-strip {
  overflow: hidden;
  padding: clamp(54px, 8vw, 86px) 0;
  background: var(--ink);
  color: var(--white);
}

.review-strip > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 30px;
  align-items: end;
  padding: 0 clamp(18px, 5vw, 76px) 34px;
}

.review-strip h2 {
  max-width: 760px;
}

.review-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: review-scroll 42s linear infinite;
}

.review-strip:hover .review-track {
  animation-play-state: paused;
}

.review-slide {
  width: min(520px, calc(100vw - 44px));
  min-height: 236px;
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.review-slide blockquote {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.review-slide figcaption {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.review-slide figcaption span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 600;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 76px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.split > p,
.narrative p,
.feature p,
.contact-hero p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.service-grid.compact {
  grid-template-columns: repeat(2, 1fr);
}

.service-link {
  min-height: 292px;
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-link:hover {
  transform: translateY(-4px);
  background: #fbfdfc;
  box-shadow: var(--shadow);
}

.service-link span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-link strong {
  display: block;
  margin: 18px 0 14px;
  font-size: 28px;
  line-height: 1.1;
}

.service-link p {
  color: var(--muted);
}

.feature,
.rebate,
.final-cta {
  margin: 0 clamp(18px, 5vw, 76px);
  border-radius: 8px;
}

.feature {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  background: var(--mint);
}

.feature > div {
  max-width: 760px;
}

.text-link {
  color: var(--forest);
  font-weight: 800;
  white-space: nowrap;
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list p {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list p::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--forest);
}

.rebate {
  padding: clamp(42px, 6vw, 72px);
  background: var(--forest);
  color: var(--white);
}

.rebate p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.narrative {
  max-width: 980px;
}

.photo-story {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
  background: var(--white);
}

.photo-story > div:first-child {
  position: sticky;
  top: 104px;
}

.photo-story p {
  color: var(--muted);
  font-size: 18px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.photo-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.area-links {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.link-cloud,
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-cloud a,
.mini-links a {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 11px 13px;
  text-decoration: none;
  color: var(--forest);
  font-weight: 700;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.area-list > div {
  background: var(--white);
  padding: clamp(26px, 4vw, 44px);
}

.area-list h2 {
  font-size: 32px;
}

.area-list p {
  color: var(--muted);
}

.contact-hero {
  padding: clamp(76px, 11vw, 144px) clamp(18px, 5vw, 76px);
  background: var(--white);
}

.contact-hero h1 {
  max-width: 900px;
  color: var(--ink);
}

.contact-hero p {
  max-width: 640px;
}

.estimate-form-section {
  background: var(--white);
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
}

.estimate-form > div,
.estimate-form fieldset,
.estimate-form label:nth-last-of-type(1),
.estimate-form button {
  grid-column: 1 / -1;
}

.estimate-form > div {
  margin-bottom: 12px;
}

.estimate-form > div p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.estimate-form label,
.estimate-form legend {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.estimate-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfdfc;
  font: inherit;
  font-weight: 500;
}

.estimate-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.estimate-form textarea {
  resize: vertical;
  min-height: 170px;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: 3px solid rgba(31, 111, 139, 0.18);
  border-color: var(--blue);
  background: var(--white);
}

.estimate-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.estimate-form fieldset {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.estimate-form legend {
  padding: 0 8px;
}

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

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

.choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 700;
}

.choice-grid input {
  width: auto;
  accent-color: var(--forest);
}

.next-step-panel {
  margin: 0 clamp(18px, 5vw, 76px) clamp(64px, 9vw, 120px);
  border-radius: 8px;
  background: var(--mint);
}

.next-step-panel p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.final-cta {
  padding: clamp(54px, 8vw, 96px);
  background: var(--ink);
  color: var(--white);
}

.final-cta p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.76);
  background: #0e1714;
}

.site-footer strong,
.site-footer span,
.site-footer a {
  display: block;
}

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

.site-footer p {
  max-width: 560px;
}

.phone-note {
  color: rgba(255, 255, 255, 0.58);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes review-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .review-track {
    animation: none;
  }

  .review-track {
    width: auto;
    overflow-x: auto;
    padding-inline: 18px;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-copy {
    margin-left: 18px;
    padding: 70px 0;
  }

  h1 {
    font-size: clamp(48px, 15vw, 78px);
  }

  .proof-band,
  .review-strip > div:first-child,
  .service-grid,
  .service-grid.compact,
  .split,
  .photo-story,
  .area-links,
  .area-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature {
    display: block;
  }

  .photo-story > div:first-child {
    position: static;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .estimate-form {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .choice-grid.two {
    grid-template-columns: 1fr;
  }

  .text-link {
    display: inline-block;
    margin-top: 22px;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .header-cta {
    width: 100%;
    text-align: center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(10, 25, 21, 0.9), rgba(10, 25, 21, 0.48));
  }

  .hero-copy p:not(.eyebrow),
  .split > p,
  .narrative p,
  .feature p,
  .final-cta p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .feature,
  .rebate,
  .final-cta {
    margin-inline: 18px;
  }
}

/* Phase 2.5 SEO and conversion expansions */
.trust-builder .portrait {
  display: block;
  width: min(420px, 100%);
  margin-top: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.comparison-table {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.comparison-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--forest);
  background: #fbfdfc;
  font-size: 13px;
  text-transform: uppercase;
}

.comparison-table td {
  color: var(--muted);
  line-height: 1.55;
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}

.timeline div {
  min-height: 156px;
  padding: 22px;
  background: #fbfdfc;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  color: var(--blue);
  font-size: 13px;
  margin-bottom: 34px;
}

.timeline span {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.photo-story.expanded .photo-grid.wide {
  grid-template-columns: repeat(4, 1fr);
}

.photo-grid.wide img {
  aspect-ratio: 4 / 3;
}

.corrosion {
  background: var(--mint);
}

.corrosion img {
  display: block;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 18px;
}

.corrosion p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.faq details {
  max-width: 980px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
}

.faq details p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 1100px) {
  .timeline,
  .photo-story.expanded .photo-grid.wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .timeline,
  .photo-story.expanded .photo-grid.wide {
    grid-template-columns: 1fr;
  }

  .timeline div {
    min-height: auto;
  }

  .timeline strong {
    margin-bottom: 12px;
  }
}

/* Phase 3 performance and conversion additions */
picture { display: contents; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media picture img { width: 100%; height: 100%; object-fit: cover; }
.portrait img, img.portrait { display: block; width: min(100%, 420px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; margin-top: 28px; box-shadow: var(--shadow); }
.emergency-band { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px clamp(18px,5vw,76px); background:var(--ink); color:var(--white); }
.emergency-band div { display:grid; gap:4px; }
.emergency-band strong { font-size:clamp(22px,3vw,34px); line-height:1.1; }
.emergency-band span { color:rgba(255,255,255,.75); }
.calculator-panel, .internal-links { display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:clamp(30px,6vw,76px); align-items:start; }
.calc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.calc-grid article { background:var(--white); border:1px solid var(--line); border-radius:8px; padding:26px; }
.calc-grid strong { display:grid; place-items:center; width:38px; height:38px; background:var(--forest); color:var(--white); border-radius:999px; margin-bottom:22px; }
.calc-grid h3 { margin:0 0 10px; font-size:24px; }
.calc-grid p { margin:0; color:var(--muted); }
@media (max-width: 920px) { .emergency-band, .calculator-panel, .internal-links { display:grid; grid-template-columns:1fr; } .calc-grid { grid-template-columns:1fr; } }
