:root {
  --ink: #172026;
  --coal: #25323a;
  --paper: #f4f0e8;
  --cream: #fffaf2;
  --mist: #e8eef1;
  --forest: #244f3d;
  --river: #2d667a;
  --rust: #b95037;
  --gold: #dfb345;
  --line: rgba(23, 32, 38, 0.16);
  --shadow: 0 18px 44px rgba(23, 32, 38, 0.16);
  --hero-image: url("assets/photos/exterior-side-wide.jpg");
  --hero-position: center center;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: 4.5rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.55rem;
}

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

p,
li {
  line-height: 1.62;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 12px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 16px;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 5vw;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 23, 27, 0.94);
  box-shadow: 0 10px 28px rgba(16, 23, 27, 0.22);
  backdrop-filter: blur(12px);
}

.site-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.brand {
  font-size: 1rem;
  letter-spacing: 0;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 108px 5vw 52px;
  color: white;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::before {
  background: var(--hero-image) var(--hero-position) / cover no-repeat;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.76)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08) 70%);
}

.hero-copy {
  width: min(980px, 100%);
}

.hero-copy p {
  max-width: 690px;
  font-size: 1.18rem;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--river);
}

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

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

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.button.light {
  border-color: var(--line);
  background: var(--cream);
  color: var(--ink);
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.trust-band {
  padding: 68px 5vw;
  background: var(--forest);
  color: white;
}

.pull {
  max-width: 860px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.24;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.metric {
  min-height: 110px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.14);
}

.metric b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.36rem;
}

.metric span {
  display: block;
  line-height: 1.42;
}

.section {
  padding: 78px 5vw;
}

.photo-section,
.seo-section {
  background: var(--cream);
}

.proof-section {
  background: var(--mist);
}

.two-column,
.split,
.route,
.condition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: start;
}

.route {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: center;
}

.route img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.fact-panel,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.fact-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.spec-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 7px;
  background: white;
}

.spec-row span {
  color: #60717b;
}

.spec-row strong {
  text-align: right;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.text-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--rust);
  font-weight: 900;
}

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

.photo-grid figure {
  min-height: 245px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #d9dedf;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.checklist {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 26px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

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

.proof-grid article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.condition-section,
.contact-section {
  background: var(--ink);
  color: white;
}

.condition-list {
  display: grid;
  gap: 10px;
}

.disclosure-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.disclosure-item span {
  line-height: 1.5;
}

.download-panel {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.download-panel .button + .button {
  margin-top: 10px;
}

.lead-form {
  padding: 22px;
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  font-size: 0.9rem;
  font-weight: 800;
}

.website-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

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

.form-note {
  margin: 10px 0 0;
  color: #66717a;
  font-size: 0.9rem;
}

.form-status {
  min-height: 26px;
  margin-top: 12px;
  color: var(--forest);
  font-weight: 900;
}

.site-footer {
  padding: 24px 5vw;
  background: #10171b;
  color: white;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-footer a {
  font-weight: 900;
}

.photo-nav {
  background: var(--ink);
}

.gallery-page {
  background: var(--cream);
}

.gallery-hero {
  padding: 132px 5vw 62px;
  background:
    linear-gradient(90deg, rgba(23, 32, 38, 0.86), rgba(23, 32, 38, 0.36)),
    url("assets/photos/exterior-hero.jpg") center / cover no-repeat;
  color: white;
}

.gallery-hero p {
  max-width: 720px;
  font-size: 1.12rem;
}

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

.all-photo-grid figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #d9dedf;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.12);
}

.all-photo-grid a,
.all-photo-grid img {
  width: 100%;
  height: 100%;
}

.all-photo-grid img {
  object-fit: cover;
  transition: transform 160ms ease;
}

.all-photo-grid a:hover img,
.all-photo-grid a:focus-visible img {
  transform: scale(1.025);
}

@media (max-width: 920px) {
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .metrics,
  .proof-grid,
  .all-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .split,
  .route,
  .condition-layout {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-image: url("assets/photos/exterior-side.jpg");
    --hero-position: 66% center;
  }

  .site-nav {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    background: rgba(16, 23, 27, 0.94);
  }

  .site-nav div {
    gap: 4px;
  }

  .site-nav a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 86vh;
    padding-top: 142px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .pull {
    font-size: 1.45rem;
  }

  .section,
  .trust-band {
    padding: 54px 5vw;
  }

  .metrics,
  .proof-grid,
  .photo-grid,
  .all-photo-grid {
    grid-template-columns: 1fr;
  }

  .span-7,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: auto;
  }

  .photo-grid figure {
    min-height: 260px;
  }

  .spec-row,
  .disclosure-item {
    grid-template-columns: 1fr;
  }

  .spec-row strong {
    text-align: left;
  }

  .section-heading,
  .site-footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
