/* V8 composite-door selector and specification guide. */
.v8-hero {
  min-height: 680px;
}

.v8-hero > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.v8-hero > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v8-hero .hero-copy > * {
  max-width: 780px;
}

.v8-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr);
  gap: 60px;
  align-items: start;
}

.v8-intro h2,
.door-range-heading h2,
.v8-spec-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 0 0 24px;
}

.v8-intro p,
.door-range-heading p,
.v8-spec-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.v8-note {
  border-left: 5px solid var(--orange);
  background: var(--tint);
  padding: 24px;
}

.v8-note strong {
  display: block;
  margin-bottom: 6px;
}

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

.door-range-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 30px;
}

.door-filter {
  appearance: none;
  border: 1px solid #b8c0c4;
  background: #fff;
  color: var(--ink);
  padding: 11px 17px;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.door-filter:hover,
.door-filter:focus-visible {
  border-color: var(--orange);
}

.door-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.door-range-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.door-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 32, 39, .07);
}

.door-card[hidden] {
  display: none;
}

.door-card-media {
  position: relative;
  overflow: hidden;
  background: #d9dcde;
  aspect-ratio: 16 / 9;
}

.door-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.door-card:hover .door-card-media img {
  transform: scale(1.025);
}

.door-visual-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(17, 25, 30, .9);
  color: #fff;
  padding: 7px 10px;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.door-card-copy {
  padding: 24px 24px 18px;
}

.door-card-copy h3 {
  font-size: 1.65rem;
  line-height: 1.05;
  margin: 0 0 8px;
}

.door-colour-name {
  margin: 0 0 13px;
  color: var(--orange-dark);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.door-card-copy p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.door-card details {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.door-card summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 24px;
  font-weight: 800;
}

.door-card summary::-webkit-details-marker {
  display: none;
}

.door-card summary::after {
  content: '+';
  float: right;
  color: var(--orange);
  font-size: 1.25rem;
  line-height: 1;
}

.door-card details[open] summary::after {
  content: '–';
}

.door-detail {
  border-top: 1px solid var(--line);
  padding: 18px 24px 24px;
}

.door-product-reference {
  position: relative;
  height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 17px;
}

.door-product-reference img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.door-detail ul {
  margin: 0 0 17px;
  padding-left: 20px;
  color: var(--muted);
}

.door-detail a {
  font-weight: 800;
}

.more-door-options {
  margin-top: 70px;
  padding-top: 55px;
  border-top: 1px solid var(--line);
}

.more-door-options h3 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.more-door-options > p {
  max-width: 780px;
  color: var(--muted);
}

.door-extras-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 25px;
}

.door-extra {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.door-extra img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.door-extra figcaption {
  min-height: 67px;
  padding: 11px;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.35;
}

.door-quote-link {
  display: inline-block;
  margin-right: 14px;
  color: var(--orange-dark);
}

.colour-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.colour-swatch {
  min-width: 0;
}

.colour-swatch i {
  display: block;
  min-height: 82px;
  border: 1px solid rgba(23, 32, 39, .18);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22);
}

.colour-swatch span {
  display: block;
  padding-top: 9px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
}

.swatch-white { background: #f5f3eb; }
.swatch-cream { background: #e9dfc8; }
.swatch-chartwell { background: #9fb09b; }
.swatch-emerald { background: #173d31; }
.swatch-sapphire { background: #173154; }
.swatch-ruby { background: #7a1f25; }
.swatch-black { background: #16191b; }
.swatch-agate { background: #b7bbb6; }
.swatch-pebble { background: #b8b3a5; }
.swatch-slate { background: #4f575d; }
.swatch-anthracite { background: #30363a; }
.swatch-irish-oak { background: #b98950; }
.swatch-light-oak { background: #c79a60; }
.swatch-rosewood { background: #4f2725; }

.furniture-group + .furniture-group {
  margin-top: 55px;
}

.furniture-group h3 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

.furniture-group > p {
  max-width: 760px;
  margin-top: 0;
  color: var(--muted);
}

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

.hardware-card {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.hardware-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.hardware-card figcaption {
  min-height: 62px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.35;
}

.colour-reference {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: 45px;
  align-items: center;
  margin-top: 34px;
}

.colour-reference > img {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
}

.colour-reference .colour-grid {
  margin-top: 0;
}

.v8-process {
  counter-reset: v8step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 34px;
}

.v8-process div {
  background: #fff;
  padding: 25px;
}

.v8-process div::before {
  counter-increment: v8step;
  content: '0' counter(v8step);
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.v8-process strong {
  display: block;
  margin-bottom: 7px;
}

.v8-process p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 980px) {
  .door-range-grid,
  .hardware-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .door-extras-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .v8-hero {
    min-height: 620px;
  }

  .v8-intro,
  .door-range-grid,
  .colour-reference {
    grid-template-columns: 1fr;
  }

  .v8-intro {
    gap: 28px;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .door-card-media img {
    transition: none;
  }
}
