/* ============================================================
   THE DOOR COLLECTION
   Lives in the same dark Luxayor palette (burgundy-black + champagne gold
   + ivory) and Cormorant/Outfit pairing. Designed to feel native to the
   site while borrowing the catalogue's editorial restraint.
   ============================================================ */

#doors-page,
#door-detail-page {
  background: #160504;
  color: #F5EDE0;
  min-height: 100vh;
  display: none;
}

body.door-detail-open { overflow-x: hidden; }

/* ------------------------------------------------------------
   LANDING PAGE — hero + four collection sections
   ------------------------------------------------------------ */

.dc-hero {
  position: relative;
  padding: clamp(160px, 14vw, 220px) 60px clamp(60px, 7vw, 100px);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.dc-hero-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #C4976A;
  margin-bottom: 32px;
}

.dc-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  color: #F5EDE0;
  margin: 0 0 28px;
  letter-spacing: -0.005em;
}

.dc-hero h1 em {
  font-style: italic;
  color: #C4976A;
}

.dc-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  color: rgba(245, 237, 224, 0.7);
  max-width: 640px;
  margin: 0 auto 32px;
}

.dc-hero-meta {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.4);
}

.dc-hero-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 28px;
  opacity: 0.5;
}

.dc-back-top {
  position: absolute;
  top: 110px;
  left: 60px;
  z-index: 5;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dc-back-top:hover { color: #C4976A; }

/* sections */
.dc-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 120px) 60px clamp(50px, 6vw, 80px);
  border-top: 1px solid rgba(196, 151, 106, 0.12);
}

.dc-section-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: clamp(50px, 6vw, 80px);
}

.dc-roman {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(80px, 9vw, 120px);
  line-height: 0.85;
  color: rgba(196, 151, 106, 0.5);
}

.dc-section-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #C4976A;
  margin-bottom: 18px;
}

.dc-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  color: #F5EDE0;
  margin: 0 0 14px;
}

.dc-section-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: rgba(245, 237, 224, 0.55);
  margin-bottom: 22px;
}

.dc-section-intro {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(245, 237, 224, 0.55);
  max-width: 640px;
  margin: 0 0 22px;
}

.dc-section-count {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(196, 151, 106, 0.7);
}

/* card grid — 4 per row on wide, 3 on medium, 2 on tablet, 1 on phone */
.dc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
}

@media (max-width: 1180px) { .dc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px)  { .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .dc-grid { grid-template-columns: 1fr; } }

/* door card */
.dc-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  position: relative;
  outline: none;
}

.dc-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #1F0807;
  overflow: hidden;
  border: 1px solid rgba(196, 151, 106, 0.10);
  transition: border-color 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dc-card-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease;
}

.dc-card:hover .dc-card-frame {
  border-color: rgba(196, 151, 106, 0.45);
}

.dc-card:hover .dc-card-frame img {
  transform: scale(1.03);
}

.dc-card-meta {
  display: block;
  padding: 18px 4px 0;
}

.dc-card-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(196, 151, 106, 0.7);
  margin-bottom: 10px;
}

.dc-card-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  color: #F5EDE0;
  margin-bottom: 6px;
}

.dc-card-tag {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(245, 237, 224, 0.45);
  line-height: 1.4;
}

/* ------------------------------------------------------------
   DETAIL PAGE — image-left, info-right
   ------------------------------------------------------------ */

#door-detail-body { padding-bottom: 120px; }

.dd-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 110px 60px 20px;
  font-family: 'Outfit', sans-serif;
}

.dd-back {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dd-back:hover { color: #C4976A; }

.dd-crumb {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(196, 151, 106, 0.7);
}

.dd-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 60px) 60px 0;
  align-items: start;
}

.dd-image-wrap {
  position: relative;
  width: 100%;
  background: #1F0807;
  border: 1px solid rgba(196, 151, 106, 0.10);
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  position: sticky;
  top: 30px;
}

.dd-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 26px;
}

.dd-info { padding-top: 6px; }

.dd-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #C4976A;
  margin-bottom: 22px;
}

.dd-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
  margin: 0 0 14px;
  color: #F5EDE0;
}

.dd-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: rgba(245, 237, 224, 0.65);
  margin-bottom: 32px;
}

.dd-rule {
  width: 56px;
  height: 1px;
  background: rgba(196, 151, 106, 0.5);
  margin: 0 0 32px;
}

.dd-desc {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.95;
  color: rgba(245, 237, 224, 0.7);
  margin: 0 0 50px;
  max-width: 540px;
}

.dd-block { margin-bottom: 44px; }

.dd-block-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(196, 151, 106, 0.85);
  margin-bottom: 18px;
}

.dd-block-selected {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: #F5EDE0;
  margin-bottom: 22px;
  min-height: 28px;
}

/* swatches */
.dd-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 460px;
}

@media (max-width: 540px) {
  .dd-swatches { grid-template-columns: repeat(3, 1fr); }
}

.dd-swatch {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  outline: none;
}

.dd-swatch-tile {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(245, 237, 224, 0.08);
  transition: border-color 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* sheen overlays — give swatches material character even as colour tiles */
.dd-sheen-metallic {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 35%, rgba(0,0,0,0.18) 65%, rgba(255,255,255,0.08) 100%),
    linear-gradient(45deg,  rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.1) 100%);
}

.dd-sheen-timber {
  background-image:
    repeating-linear-gradient(180deg, rgba(0,0,0,0.10) 0px, rgba(0,0,0,0.10) 1px, transparent 1px, transparent 4px),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.18) 100%);
}

.dd-sheen-lacquer {
  background-image:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.08) 100%);
}

.dd-swatch:hover .dd-swatch-tile { border-color: rgba(196, 151, 106, 0.4); }

.dd-swatch.is-selected .dd-swatch-tile {
  border-color: #C4976A;
  box-shadow: 0 0 0 2px rgba(196, 151, 106, 0.25);
  transform: scale(1.03);
}

.dd-swatch-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.5);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.dd-swatch.is-selected .dd-swatch-label { color: #C4976A; }

.dd-finish-note {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(245, 237, 224, 0.35);
  margin: 18px 0 0;
  max-width: 460px;
}

/* sizes */
.dd-sizes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.dd-size {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(245, 237, 224, 0.75);
  letter-spacing: 0.02em;
}

.dd-custom {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(196, 151, 106, 0.85);
  padding-top: 12px;
  border-top: 1px solid rgba(196, 151, 106, 0.15);
}

.dd-construction {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 237, 224, 0.55);
  margin: 0 0 14px;
  max-width: 540px;
}

.dd-category {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(196, 151, 106, 0.55);
}

.dd-cta-row { margin-top: 48px; }

.dd-cta {
  background: #C4976A;
  border: none;
  color: #160504;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 20px 36px;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s ease;
}

.dd-cta:hover { background: #A8804A; transform: translateY(-1px); }

/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 880px) {
  .dc-hero { padding: 140px 24px 50px; }
  .dc-back-top { left: 24px; top: 90px; }
  .dc-section { padding: 60px 24px 40px; }
  .dc-section-head { grid-template-columns: 1fr; gap: 14px; }
  .dc-roman { font-size: 64px; }
  .dc-grid { gap: 22px; }

  .dd-topbar { padding: 90px 24px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .dd-stage { grid-template-columns: 1fr; padding: 16px 24px 0; gap: 40px; }
  .dd-image-wrap { position: static; aspect-ratio: 4 / 5; }
  .dd-image-wrap img { padding: 16px; }
  .dd-cta { width: 100%; }
}