:root {
  --cream: #f7efe1;
  --charcoal: #23211d;
  --muted: #665f55;
  --line: #d8cdbc;
  --rust: #a64b35;
  --rust-dark: #843522;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px 10px;
}

.brand img {
  display: block;
  width: 132px;
  height: auto;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-actions a:not(.button) {
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--rust);
  border-radius: 6px;
  background: var(--rust);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
}

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

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

.button-secondary:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--charcoal);
}

button:disabled {
  border-color: #8f8272;
  background: #d8cdbc;
  color: var(--charcoal);
  cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(166, 75, 53, 0.55);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 76px;
}

.hero-content {
  max-width: 720px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 10vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy,
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
}

.hero-panel div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.panel-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 58px 24px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 680px;
}

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

.service-grid article,
.inspection-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.service-grid article {
  padding: 22px;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.past-work {
  background: rgba(255, 253, 248, 0.32);
}

.work-grid figure {
  margin: 0;
}

.work-placeholder {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(166, 75, 53, 0.18), rgba(35, 33, 29, 0.08)),
    repeating-linear-gradient(135deg, #eee3d3, #eee3d3 12px, #f8f0e3 12px, #f8f0e3 24px);
}

figcaption {
  margin-top: 10px;
  color: var(--charcoal);
  font-weight: 800;
}

.inspection-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
}

input {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.full-width,
.form-note,
.inspection-form button {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-note[data-status="pending"] {
  color: var(--muted);
}

.form-note[data-status="success"] {
  color: #2f6846;
  font-weight: 800;
}

.form-note[data-status="error"] {
  color: var(--rust-dark);
  font-weight: 800;
}

.form-note a {
  color: var(--rust-dark);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 24px 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

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

address {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-style: normal;
}

address a {
  color: var(--charcoal);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 880px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .brand img {
    width: 112px;
  }

  .header-actions {
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 6px;
  }

  .header-actions .button-small {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .hero,
  .inspection-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.4rem);
  }

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

  .inspection-form {
    grid-template-columns: 1fr;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (min-width: 881px) and (max-width: 1060px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
