:root {
  --ink: #161514;
  --charcoal: #24211e;
  --stone: #efede7;
  --paper: #fbfaf6;
  --line: #d8d1c4;
  --gold: #b88a42;
  --wood: #7b4b2d;
  --olive: #3b4737;
  --blue: #172435;
  --muted: #6f675d;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir, "Helvetica Neue", 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: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.header-cta,
.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.ghost {
  background: rgba(251, 250, 246, 0.72);
  color: var(--ink);
  border-color: rgba(22, 21, 20, 0.35);
}

.btn.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 14, 12, 0.82), rgba(16, 14, 12, 0.34) 45%, rgba(16, 14, 12, 0.08));
}

.hero-copy {
  position: relative;
  width: min(660px, calc(100% - 32px));
  margin: 0 0 clamp(64px, 10vw, 120px) clamp(18px, 6vw, 88px);
  color: #fffaf1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 9vw, 124px);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 72px);
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.strip {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 72px);
  padding: 18px 16px;
  background: var(--charcoal);
  color: #f5ead6;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(16px, 5vw, 72px);
}

.section-head {
  max-width: 890px;
  margin-bottom: 36px;
}

.section-head p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.feature-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
}

.feature-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

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

.gallery article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery h3,
.gallery p {
  padding-inline: 18px;
}

.gallery h3 {
  margin-top: 18px;
}

.gallery p {
  padding-bottom: 18px;
  color: var(--muted);
}

.solutions {
  background: #f0eee7;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.solution-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.solution-grid span {
  color: var(--gold);
  font-weight: 900;
}

.solution-grid p {
  color: var(--muted);
}

.materials {
  background: var(--charcoal);
  color: var(--paper);
}

.materials .section-head p:not(.eyebrow) {
  color: #d9d0c0;
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.material-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.material-tile {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: #2a2825;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
}

.material-tile p {
  margin-bottom: 0;
  color: #e2d7c4;
}

.wood {
  background: linear-gradient(135deg, #7b4b2d, #2c1e18);
}

.steel {
  background: linear-gradient(135deg, #8a8d88, #1d1f1f);
}

.color {
  background: linear-gradient(135deg, var(--olive), var(--blue));
}

.detail {
  background: linear-gradient(135deg, #b88a42, #2b2118);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.swatches span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: var(--swatch);
}

.protector-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #eee7db;
  color: var(--ink);
}

.protector-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}

.protector-copy {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-top: 1px solid rgba(22, 21, 20, 0.12);
}

.protector-copy h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
}

.protector-copy p:not(.eyebrow) {
  margin-bottom: 4px;
  color: #5f584f;
}

.protector-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #5f584f;
}

.quote-section {
  background: #ece7dd;
}

.quote-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.65fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 42px;
}

.quote-intro h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.quote-intro > p {
  color: var(--muted);
}

.configurator-preview {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-left: 1px solid #d4ccbf;
  border-right: 1px solid #d4ccbf;
  background: #f4f0e8;
}

.preview-stage {
  min-width: 0;
  padding: clamp(12px, 1.6vw, 20px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(236, 231, 221, 0.78)),
    linear-gradient(135deg, #f6f2eb, #d8d1c4);
}

.preview-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(36, 33, 30, 0.1);
  border-radius: 4px;
  background: #f7f4ed;
}

.preview-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.preview-layer[hidden] {
  display: block;
  opacity: 0;
}

.preview-cart {
  z-index: 1;
}

.preview-base {
  z-index: 2;
}

.preview-top {
  z-index: 3;
}

#previewInsertLayers .preview-layer {
  z-index: 4;
}

.preview-acrylic {
  z-index: 5;
}

.preview-logo-light {
  z-index: 6;
}

.preview-logo {
  z-index: 7;
}

.preview-protectors {
  z-index: 8;
}

.preview-umbrella {
  z-index: 9;
}

.preview-wheel {
  z-index: 10;
}

.preview-copy {
  padding: 18px clamp(16px, 2vw, 24px) 22px;
  border-top: 1px solid #d4ccbf;
  background: #fbfaf6;
  color: var(--ink);
}

.preview-copy h3 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
}

