/* ==========================================================================
   Carpet Installation — Royal 2026 Cinematic Rebuild
   Alternating dark + soft platinum sections
   ========================================================================== */

.rhf-page--carpet-installation {
  --rhf-page-accent: #feda6a;

  --rhf-ci-dark-a: #3c3640;
  --rhf-ci-dark-b: #221f26;

  --rhf-ci-light-a: #f2f1ee;
  --rhf-ci-light-b: #d4d4dc;
  --rhf-ci-light-c: #fffdf8;

  --rhf-ci-ink: #1d1e22;
  --rhf-ci-navy: #07182f;
  --rhf-ci-muted: #4e5565;
  --rhf-ci-gold-dark: #ad8425;

  background: var(--rhf-ci-dark-b);
  color: rgba(255, 255, 255, 0.9);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rhf-ci-icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.rhf-page--carpet-installation .rhf-ci-hero {
  min-height: clamp(680px, 92vh, 940px);
}

.rhf-page--carpet-installation .rhf-ci-hero .rhf-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 980px);
  align-items: end;
  justify-content: start;
  padding-block: clamp(8rem, 13vw, 11.5rem) clamp(5.5rem, 10vw, 8rem);
}

.rhf-page--carpet-installation .rhf-ci-hero .rhf-page-hero__copy {
  display: grid;
  justify-items: start;
  max-width: 980px;
}

.rhf-page--carpet-installation .rhf-ci-hero .rhf-page-kicker {
  margin: 0 0 1rem;
  color: var(--rhf-page-accent);
  -webkit-text-fill-color: var(--rhf-page-accent);
  font-size: clamp(0.72rem, 0.66rem + 0.22vw, 0.86rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.18em;
}

.rhf-page--carpet-installation .rhf-ci-hero h1 {
  max-width: 11.5ch;
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(3.2rem, 8vw, 8rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.073em;
  text-wrap: balance;
}

.rhf-page--carpet-installation .rhf-ci-hero .rhf-page-hero__actions {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

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

.rhf-page--carpet-installation .rhf-ci-hero .rhf-page-hero__video {
  filter: none;
}

/* ==========================================================================
   Shared cinematic section system
   ========================================================================== */

.rhf-ci-intro,
.rhf-ci-story,
.rhf-ci-included-section,
.rhf-ci-timeline-section,
.rhf-ci-close {
  position: relative;
  overflow: clip;
  padding: clamp(4.75rem, 9vw, 9rem) 0;
}

.rhf-ci-intro > .rhf-container,
.rhf-ci-story > .rhf-container,
.rhf-ci-included-section > .rhf-container,
.rhf-ci-timeline-section > .rhf-container,
.rhf-ci-close > .rhf-container {
  position: relative;
  z-index: 1;
}

/* Dark theme */
.rhf-ci-band-dark,
.rhf-ci-intro,
.rhf-ci-story--2,
.rhf-ci-included-section,
.rhf-ci-close {
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(900px 460px at 8% 0%, rgba(255, 255, 255, 0.08), transparent 58%),
    radial-gradient(760px 360px at 100% 20%, rgba(254, 218, 106, 0.08), transparent 54%),
    linear-gradient(135deg, var(--rhf-ci-dark-a) 0%, var(--rhf-ci-dark-b) 100%);
}

/* Light platinum theme */
.rhf-ci-band-light,
.rhf-ci-story--1,
.rhf-ci-story--3,
.rhf-ci-timeline-section {
  color: var(--rhf-ci-ink);
  background:
    radial-gradient(820px 380px at 92% 0%, rgba(254, 218, 106, 0.18), transparent 58%),
    radial-gradient(760px 360px at 0% 20%, rgba(255, 255, 255, 0.86), transparent 58%),
    linear-gradient(135deg, var(--rhf-ci-light-c) 0%, var(--rhf-ci-light-a) 48%, var(--rhf-ci-light-b) 100%);
}

/* Warm close stays dark but softer */
.rhf-ci-close {
  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%);
}

/* Soft transitions between cinematic bands */
.rhf-ci-story--1::before,
.rhf-ci-story--3::before,
.rhf-ci-timeline-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(4rem, 9vw, 8rem);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 31, 38, 0.18), transparent);
}

