/* ===========================================================================
   Vinyl Installation — Royal 2026
   Luxury vinyl plank / tile installation service page.
   Uses the same dark plum + soft platinum color rhythm as carpet installation.
   =========================================================================== */

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

  --rhf-vi-dark-a: #3c3640;
  --rhf-vi-dark-b: #221f26;
  --rhf-vi-dark-c: #1d1e22;

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

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

  --rhf-vi-radius-xl: clamp(1.25rem, 2vw, 2rem);
  --rhf-vi-radius-lg: 1.35rem;
  --rhf-vi-shadow-dark: 0 32px 90px rgba(0, 0, 0, 0.34);
  --rhf-vi-shadow-light: 0 24px 70px rgba(7, 24, 47, 0.12);

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

/* Hero */
.rhf-page--vinyl-installation .rhf-vi-hero {
  min-height: clamp(680px, 92vh, 940px);
  isolation: isolate;
}

.rhf-page--vinyl-installation .rhf-vi-hero .rhf-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(254, 218, 106, 0.14), transparent 32rem),
    linear-gradient(135deg, #1d1e22, #393f4d);
}

.rhf-page--vinyl-installation .rhf-vi-hero .rhf-page-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.04) saturate(1.04) contrast(1.02);
}

.rhf-page--vinyl-installation .rhf-vi-hero .rhf-page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--rhf-central-hero-shade) !important;
}

.rhf-page--vinyl-installation .rhf-vi-hero .rhf-page-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1040px);
  align-items: end;
  justify-content: start;
  min-height: inherit;
  padding-block: clamp(8rem, 13vw, 11.5rem) clamp(5.5rem, 10vw, 8rem);
}

.rhf-page--vinyl-installation .rhf-page-hero__copy {
  display: grid;
  justify-items: start;
  max-width: 1040px;
}

.rhf-page--vinyl-installation .rhf-page-kicker,
.rhf-page--vinyl-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--vinyl-installation .rhf-vi-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7.4vw, 7.8rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.rhf-vi-hero__lede {
  max-width: 790px;
  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--vinyl-installation .rhf-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

/* Shared sections */
.rhf-vi-intro,
.rhf-vi-story,
.rhf-vi-rooms,
.rhf-vi-included,
.rhf-vi-faq,
.rhf-vi-final {
  position: relative;
  overflow: clip;
  padding: clamp(4.75rem, 9vw, 9rem) 0;
}

.rhf-vi-intro > .rhf-container,
.rhf-vi-story > .rhf-container,
.rhf-vi-rooms > .rhf-container,
.rhf-vi-included > .rhf-container,
.rhf-vi-faq > .rhf-container,
.rhf-vi-final > .rhf-container {
  position: relative;
  z-index: 1;
}

/* Carpet installation dark bands */
.rhf-vi-intro,
.rhf-vi-story--dark,
.rhf-vi-faq,
.rhf-vi-final {
  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-vi-dark-a) 0%, var(--rhf-vi-dark-b) 100%);
}

/* Carpet installation soft platinum bands */
.rhf-vi-story--light,
.rhf-vi-rooms,
.rhf-vi-included {
  color: var(--rhf-vi-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-vi-light-a) 0%, var(--rhf-vi-light-b) 48%, var(--rhf-vi-light-c) 100%);
}

.rhf-vi-final {
  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%);
}

/* Typography */
.rhf-vi-opener,
.rhf-vi-section-heading {
  max-width: 1080px;
  margin-bottom: clamp(2.3rem, 5vw, 4.2rem);
}