.preview-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.preview-price {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.preview-price > span {
  color: #9a948a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-price > strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  line-height: 0.95;
}

.preview-price div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.preview-price small {
  color: var(--muted);
  font-size: 11px;
}

.preview-price b {
  color: var(--ink);
}

.preview-copy dl {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}

.preview-copy dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.preview-copy dd {
  max-width: 55%;
}

.quote-builder {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(360px, 0.9fr) minmax(320px, 0.56fr);
  align-items: stretch;
  border: 1px solid #bfb8aa;
  background: #fbfaf6;
  box-shadow: 0 22px 56px rgba(36, 33, 30, 0.08);
}

.quote-form {
  padding: clamp(18px, 2.2vw, 30px);
}

fieldset {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

legend,
.summary-label {
  width: 100%;
  margin-bottom: 10px;
  color: #9a948a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.model-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.model-group legend {
  grid-column: 1 / -1;
}

.model-card,
.color-choice,
.segmented label {
  cursor: pointer;
}

.model-card input,
.color-choice input,
.segmented input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.model-card span {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #bfb8aa;
  border-radius: 3px;
  background: #f2eee6;
}

.model-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.05;
}

.model-card small {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.model-card input:checked + span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.model-card input:checked + span small {
  color: #d6d0c5;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
}

.color-choice {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 48px;
  color: #5f5a52;
  font-family: "Courier New", monospace;
  font-size: 9px;
  text-align: center;
}

.color-dot {
  width: 32px;
  height: 32px;
  border: 2px solid #d0c9bd;
  border-radius: 50%;
  background: var(--choice-color);
  box-shadow: inset 0 0 0 3px #fbfaf6;
}

.color-choice input:checked + .color-dot {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 3px #fbfaf6, 0 0 0 2px var(--ink);
}

.choice-group legend span {
  float: right;
  color: var(--gold);
}

.stepper-row,
.toggle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.stepper-row {
  padding: 7px 9px;
  border: 1px solid #c4bdb1;
  background: #f0ece4;
}

.stepper-row + .stepper-row {
  margin-top: 8px;
}

.stepper-row small,
.toggle-row small,
.quote-note {
  display: block;
  color: var(--muted);
}

.toggle-row strong,
.stepper-row strong {
  font-size: 12px;
}

.toggle-row small,
.stepper-row small {
  font-size: 9.5px;
  line-height: 1.25;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stepper button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

output {
  min-width: 18px;
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-align: center;
}

.toggle-row input[type="checkbox"] {
  appearance: none;
  width: 32px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: #c8c6c0;
  box-shadow: inset 0 0 0 2px #c8c6c0;
  cursor: pointer;
}

.toggle-row input[type="checkbox"]::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.toggle-row input[type="checkbox"]:checked {
  background: var(--olive);
  box-shadow: inset 0 0 0 2px var(--olive);
}

.toggle-row input[type="checkbox"]:checked::before {
  transform: translateX(14px);
}

.toggle-row input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.delivery-row {
  grid-template-columns: 1fr;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #c4bdb1;
  border-radius: 999px;
  background: #fbfaf6;
  white-space: nowrap;
}

.segmented input:checked + span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

label {
  min-width: 0;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(251, 250, 246, 0.22);
  border-radius: 3px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 240, 228, 0.38);
}

textarea {
  resize: vertical;
}

.quote-summary {
  position: sticky;
  top: 92px;
  align-self: start;
  height: 100%;
}

.summary-card {
  min-height: 100%;
  padding: clamp(22px, 2.6vw, 34px);
  background: #1d1a16;
  color: #f7f0e4;
}

.summary-card h3 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  border-top: 1px solid rgba(251, 250, 246, 0.18);
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(251, 250, 246, 0.13);
}

dt {
  color: #aaa39a;
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

#total {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 0.95;
}

#summaryText {
  color: #8e877e;
}

.summary-fields {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.summary-fields label {
  display: grid;
  gap: 8px;
  color: #8e877e;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-card .btn {
  min-height: 48px;
  border-radius: 2px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-card .btn.primary {
  background: #416348;
  border-color: #416348;
}

.summary-card .btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 250, 246, 0.34);
}

.summary-card .btn + .btn {
  margin-top: 14px;
}

.quote-note {
  margin-top: 14px;
  font-size: 13px;
}

.production {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  background: #eee9df;
}

.production-copy {
  max-width: 560px;
}

.production-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.production img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: stretch;
}

.location iframe {
  width: 100%;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: grayscale(0.3) contrast(1.03);
}

.contact-line {
  color: var(--muted);
}

.contact-line a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
}

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

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

  .gallery,
  .solution-grid,
  .materials-layout,
  .material-board,
  .quote-intro,
  .configurator-preview,
  .quote-builder,
  .production,
  .location {
    grid-template-columns: 1fr;
  }

  .quote-summary {
    position: static;
  }

  .configurator-preview {
    position: static;
  }

  .summary-card {
    min-height: auto;
  }

  .protector-panel img {
    min-height: 360px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 9px 12px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-img {
    object-position: 60% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(16, 14, 12, 0.9), rgba(16, 14, 12, 0.3));
  }

  .hero-copy {
    margin: 0 16px 42px;
  }

  .strip {
    display: grid;
    justify-content: stretch;
    gap: 8px;
    text-align: center;
  }

  .feature-photo img {
    aspect-ratio: 4 / 3;
  }

  .protector-panel img {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .protector-copy {
    padding: 18px;
  }

  .model-group {
    grid-template-columns: 1fr;
  }

  .quote-builder {
    border-left: 0;
    border-right: 0;
  }

  .quote-form,
  .summary-card {
    padding-inline: 18px;
  }

  .color-options {
    gap: 14px 10px;
  }

  .color-choice {
    min-width: 58px;
    font-size: 11px;
  }

  .color-dot {
    width: 42px;
    height: 42px;
  }

  .stepper-row,
  .toggle-row,
  .delivery-row {
    grid-template-columns: 1fr;
  }

  .stepper,
  .segmented {
    justify-content: flex-start;
  }

  .segmented span {
    white-space: normal;
    text-align: center;
  }

  #total {
    font-size: 48px;
  }

  footer {
    flex-direction: column;
  }
}