.rhf-ci-story--2::before,
.rhf-ci-included-section::before,
.rhf-ci-close::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(4rem, 9vw, 8rem);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.12), transparent);
}

/* ==========================================================================
   Typography colors by band
   ========================================================================== */

.rhf-page--carpet-installation .rhf-section-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-ci-intro h2,
.rhf-ci-story--2 h2,
.rhf-ci-included-section h2,
.rhf-ci-close h2,
.rhf-ci-intro h3,
.rhf-ci-story--2 h3,
.rhf-ci-included-section h3,
.rhf-ci-close h3 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.rhf-ci-story--1 h2,
.rhf-ci-story--3 h2,
.rhf-ci-timeline-section h2,
.rhf-ci-story--1 h3,
.rhf-ci-story--3 h3,
.rhf-ci-timeline-section h3 {
  color: var(--rhf-ci-navy);
  -webkit-text-fill-color: var(--rhf-ci-navy);
}

.rhf-ci-story--1 .rhf-section-kicker,
.rhf-ci-story--3 .rhf-section-kicker,
.rhf-ci-timeline-section .rhf-section-kicker {
  color: var(--rhf-ci-gold-dark);
  -webkit-text-fill-color: var(--rhf-ci-gold-dark);
}

.rhf-ci-opener h2,
.rhf-ci-story__copy h2,
.rhf-ci-section-heading h2,
.rhf-ci-timeline-layout h2,
.rhf-ci-faq__intro h2,
.rhf-ci-final h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-shadow: none;
  text-rendering: geometricPrecision;
}

/* Dark copy */
.rhf-ci-intro p,
.rhf-ci-story--2 p,
.rhf-ci-included-section p,
.rhf-ci-close p,
.rhf-ci-story--2 li,
.rhf-ci-included-section li,
.rhf-ci-close li {
  color: rgba(255, 255, 255, 0.84);
}

/* Light copy */
.rhf-ci-story--1 p,
.rhf-ci-story--3 p,
.rhf-ci-timeline-section p,
.rhf-ci-story--1 li,
.rhf-ci-story--3 li,
.rhf-ci-timeline-section li {
  color: var(--rhf-ci-muted);
}

/* ==========================================================================
   Intro + proof
   ========================================================================== */

.rhf-ci-opener {
  max-width: 1080px;
  margin-bottom: clamp(2.3rem, 5vw, 4.2rem);
}

.rhf-ci-opener h2 {
  max-width: 960px;
  font-size: clamp(2.4rem, 5.7vw, 6.2rem);
}

.rhf-ci-opener p:last-child {
  max-width: 790px;
  margin: 1.2rem 0 0;
  font-size: clamp(1.04rem, 1.2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.005em;
}

.rhf-ci-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

.rhf-ci-proof {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rhf-ci-proof .rhf-ci-icon {
  color: var(--rhf-page-accent);
}

.rhf-ci-proof h3 {
  margin: 1rem 0 0;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rhf-ci-proof p {
  margin: 0.7rem 0 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ==========================================================================
   Staggered video stories
   ========================================================================== */

.rhf-ci-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.05fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
}

.rhf-ci-story__grid--reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.9fr);
}

.rhf-ci-story__grid--reverse .rhf-ci-story__copy {
  order: 2;
}

.rhf-ci-story__grid--reverse .rhf-ci-story__media {
  order: 1;
}

.rhf-ci-story__copy h2 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5.2vw, 5.8rem);
}

