/* ========================================================================== 
   Flooring Pre-Installation — Royal 2026 Universal Guide
   ========================================================================== */

.rhf-page--flooring-pre-installation {
  --rhf-page-accent: #feda6a;
  --rhf-fpi-dark-a: #494d5f;
  --rhf-fpi-dark-b: #393f4d;
  --rhf-fpi-dark-c: #1d1e22;
  --rhf-fpi-plum-a: #3c3640;
  --rhf-fpi-plum-b: #221f26;
  --rhf-fpi-light-a: #fffdf8;
  --rhf-fpi-light-b: #f2f1ee;
  --rhf-fpi-light-c: #d4d4dc;
  --rhf-fpi-ink: #1d1e22;
  --rhf-fpi-navy: #17385f;
  --rhf-fpi-muted: #4e5565;
  --rhf-fpi-gold-dark: #ad8425;
  --rhf-fpi-radius-xl: clamp(1.25rem, 2vw, 2rem);
  --rhf-fpi-radius-lg: 1.35rem;
  --rhf-fpi-shadow-dark: 0 32px 90px rgba(0, 0, 0, 0.34);
  --rhf-fpi-shadow-light: 0 24px 70px rgba(7, 24, 47, 0.12);
  background: var(--rhf-fpi-dark-b);
  color: rgba(255, 255, 255, 0.9);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Hero */
.rhf-page--flooring-pre-installation .rhf-fpi-hero {
  min-height: clamp(680px, 92vh, 940px);
}

.rhf-page--flooring-pre-installation .rhf-fpi-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--flooring-pre-installation .rhf-page-hero__copy {
  display: grid;
  justify-items: start;
  max-width: 980px;
}

.rhf-page--flooring-pre-installation .rhf-page-kicker,
.rhf-page--flooring-pre-installation .rhf-section-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: 950;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: none;
  opacity: 1;
}

.rhf-page--flooring-pre-installation .rhf-fpi-hero h1 {
  max-width: 11.5ch;
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 7.6rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.rhf-fpi-hero__lede {
  max-width: 760px;
  margin: clamp(1.1rem, 2vw, 1.45rem) 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.24vw, 1.18rem);
  font-weight: 500;
  line-height: 1.72;
}

.rhf-page--flooring-pre-installation .rhf-fpi-hero .rhf-page-hero__shade {
  background: var(--rhf-central-hero-shade) !important;
}

/* Sections */
.rhf-fpi-intro,
.rhf-fpi-checklist,
.rhf-fpi-story,
.rhf-fpi-products,
.rhf-fpi-special,
.rhf-fpi-day,
.rhf-fpi-faq,
.rhf-fpi-final {
  position: relative;
  overflow: clip;
  padding: clamp(4.75rem, 9vw, 9rem) 0;
}

.rhf-fpi-intro > .rhf-container,
.rhf-fpi-checklist > .rhf-container,
.rhf-fpi-story > .rhf-container,
.rhf-fpi-products > .rhf-container,
.rhf-fpi-special > .rhf-container,
.rhf-fpi-day > .rhf-container,
.rhf-fpi-faq > .rhf-container,
.rhf-fpi-final > .rhf-container {
  position: relative;
  z-index: 1;
}

.rhf-fpi-intro,
.rhf-fpi-story--dark,
.rhf-fpi-special,
.rhf-fpi-faq {
  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-fpi-plum-a) 0%, var(--rhf-fpi-plum-b) 100%);
}

.rhf-fpi-checklist,
.rhf-fpi-story--light,
.rhf-fpi-products,
.rhf-fpi-day {
  color: var(--rhf-fpi-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-fpi-light-a) 0%, var(--rhf-fpi-light-b) 48%, var(--rhf-fpi-light-c) 100%);
}

.rhf-fpi-final {
  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-fpi-opener,
.rhf-fpi-section-heading {
  max-width: 1080px;
  margin-bottom: clamp(2.3rem, 5vw, 4.2rem);
}

.rhf-fpi-opener h2,
.rhf-fpi-section-heading h2,
.rhf-fpi-story__copy h2,
.rhf-fpi-final h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 5vw, 5.6rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.052em;
  text-rendering: geometricPrecision;
  text-wrap: balance;
}

