/* ==========================================================================
   Carpet By Room — Modern Royal editorial layout
   ========================================================================== */

.rhf-page--by-room {
  --rhf-page-accent: #feda6a;
  --rhf-cbr-bg: #364052;
  --rhf-cbr-bg-deep: #202737;
  --rhf-cbr-warm: #2c242b;
  --rhf-cbr-warm-deep: #1c141a;
  --rhf-cbr-dark: #1d1e22;
  --rhf-cbr-smoke: #494d5f;
  --rhf-cbr-silver: #d4d4dc;
  background: var(--rhf-cbr-bg-deep);
  color: rgba(255, 255, 255, 0.9);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rhf-cbr-hero {
  min-height: clamp(640px, 90vh, 920px);
}

.rhf-cbr-hero .rhf-page-hero__inner {
  grid-template-columns: minmax(0, 980px);
  justify-content: start;
}

.rhf-cbr-hero .rhf-page-hero__shade {
  background: var(--rhf-central-hero-shade) !important;
}

.rhf-cbr-hero .rhf-page-hero__video {
  filter: none;
}

/* Main editorial slate story */
.rhf-cbr-editorial {
  position: relative;
  overflow: clip;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(4.5rem, 9vw, 9rem);
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(920px 430px at 8% 0%, rgba(255, 255, 255, 0.10), transparent 58%),
    radial-gradient(780px 360px at 96% 18%, rgba(254, 218, 106, 0.08), transparent 56%),
    linear-gradient(135deg, var(--rhf-cbr-bg) 0%, var(--rhf-cbr-bg-deep) 100%);
}

.rhf-cbr-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(29, 30, 34, 0.12), transparent 26rem),
    radial-gradient(720px 420px at 52% 58%, rgba(0, 0, 0, 0.16), transparent 64%);
}

.rhf-cbr-editorial > .rhf-container {
  position: relative;
  z-index: 1;
}

