/* ============================================================
   BEDROOM TALKS — ROOM COMBOS
   A whole-room theme page. Every surface below reads its colour from
   CSS variables the page sets per combo, so one stylesheet builds five
   completely different bedrooms — including the hero room itself, which
   is drawn in CSS rather than photographed.
   ============================================================ */

.room {
  --r-base: var(--tomato);
  --r-deep: var(--brown-deep);
  --r-light: var(--pink);
  --r-accent: var(--butter);
  --r-paper: var(--off-white);
  --r-ink: var(--ink);
  /* scene surfaces */
  --s-wall: #fbdcd0;
  --s-floor: #c98a63;
  --s-headboard: #b3301c;
  --s-duvet: #ed4b2f;
  --s-sheet: #fff4ef;
  --s-pillow-a: #f44786;
  --s-pillow-b: #f3d35b;
  --s-throw: #b3301c;
  --s-lamp: #f3d35b;
  --s-art: #f44786;
  --s-plant: #5f7d4a;
  background: var(--r-paper);
  color: var(--r-ink);
}

/* ---------- HERO: the styled bedroom ---------- */
.room-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  padding: clamp(110px, 13vh, 150px) 5vw clamp(60px, 8vh, 90px);
  background: var(--r-deep);
  color: var(--r-paper);
  overflow: hidden;
}
.room-hero::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  top: -22%;
  left: -18%;
  border-radius: 50%;
  background: var(--r-base);
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  animation: room-drift 24s ease-in-out infinite alternate;
}
@keyframes room-drift {
  to { transform: translate3d(8%, 6%, 0) scale(1.14); }
}
.room-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.room-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--r-accent);
}
.room-index::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--r-accent);
}
.room-title {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 7.2vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.room-subtitle {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--r-accent);
}
.room-tagline {
  margin: 22px 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.86;
}
.room-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 40px);
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 249, 242, 0.22);
}
.room-hero-meta dt {
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 6px;
}
.room-hero-meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.98rem;
}
.room-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 17px 20px 17px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--r-deep);
  background: var(--r-accent);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease;
}
.room-hero-cta:hover {
  transform: translateY(-2px);
  background: var(--r-paper);
}
.room-hero-cta span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--r-paper);
  background: var(--r-base);
}

