:root {
  --ink: #18212a;
  --muted: #5d6773;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #e4dfd7;
  --brick: #b44a32;
  --gold: #e4a52c;
  --teal: #0e6f68;
  --coal: #101820;
  --shadow: 0 18px 60px rgba(16, 24, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--coal);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  background: var(--brick);
  color: white;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  border-radius: 6px;
}

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

.brand strong {
  font-size: 16px;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  border-radius: 6px;
}

.nav a:hover,
.nav a:focus {
  background: #efe8de;
}

.nav-call {
  color: white;
  background: var(--teal);
}

.nav .nav-call:hover,
.nav .nav-call:focus {
  background: #095a55;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--coal);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.93) 0%, rgba(16, 24, 32, 0.78) 37%, rgba(16, 24, 32, 0.16) 74%),
    url("assets/contractor-services-hero.jpg") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 72px;
  color: white;
}

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

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

h1 {
  width: min(760px, 100%);
  margin-bottom: 20px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.15;
}

h3 a {
  text-decoration: none;
}

.hero-copy {
  width: min(560px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: var(--coal);
  box-shadow: 0 14px 34px rgba(228, 165, 44, 0.28);
}

.button-primary:hover,
.button-primary:focus {
  background: #f1ba49;
}

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

.button-dark {
  color: white;
  background: var(--coal);
}

.quick-details {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.quick-details div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.11);
}

.quick-details dt {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-details dd {
  margin: 0;
  color: white;
  font-weight: 800;
}

.section {
  padding: 82px 0;
}

.section-grid,
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 52px;
  align-items: start;
}

.section-lead,
.form-copy {
  position: sticky;
  top: 104px;
}

.section-lead p,
.form-copy p {
  color: var(--muted);
  font-size: 18px;
}

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

.service-list article {
  min-height: 202px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.06);
}

.service-thumb {
  width: 100%;
  height: 148px;
  display: block;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 6px;
}

.service-list article:last-child {
  grid-column: span 2;
  min-height: 158px;
}

.service-icon {
  width: 44px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 6px;
  color: white;
  background: var(--brick);
  font-size: 13px;
  font-weight: 900;
}

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

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus {
  text-decoration: underline;
}

.service-page-hero {
  padding: 76px 0;
  color: white;
  background: var(--coal);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 48px;
  align-items: center;
}

.service-hero-copy p {
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.service-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: start;
}

.service-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.06);
}

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

.service-checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-checks li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.service-checks strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.related-services a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.related-services a:hover,
.related-services a:focus {
  background: #efe8de;
}

.compact-form {
  margin-top: 24px;
}

.section-cta {
  padding: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 8px;
  background: var(--brick);
  color: white;
  box-shadow: var(--shadow);
}

.cta-band .eyebrow {
  color: #ffd98b;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.section-form {
  padding-top: 90px;
}

address {
  margin-top: 30px;
  padding-left: 18px;
  border-left: 4px solid var(--brick);
  color: var(--muted);
  font-style: normal;
}

address strong {
  color: var(--ink);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #d8d0c6;
  border-radius: 6px;
  color: var(--ink);
  background: #fffefa;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(228, 165, 44, 0.36);
  border-color: var(--gold);
}

.full {
  grid-column: 1 / -1;
}

.hidden {
  display: none;
}

.form-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.form-note a {
  font-weight: 900;
  color: var(--teal);
}

.site-footer {
  padding: 28px 0;
  color: white;
  background: var(--coal);
}

.footer-inner {
  min-height: auto;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner p:first-child {
  color: white;
  font-weight: 900;
}

.thank-you-page {
  background: var(--coal);
}

.thanks {
  min-height: 100vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.96), rgba(16, 24, 32, 0.72)),
    url("assets/contractor-services-hero.jpg") center / cover no-repeat;
}

.thanks-panel {
  color: white;
  padding: 80px 0;
}

.thanks-panel p {
  width: min(560px, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(16, 24, 32, 0.96) 0%, rgba(16, 24, 32, 0.82) 52%, rgba(16, 24, 32, 0.36) 100%),
      url("assets/contractor-services-hero.jpg") 62% center / cover no-repeat;
  }

  .hero-content {
    padding: 86px 0 56px;
  }

  .quick-details,
  .section-grid,
  .service-hero-grid,
  .service-detail-grid,
  .form-grid,
  .service-list,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .section-lead,
  .form-copy {
    position: static;
  }

  .service-list article:last-child {
    grid-column: auto;
  }

  .service-page-hero {
    padding: 54px 0;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav a {
    justify-content: center;
    padding: 0 8px;
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions .button,
  .cta-band .button {
    width: 100%;
  }

  .quick-details div,
  .service-list article,
  .service-panel,
  .lead-form,
  .cta-band {
    padding: 20px;
  }

  .service-thumb {
    height: 132px;
  }

  .quick-details {
    display: none;
  }
}
