/* ==========================================================================
   Waterproof Flooring — Royal 2026
   ========================================================================== */

.rhf-page--waterproof-flooring {
  --rhf-page-accent: #feda6a;

  --rhf-wp-dark-a: #494d5f;
  --rhf-wp-dark-b: #393f4d;
  --rhf-wp-dark-c: #1d1e22;

  --rhf-wp-plum-a: #3c3640;
  --rhf-wp-plum-b: #221f26;

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

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

  --rhf-wp-radius-xl: clamp(1.25rem, 2vw, 2rem);
  --rhf-wp-radius-lg: 1.35rem;
  --rhf-wp-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);

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

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

.rhf-page--waterproof-flooring .rhf-wp-hero .rhf-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1d1e22, #393f4d);
}

.rhf-page--waterproof-flooring .rhf-wp-hero .rhf-page-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

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

.rhf-page--waterproof-flooring .rhf-wp-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--waterproof-flooring .rhf-page-hero__copy {
  display: grid;
  justify-items: start;
  max-width: 1040px;
}

.rhf-page--waterproof-flooring .rhf-page-kicker,
.rhf-page--waterproof-flooring .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--waterproof-flooring .rhf-wp-hero h1 {
  max-width: 10.8ch;
  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.02;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.rhf-wp-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--waterproof-flooring .rhf-page-hero__actions,
.rhf-wp-final .rhf-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

/* Sections */
.rhf-wp-intro,
.rhf-wp-options,
.rhf-wp-video-section,
.rhf-wp-rooms,
.rhf-wp-basement,
.rhf-wp-faq,
.rhf-wp-final {
  position: relative;
  overflow: clip;
  padding: clamp(4.75rem, 9vw, 9rem) 0;
}

.rhf-wp-intro > .rhf-container,
.rhf-wp-options > .rhf-container,
.rhf-wp-video-section > .rhf-container,
.rhf-wp-rooms > .rhf-container,
.rhf-wp-basement > .rhf-container,
.rhf-wp-faq > .rhf-container,
.rhf-wp-final > .rhf-container {
  position: relative;
  z-index: 1;
}

/* Dark sections */
.rhf-wp-intro,
.rhf-wp-video-section--one,
.rhf-wp-basement,
.rhf-wp-faq,
.rhf-wp-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.09), transparent 54%),
    linear-gradient(135deg, var(--rhf-wp-dark-a) 0%, var(--rhf-wp-dark-b) 44%, var(--rhf-wp-dark-c) 100%);
}

.rhf-wp-video-section--two {
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(760px 360px at 100% 20%, rgba(254, 218, 106, 0.10), transparent 54%),
    linear-gradient(180deg, #494d5f 0%, #1d1e22 100%);
}

.rhf-wp-final {
  background:
    radial-gradient(860px 420px at 10% 0%, rgba(254, 218, 106, 0.12), transparent 58%),
    radial-gradient(740px 360px at 96% 18%, rgba(255, 255, 255, 0.07), transparent 56%),
    linear-gradient(135deg, var(--rhf-wp-plum-a) 0%, var(--rhf-wp-plum-b) 100%);
}

/* Light sections */
.rhf-wp-options,
.rhf-wp-rooms {
  color: var(--rhf-wp-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-wp-light-a) 0%, var(--rhf-wp-light-b) 48%, var(--rhf-wp-light-c) 100%);
}

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

.rhf-wp-opener h2,
.rhf-wp-section-heading h2,
.rhf-wp-video-copy h2,
.rhf-wp-basement h2,
.rhf-wp-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-wp-intro h2,
.rhf-wp-video-section h2,
.rhf-wp-basement h2,
.rhf-wp-faq h2,
.rhf-wp-final h2,
.rhf-wp-intro h3,
.rhf-wp-video-section h3,
.rhf-wp-basement h3,
.rhf-wp-faq h3,
.rhf-wp-final h3 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.rhf-wp-options h2,
.rhf-wp-rooms h2,
.rhf-wp-options h3,
.rhf-wp-rooms h3 {
  color: var(--rhf-wp-navy);
  -webkit-text-fill-color: var(--rhf-wp-navy);
}

.rhf-wp-opener p,
.rhf-wp-section-heading p,
.rhf-wp-video-copy p,
.rhf-wp-basement p,
.rhf-wp-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-wp-intro p,
.rhf-wp-video-section p,
.rhf-wp-basement p,
.rhf-wp-faq p,
.rhf-wp-final p {
  color: rgba(255, 255, 255, 0.84);
}

