:root {
  --charcoal: #22201f;
  --cream: #f8f2ea;
  --wood: #b67c4b;
  --wood-dark: #8d5f38;
  --accent: #4f7f7f;
  --card: #fffdfb;
  --shadow: 0 10px 24px rgba(34, 32, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #f1e9df;
}

h1,
h2,
h3 {
  font-family: Manrope, Inter, sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 242, 234, 0.95);
  border-bottom: 1px solid rgba(34, 32, 31, 0.1);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.brand {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  color: var(--charcoal);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #eaddcf;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
}

.hero-grid,
.split-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lead {
  font-size: 1.2rem;
  font-weight: 500;
}

.hero-card,
.card,
.note-card,
.image-card,
.process-grid li {
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.hero-card,
.note-card {
  padding: 1.4rem;
}

.btn {
  display: inline-block;
  margin-top: 0.8rem;
  background: var(--wood);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background: var(--wood-dark);
}

.card-grid,
.gallery-grid,
.process-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(34, 32, 31, 0.12);
}

.section-intro {
  max-width: 70ch;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.image-card {
  overflow: hidden;
}

.image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-card figcaption {
  padding: 0.8rem 1rem 1rem;
  font-weight: 600;
}

.note-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.process-grid li {
  padding: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  max-width: 650px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(34, 32, 31, 0.2);
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(79, 127, 127, 0.28);
  border-color: var(--accent);
}

.small {
  font-size: 0.9rem;
}

.form-success {
  margin: 0.9rem 0 0;
  max-width: 650px;
  border: 1px solid #b9d8c0;
  border-radius: 0.6rem;
  background: #edf8f0;
  color: #1f5c2f;
  padding: 0.7rem 0.8rem;
  font-weight: 600;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid rgba(34, 32, 31, 0.1);
  text-align: center;
}

@media (max-width: 820px) {
  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 4.5rem;
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
    padding: 0.8rem;
    display: none;
  }

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

.door-catalog-page {
  background:
    radial-gradient(circle at top, rgba(182, 124, 75, 0.14), transparent 32%),
    linear-gradient(180deg, #f8f2ea 0%, #f3e7da 100%);
}

.door-catalog-page #bodyContent {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.door-catalog-page main {
  flex: 1;
}

.quote-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 127, 127, 0.11), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(182, 124, 75, 0.12), transparent 26%),
    linear-gradient(180deg, #f8f2ea 0%, #f2e7db 100%);
}

.quote-shell {
  padding-top: 3rem;
}

.quote-card {
  background: #fffdfb;
  border-radius: 1.25rem;
  box-shadow: 0 14px 34px rgba(34, 32, 31, 0.13);
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.quote-head {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(34, 32, 31, 0.13);
}

.quote-meta {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.quote-meta div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.9rem;
  border-bottom: 1px dashed rgba(34, 32, 31, 0.18);
  padding-bottom: 0.25rem;
}

.quote-meta dt {
  font-weight: 600;
  color: #564f4c;
}

.quote-meta dd {
  margin: 0;
  font-weight: 700;
}

.quote-muted {
  color: #5f5854;
}

.quote-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.quote-grid.quote-grid-single {
  grid-template-columns: 1fr;
}

.quote-grid h2,
.quote-line-items h2,
.quote-accept h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin-bottom: 0.4rem;
}

.quote-grid > div,
.quote-line-items,
.quote-accept {
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid rgba(34, 32, 31, 0.08);
  padding: 1rem;
}

.proposal-section {
  border-top: 3px solid rgba(79, 127, 127, 0.24);
}

