/* ===========================================================================
   Royal Page Framework
   Shared layout for all rebuilt page modules. Page-specific files only define
   small variables/overrides so the site stays fast and organized.
   =========================================================================== */

.rhf-page {
  --rhf-page-accent: var(--royal-gold);
  --rhf-page-dark: var(--royal-navy-950);
  --rhf-page-cream: var(--royal-page);
  background: var(--royal-page);
  color: var(--royal-ink);
  overflow: clip;
}

.rhf-page a { text-decoration-thickness: 1px; }

.rhf-page-hero {
  position: relative;
  min-height: clamp(560px, 82vh, 860px);
  display: grid;
  align-items: end;
  overflow: clip;
  background:
    radial-gradient(circle at 18% 18%, rgba(212,175,55,.22), transparent 28%),
    linear-gradient(140deg, #04101f 0%, #07182f 56%, #0f2744 100%);
  color: var(--royal-white);
  isolation: isolate;
}

body:not(.has-overlay-header) .rhf-page-hero { padding-top: clamp(5.5rem, 9vw, 7.5rem); }

.rhf-page-hero__media,
.rhf-page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.rhf-page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,16,31,.92), rgba(4,16,31,.54) 48%, rgba(4,16,31,.18));
}

.rhf-page-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.05);
}

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

.rhf-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 980px);
  gap: 0;
  align-items: end;
  justify-content: start;
  padding-block: clamp(7rem, 13vw, 10rem) clamp(4rem, 8vw, 7rem);
}

.rhf-page-hero__copy { max-width: 900px; }

.rhf-page-kicker,
.rhf-section-kicker {
  margin: 0 0 1rem;
  color: var(--rhf-page-accent);
  font-size: var(--type-eyebrow-size);
  font-weight: 900;
  letter-spacing: var(--type-eyebrow-track);
  line-height: 1.2;
  text-transform: uppercase;
}

.rhf-page-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 6.9rem);
  line-height: .94;
  letter-spacing: -.075em;
}

.rhf-page-hero__lede {
  max-width: 720px;
  margin: 1.35rem 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.65;
}

.rhf-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: clamp(1.6rem, 3vw, 2.5rem);
}

.rhf-intent-card {
  padding: clamp(1.3rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

.rhf-intent-card span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rhf-intent-card strong {
  display: block;
  margin-top: .55rem;
  color: var(--royal-white);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.rhf-intent-card p { margin: .8rem 0 0; color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.55; }

.rhf-page-section { padding-block: var(--section-space); }

.rhf-page-section--intro { background: linear-gradient(180deg, var(--royal-page), #fffdf8); }

.rhf-split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

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

.rhf-split h2,
.rhf-section-heading h2,
.rhf-final-cta h2 {
  margin: 0;
  color: var(--royal-navy-950);
  font-size: clamp(2.15rem, 4.4vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.rhf-split p,
.rhf-section-heading p,
.rhf-final-cta p {
  color: var(--royal-muted);
  line-height: 1.72;
}

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

.rhf-section-heading--center { margin-inline: auto; text-align: center; }

.rhf-proof-grid,
.rhf-trust-grid,
.rhf-related-grid {
  display: grid;
  gap: 1rem;
}

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

.rhf-proof-card,
.rhf-trust-card,
.rhf-related-card,
.rhf-integration-card,
.rhf-form-panel,
.rhf-guide-panel,
.rhf-local-panel,
.rhf-simple-card {
  border: 1px solid var(--royal-line);
  border-radius: var(--radius-xl);
  background: rgba(255,253,248,.86);
  box-shadow: var(--shadow-soft);
}

.rhf-proof-card { padding: clamp(1.1rem, 2vw, 1.4rem); }
.rhf-proof-card span,
.rhf-trust-card span,
.rhf-related-card span,
.rhf-integration-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  color: var(--royal-gold-700);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rhf-proof-card strong,
.rhf-related-card strong {
  display: block;
  margin-top: .55rem;
  color: var(--royal-navy-950);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.rhf-proof-card p,
.rhf-related-card p { margin: .65rem 0 0; color: var(--royal-muted); font-size: .98rem; line-height: 1.55; }

.rhf-media-story { background: var(--royal-navy-950); color: var(--royal-white); }
.rhf-media-story .rhf-section-kicker { color: var(--royal-gold-200); }
.rhf-media-story h2 { color: var(--royal-white); }
.rhf-media-story p { color: rgba(255,255,255,.72); }

.rhf-media-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.rhf-media-story__video {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-2xl);
  background: #000;
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

.rhf-media-story__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.rhf-check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .75rem; }
.rhf-check-list li { position: relative; padding-left: 1.65rem; color: inherit; }
.rhf-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--rhf-page-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rhf-page-accent) 20%, transparent);
}

.rhf-filter-shell {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--royal-line);
  border-radius: var(--radius-2xl);
  background: var(--royal-paper);
  box-shadow: var(--shadow-soft);
}

.rhf-filter-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: start;
}

.rhf-filter-group__label {
  padding-top: .45rem;
  color: var(--royal-navy-950);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rhf-filter-chips { display: flex; flex-wrap: wrap; gap: .55rem; }

.rhf-filter-chip {
  cursor: pointer;
  padding: .62rem .85rem;
  border: 1px solid rgba(10,35,66,.14);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--royal-ink-soft);
  font-size: .9rem;
  font-weight: 750;
}

.rhf-filter-chip.is-active,
.rhf-filter-chip:hover {
  border-color: color-mix(in srgb, var(--rhf-page-accent) 65%, var(--royal-navy));
  background: var(--royal-navy-950);
  color: var(--royal-white);
}

.rhf-catalog-page,
.rhf-catalog-preview { background: linear-gradient(180deg, #fffdf8, var(--royal-page)); }

.rhf-catalog-mount { margin-top: clamp(1.2rem, 3vw, 2rem); }

.rhf-integration-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  min-height: 220px;
  display: grid;
  align-content: center;
}

.rhf-integration-card--large { min-height: 420px; }
.rhf-integration-card h3 { margin: .5rem 0 0; color: var(--royal-navy-950); font-size: clamp(1.6rem, 3vw, 2.6rem); }
.rhf-integration-card p { margin: .75rem 0 0; color: var(--royal-muted); }

.rhf-step-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rhf-step-list li {
  padding: clamp(1.2rem, 2vw, 1.5rem);
  border: 1px solid var(--royal-line);
  border-radius: var(--radius-xl);
  background: var(--royal-paper);
  box-shadow: var(--shadow-soft);
}

.rhf-step-list span {
  display: block;
  color: var(--royal-gold-700);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rhf-step-list strong { display: block; margin-top: .8rem; font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.15; color: var(--royal-navy-950); }
.rhf-step-list p { margin: .55rem 0 0; color: var(--royal-muted); font-size: .95rem; line-height: 1.55; }
.rhf-step-list--compact { grid-template-columns: 1fr; }

.rhf-trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rhf-trust-card { padding: clamp(1.4rem, 3vw, 2rem); }
.rhf-trust-card h2 { margin: .6rem 0 0; font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.rhf-trust-card p { color: var(--royal-muted); }

.rhf-related-links { background: var(--royal-paper); }
.rhf-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rhf-related-card {
  position: relative;
  min-height: 230px;
  padding: 1.35rem;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.rhf-related-card::before {
  content: "";
  position: absolute;
  inset: auto 1.1rem 1.1rem auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rhf-page-accent) 16%, transparent);
}
.rhf-related-card em { position: absolute; right: 1.4rem; bottom: 1.25rem; font-style: normal; color: var(--royal-gold-700); font-weight: 900; }
.rhf-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); color: inherit; }

.rhf-conversion-page .rhf-form-panel { padding: clamp(1.4rem, 3vw, 2rem); min-height: 420px; }
.rhf-guide-panel,
.rhf-local-panel,
.rhf-simple-card { padding: clamp(1.4rem, 3vw, 2rem); }
.rhf-simple-card { background: var(--royal-paper); }
.rhf-simple-card > *:first-child { margin-top: 0; }
.rhf-simple-card > *:last-child { margin-bottom: 0; }

.rhf-final-cta {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--royal-navy-950);
  color: var(--royal-white);
}

.rhf-final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
}