.rhf-ci-story__copy > p {
  max-width: 720px;
  margin: 1.15rem 0 0;
  font-size: clamp(1.02rem, 1.16vw, 1.12rem);
  font-weight: 500;
  line-height: 1.72;
}

.rhf-ci-story__copy ul {
  display: grid;
  gap: 0.85rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.rhf-ci-story__copy li {
  position: relative;
  padding-left: 1.55rem;
  font-size: clamp(1rem, 1.08vw, 1.08rem);
  font-weight: 750;
  line-height: 1.55;
}

.rhf-ci-story__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rhf-page-accent);
  box-shadow: 0 0 0 4px rgba(254, 218, 106, 0.14);
}

.rhf-ci-video-card {
  margin: 0;
}

.rhf-ci-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(1.15rem, 2vw, 2rem);
  background: #000;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.rhf-ci-story--1 .rhf-ci-video,
.rhf-ci-story--3 .rhf-ci-video,
.rhf-ci-timeline-section .rhf-ci-video {
  border: 1px solid rgba(7, 24, 47, 0.12);
}

.rhf-ci-story--2 .rhf-ci-video,
.rhf-ci-included-section .rhf-ci-video,
.rhf-ci-close .rhf-ci-video {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.rhf-ci-video-card figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rhf-ci-story--1 figcaption,
.rhf-ci-story--3 figcaption {
  color: var(--rhf-ci-muted);
}

.rhf-ci-story--2 figcaption {
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Included services
   ========================================================================== */

.rhf-ci-section-heading {
  max-width: 960px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.rhf-ci-section-heading h2 {
  max-width: 880px;
  font-size: clamp(2.2rem, 5vw, 5.6rem);
}

.rhf-ci-included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.3rem, 2.4vw, 2rem);
}

.rhf-ci-included-card {
  min-height: 260px;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.rhf-ci-included-card .rhf-ci-icon {
  color: var(--rhf-page-accent);
}

.rhf-ci-included-card h3 {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.rhf-ci-included-card p {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}

/* ==========================================================================
   Timeline light section
   ========================================================================== */

.rhf-ci-timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.rhf-ci-timeline-layout h2 {
  max-width: 620px;
  font-size: clamp(2.1rem, 4.4vw, 4.7rem);
}

.rhf-ci-timeline-layout .rhf-ci-section-heading p:last-child {
  max-width: 560px;
  margin: 1rem 0 0;
  color: var(--rhf-ci-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.rhf-ci-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(7, 24, 47, 0.16);
}

.rhf-ci-timeline li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(7, 24, 47, 0.16);
}

.rhf-ci-timeline span {
  color: var(--rhf-ci-gold-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rhf-ci-timeline h3 {
  margin: 0;
  color: var(--rhf-ci-navy);
  font-size: clamp(1.22rem, 2vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.rhf-ci-timeline p {
  margin: 0.55rem 0 0;
  color: var(--rhf-ci-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.rhf-ci-speed-note {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 980px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(7, 24, 47, 0.16);
}

.rhf-ci-speed-note .rhf-ci-icon {
  color: var(--rhf-ci-gold-dark);
  width: 2.6rem;
  height: 2.6rem;
}

.rhf-ci-speed-note h3 {
  margin: 0;
  color: var(--rhf-ci-navy);
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.rhf-ci-speed-note p:not(.rhf-section-kicker) {
  max-width: 720px;
  margin: 0.9rem 0 0;
  color: var(--rhf-ci-muted);
  font-size: 1rem;
  line-height: 1.68;
}

/* ==========================================================================
   FAQ + CTA warm dark close
   ========================================================================== */

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

.rhf-ci-faq__intro h2 {
  max-width: 640px;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
}

.rhf-ci-faq__intro p:last-child {
  max-width: 540px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.68;
}

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

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

.rhf-ci-faq summary {
  cursor: pointer;
  padding: 1.05rem 0;
  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;
}

.rhf-ci-faq details p {
  margin: 0;
  padding: 0 0 1.15rem;
  color: var(--rhf-page-accent);
  -webkit-text-fill-color: var(--rhf-page-accent);
  font-size: clamp(0.98rem, 1.05vw, 1.05rem);
  font-weight: 600;
  line-height: 1.72;
  letter-spacing: 0.006em;
}

.rhf-ci-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-ci-final h2 {
  max-width: 900px;
  font-size: clamp(2.3rem, 5.2vw, 5.7rem);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .rhf-ci-proof-grid,
  .rhf-ci-included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhf-ci-story__grid,
  .rhf-ci-story__grid--reverse,
  .rhf-ci-timeline-layout,
  .rhf-ci-faq {
    grid-template-columns: 1fr;
  }

  .rhf-ci-story__grid--reverse .rhf-ci-story__copy,
  .rhf-ci-story__grid--reverse .rhf-ci-story__media {
    order: initial;
  }
}

@media (max-width: 760px) {
  .rhf-page--carpet-installation .rhf-ci-hero {
    min-height: 740px;
  }

  .rhf-page--carpet-installation .rhf-ci-hero .rhf-page-hero__inner {
    padding-block: 7.5rem 4.75rem;
  }

  .rhf-page--carpet-installation .rhf-ci-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.45rem, 11vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
  }

  .rhf-ci-intro,
  .rhf-ci-story,
  .rhf-ci-included-section,
  .rhf-ci-timeline-section,
  .rhf-ci-close {
    padding-block: 3.75rem;
  }

  .rhf-ci-proof-grid,
  .rhf-ci-included-grid {
    grid-template-columns: 1fr;
  }

  .rhf-ci-opener h2,
  .rhf-ci-story__copy h2,
  .rhf-ci-section-heading h2,
  .rhf-ci-timeline-layout h2,
  .rhf-ci-faq__intro h2,
  .rhf-ci-final h2 {
    font-size: clamp(2.15rem, 12vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .rhf-ci-timeline li {
    grid-template-columns: 1fr;
  }

  .rhf-ci-speed-note {
    grid-template-columns: 1fr;
  }

  .rhf-ci-video {
    border-radius: 1.15rem;
  }
}

/* ==========================================================================
   Carpet Installation — Light Section Heading Refinement
   Same typography as white headings, lighter luxury navy color.
   ========================================================================== */

.rhf-page--carpet-installation {
  --rhf-ci-light-heading: #17385f;
}

/* Same size, weight, height, and spacing for all big section headings */
.rhf-page--carpet-installation .rhf-ci-opener h2,
.rhf-page--carpet-installation .rhf-ci-story__copy h2,
.rhf-page--carpet-installation .rhf-ci-section-heading h2,
.rhf-page--carpet-installation .rhf-ci-timeline-layout h2,
.rhf-page--carpet-installation .rhf-ci-faq__intro h2,
.rhf-page--carpet-installation .rhf-ci-final h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-rendering: geometricPrecision;
  text-shadow: none;
}

/* Dark sections stay white */
.rhf-page--carpet-installation .rhf-ci-intro h2,
.rhf-page--carpet-installation .rhf-ci-story--2 h2,
.rhf-page--carpet-installation .rhf-ci-included-section h2,
.rhf-page--carpet-installation .rhf-ci-close h2 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* Light platinum sections use lighter luxury navy */
.rhf-page--carpet-installation .rhf-ci-story--1 h2,
.rhf-page--carpet-installation .rhf-ci-story--3 h2,
.rhf-page--carpet-installation .rhf-ci-timeline-section h2,
.rhf-page--carpet-installation .rhf-ci-story--1 h3,
.rhf-page--carpet-installation .rhf-ci-story--3 h3,
.rhf-page--carpet-installation .rhf-ci-timeline-section h3 {
  color: var(--rhf-ci-light-heading);
  -webkit-text-fill-color: var(--rhf-ci-light-heading);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