.rhf-wp-options p,
.rhf-wp-rooms p {
  color: var(--rhf-wp-muted);
}

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

.rhf-wp-proof {
  position: relative;
  min-height: 220px;
  padding: clamp(1.25rem, 2vw, 1.7rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--rhf-wp-radius-lg);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(254, 218, 106, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.20);
}

.rhf-wp-proof span,
.rhf-wp-option-card span,
.rhf-wp-room-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--rhf-page-accent);
  -webkit-text-fill-color: var(--rhf-page-accent);
  font-size: 0.75rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

/* Options */
.rhf-wp-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.rhf-wp-option-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  border: 1px solid rgba(7, 24, 47, 0.12);
  border-radius: var(--rhf-wp-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.62);
  color: var(--rhf-wp-ink);
  text-decoration: none;
  box-shadow: 0 24px 70px rgba(7, 24, 47, 0.10);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rhf-wp-option-card:hover,
.rhf-wp-option-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(173, 132, 37, 0.34);
  box-shadow: 0 30px 90px rgba(7, 24, 47, 0.16);
  outline: none;
}

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

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

/* Videos */
.rhf-wp-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
}

.rhf-wp-video-grid--reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.9fr);
}

.rhf-wp-video-grid--reverse .rhf-wp-video-copy {
  order: 2;
}

.rhf-wp-video-grid--reverse .rhf-wp-video-card {
  order: 1;
}

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

.rhf-wp-video-copy li {
  position: relative;
  padding-left: 1.55rem;
  color: #feda6a;
  font-size: clamp(1rem, 1.08vw, 1.08rem);
  font-weight: 700;
  line-height: 1.55;
}

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

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

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

/* Rooms */
.rhf-wp-room-grid {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.rhf-wp-room-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(7, 24, 47, 0.12);
  border-radius: var(--rhf-wp-radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 70px rgba(7, 24, 47, 0.10);
}

.rhf-wp-room-card picture,
.rhf-wp-room-card img {
  display: block;
  width: 100%;
}

.rhf-wp-room-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1.15rem;
}

.rhf-wp-room-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.rhf-wp-room-card p {
  max-width: 620px;
}

/* Basement CTA */
.rhf-wp-basement__inner {
  max-width: 1040px;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--rhf-wp-radius-xl);
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(254, 218, 106, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--rhf-wp-shadow);
}

.rhf-wp-basement .button {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

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

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

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

.rhf-wp-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-wp-final__inner {
  max-width: 980px;
}

/* Buttons */
.rhf-page--waterproof-flooring .button {
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

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

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

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

  .rhf-wp-video-grid,
  .rhf-wp-video-grid--reverse,
  .rhf-wp-faq__grid {
    grid-template-columns: 1fr;
  }

  .rhf-wp-video-grid--reverse .rhf-wp-video-copy,
  .rhf-wp-video-grid--reverse .rhf-wp-video-card {
    order: initial;
  }
}

@media (max-width: 820px) {
  .rhf-wp-proof-grid,
  .rhf-wp-option-grid,
  .rhf-wp-room-card {
    grid-template-columns: 1fr;
  }
}

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

  .rhf-page--waterproof-flooring .rhf-wp-hero .rhf-page-hero__inner {
    padding-block: 7.2rem 4.5rem;
  }

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

  .rhf-page--waterproof-flooring .rhf-page-hero__actions,
  .rhf-wp-final .rhf-page-hero__actions {
    width: 100%;
  }

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

  .rhf-wp-intro,
  .rhf-wp-options,
  .rhf-wp-video-section,
  .rhf-wp-rooms,
  .rhf-wp-basement,
  .rhf-wp-faq,
  .rhf-wp-final {
    padding-block: 3.75rem;
  }

  .rhf-wp-opener,
  .rhf-wp-section-heading {
    margin-bottom: 2rem;
  }

  .rhf-wp-opener h2,
  .rhf-wp-section-heading h2,
  .rhf-wp-video-copy h2,
  .rhf-wp-basement h2,
  .rhf-wp-final h2 {
    font-size: clamp(2.15rem, 12vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .rhf-wp-video-card video,
  .rhf-wp-room-card img {
    aspect-ratio: 3 / 4;
  }
}

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

  .rhf-wp-option-card:hover,
  .rhf-wp-option-card:focus-visible {
    transform: none;
  }
}