.rhf-fpi-intro h2,
.rhf-fpi-story--dark h2,
.rhf-fpi-special h2,
.rhf-fpi-faq h2,
.rhf-fpi-final h2,
.rhf-fpi-intro h3,
.rhf-fpi-story--dark h3,
.rhf-fpi-special h3,
.rhf-fpi-faq h3,
.rhf-fpi-final h3 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.rhf-fpi-checklist h2,
.rhf-fpi-products h2,
.rhf-fpi-day h2,
.rhf-fpi-story--light h2,
.rhf-fpi-checklist h3,
.rhf-fpi-products h3,
.rhf-fpi-day h3,
.rhf-fpi-story--light h3 {
  color: var(--rhf-fpi-navy);
  -webkit-text-fill-color: var(--rhf-fpi-navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.rhf-fpi-opener p,
.rhf-fpi-section-heading p,
.rhf-fpi-story__copy > p,
.rhf-fpi-final p {
  max-width: 800px;
  margin: 1.1rem 0 0;
  font-size: clamp(1.02rem, 1.16vw, 1.14rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.005em;
}

.rhf-fpi-intro p,
.rhf-fpi-story--dark p,
.rhf-fpi-special p,
.rhf-fpi-faq p,
.rhf-fpi-final p,
.rhf-fpi-story--dark li {
  color: rgba(255, 255, 255, 0.84);
}

.rhf-fpi-checklist p,
.rhf-fpi-products p,
.rhf-fpi-day p,
.rhf-fpi-story--light p,
.rhf-fpi-story--light li {
  color: var(--rhf-fpi-muted);
}

/* Grids/cards */
.rhf-fpi-proof-grid,
.rhf-fpi-card-grid,
.rhf-fpi-special-grid,
.rhf-fpi-day-grid,
.rhf-fpi-product-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

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

.rhf-fpi-card-grid,
.rhf-fpi-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.rhf-fpi-day-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rhf-fpi-proof,
.rhf-fpi-card,
.rhf-fpi-special-item,
.rhf-fpi-day-card,
.rhf-fpi-product {
  position: relative;
  min-height: 210px;
  padding: clamp(1.25rem, 2vw, 1.7rem);
  border-radius: var(--rhf-fpi-radius-lg);
}

.rhf-fpi-proof,
.rhf-fpi-special-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(254, 218, 106, 0.10), transparent 60%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.20);
}

.rhf-fpi-card,
.rhf-fpi-day-card,
.rhf-fpi-product {
  border: 1px solid rgba(7, 24, 47, 0.10);
  background: rgba(255, 255, 255, 0.60);
  box-shadow: var(--rhf-fpi-shadow-light);
}

.rhf-fpi-proof .rhf-fpi-icon,
.rhf-fpi-special-item .rhf-fpi-icon {
  color: var(--rhf-page-accent);
}

.rhf-fpi-card .rhf-fpi-icon,
.rhf-fpi-day-card .rhf-fpi-icon {
  color: var(--rhf-fpi-gold-dark);
}

.rhf-fpi-proof h3,
.rhf-fpi-card h3,
.rhf-fpi-special-item h3,
.rhf-fpi-day-card h3,
.rhf-fpi-product span {
  display: block;
  margin: 1rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rhf-fpi-product span {
  margin: 0;
  color: var(--rhf-fpi-gold-dark);
  -webkit-text-fill-color: var(--rhf-fpi-gold-dark);
}

.rhf-fpi-proof p,
.rhf-fpi-card p,
.rhf-fpi-special-item p,
.rhf-fpi-day-card p,
.rhf-fpi-product p {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}

/* Story/video */
.rhf-fpi-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.98fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
}

.rhf-fpi-story__grid--reverse {
  grid-template-columns: minmax(320px, 0.98fr) minmax(0, 0.92fr);
}

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

.rhf-fpi-story__grid--reverse .rhf-fpi-video-card {
  order: 1;
}

.rhf-fpi-story__copy ul {
  display: grid;
  gap: 0.82rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.rhf-fpi-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-fpi-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-fpi-video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rhf-fpi-radius-xl);
  background: rgba(0, 0, 0, 0.26);
  box-shadow: var(--rhf-fpi-shadow-dark);
}

