:root {
  --paper: #fffaf2;
  --plaster: #f5eadc;
  --cream: #fff6e8;
  --ink: #25231f;
  --muted: #6d6458;
  --cedar: #9a4f35;
  --cedar-dark: #743727;
  --spruce: #2f5a4b;
  --spruce-dark: #1e3d35;
  --sage: #aab59b;
  --slate: #465a64;
  --gold: #c98f3b;
  --line: rgba(37, 35, 31, 0.16);
  --shadow: 0 22px 54px rgba(37, 35, 31, 0.16);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 10%, rgba(170, 181, 155, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--paper), #f8efe3 44%, #fbf7f0);
  color: var(--ink);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.75rem 4rem;
  border-bottom: 1px solid rgba(255, 250, 242, 0.18);
  color: #fffdf8;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(255, 250, 242, 0.96);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(37, 35, 31, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.86);
}

.brand-mark img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.brand-copy span {
  margin-top: 0.18rem;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.76;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  min-height: 40px;
  padding: 0.62rem 0.9rem;
  border-radius: 6px;
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 250, 242, 0.16);
  transform: translateY(-1px);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.menu-active .site-nav a:hover {
  background: rgba(154, 79, 53, 0.1);
  color: var(--cedar-dark);
}

.site-nav .nav-cta {
  margin-left: 0.45rem;
  background: var(--cream);
  color: var(--cedar-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.site-header.is-scrolled .site-nav .nav-cta,
.site-header.menu-active .site-nav .nav-cta {
  background: var(--cedar);
  color: #fffdf8;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.14);
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition:
    transform 170ms ease,
    opacity 170ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 86vh;
  max-height: 780px;
  padding: 8.75rem 4rem 3.5rem;
  overflow: hidden;
  color: #fffdf8;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/hero-home.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 28, 24, 0.86), rgba(23, 28, 24, 0.58) 42%, rgba(23, 28, 24, 0.22)),
    linear-gradient(0deg, rgba(23, 28, 24, 0.62), transparent 46%);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.9rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 43rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 253, 248, 0.88);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cedar);
  color: #fffdf8;
  box-shadow: 0 14px 34px rgba(80, 39, 26, 0.28);
}

.button-primary:hover {
  background: var(--cedar-dark);
}

.button-secondary {
  border-color: rgba(255, 253, 248, 0.58);
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
  backdrop-filter: blur(10px);
}

.hero-note {
  position: absolute;
  right: 4rem;
  bottom: 3.5rem;
  display: grid;
  gap: 0.55rem;
  width: 250px;
  padding: 1rem;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: var(--radius);
  background: rgba(37, 35, 31, 0.44);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.hero-note span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.intro-band {
  padding: 3.25rem 4rem;
  background: var(--spruce-dark);
  color: #fffdf8;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1fr);
  gap: 3rem;
  align-items: end;
  max-width: 1160px;
  margin: 0 auto;
}

.intro-grid h2,
.section-heading h2,
.work-copy h2,
.process h2,
.about-copy h2,
.estimate-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-grid p,
.work-copy p,
.about-copy p,
.estimate-copy p {
  margin: 0;
  color: rgba(255, 253, 248, 0.74);
  font-size: 1.05rem;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 6rem 4rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.section-heading .section-kicker,
.work-copy .section-kicker,
.about-copy .section-kicker,
.estimate-copy .section-kicker {
  color: var(--cedar);
}

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

.service-card {
  min-height: 286px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 14px 40px rgba(37, 35, 31, 0.08);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(47, 90, 75, 0.12);
  color: var(--spruce-dark);
  font-weight: 900;
}

.service-card h3,
.process-steps h3 {
  margin: 1.3rem 0 0.6rem;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.service-card p,
.process-steps p,
.material-tile p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.work-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 6rem 4rem;
  background:
    linear-gradient(135deg, rgba(47, 90, 75, 0.96), rgba(30, 61, 53, 0.96)),
    var(--spruce-dark);
  color: #fffdf8;
}

.work-section > * {
  width: min(100%, 540px);
}

.work-copy {
  justify-self: end;
}

.work-copy .section-kicker {
  color: var(--gold);
}

.work-copy p {
  margin-top: 1rem;
}

.text-link {
  display: inline-flex;
  margin-top: 1.4rem;
  color: #fffdf8;
  font-weight: 850;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.35rem;
}

.work-board {
  display: grid;
  gap: 1rem;
}

.material-tile {
  display: grid;
  gap: 0.55rem;
  min-height: 142px;
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(13, 24, 21, 0.2);
}

.material-tile span {
  font-weight: 900;
  opacity: 0.72;
}

.material-tile strong {
  font-size: 1.28rem;
}

.material-tile p {
  color: rgba(255, 253, 248, 0.78);
}

.tile-green {
  background: var(--spruce);
}

.tile-rust {
  background: var(--cedar);
}

.tile-charcoal {
  background: var(--slate);
}

.process {
  padding-bottom: 5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 253, 248, 0.74);
}

.process-steps article {
  min-height: 235px;
  padding: 1.45rem;
  border-right: 1px solid var(--line);
}

.process-steps article:last-child {
  border-right: 0;
}

.process-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cedar);
  color: #fffdf8;
  font-weight: 900;
}