/* ---------- the CSS bedroom scene ---------- */
.room-scene {
  position: relative;
  z-index: 2;
  aspect-ratio: 1.28;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--s-wall);
  box-shadow: 0 40px 90px rgba(20, 10, 6, 0.42);
}
/* warm light falling from the left, as if from a window */
.room-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(255, 240, 200, 0.5) 0%, transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(30, 15, 8, 0.22) 100%);
  pointer-events: none;
  z-index: 9;
}
.scene-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: var(--s-floor);
}
.scene-floor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 34px);
}
/* headboard */
.scene-headboard {
  position: absolute;
  left: 17%;
  right: 17%;
  top: 17%;
  height: 30%;
  border-radius: 22px 22px 0 0;
  background: var(--s-headboard);
  box-shadow: inset 0 -14px 26px rgba(0, 0, 0, 0.14);
}
.scene-headboard::before {
  content: "";
  position: absolute;
  inset: 12px 14px auto;
  height: 42%;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.09);
}
/* mattress + sheet */
.scene-bed {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 20%;
  height: 30%;
  border-radius: 12px;
  background: var(--s-sheet);
  box-shadow: 0 16px 30px rgba(20, 10, 6, 0.26);
}
/* duvet draped over the bed */
.scene-duvet {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 20%;
  height: 22%;
  border-radius: 14px 14px 8px 8px;
  background: var(--s-duvet);
  box-shadow: inset 0 8px 20px rgba(255, 255, 255, 0.12), 0 10px 22px rgba(20, 10, 6, 0.2);
}
.scene-duvet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.11) 0 3px, transparent 3px 16px);
}
/* the fold line where duvet meets sheet */
.scene-duvet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -7px;
  height: 12px;
  border-radius: 8px;
  background: var(--s-sheet);
  opacity: 0.92;
}
/* pillows */
.scene-pillow {
  position: absolute;
  bottom: 41%;
  width: 19%;
  height: 13%;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(20, 10, 6, 0.24);
}
.scene-pillow--a {
  left: 20%;
  background: var(--s-pillow-a);
  transform: rotate(-3deg);
}
.scene-pillow--b {
  right: 20%;
  background: var(--s-pillow-b);
  transform: rotate(2.5deg);
}
/* throw at the foot */
.scene-throw {
  position: absolute;
  left: 14%;
  width: 30%;
  bottom: 18%;
  height: 12%;
  border-radius: 8px;
  background: var(--s-throw);
  transform: rotate(-1.5deg);
  box-shadow: 0 8px 16px rgba(20, 10, 6, 0.22);
}
.scene-throw::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 11px);
}
/* bedside lamp */
.scene-lamp {
  position: absolute;
  right: 6%;
  bottom: 26%;
  width: 9%;
}
.scene-lamp i {
  display: block;
  height: 26px;
  border-radius: 8px 8px 3px 3px;
  background: var(--s-lamp);
  box-shadow: 0 0 34px 8px color-mix(in srgb, var(--s-lamp) 45%, transparent);
}
.scene-lamp b {
  display: block;
  width: 3px;
  height: 20px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35);
}
/* art above the bed */
.scene-art {
  position: absolute;
  left: 24%;
  top: 6%;
  width: 15%;
  height: 9%;
  border-radius: 5px;
  background: var(--s-art);
  box-shadow: 0 6px 14px rgba(20, 10, 6, 0.22);
}
.scene-art--two {
  left: 42%;
  top: 7%;
  width: 10%;
  height: 7%;
  opacity: 0.85;
}
/* plant in the corner */
.scene-plant {
  position: absolute;
  left: 4%;
  bottom: 24%;
  width: 8%;
  height: 17%;
}
.scene-plant i {
  position: absolute;
  inset: 0 auto 34% 0;
  width: 100%;
  height: 66%;
  border-radius: 50% 50% 46% 46%;
  background: var(--s-plant);
}
.scene-plant b {
  position: absolute;
  left: 22%;
  bottom: 0;
  width: 56%;
  height: 34%;
  border-radius: 3px 3px 7px 7px;
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
  .room-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .room-scene { order: -1; }
}

/* ---------- shared section furniture ---------- */
.room-section {
  padding: clamp(80px, 11vw, 150px) 5vw;
  max-width: 1180px;
  margin: 0 auto;
}
.room-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--r-base);
  margin: 0 0 16px;
}
.room-section h2 {
  margin: 0 0 clamp(30px, 4vw, 50px);
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.room-section h2 em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  color: var(--r-base);
}

/* ---------- the story ---------- */
.room-story {
  display: grid;
  gap: clamp(40px, 6vw, 74px);
}
.room-beat {
  font-family: var(--serif);
  line-height: 1.42;
  letter-spacing: -0.015em;
}
.room-beat--opening { font-size: clamp(1.4rem, 3.1vw, 2.4rem); max-width: 21ch; }
.room-beat--middle {
  font-family: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.78;
  max-width: 56ch;
  justify-self: end;
  opacity: 0.84;
}
.room-beat--closing {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  max-width: 24ch;
  color: var(--r-base);
}

/* ---------- fabric close-ups ---------- */
.fabric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.fabric-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--r-paper);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.fabric-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 50px color-mix(in srgb, var(--r-deep) 22%, transparent);
}
/* the swatch: an extreme close-up of the weave, built from the site's
   existing fabric visual classes plus a woven thread overlay */
.fabric-swatch {
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
}
.fabric-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.13) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.09) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.fabric-swatch .fabric-object {
  left: -10%;
  right: -10%;
  top: -14%;
  bottom: -14%;
  border-radius: 0;
  transform: rotate(-8deg) scale(1.3);
  box-shadow: none;
}
.fabric-copy {
  padding: 20px 22px 24px;
}
.fabric-copy h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--r-base);
}
.fabric-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  opacity: 0.8;
}