.rhf-fpi-story--light .rhf-fpi-video-card {
  border-color: rgba(7, 24, 47, 0.12);
  box-shadow: var(--rhf-fpi-shadow-light);
}

.rhf-fpi-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.rhf-fpi-video-card figcaption {
  padding: 1rem 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.rhf-fpi-story--light .rhf-fpi-video-card figcaption {
  color: var(--rhf-fpi-muted);
  background: rgba(255, 255, 255, 0.70);
}

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

.rhf-fpi-faq__items {
  display: grid;
  gap: 0.85rem;
}

.rhf-fpi-faq details {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.06);
}

.rhf-fpi-faq summary {
  position: relative;
  cursor: pointer;
  padding: 1.15rem 3.5rem 1.15rem 1.25rem;
  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;
  list-style: none;
}

.rhf-fpi-faq summary::-webkit-details-marker {
  display: none;
}

.rhf-fpi-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.2rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1d1e22;
  background: var(--rhf-page-accent);
  font-weight: 950;
  transform: translateY(-50%);
}

.rhf-fpi-faq details[open] summary::after {
  content: "–";
}

.rhf-fpi-faq details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.72;
}

.rhf-fpi-final__inner {
  max-width: 980px;
}

.rhf-fpi-final .rhf-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

.rhf-page--flooring-pre-installation .button--outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.06);
}

.rhf-page--flooring-pre-installation .button--outline-light:hover,
.rhf-page--flooring-pre-installation .button--outline-light:focus-visible {
  color: #1d1e22;
  border-color: var(--rhf-page-accent);
  background: var(--rhf-page-accent);
}

/* Responsive */
@media (max-width: 1180px) {
  .rhf-fpi-proof-grid,
  .rhf-fpi-special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhf-fpi-card-grid,
  .rhf-fpi-product-grid,
  .rhf-fpi-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .rhf-fpi-story__grid,
  .rhf-fpi-story__grid--reverse,
  .rhf-fpi-faq__grid {
    grid-template-columns: 1fr;
  }

  .rhf-fpi-story__grid--reverse .rhf-fpi-story__copy,
  .rhf-fpi-story__grid--reverse .rhf-fpi-video-card {
    order: initial;
  }
}

@media (max-width: 760px) {
  .rhf-page--flooring-pre-installation .rhf-fpi-hero {
    min-height: 720px;
  }

  .rhf-page--flooring-pre-installation .rhf-fpi-hero .rhf-page-hero__inner {
    padding-block: 7.2rem 4.5rem;
  }

  .rhf-page--flooring-pre-installation .rhf-fpi-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 11vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  .rhf-page--flooring-pre-installation .rhf-page-hero__actions,
  .rhf-fpi-final .rhf-page-hero__actions {
    width: 100%;
  }

  .rhf-page--flooring-pre-installation .button {
    width: 100%;
  }

  .rhf-fpi-intro,
  .rhf-fpi-checklist,
  .rhf-fpi-story,
  .rhf-fpi-products,
  .rhf-fpi-special,
  .rhf-fpi-day,
  .rhf-fpi-faq,
  .rhf-fpi-final {
    padding-block: 3.75rem;
  }

  .rhf-fpi-proof-grid,
  .rhf-fpi-card-grid,
  .rhf-fpi-special-grid,
  .rhf-fpi-product-grid,
  .rhf-fpi-day-grid {
    grid-template-columns: 1fr;
  }

  .rhf-fpi-proof,
  .rhf-fpi-card,
  .rhf-fpi-special-item,
  .rhf-fpi-day-card,
  .rhf-fpi-product {
    min-height: auto;
  }

  .rhf-fpi-video {
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhf-page--flooring-pre-installation *,
  .rhf-page--flooring-pre-installation *::before,
  .rhf-page--flooring-pre-installation *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