.rhf-vi-opener h2,
.rhf-vi-section-heading h2,
.rhf-vi-story__copy h2,
.rhf-vi-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-vi-intro h2,
.rhf-vi-story--dark h2,
.rhf-vi-faq h2,
.rhf-vi-final h2,
.rhf-vi-intro h3,
.rhf-vi-story--dark h3,
.rhf-vi-faq h3,
.rhf-vi-final h3 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.rhf-vi-story--light h2,
.rhf-vi-rooms h2,
.rhf-vi-included h2,
.rhf-vi-story--light h3,
.rhf-vi-rooms h3,
.rhf-vi-included h3 {
  color: var(--rhf-vi-navy);
  -webkit-text-fill-color: var(--rhf-vi-navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.rhf-vi-opener p,
.rhf-vi-section-heading p,
.rhf-vi-story__copy > p,
.rhf-vi-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-vi-intro p,
.rhf-vi-story--dark p,
.rhf-vi-faq p,
.rhf-vi-final p,
.rhf-vi-story--dark li {
  color: rgba(255, 255, 255, 0.84);
}

.rhf-vi-story--light p,
.rhf-vi-rooms p,
.rhf-vi-included p,
.rhf-vi-story--light li {
  color: var(--rhf-vi-muted);
}

.rhf-vi-story--light .rhf-section-kicker,
.rhf-vi-rooms .rhf-section-kicker,
.rhf-vi-included .rhf-section-kicker {
  color: var(--rhf-vi-gold-dark);
  -webkit-text-fill-color: var(--rhf-vi-gold-dark);
}

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

.rhf-vi-proof {
  position: relative;
  min-height: 220px;
  padding: clamp(1.25rem, 2vw, 1.7rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rhf-vi-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.rhf-vi-proof span {
  display: inline-flex;
  color: var(--rhf-page-accent);
  -webkit-text-fill-color: var(--rhf-page-accent);
  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-vi-proof h3 {
  margin: 1rem 0 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rhf-vi-proof p {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Video story sections */
.rhf-vi-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
}

.rhf-vi-story--reverse .rhf-vi-story__copy {
  order: 2;
}

.rhf-vi-story--reverse .rhf-vi-video-card {
  order: 1;
}

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

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

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

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

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

.rhf-vi-story--light .rhf-vi-video-card figcaption {
  color: var(--rhf-vi-muted);
}

/* Room cards */
.rhf-vi-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.5rem);
}

.rhf-vi-room {
  min-height: 210px;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  border: 1px solid rgba(7, 24, 47, 0.12);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--rhf-vi-shadow-light);
}

.rhf-vi-room h3 {
  margin: 0;
  color: var(--rhf-vi-navy);
  -webkit-text-fill-color: var(--rhf-vi-navy);
  font-size: clamp(1.22rem, 1.8vw, 1.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rhf-vi-room p {
  margin: 0.75rem 0 0;
  color: var(--rhf-vi-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.rhf-vi-rooms__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

/* Included scope */
.rhf-vi-included-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(7, 24, 47, 0.12);
  border-radius: var(--rhf-vi-radius-xl);
  background: rgba(7, 24, 47, 0.12);
  box-shadow: var(--rhf-vi-shadow-light);
}

.rhf-vi-included-grid p {
  min-height: 170px;
  margin: 0;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--rhf-vi-muted);
  background:
    radial-gradient(480px 240px at 100% 0%, rgba(254, 218, 106, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.70);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.6;
}

/* FAQ */
.rhf-vi-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-vi-faq__items {
  display: grid;
  gap: 0.85rem;
}

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

.rhf-vi-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-vi-faq summary::-webkit-details-marker {
  display: none;
}

.rhf-vi-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-vi-faq details[open] summary::after {
  content: "–";
}

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

/* Final */
.rhf-vi-final__inner {
  max-width: 980px;
}

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

/* Button safety */
.rhf-page--vinyl-installation .button {
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

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

.rhf-page--vinyl-installation .rhf-vi-rooms .button--outline-light {
  color: var(--rhf-vi-ink);
  border-color: rgba(7, 24, 47, 0.24);
  background: rgba(255, 255, 255, 0.55);
}

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

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

  .rhf-vi-room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .rhf-vi-story--reverse .rhf-vi-story__copy,
  .rhf-vi-story--reverse .rhf-vi-video-card {
    order: initial;
  }
}

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

  .rhf-page--vinyl-installation .rhf-vi-hero .rhf-page-hero__inner {
    padding-block: 7.2rem 4.5rem;
  }

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

  .rhf-page--vinyl-installation .rhf-page-hero__actions,
  .rhf-vi-final .rhf-page-hero__actions,
  .rhf-vi-rooms__actions {
    width: 100%;
  }

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

  .rhf-vi-intro,
  .rhf-vi-story,
  .rhf-vi-rooms,
  .rhf-vi-included,
  .rhf-vi-faq,
  .rhf-vi-final {
    padding-block: 3.75rem;
  }

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

  .rhf-vi-proof,
  .rhf-vi-room,
  .rhf-vi-included-grid p {
    min-height: auto;
  }

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

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

/* ==========================================================================
   Vinyl Installation — Included items section cleanup
   Replaces cramped table/grid look with readable luxury cards.
   ========================================================================== */

.rhf-page--vinyl-installation .rhf-vi-included-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2vw, 1.5rem) !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rhf-page--vinyl-installation .rhf-vi-included-item {
  position: relative;
  min-height: 118px;
  display: flex;
  align-items: center;
  padding: clamp(1.15rem, 2vw, 1.55rem) clamp(1.2rem, 2.2vw, 1.75rem) clamp(1.15rem, 2vw, 1.55rem) clamp(3.25rem, 4vw, 3.75rem);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 1.25rem !important;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(254, 218, 106, 0.10), transparent 60%),
    linear-gradient(135deg, rgba(57, 63, 77, 0.98), rgba(29, 30, 34, 0.98)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(1rem, 1.08vw, 1.08rem);
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: 0.002em;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
}

.rhf-page--vinyl-installation .rhf-vi-included-item::before {
  content: "✓";
  position: absolute;
  left: clamp(1.1rem, 2vw, 1.45rem);
  top: 50%;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1d1e22;
  -webkit-text-fill-color: #1d1e22;
  background: #feda6a;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
}

.rhf-page--vinyl-installation .rhf-vi-included-item:nth-child(odd) {
  transform: translateY(0);
}

.rhf-page--vinyl-installation .rhf-vi-included-item:nth-child(even) {
  transform: translateY(clamp(0.4rem, 1vw, 0.75rem));
}

@media (max-width: 860px) {
  .rhf-page--vinyl-installation .rhf-vi-included-grid {
    grid-template-columns: 1fr !important;
  }

  .rhf-page--vinyl-installation .rhf-vi-included-item,
  .rhf-page--vinyl-installation .rhf-vi-included-item:nth-child(even) {
    min-height: auto;
    transform: none;
  }
}

