:root {
  --ink: #18201d;
  --muted: #647169;
  --paper: #f7f3eb;
  --clay: #bf6f45;
  --fern: #385c45;
  --moss: #d7ddc6;
  --stone: #ebe4d7;
  --white: #fffaf2;
  --line: rgba(24, 32, 29, 0.16);
  --shadow: 0 24px 60px rgba(36, 45, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  background: rgba(247, 243, 235, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.contact-details {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.86rem;
}

.main-nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a:hover,
.contact-details a:hover {
  color: var(--clay);
}

.header-action,
.button,
.quote-form button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.header-action {
  padding: 10px 18px;
  background: var(--fern);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 650px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(22px, 5vw, 64px);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(24, 32, 29, 0.72), rgba(24, 32, 29, 0.34) 46%, rgba(247, 243, 235, 0.9) 72%),
    url("assets/work/irrigation-sprinkler.jpg") center/cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 160px;
  background: linear-gradient(0deg, var(--paper), rgba(247, 243, 235, 0));
  content: "";
}

.hero-copy {
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7.8vw, 7.6rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
}

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

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

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

.button.secondary {
  border: 1px solid rgba(255, 250, 242, 0.54);
  color: var(--white);
}

.hero-panel {
  align-self: center;
  max-width: 310px;
  padding: 28px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  margin-bottom: 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-panel span {
  color: var(--muted);
  font-weight: 700;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 52px);
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-band div {
  padding: clamp(22px, 4vw, 42px);
  background: var(--white);
}

.intro-band strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.intro-band span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(72px, 10vw, 138px) clamp(18px, 4vw, 52px);
}

.section-heading {
  display: grid;
  max-width: 1180px;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  margin: 0 auto 42px;
}

.section-heading.wide {
  display: block;
  max-width: 900px;
  margin-right: auto;
  margin-left: 0;
}

.service-grid {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 290px;
  padding: 30px;
  background: var(--stone);
}

.service-number {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--clay);
  font-weight: 900;
}

.service-grid p,
.timeline p,
.contact-copy p,
.project span,
.site-footer {
  color: var(--muted);
}

.portfolio {
  background: var(--ink);
  color: var(--white);
}

.portfolio .section-heading h2 {
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 18px;
}

.project {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.project.large {
  grid-row: span 2;
  min-height: 698px;
}

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

.project:hover img {
  transform: scale(1.04);
}

.project div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px;
  background: linear-gradient(0deg, rgba(24, 32, 29, 0.88), rgba(24, 32, 29, 0));
}

.project span {
  color: rgba(255, 250, 242, 0.78);
  font-weight: 800;
}

.portfolio-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
}

.work-hero {
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  padding: clamp(92px, 13vw, 160px) clamp(18px, 4vw, 52px) clamp(56px, 8vw, 96px);
  background: var(--ink);
  color: var(--white);
}

.work-hero h1 {
  max-width: 980px;
  margin-bottom: 0;
}

.work-hero p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-section {
  padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 52px);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.work-card img {
  width: 100%;
  height: clamp(440px, 42vw, 620px);
  object-fit: cover;
}

.work-card figcaption {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.timeline {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  border-top: 3px solid var(--fern);
  padding-top: 22px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--clay);
  font-weight: 900;
}

.testimonial {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 52px);
  background: var(--moss);
  text-align: center;
}

.testimonial blockquote {
  max-width: 960px;
  margin: 0 auto 18px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1.05;
}

.testimonial p {
  margin: 0;
  color: var(--fern);
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.contact-copy {
  max-width: 540px;
}

.contact-details {
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  font-weight: 900;
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 15px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 3px solid rgba(191, 111, 69, 0.24);
  border-color: var(--clay);
}

.quote-form button {
  min-height: 52px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

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

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 110px;
  }

  .hero-image {
    background:
      linear-gradient(180deg, rgba(24, 32, 29, 0.72), rgba(24, 32, 29, 0.42) 50%, rgba(247, 243, 235, 0.96)),
      url("assets/work/irrigation-sprinkler.jpg") center/cover;
  }

  .hero-panel {
    align-self: auto;
  }

  .intro-band,
  .service-grid,
  .timeline,
  .contact,
  .section-heading,
  .portfolio-grid,
  .work-hero,
  .work-gallery {
    grid-template-columns: 1fr;
  }

  .project.large,
  .project {
    min-height: 420px;
  }

  .work-card img {
    height: 460px;
  }
}

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

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero {
    padding-inline: 16px;
  }

  .intro-band {
    margin-inline: 16px;
  }

  .section,
  .contact,
  .testimonial,
  .work-hero,
  .gallery-section {
    padding-inline: 16px;
  }

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

  .site-footer {
    display: grid;
  }

  .work-card img {
    height: 360px;
  }
}
