:root {
  --bg: #f7f7f3;
  --paper: #ffffff;
  --ink: #172023;
  --muted: #53605c;
  --line: #d8d8cf;
  --green: #233f35;
  --green-2: #315647;
  --copper: #b95f32;
  --copper-dark: #8f4322;
  --shadow: 0 18px 50px rgba(23, 32, 35, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 52px);
  min-height: 74px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 216, 207, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 12px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--copper);
}

.brand-mark svg {
  width: 44px;
  height: 44px;
}

.brand-mark path,
.service-icon path,
.step-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 42px);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  padding: 28px 0 25px;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  bottom: 17px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta,
.button-primary {
  color: #fff;
  background: var(--copper);
}

.header-cta:hover,
.header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--copper-dark);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--green);
  background: transparent;
  border-color: var(--green);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #fff;
  background: var(--green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 40%) 1fr;
  min-height: calc(100vh - 74px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 92px) clamp(22px, 4vw, 58px);
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 78%, rgba(255, 255, 255, 0.78) 100%);
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.6vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #24302e;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 30px;
}

.hero-actions .button {
  min-width: 190px;
}

.hero-image {
  min-width: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fbfbf8;
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  min-height: 148px;
  padding: 30px clamp(20px, 2.6vw, 44px);
}

.service + .service {
  border-left: 1px solid var(--line);
}

.service-icon {
  align-self: start;
  width: 70px;
  color: var(--green);
}

.service h3,
.step h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.25;
}

.service p {
  max-width: 28ch;
  margin: 8px 0 0;
  color: #2f3a38;
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--copper);
  font-size: 0.88rem;
  font-weight: 800;
}

.text-link::after {
  content: "";
  width: 18px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 44%, 78% 44%, 78% 0, 100% 50%, 78% 100%, 78% 56%, 0 56%);
}

.process-projects {
  display: grid;
  grid-template-columns: minmax(460px, 43%) 1fr;
  background: var(--paper);
}

.process {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 70px) clamp(24px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(35, 63, 53, 0.98), rgba(27, 48, 44, 0.98)),
    var(--green);
}

.process h2 {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.5vw, 2.6rem);
  line-height: 1.1;
}

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

.step {
  min-width: 0;
}

.step-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  place-items: center;
  color: #fff;
}

.step h3 {
  color: #fff;
  font-size: 1rem;
}

.step p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.83rem;
  line-height: 1.45;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 330px;
}

.project-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #d8d8cf;
}

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

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

.about {
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 78px);
  background: #fdfdfb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about > div {
  max-width: 940px;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) 1fr;
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
}

.about h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) 1fr;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  padding: 34px clamp(20px, 4vw, 56px);
  background: var(--paper);
}

.contact-copy p {
  max-width: 34ch;
  margin: 8px 0 0;
  color: var(--muted);
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(180px, 1.5fr) auto;
  gap: 14px;
  align-items: start;
}

.estimate-form label {
  display: block;
  min-width: 0;
}

.estimate-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.estimate-form input,
.estimate-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfcfc6;
  border-radius: 4px;
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.estimate-form textarea {
  padding-top: 15px;
}

.estimate-form input::placeholder,
.estimate-form textarea::placeholder {
  color: #7b827f;
}

.estimate-form input:focus,
.estimate-form textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(49, 86, 71, 0.16);
}

.estimate-form button {
  min-height: 54px;
  white-space: nowrap;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--copper-dark);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: #fff;
  background: #132023;
}

.site-footer div {
  display: flex;
  align-items: baseline;
  gap: 36px;
  min-width: 0;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.site-footer span,
.site-footer nav {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 34px);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

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

  .brand {
    font-size: 1.42rem;
  }

  .primary-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 12px;
    overflow-x: auto;
  }

  .primary-nav a {
    padding: 8px 0 10px;
  }

  .primary-nav a::after {
    bottom: 4px;
  }

  .header-cta {
    justify-self: end;
  }

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

  .hero-copy {
    padding-top: 64px;
    padding-bottom: 44px;
    background: var(--paper);
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .hero-image {
    height: clamp(360px, 46vw, 560px);
  }

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

  .service:nth-of-type(3) {
    border-left: 0;
  }

  .service:nth-of-type(n + 3) {
    border-top: 1px solid var(--line);
  }

  .process-projects {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    min-height: 270px;
  }

  .project-gallery img {
    min-height: 270px;
  }

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

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 12px 18px;
  }

  .brand {
    font-size: 1.18rem;
  }

  .brand-mark,
  .brand-mark svg {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 2px;
    overflow: visible;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .primary-nav a::after {
    display: none;
  }

  .hero-copy {
    padding: 48px 20px 34px;
  }

  .hero-copy h1 {
    max-width: 10.5ch;
    font-size: clamp(2.55rem, 14vw, 4.15rem);
  }

  .hero-actions .button {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hero-image {
    height: 330px;
  }

  .services,
  .steps,
  .project-gallery,
  .about > div,
  .estimate-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 64px 1fr;
    padding: 26px 20px;
  }

  .service + .service {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .service-icon {
    width: 58px;
  }

  .process {
    padding: 42px 20px;
  }

  .steps {
    gap: 28px;
  }

  .project-gallery {
    min-height: auto;
  }

  .project-gallery img {
    min-height: 260px;
  }

  .about {
    padding: 46px 20px;
  }

  .contact {
    padding: 32px 20px;
  }

  .estimate-form button {
    width: 100%;
  }

  .site-footer {
    justify-items: start;
  }

  .site-footer div,
  .site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