.quote-summary {
  background: linear-gradient(180deg, #fff 0%, #f8f4ef 100%);
}

.project-title {
  letter-spacing: 0.01em;
  line-height: 1.28;
  margin-bottom: 0.55rem;
}

.quote-line-items .quote-grid + .quote-grid {
  margin-top: 0.6rem;
}

.approval-callout {
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(79, 127, 127, 0.3);
  border-radius: 0.65rem;
  background: #f2f8f8;
}

.quote-line-items,
.quote-accept {
  margin-bottom: 1.25rem;
}

.quote-card > section:last-of-type {
  margin-bottom: 0;
}

.quote-grid ul {
  margin: 0;
  padding-left: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
}

.quote-line-items table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.quote-line-items th,
.quote-line-items td {
  padding: 0.7rem;
  border-bottom: 1px solid rgba(34, 32, 31, 0.1);
  text-align: left;
}

.quote-line-items tfoot th,
.quote-line-items tfoot td {
  border-bottom: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.quote-accept {
  border: 1px solid rgba(182, 124, 75, 0.34);
  background: linear-gradient(180deg, #fff 0%, #fbf3eb 100%);
}

.quote-accept .btn {
  margin-top: 0.4rem;
}

@media (max-width: 820px) {
  .quote-head,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .quote-line-items table {
    min-width: 460px;
  }
}

.door-catalog-page .site-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.door-catalog-page .site-nav a {
  background: rgba(255, 253, 251, 0.78);
  border: 1px solid rgba(34, 32, 31, 0.08);
}

.door-catalog {
  padding-top: 2.25rem;
}

.door-catalog .swatch-gallery__inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.door-catalog .swatch-gallery__description {
  max-width: 72ch;
}

.door-catalog .swatch-gallery__description h1 {
  margin-bottom: 0.8rem;
}

.door-catalog .swatch-gallery__columns {
  width: 100%;
}

.door-catalog .swatch-gallery__swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.door-catalog .swatch-gallery-swatch {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.door-catalog .swatch-gallery-swatch__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1.08;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.door-catalog .swatch-gallery-swatch__button:hover,
.door-catalog .swatch-gallery-swatch__button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(34, 32, 31, 0.14);
}

.door-catalog .swatch-gallery-swatch__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.door-catalog .swatch-gallery-swatch__name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--charcoal);
}

@media (max-width: 820px) {
  .door-catalog-page .site-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .door-catalog .swatch-gallery__swatches {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 560px) {
  .door-catalog {
    padding-top: 1.5rem;
  }

  .door-catalog .swatch-gallery__swatches {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@page {
  size: letter;
  margin: 0.4in;
}

@media print {
  html,
  body {
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: #111;
    font-size: 10.5pt;
    line-height: 1.3;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .quote-page .site-header,
  .quote-page .site-footer {
    display: none;
  }

  .quote-page main,
  .quote-page .section,
  .quote-page .quote-shell {
    padding: 0;
    margin: 0;
  }

  .quote-page .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .quote-page .quote-card {
    box-shadow: none;
    border: 1px solid #999;
    border-radius: 0;
    padding: 0.14in;
  }

  .quote-page h1 {
    font-size: 18pt;
    margin: 0 0 0.1in;
  }

  .quote-page h2 {
    font-size: 11.5pt;
    margin: 0 0 0.07in;
  }

  .quote-page p,
  .quote-page li,
  .quote-page td,
  .quote-page th,
  .quote-page dd,
  .quote-page dt {
    font-size: 10pt;
  }

  .quote-page .quote-head {
    grid-template-columns: 1.3fr 1fr;
    gap: 0.14in;
    margin-bottom: 0.1in;
    padding-bottom: 0.08in;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .quote-page .quote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.08in;
    margin-bottom: 0.08in;
  }

  .quote-page .quote-grid.quote-grid-single {
    grid-template-columns: 1fr;
  }

  .quote-page .quote-grid > div,
  .quote-page .quote-line-items,
  .quote-page .quote-accept {
    border: 1px solid #c8c8c8;
    background: #fff;
    border-radius: 0;
    padding: 0.08in;
    box-shadow: none;
    break-inside: auto;
    page-break-inside: auto;
  }

  .quote-page .proposal-section {
    border-top-width: 2px;
  }

  .quote-page .approval-callout {
    padding: 0.06in 0.07in;
    margin-top: 0.06in;
    background: #f7f7f7;
  }

  .quote-page .table-wrap {
    overflow: visible;
  }

  .quote-page .quote-line-items table {
    min-width: 0;
    width: 100%;
  }

  .quote-page .quote-line-items th,
  .quote-page .quote-line-items td {
    padding: 0.06in 0.05in;
  }

  .quote-page .quote-line-items tr,
  .quote-page .quote-meta div {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .quote-page .quote-line-items h2,
  .quote-page .quote-grid h2,
  .quote-page .quote-accept h2 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .quote-page p,
  .quote-page li {
    orphans: 2;
    widows: 2;
  }

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