/* ---------- what's in the room ---------- */
.room-includes {
  background: var(--r-deep);
  color: var(--r-paper);
}
.room-includes-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) 5vw;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
.room-includes h2 { color: var(--r-paper); }
.room-includes h2 em { color: var(--r-accent); }
.room-includes .room-label { color: var(--r-accent); }
.include-list {
  border-top: 1px solid rgba(255, 249, 242, 0.2);
}
.include-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 249, 242, 0.2);
  transition: padding-left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.include-row:hover { padding-left: 12px; }
.include-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 249, 242, 0.1);
}
.include-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.include-thumb .fabric-object { transform: rotate(-6deg) scale(1.15); box-shadow: none; }
.include-thumb--extra {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  color: var(--r-accent);
  font-size: 1.1rem;
}
.include-row h3 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.include-row p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0.7;
}
.include-row .include-tag {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 249, 242, 0.12);
  color: var(--r-accent);
}

/* the one buy card */
.room-buy {
  position: sticky;
  top: 110px;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--r-paper);
  color: var(--r-ink);
  box-shadow: 0 30px 60px rgba(20, 10, 6, 0.3);
}
.room-buy-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}
.room-buy-sub {
  margin: 4px 0 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r-base);
}
.room-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.room-price {
  font-family: var(--serif);
  font-size: 2.15rem;
  letter-spacing: -0.03em;
}
.room-compare {
  font-size: 1rem;
  opacity: 0.5;
  text-decoration: line-through;
}
.room-save {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  color: white;
  background: var(--pink);
}
.room-buy-note {
  margin: 14px 0 20px;
  font-size: 0.84rem;
  line-height: 1.6;
  opacity: 0.75;
}
.room-add {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 18px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--r-paper);
  background: var(--r-base);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background 0.26s ease;
}
.room-add:hover {
  transform: translateY(-2px);
  background: var(--r-deep);
}
.room-add span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--r-base);
  background: var(--r-accent);
}
.room-add[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.room-buy-reassure {
  margin: 16px 0 0;
  font-size: 0.72rem;
  line-height: 1.7;
  opacity: 0.6;
}
.room-stock-note {
  margin: 12px 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tomato);
}

@media (max-width: 900px) {
  .room-includes-inner { grid-template-columns: 1fr; }
  .room-buy { position: static; }
  .room-beat--middle { justify-self: start; }
}

/* ---------- styling note ---------- */
.room-styling-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.room-styling-grid p {
  margin: 0 0 20px;
  font-size: clamp(0.98rem, 1.5vw, 1.14rem);
  line-height: 1.75;
  opacity: 0.86;
}
.room-pairs {
  padding: 22px 26px;
  border-radius: 26px;
  background: color-mix(in srgb, var(--r-base) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--r-base) 26%, transparent);
}
.room-pairs dt {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--r-base);
  margin-bottom: 9px;
}
.room-pairs dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .room-styling-grid { grid-template-columns: 1fr; }
}

/* ---------- palette strip ---------- */
.room-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.room-swatch {
  aspect-ratio: 2.7;
  position: relative;
}
.room-swatch span {
  position: absolute;
  left: 13px;
  bottom: 11px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.room-swatches:hover .room-swatch span { opacity: 0.78; }

/* ---------- other rooms ---------- */
.room-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.room-next-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: 22px;
  border-radius: 26px;
  text-decoration: none;
  color: var(--off-white);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.room-next-card:hover { transform: translateY(-6px) rotate(-0.7deg); }
.room-next-card span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0.8;
}
.room-next-card h3 {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}
.room-next-card p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.85;
}

/* ---------- reveals ---------- */
.room-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.room-fade.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .room-hero::before { animation: none; }
  .room-fade { opacity: 1; transform: none; transition: none; }
}
