:root {
  --ink: #151816;
  --muted: #5d665f;
  --line: #d9ded6;
  --paper: #f8f7f0;
  --white: #ffffff;
  --green: #2f6b4f;
  --green-dark: #173c2d;
  --amber: #d99c32;
  --blue: #315f7c;
  --shadow: 0 18px 50px rgba(19, 32, 25, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 16px clamp(20px, 5vw, 70px);
  color: var(--white);
  transition: background .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
  background: rgba(20, 45, 34, .95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}

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

.brand img {
  width: 76px;
  height: 52px;
  object-fit: contain;
  background: rgba(255, 255, 255, .08);
}

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

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

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav a {
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.nav a:hover {
  color: #ffe0a2;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 800;
}

.header-cta {
  color: var(--white);
}

.button.primary {
  background: var(--amber);
  color: #1d211e;
  border-color: var(--amber);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: transparent;
  color: var(--white);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 23, 18, .88) 0%, rgba(13, 23, 18, .55) 45%, rgba(13, 23, 18, .18) 100%),
    linear-gradient(0deg, rgba(13, 23, 18, .62), rgba(13, 23, 18, .05));
}

.hero-content {
  position: relative;
  max-width: 850px;
  padding: 132px clamp(22px, 7vw, 90px) 56px;
  color: var(--white);
}

.hero-logo {
  width: min(320px, 68vw);
  margin: 0 0 18px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35));
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Baskervville, Georgia, serif;
  font-weight: 400;
  line-height: .98;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 5.8vw, 72px);
  line-height: 1;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
}

h3 {
  font-size: 20px;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, .86);
  font-size: 19px;
  line-height: 1.7;
}

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

.section {
  padding: 86px clamp(20px, 6vw, 80px);
}

.intro-grid,
.section-heading,
.faq-grid,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.intro-copy,
.contact-copy p,
.faq-list p,
.product-card p,
.service-grid p,
.timeline p,
.estimator-panel p,
.estimate-result p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

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

.section-heading {
  align-items: end;
  margin-bottom: 32px;
}

.text-link {
  justify-self: end;
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: #f4f6ef;
  border: 1px solid var(--line);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.diagram-card img {
  object-fit: contain;
  padding: 28px;
  background: #fdfdf9;
}

.product-card div {
  padding: 24px;
}

.dark-band {
  background: var(--green-dark);
  color: var(--white);
}

.dark-band .section-label {
  color: #f5be56;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
}

.service-grid article {
  min-height: 260px;
  padding: 28px;
  background: var(--green-dark);
}

.service-grid span {
  color: var(--amber);
  font-weight: 800;
}

.service-grid p {
  color: rgba(255, 255, 255, .74);
}

.estimator-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  background: #edf2e9;
}

.estimator-panel,
.estimate-result,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.estimator-panel {
  padding: clamp(28px, 5vw, 54px);
}

.estimator {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin-top: 24px;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid #cbd3c8;
  padding: 14px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfcf8;
}

textarea {
  resize: vertical;
}

.input-prefix {
  position: absolute;
  transform: translate(12px, 39px);
  color: var(--muted);
}

label:has(.input-prefix) input {
  padding-left: 28px;
}

.estimate-result {
  display: grid;
  align-content: center;
  padding: 34px;
  background: var(--green);
  color: var(--white);
}

.estimate-result span {
  color: #f6d58a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.estimate-result strong {
  margin: 12px 0;
  font-family: Baskervville, Georgia, serif;
  font-size: 68px;
  font-weight: 400;
}

.estimate-result p {
  color: rgba(255, 255, 255, .78);
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.timeline div {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid var(--line);
}

.timeline span {
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  background: var(--amber);
  border: 3px solid var(--paper);
  border-radius: 50%;
}

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

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

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

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.contact {
  background: #e7eee3;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 36px clamp(20px, 6vw, 80px);
  color: rgba(255, 255, 255, .78);
  background: #101914;
}

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

.asset-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 520px;
  font-size: 12px;
}

.asset-credit p {
  flex-basis: 100%;
  margin: 0;
  text-align: right;
}

.asset-credit a {
  color: #f0bf61;
}

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

  .menu-button {
    display: block;
    justify-self: end;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-self: stretch;
    gap: 0;
    padding: 12px 0;
    background: rgba(18, 39, 30, .98);
  }

  .card-grid,
  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estimator,
  .estimator-section,
  .intro-grid,
  .section-heading,
  .faq-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand img {
    width: 58px;
    height: 42px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-top: 140px;
  }

  .card-grid,
  .service-grid,
  .timeline,
  .estimator {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .estimate-result strong {
    font-size: 56px;
  }

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

  .asset-credit {
    justify-content: flex-start;
  }

  .asset-credit p {
    text-align: left;
  }
}
