:root {
  --ink: #111513;
  --coal: #1b201d;
  --steel: #50616a;
  --zinc: #d9dedb;
  --paper: #f6f4ed;
  --white: #ffffff;
  --green: #27d875;
  --green-dark: #127843;
  --red: #c83b31;
  --clay: #9c6b3f;
  --muted: #66716c;
  --line: rgba(17, 21, 19, 0.14);
  --shadow: 0 24px 70px rgba(21, 27, 24, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1,
h2,
h3,
.brand strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.35rem, 10vw, 8.8rem);
  line-height: 0.86;
}

h2 {
  font-size: clamp(2.15rem, 5vw, 5.25rem);
  line-height: 0.9;
}

h3 {
  font-size: 1.4rem;
  line-height: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(14px, 4vw, 54px);
  color: var(--white);
  background: rgba(17, 21, 19, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-roof {
  width: 58px;
  height: 42px;
  position: relative;
}

.brand-roof::before,
.brand-roof::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  border-top: 5px solid var(--green);
  transform-origin: center;
}

.brand-roof::before {
  top: 16px;
  transform: skewY(-28deg);
}

.brand-roof::after {
  top: 16px;
  transform: skewY(28deg);
}

.brand strong {
  display: block;
  color: var(--green);
  font-size: 2.1rem;
  line-height: 0.8;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--white);
}

.header-action,
.primary-action,
.ghost-action,
.filter-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.header-action,
.primary-action {
  color: var(--ink);
  background: var(--green);
  border: 1px solid var(--green);
}

.ghost-action,
.filter-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-action svg,
.ghost-action svg,
.header-action svg,
.service-card svg,
.close-lightbox svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  gap: 24px;
  padding: 132px clamp(16px, 5vw, 72px) 34px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 21, 19, 0.91), rgba(17, 21, 19, 0.53) 48%, rgba(17, 21, 19, 0.76)),
    linear-gradient(0deg, rgba(17, 21, 19, 0.85), transparent 34%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  gap: 22px;
}

.hero-content > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero-panel,
.estimate-card,
.job-board {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(17, 21, 19, 0.74);
  backdrop-filter: blur(14px);
}

.hero-panel span {
  width: fit-content;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--green);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--coal);
  color: var(--white);
}

.proof-strip article {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-strip strong {
  color: var(--green);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

section:not(.hero, .proof-strip) {
  padding: clamp(58px, 8vw, 96px) clamp(16px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading.split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.section-heading.compact h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

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

.service-card,
.process-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.service-card svg {
  color: var(--green-dark);
}

.service-card p,
.process-grid p,
.final-cta p,
.form-status,
.direct-contact,
.contact-stack p {
  color: var(--muted);
  line-height: 1.5;
}

.featured-work {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(39, 216, 117, 0.12), transparent 32%),
    var(--coal);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button.is-active {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-auto-rows: 245px;
  gap: 14px;
}

.project-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--ink);
  text-align: left;
}

.project-card.tall {
  grid-row: span 2;
}

.project-card.wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 0 12px;
  color: var(--ink);
  background: var(--green);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-card.is-hidden {
  display: none;
}

.estimate-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.82fr);
  gap: 20px;
  background: linear-gradient(180deg, #eef1ed, var(--paper));
}

.estimate-card,
.job-board {
  padding: 22px;
  background: var(--white);
  border-color: var(--line);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #f9faf6;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(39, 216, 117, 0.18);
}

.full-action {
  width: 100%;
  margin-top: 14px;
}

.direct-contact {
  margin-top: 14px;
  font-size: 0.92rem;
}

.direct-contact a {
  color: var(--green-dark);
  font-weight: 950;
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  font-weight: 800;
}

.contact-stack {
  display: grid;
  gap: 12px;
}

.contact-stack a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  color: var(--ink);
  background: #f9faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-stack svg {
  width: 22px;
  height: 22px;
  color: var(--green-dark);
}

.contact-stack strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid article {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.process-grid span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
}

.final-cta {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  color: var(--white);
  background: var(--coal);
}

.final-cta img {
  width: 210px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.final-cta p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
}

.lightbox {
  width: min(920px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--coal);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(17, 21, 19, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--ink);
}

.lightbox p {
  padding: 14px 18px 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.close-lightbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(17, 21, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-card.tall,
  .project-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .estimate-section,
  .final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-roof {
    width: 46px;
  }

  .brand strong {
    font-size: 1.6rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .header-action {
    width: 46px;
    padding: 0;
    font-size: 0;
  }

  h1 {
    font-size: 3rem;
    line-height: 0.94;
  }

  h2 {
    font-size: 2.25rem;
    line-height: 0.96;
  }

  .hero {
    padding-top: 126px;
  }

  .hero-actions,
  .primary-action,
  .ghost-action {
    width: 100%;
  }

  .service-grid,
  .project-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-auto-rows: 230px;
  }

  .final-cta img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}