.rhf-final-cta h2 { color: var(--royal-white); }
.rhf-final-cta p { max-width: 720px; color: rgba(255,255,255,.72); }

[data-rhf-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard);
}
[data-rhf-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .rhf-page-hero__inner,
  .rhf-split,
  .rhf-split--reverse,
  .rhf-media-story__grid,
  .rhf-final-cta__inner { grid-template-columns: 1fr; }
  .rhf-proof-grid,
  .rhf-trust-grid { grid-template-columns: 1fr; }
  .rhf-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhf-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhf-intent-card { max-width: 520px; }
}

@media (max-width: 720px) {
  .rhf-page-hero { min-height: 680px; }
  .rhf-page-hero__inner { padding-block: 8rem 3rem; }
  .rhf-page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .rhf-page-hero__actions { flex-direction: column; align-items: stretch; }
  .rhf-filter-group { grid-template-columns: 1fr; gap: .55rem; }
  .rhf-related-grid,
  .rhf-step-list { grid-template-columns: 1fr; }
  .rhf-page-section { padding-block: clamp(3.2rem, 14vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  [data-rhf-reveal] { opacity: 1; transform: none; transition: none; }
  .rhf-page-hero__video { display: none; }
}

/* === Royal shared cinematic hero variables === */
.rhf-page {
  --rhf-hero-video-filter: none;

  --rhf-hero-media-overlay:
    linear-gradient(
      90deg,
      rgba(4, 16, 31, 0.42) 0%,
      rgba(4, 16, 31, 0.18) 42%,
      rgba(4, 16, 31, 0.04) 100%
    );

  --rhf-hero-shade:
    radial-gradient(circle at 78% 16%, rgba(233, 230, 231, 0.12), transparent 24rem),
    linear-gradient(
      180deg,
      rgba(4, 16, 31, 0.12) 0%,
      rgba(4, 16, 31, 0.03) 45%,
      rgba(4, 16, 31, 0.32) 100%
    );

  --rhf-hero-mobile-shade:
    radial-gradient(circle at 80% 12%, rgba(233, 230, 231, 0.12), transparent 18rem),
    linear-gradient(
      180deg,
      rgba(4, 16, 31, 0.18) 0%,
      rgba(4, 16, 31, 0.24) 46%,
      rgba(4, 16, 31, 0.58) 100%
    );
}

.rhf-page-hero__media::after {
  background: var(--rhf-hero-media-overlay);
}

.rhf-page-hero__video {
  filter: var(--rhf-hero-video-filter);
}

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

@media (max-width: 900px) {
  .rhf-page-hero__shade {
    background: var(--rhf-central-hero-shade) !important;
  }
}
/* === End Royal shared cinematic hero variables === */