.about-david {
  display: grid;
  grid-template-columns: 240px minmax(0, 620px);
  gap: 2.5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 6rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 14px 40px rgba(37, 35, 31, 0.08);
}

.about-mark {
  width: 240px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
}

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

.about-copy p,
.estimate-copy p {
  margin-top: 1rem;
  color: var(--muted);
}

.estimate-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1fr);
  gap: 3rem;
  align-items: start;
  padding: 5rem 4rem;
  background: #ece7dc;
}

.estimate-copy {
  justify-self: end;
  width: min(100%, 460px);
}

.estimate-form {
  display: grid;
  gap: 1rem;
  width: min(100%, 610px);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.estimate-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 800;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid rgba(37, 35, 31, 0.22);
  border-radius: 6px;
  background: #fffaf2;
  color: var(--ink);
  padding: 0.82rem 0.9rem;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: 3px solid rgba(201, 143, 59, 0.32);
  border-color: var(--gold);
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--spruce-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 4rem;
  background: var(--ink);
  color: #fffdf8;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  padding: 0.2rem;
  border-radius: 50%;
  background: #fffdf8;
}

.footer-brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.site-footer p {
  margin-top: 0.55rem;
  color: rgba(255, 253, 248, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.footer-links a {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: rgba(255, 253, 248, 0.84);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  background: rgba(255, 253, 248, 0.1);
  color: #fffdf8;
}

@media (max-width: 1050px) {
  .site-header {
    padding: 0.75rem 1.5rem;
  }

  .hero {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-note {
    right: 1.5rem;
    width: 220px;
  }

  .intro-band,
  .section,
  .work-section,
  .estimate-section,
  .site-footer {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

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

  .process-steps article:nth-child(2) {
    border-right: 0;
  }

  .process-steps article:nth-child(1),
  .process-steps article:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 242, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    background: var(--cedar);
    color: #fffdf8;
  }

  .hero {
    align-items: end;
    min-height: 82vh;
    max-height: none;
    padding-top: 7rem;
    padding-bottom: 2.5rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(23, 28, 24, 0.68), rgba(23, 28, 24, 0.76)),
      linear-gradient(0deg, rgba(23, 28, 24, 0.74), transparent 54%);
  }

  .hero h1 {
    font-size: 3.05rem;
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 1.04rem;
  }

  .hero-note {
    position: static;
    width: min(100%, 360px);
    margin-top: 1.5rem;
    box-shadow: none;
  }

  .intro-grid,
  .section-heading,
  .work-section,
  .estimate-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro-grid h2,
  .section-heading h2,
  .work-copy h2,
  .process h2,
  .about-copy h2,
  .estimate-copy h2 {
    font-size: 2.1rem;
  }

  .work-copy,
  .estimate-copy {
    justify-self: start;
  }

  .work-section > *,
  .estimate-copy,
  .estimate-form {
    width: 100%;
  }

  .about-david {
    grid-template-columns: 1fr;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 70px;
    padding: 0.6rem 1rem;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    font-size: 0.68rem;
  }

  .site-nav {
    top: 70px;
  }

  .hero {
    min-height: 80vh;
    padding: 6.5rem 1rem 2rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .intro-band,
  .section,
  .work-section,
  .estimate-section,
  .site-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .section {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .service-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps article,
  .process-steps article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-steps article:last-child {
    border-bottom: 0;
  }

  .about-david {
    margin-right: 1rem;
    margin-left: 1rem;
    padding: 1.25rem;
  }

  .about-mark {
    width: min(100%, 260px);
  }

  .about-mark img {
    width: 100%;
  }

  .estimate-form {
    padding: 1.15rem;
  }
}

@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;
  }
}