/* Opener */
.rhf-cbr-opener {
  max-width: 1080px;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.rhf-page--by-room .rhf-section-kicker,
.rhf-page--by-room .rhf-page-kicker {
  color: var(--rhf-page-accent);
  -webkit-text-fill-color: var(--rhf-page-accent);
  font-weight: 950;
  letter-spacing: 0.16em;
  text-shadow: none;
  opacity: 1;
}

.rhf-cbr-opener h2 {
  max-width: 920px;
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(2.3rem, 5.2vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-shadow: none;
  text-rendering: geometricPrecision;
}

.rhf-cbr-opener > p {
  max-width: 760px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.18vw, 1.14rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.005em;
}

/* Jump buttons */
.rhf-cbr-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.rhf-page--by-room .rhf-cbr-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.2rem;
  border: 1px solid #feda6a;
  border-radius: 16px;
  background: linear-gradient(180deg, #494d5f 0%, #1d1e22 100%);
  color: #feda6a;
  -webkit-text-fill-color: #feda6a;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(29, 30, 34, 0.28);
}

.rhf-page--by-room .rhf-cbr-jump a:hover,
.rhf-page--by-room .rhf-cbr-jump a:focus-visible {
  border-color: #feda6a;
  background: linear-gradient(180deg, #5a6073 0%, #25262c 100%);
  color: #feda6a;
  -webkit-text-fill-color: #feda6a;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(29, 30, 34, 0.36);
}

/* Room flow */
.rhf-cbr-room-flow {
  display: grid;
  gap: clamp(4rem, 9vw, 8rem);
}

.rhf-cbr-room {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(1.5rem, 5vw, 5.2rem);
  align-items: center;
  min-height: clamp(480px, 58vw, 680px);
  scroll-margin-top: 7rem;
}

.rhf-cbr-room::before {
  content: "";
  position: absolute;
  top: clamp(-2rem, -3vw, -1rem);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.rhf-cbr-room:first-child::before {
  display: none;
}

.rhf-cbr-room--reverse .rhf-cbr-room__media {
  order: 1;
}

.rhf-cbr-room--reverse .rhf-cbr-room__copy {
  order: 2;
}

.rhf-cbr-room__copy {
  max-width: 720px;
}

.rhf-cbr-room__copy h2 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(2.35rem, 5.35vw, 5.95rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-shadow: none;
  text-rendering: geometricPrecision;
}

.rhf-cbr-room__lede {
  max-width: 700px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.16vw, 1.12rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.005em;
}

.rhf-cbr-room__points {
  display: grid;
  gap: 0.95rem;
  max-width: 700px;
  margin-top: clamp(1.25rem, 2.4vw, 1.8rem);
}

.rhf-cbr-room__points p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.08vw, 1.08rem);
  font-weight: 500;
  line-height: 1.68;
  letter-spacing: 0.004em;
}

.rhf-cbr-room__points strong {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.25;
  text-shadow: none;
}

.rhf-cbr-room__media {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  margin: 0;
}

.rhf-cbr-room--reverse .rhf-cbr-room__media {
  justify-self: start;
}

.rhf-cbr-picture,
.rhf-cbr-picture img {
  display: block;
  width: 100%;
}

.rhf-cbr-picture img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: clamp(1.25rem, 2vw, 2rem);
  box-shadow:
    0 32px 82px rgba(0, 0, 0, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

.rhf-cbr-room__media::after {
  content: "";
  position: absolute;
  inset: auto -1rem -1rem 1.2rem;
  height: 44%;
  z-index: -1;
  border-radius: 999px;
  background: rgba(254, 218, 106, 0.14);
  filter: blur(34px);
}

/* Warm charcoal close: FAQ + CTA */
.rhf-cbr-close {
  position: relative;
  overflow: clip;
  padding: clamp(4.25rem, 8vw, 8rem) 0 clamp(4.5rem, 9vw, 9rem);
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(860px 420px at 10% 0%, rgba(254, 218, 106, 0.10), transparent 58%),
    radial-gradient(740px 360px at 96% 18%, rgba(255, 255, 255, 0.07), transparent 56%),
    linear-gradient(135deg, #2c242b 0%, #1c141a 100%);
}

.rhf-cbr-close::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(5rem, 10vw, 9rem);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(32, 39, 55, 0.72), rgba(28, 20, 26, 0));
}

.rhf-cbr-close > .rhf-container {
  position: relative;
  z-index: 1;
}

.rhf-cbr-fast-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.rhf-cbr-fast-faq__intro h2 {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.052em;
  text-shadow: none;
  text-rendering: geometricPrecision;
}

.rhf-cbr-fast-faq__intro p:last-child {
  max-width: 520px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.68;
}

.rhf-cbr-fast-faq__items {
  display: grid;
  gap: 0.2rem;
}

.rhf-cbr-fast-faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.rhf-cbr-fast-faq summary {
  cursor: pointer;
  padding: 1.05rem 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 1.28vw, 1.18rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0.006em;
  text-shadow: none;
}

.rhf-cbr-fast-faq details p {
  margin: 0;
  padding: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.05vw, 1.05rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.004em;
}

.rhf-cbr-final {
  max-width: 980px;
  margin-top: clamp(4.5rem, 9vw, 8rem);
  padding-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rhf-cbr-final h2 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(2.3rem, 5.2vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-shadow: none;
  text-rendering: geometricPrecision;
}

.rhf-cbr-final > p {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.16vw, 1.12rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.005em;
}

/* Responsive */
@media (max-width: 1180px) {
  .rhf-cbr-room {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  }

  .rhf-cbr-room__media {
    width: min(100%, 440px);
  }
}

@media (max-width: 980px) {
  .rhf-cbr-room,
  .rhf-cbr-fast-faq {
    grid-template-columns: 1fr;
  }

  .rhf-cbr-room,
  .rhf-cbr-room--reverse {
    min-height: auto;
  }

  .rhf-cbr-room--reverse .rhf-cbr-room__media,
  .rhf-cbr-room--reverse .rhf-cbr-room__copy {
    order: initial;
  }

  .rhf-cbr-room__media,
  .rhf-cbr-room--reverse .rhf-cbr-room__media {
    justify-self: start;
    width: min(100%, 620px);
  }

  .rhf-cbr-room__copy {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .rhf-cbr-hero {
    min-height: 740px;
  }

  .rhf-cbr-editorial,
  .rhf-cbr-close {
    padding-top: 3.5rem;
  }

  .rhf-cbr-opener h2,
  .rhf-cbr-room__copy h2,
  .rhf-cbr-fast-faq__intro h2,
  .rhf-cbr-final h2 {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .rhf-cbr-opener > p,
  .rhf-cbr-room__lede,
  .rhf-cbr-room__points p,
  .rhf-cbr-fast-faq__intro p:last-child,
  .rhf-cbr-fast-faq details p,
  .rhf-cbr-final > p {
    font-size: 1rem;
    line-height: 1.68;
    letter-spacing: 0;
  }

  .rhf-cbr-room-flow {
    gap: 4rem;
  }

  .rhf-cbr-picture img {
    aspect-ratio: 3 / 4;
  }

  .rhf-cbr-jump {
    gap: 0.55rem;
  }

  .rhf-page--by-room .rhf-cbr-jump a {
    width: 100%;
    min-height: 54px;
    justify-content: center;
  }
}

/* ==========================================================================
   Carpet By Room — FAQ Answer Gold Text
   ========================================================================== */

.rhf-page--by-room .rhf-cbr-fast-faq details p {
  color: #feda6a !important;
  -webkit-text-fill-color: #feda6a;
  font-weight: 600;
  line-height: 1.72;
  letter-spacing: 0.006em;
  text-shadow: none;
  opacity: 1;
}

