/* Locally hosted variable fonts. Licenses: /website/fonts/*-OFL.txt. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/website/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/website/fonts/manrope-latin.woff2') format('woff2');
}

/* ==========================================================================
   Royal Custom Theme — Main Foundation
   Purpose: design tokens, reset, typography, layout primitives, buttons,
   forms, content pages, WordPress helpers. Header/footer/home are separate.
   ========================================================================== */

:root {
  color-scheme: light;

  --royal-white: #ffffff;
  --royal-black: #05070b;
  --royal-page: #f7f5ef;
  --royal-paper: #fffdf8;
  --royal-soft: #f0eee7;
  --royal-line: rgba(9, 24, 44, 0.12);

  --royal-ink: #162033;
  --royal-ink-soft: #2d384b;
  --royal-muted: #6d7482;

  --royal-navy-950: #04101f;
  --royal-navy-900: #07182f;
  --royal-navy: #0a2342;
  --royal-navy-700: #17385f;
  --royal-blue: #2d4373;

  --royal-gold-100: #fff1bf;
  --royal-gold-200: #f6dfa0;
  --royal-gold: #d4af37;
  --royal-gold-700: #ad8425;
  --royal-copper: #9b5f35;
  --royal-burgundy: #5e1746;

  --gradient-navy: linear-gradient(145deg, #04101f 0%, #07182f 44%, #0a2342 100%);
  --gradient-gold: linear-gradient(180deg, #fff0bf 0%, #d4af37 58%, #aa8428 100%);
  --gradient-soft: linear-gradient(180deg, #fffdf8 0%, #f7f5ef 100%);

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --type-body-size: clamp(1rem, 0.94rem + 0.22vw, 1.125rem);
  --type-body-line: 1.68;
  --type-body-track: -0.008em;
  --type-small-size: 0.9rem;
  --type-small-line: 1.45;
  --type-eyebrow-size: clamp(0.72rem, 0.68rem + 0.1vw, 0.78rem);
  --type-eyebrow-track: 0.18em;
  --type-h1: clamp(3.15rem, 7.3vw, 7rem);
  --type-h2: clamp(2rem, 4.2vw, 4.4rem);
  --type-h3: clamp(1.35rem, 2.4vw, 2rem);

  --container: 1280px;
  --container-wide: 1480px;
  --content: 820px;
  --gutter: clamp(1rem, 3vw, 2.25rem);
  --section-space: clamp(4.25rem, 8vw, 8rem);

  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.5rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 48px rgba(7, 24, 47, 0.12);
  --shadow-strong: 0 28px 90px rgba(7, 24, 47, 0.28);
  --focus: 0 0 0 4px rgba(212, 175, 55, 0.35);

  --duration-fast: 180ms;
  --duration: 260ms;
  --duration-slow: 700ms;
  --ease-standard: cubic-bezier(0.2, 0.72, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--royal-navy-950);
}

body {
  margin: 0;
  background: var(--royal-page);
  color: var(--royal-ink);
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.site-menu-open {
  overflow: hidden;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: var(--royal-blue);
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--royal-burgundy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

::selection {
  background: var(--royal-gold);
  color: var(--royal-navy-950);
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--royal-gold);
  color: var(--royal-navy-950);
  font-weight: 900;
  text-decoration: none;
}

.container,
.rhf-container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--wide,
.rhf-container--wide {
  width: min(100% - (var(--gutter) * 2), var(--container-wide));
  margin-inline: auto;
}

.container--content,
.rhf-container--content {
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
}

.site-main {
  min-height: 52vh;
  background: var(--royal-page);
}

.has-cinematic-home .site-main {
  background: var(--royal-navy-950);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 { font-size: var(--type-h1); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }

p {
  text-wrap: pretty;
}

.royal-kicker,
.rhf-eyebrow,
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--royal-gold-200);
  font-family: var(--font-body);
  font-size: var(--type-eyebrow-size);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: var(--type-eyebrow-track);
  text-transform: uppercase;
}

.button,
.rhf-button,
input[type="submit"],
button[type="submit"],
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

.button:hover,
.rhf-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.search-submit:hover {
  transform: translateY(-1px);
}

.button--gold,
.rhf-button--gold {
  color: var(--royal-navy-950);
  border-color: rgba(255, 238, 184, 0.72);
  background: var(--gradient-gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 16px 34px rgba(212, 175, 55, 0.22);
}

.button--gold:hover,
.rhf-button--gold:hover {
  color: var(--royal-navy-950);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 20px 46px rgba(212, 175, 55, 0.3);
}

.button--dark,
.rhf-button--dark {
  color: var(--royal-white);
  background: var(--royal-navy-950);
  box-shadow: 0 16px 34px rgba(7, 24, 47, 0.24);
}

.button--dark:hover,
.rhf-button--dark:hover {
  color: var(--royal-white);
  background: var(--royal-navy);
}

.button--outline-light,
.rhf-button--ghost-light,
.button--outline,
.rhf-button--outline {
  color: var(--royal-white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button--outline-light:hover,
.rhf-button--ghost-light:hover,
.button--outline:hover,
.rhf-button--outline:hover {
  color: var(--royal-white);
  border-color: rgba(246, 223, 160, 0.68);
  background: rgba(255, 255, 255, 0.14);
}

.button--outline-dark,
.rhf-button--outline-dark {
  color: var(--royal-navy);
  border-color: rgba(10, 35, 66, 0.22);
  background: rgba(255, 255, 255, 0.68);
}

.button--outline-dark:hover,
.rhf-button--outline-dark:hover {
  color: var(--royal-white);
  border-color: var(--royal-navy);
  background: var(--royal-navy);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(10, 35, 66, 0.16);
  border-radius: var(--radius-md);
  background: var(--royal-white);
  color: var(--royal-ink);
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
  color: var(--royal-white);
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 175, 55, 0.15), transparent 24rem),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08), transparent 22rem),
    var(--gradient-navy);
}

.page-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.archive-description,
.entry-meta,
.page-hero p {
  color: rgba(255,255,255,0.78);
}

.content-section,
.rhf-section {
  padding: var(--section-space) 0;
  background: var(--royal-page);
}

.page-content,
.entry-content {
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin-inline: auto;
  color: var(--royal-ink-soft);
}

.page-content > *:first-child,
.entry-content > *:first-child { margin-top: 0; }
.page-content > *:last-child,
.entry-content > *:last-child { margin-bottom: 0; }

.page-content h2,
.page-content h3,
.page-content h4,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2.2em 0 0.7em;
  color: var(--royal-navy);
}

.page-content h2,
.entry-content h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.page-content h3,
.entry-content h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }

.page-content img,
.entry-content img,
.entry-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.page-content blockquote,
.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--royal-gold);
  border-radius: var(--radius-md);
  background: var(--royal-paper);
  box-shadow: var(--shadow-soft);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.content-card,
.empty-state {
  overflow: hidden;
  border: 1px solid rgba(10, 35, 66, 0.08);
  border-radius: var(--radius-lg);
  background: var(--royal-paper);
  box-shadow: var(--shadow-soft);
}

.content-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.content-card__body,
.empty-state {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.content-card__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.content-card__title a {
  color: var(--royal-navy);
  text-decoration: none;
}

.empty-state {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.alignwide {
  width: min(100%, var(--container));
  max-width: var(--container);
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { color: var(--royal-muted); font-size: 0.92rem; }
.sticky,
.bypostauthor { scroll-margin-top: 8rem; }

@media (max-width: 980px) {
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    line-height: 1.6;
  }

  .search-form {
    flex-direction: column;
  }

  .button,
  .rhf-button,
  .search-submit {
    width: 100%;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 6.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 0.875rem;
  }
}

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

/* ==========================================================================
   Royal Custom Theme — Cinematic Header
   Transparent luxury overlay header + responsive off-canvas navigation drawer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header shell
   -------------------------------------------------------------------------- */

.site-header {
  --header-height: clamp(5.15rem, 6vw, 6.7rem);
  --header-bg-solid: rgba(4, 16, 31, 0.94);
  --header-bg-glass: rgba(4, 16, 31, 0.88);
  --header-border: rgba(255, 255, 255, 0.16);
  --header-text: var(--royal-white, #ffffff);
  --header-gold: var(--royal-gold-200, #f3d77b);
  --header-navy: var(--royal-navy-950, #04101f);
  --header-ease: var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
  --header-duration: var(--duration, 360ms);
  --header-radius: var(--radius-pill, 999px);

  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--header-text);
  background: var(--header-bg-solid);
  box-shadow: 0 14px 40px rgba(4, 16, 31, 0.24);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.has-overlay-header .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.has-overlay-header .site-header.is-scrolled {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-menu-open .site-header {
  background: var(--header-bg-glass);
  box-shadow: 0 16px 46px rgba(4, 16, 31, 0.32);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.admin-bar .site-header {
  top: 32px;
}

/* --------------------------------------------------------------------------
   Header layout
   -------------------------------------------------------------------------- */

.site-header__bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding-inline:
    max(var(--gutter, 1.25rem), env(safe-area-inset-left))
    max(var(--gutter, 1.25rem), env(safe-area-inset-right));
}

.site-header__side {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__side--left {
  justify-content: flex-start;
}

.site-header__side--right {
  justify-content: flex-end;
  gap: clamp(0.65rem, 1.5vw, 1rem);
}

.site-header__rule {
  height: 1px;
  margin-inline:
    max(var(--gutter, 1.25rem), env(safe-area-inset-left))
    max(var(--gutter, 1.25rem), env(safe-area-inset-right));
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  opacity: 0.75;
}

.has-overlay-header .site-header:not(.is-scrolled) .site-header__rule {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.site-header__logo,
.site-logo,
.footer-logo,
.royal-drawer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--header-text);
  text-decoration: none;
}

.site-header__logo {
  justify-self: center;
  width: clamp(245px, 24vw, 365px);
  max-width: 100%;
}

.site-header__logo img,
.site-header__logo .custom-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-logo img,
.site-logo .custom-logo,
.royal-drawer__logo img,
.footer-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Menu button
   -------------------------------------------------------------------------- */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--header-text);
  cursor: pointer;
  appearance: none;
}

.nav-toggle__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--header-radius);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color var(--header-duration) var(--header-ease),
    background var(--header-duration) var(--header-ease),
    transform var(--header-duration) var(--header-ease);
}

.nav-toggle__line {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 1.18rem;
  height: 2px;
  border-radius: var(--header-radius);
  background: var(--royal-gold);
  opacity: 1;
  transition:
    transform var(--header-duration) var(--header-ease),
    opacity var(--header-duration) var(--header-ease);
}

.nav-toggle__line:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-6px);
}

.nav-toggle__line:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle__line:nth-child(3) {
  transform: translate(-50%, -50%) translateY(6px);
}

.nav-toggle__text {
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle:hover .nav-toggle__mark,
.nav-toggle:focus-visible .nav-toggle__mark {
  border-color: rgba(246, 223, 160, 0.64);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(42deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-42deg);
}

/* --------------------------------------------------------------------------
   Header phone + CTA
   -------------------------------------------------------------------------- */

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--header-radius);
  color: var(--header-text);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color var(--header-duration) var(--header-ease),
    background var(--header-duration) var(--header-ease),
    color var(--header-duration) var(--header-ease),
    transform var(--header-duration) var(--header-ease);
}

.header-phone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffd700;
  line-height: 1;
}

.header-phone__icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.header-phone__text {
  color: #ffd700;
  font-size: clamp(0.82rem, 0.78rem + 0.14vw, 0.92rem);
  font-weight: 850;
  letter-spacing: -0.01em;
}

.header-phone:hover,
.header-phone:focus-visible {
  border-color: rgba(246, 223, 160, 0.58);
  background: rgba(255, 255, 255, 0.1);
  color: var(--header-text);
  transform: translateY(-1px);
}

.header-phone:hover .header-phone__icon,
.header-phone:focus-visible .header-phone__icon {
  color: #ffd700;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.78rem 1.1rem;
  border: 1px solid rgba(255, 238, 184, 0.56);
  border-radius: var(--header-radius);
  color: var(--header-navy);
  background: var(--gradient-gold, linear-gradient(135deg, #f8e6a0, #d4af37));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 30px rgba(212, 175, 55, 0.22);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--header-duration) var(--header-ease),
    box-shadow var(--header-duration) var(--header-ease);
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--header-navy);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 42px rgba(212, 175, 55, 0.28);
}

/* --------------------------------------------------------------------------
   Backdrop
   -------------------------------------------------------------------------- */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 20, 33, 0.62);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity var(--header-duration) var(--header-ease);
}

.menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Drawer
   -------------------------------------------------------------------------- */

.royal-drawer {
  --drawer-bg: #364052;
  --drawer-bg-deep: #202737;
  --drawer-text: rgba(255, 255, 255, 0.9);
  --drawer-muted: rgba(255, 255, 255, 0.72);
  --drawer-line: rgba(255, 255, 255, 0.16);
  --drawer-line-soft: rgba(255, 255, 255, 0.09);
  --drawer-gold: #f1d57c;
  --drawer-gold-soft: rgba(241, 213, 124, 0.12);

  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1002;
  width: min(92vw, 430px);
  max-width: 100vw;
  color: var(--drawer-text);
  background:
    radial-gradient(920px 430px at 8% 0%, rgba(255, 255, 255, 0.1), transparent 58%),
    radial-gradient(780px 360px at 96% 18%, rgba(241, 213, 124, 0.07), transparent 56%),
    linear-gradient(135deg, var(--drawer-bg) 0%, var(--drawer-bg-deep) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: -34px 0 86px rgba(9, 13, 28, 0.38);
  transform: translate3d(100%, 0, 0);
  transition: transform var(--duration-slow, 520ms) var(--header-ease);
  will-change: transform;
}

.royal-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.royal-drawer__inner {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.royal-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: clamp(4.35rem, 8vw, 4.9rem);
  padding: clamp(0.85rem, 2vw, 1.05rem) clamp(1rem, 2.4vw, 1.35rem);
  border-bottom: 1px solid var(--drawer-line);
}

.royal-drawer__logo {
  width: min(220px, 62vw);
}

.royal-drawer__logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.royal-drawer__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--header-radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--drawer-text);
  cursor: pointer;
  appearance: none;
  transition:
    border-color var(--header-duration) var(--header-ease),
    background var(--header-duration) var(--header-ease),
    color var(--header-duration) var(--header-ease);
}

.royal-drawer__close span[aria-hidden="true"]::before,
.royal-drawer__close span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.05rem;
  height: 1.5px;
  border-radius: var(--header-radius);
  background: currentColor;
}

.royal-drawer__close span[aria-hidden="true"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.royal-drawer__close span[aria-hidden="true"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.royal-drawer__close:hover,
.royal-drawer__close:focus-visible {
  border-color: rgba(241, 213, 124, 0.56);
  background: rgba(255, 255, 255, 0.11);
  color: var(--drawer-gold);
}

.royal-drawer__content {
  display: grid;
  align-content: start;
  gap: clamp(0.95rem, 2.1vw, 1.35rem);
  padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1rem, 2.5vw, 1.5rem) clamp(1.15rem, 3vw, 1.8rem);
}

.royal-drawer__intro {
  max-width: 31ch;
  padding-bottom: 0.2rem;
}

.royal-drawer__intro .royal-kicker {
  margin: 0 0 0.38rem;
  color: var(--drawer-gold);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.royal-drawer__intro p:last-child {
  margin: 0;
  color: var(--drawer-muted);
  font-size: clamp(0.88rem, 0.84rem + 0.12vw, 0.96rem);
  line-height: 1.58;
}

/* --------------------------------------------------------------------------
   Drawer menu
   -------------------------------------------------------------------------- */

.drawer-menu,
.royal-drawer .primary-menu,
.drawer-menu .sub-menu,
.royal-drawer .primary-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-menu,
.royal-drawer .primary-menu {
  display: grid;
  gap: 0.12rem;
}

.drawer-menu a,
.royal-drawer .primary-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.7rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: inset 0 -1px 0 var(--drawer-line-soft);
  color: var(--drawer-text);
  font-family: var(--font-body, inherit);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.12rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-decoration: none;
  transition:
    color var(--header-duration) var(--header-ease),
    background var(--header-duration) var(--header-ease),
    border-color var(--header-duration) var(--header-ease),
    box-shadow var(--header-duration) var(--header-ease);
}

.drawer-menu a::after,
.royal-drawer .primary-menu a::after {
  content: "›";
  flex: 0 0 auto;
  color: rgba(241, 213, 124, 0.68);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.48;
  transform: translateX(-0.1rem);
  transition:
    opacity var(--header-duration) var(--header-ease),
    transform var(--header-duration) var(--header-ease),
    color var(--header-duration) var(--header-ease);
}

.drawer-menu a:hover,
.drawer-menu a:focus-visible,
.royal-drawer .primary-menu a:hover,
.royal-drawer .primary-menu a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(241, 213, 124, 0.18);
  box-shadow:
    inset 3px 0 0 rgba(241, 213, 124, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.drawer-menu a:hover::after,
.drawer-menu a:focus-visible::after,
.royal-drawer .primary-menu a:hover::after,
.royal-drawer .primary-menu a:focus-visible::after {
  color: var(--drawer-gold);
  opacity: 1;
  transform: translateX(0.16rem);
}

.drawer-menu .sub-menu,
.royal-drawer .primary-menu .sub-menu {
  display: grid;
  gap: 0.14rem;
  margin: 0.3rem 0 0.5rem 0.7rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(241, 213, 124, 0.22);
}

.drawer-menu .sub-menu a,
.royal-drawer .primary-menu .sub-menu a {
  min-height: 2.25rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body, inherit);
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.006em;
}

.royal-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 0.1rem;
  padding-top: 0.3rem;
}

.royal-drawer__actions .button,
.royal-drawer__actions .button--gold {
  width: 100%;
  min-height: 2.82rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .header-cta {
    display: none;
  }

  .site-header__logo {
    width: clamp(230px, 25vw, 320px);
  }
}

@media (max-width: 980px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    --header-height: 4.9rem;
  }

  .site-header__bar {
    min-height: var(--header-height);
  }

  .site-header__logo {
    width: min(260px, 44vw);
  }
  .header-phone {
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
  }

  .header-phone__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .site-header {
    --header-height: 4.7rem;
  }

  .site-header__bar {
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    min-height: var(--header-height);
    padding-inline: 0.85rem;
  }

  .site-header__rule {
    margin-inline: 0.85rem;
  }

  .site-header__side--right {
    gap: 0;
  }

  .site-header__logo {
    width: min(245px, 62vw);
  }

  .nav-toggle__mark,
  .header-phone {
    width: 2.65rem;
    height: 2.65rem;
  }

  .nav-toggle__text {
    display: none;
  }

  .royal-drawer {
    width: min(100vw, 400px);
  }

  .royal-drawer__top {
    min-height: 4.35rem;
    padding: 0.8rem 1rem;
  }

  .royal-drawer__logo {
    width: min(205px, 62vw);
  }

  .royal-drawer__content {
    gap: 1rem;
    padding: 1rem 1rem 1.35rem;
  }

  .royal-drawer__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header {
    --header-height: 4.55rem;
  }

  .site-header__bar {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    padding-inline: 0.75rem;
  }

  .site-header__logo {
    width: min(220px, 61vw);
  }

  .nav-toggle__mark,
  .header-phone {
    width: 2.55rem;
    height: 2.55rem;
  }
}

@media (max-width: 380px) {
  .site-header__logo {
    width: min(198px, 58vw);
  }

  .royal-drawer__logo {
    width: min(190px, 62vw);
  }
}

@media (max-width: 340px) {
  .site-header__logo {
    width: min(180px, 56vw);
  }
}

/* --------------------------------------------------------------------------
   Accessibility / reduced motion
   -------------------------------------------------------------------------- */

.nav-toggle:focus-visible,
.header-phone:focus-visible,
.header-cta:focus-visible,
.royal-drawer__close:focus-visible,
.drawer-menu a:focus-visible,
.royal-drawer .primary-menu a:focus-visible {
  outline: 2px solid rgba(246, 223, 160, 0.85);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav-toggle__mark,
  .nav-toggle__line,
  .header-cta,
  .menu-backdrop,
  .royal-drawer,
  .drawer-menu a::after,
  .royal-drawer .primary-menu a::after {
    transition: none !important;
  }
}
/* Header hamburger: guaranteed 3 yellow dashes */
.nav-toggle__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 1.18rem;
  height: 2px;
  border-radius: var(--header-radius);
  background: var(--royal-gold);
  transform: translate(-50%, -50%);
  transition: opacity var(--header-duration) var(--header-ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__mark::before {
  opacity: 0;
}


/* ==========================================================================
   Royal cinematic header state
   Transparent over hero, smoky glass after hero.
   ========================================================================== */

.has-overlay-header .site-header:not(.is-past-hero):not(.is-menu-open),
.has-overlay-header .site-header.is-scrolled:not(.is-past-hero):not(.is-menu-open) {
  background: transparent;
  box-shadow: none;
}

.has-overlay-header .site-header.is-past-hero,
.has-overlay-header.site-menu-open .site-header,
.site-menu-open .site-header {
  background:
    linear-gradient(
      135deg,
      rgba(29, 30, 34, 0.94),
      rgba(57, 63, 77, 0.92) 48%,
      rgba(73, 77, 95, 0.90)
    );
  border-bottom: 1px solid rgba(254, 218, 106, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.has-overlay-header .site-header.is-past-hero .site-header__rule {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(254, 218, 106, 0.32),
    transparent
  );
}

/* Header estimate CTA — white text with Royal yellow calendar icon */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-height: 2.85rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--header-radius, 999px);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff !important;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  box-shadow: none;
  transition:
    border-color var(--header-duration, 360ms) var(--header-ease, ease),
    background var(--header-duration, 360ms) var(--header-ease, ease),
    transform var(--header-duration, 360ms) var(--header-ease, ease);
}

.header-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  line-height: 1;
  flex: 0 0 auto;
}

.header-cta__icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.header-cta__text {
  color: #ffffff;
  font-size: clamp(0.78rem, 0.75rem + 0.12vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(246, 223, 160, 0.62);
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.header-cta:hover .header-cta__icon,
.header-cta:focus-visible .header-cta__icon {
  color: #ffd700;
}

@media (max-width: 1180px) {
  .header-cta {
    display: none !important;
  }
}


/* Header CTA — bigger, clearer, stronger */
.header-cta {
  min-height: 3.25rem !important;
  padding: 0.9rem 1.28rem !important;
  gap: 0.65rem !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  background: rgba(4, 16, 31, 0.42) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.16) !important;
  backdrop-filter: blur(10px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
}

.header-cta__icon {
  color: #ffd700 !important;
}

.header-cta__icon svg {
  width: 1.22rem !important;
  height: 1.22rem !important;
}

.header-cta__text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(0.9rem, 0.84rem + 0.18vw, 1.02rem) !important;
  font-weight: 950 !important;
  letter-spacing: -0.005em !important;
  text-transform: none !important;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32) !important;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(255, 215, 0, 0.72) !important;
  background: rgba(4, 16, 31, 0.58) !important;
  transform: translateY(-1px) !important;
}

.header-cta:hover .header-cta__text,
.header-cta:focus-visible .header-cta__text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.header-cta:hover .header-cta__icon,
.header-cta:focus-visible .header-cta__icon {
  color: #ffd700 !important;
}


/* ==========================================================================
   RHF universal header behavior
   Transparent at top on every page. Filled background as soon as user scrolls.
   This intentionally overrides older "past hero" timing rules.
   ========================================================================== */

/* Top of page: transparent overlay header */
body.has-overlay-header:not(.site-menu-open) .site-header:not(.is-scrolled) {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.has-overlay-header:not(.site-menu-open) .site-header:not(.is-scrolled) .site-header__bar {
  background: transparent !important;
  box-shadow: none !important;
}

body.has-overlay-header:not(.site-menu-open) .site-header:not(.is-scrolled) .site-header__rule {
  opacity: 0.72;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
}

/* Any scroll: immediately show smoky/dark header */
body.has-overlay-header .site-header.is-scrolled,
body.has-overlay-header .site-header.is-past-hero,
body.has-overlay-header.site-menu-open .site-header,
body.site-menu-open .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background:
    linear-gradient(
      135deg,
      rgba(29, 30, 34, 0.94),
      rgba(57, 63, 77, 0.92) 48%,
      rgba(73, 77, 95, 0.90)
    ) !important;
  border-bottom: 1px solid rgba(254, 218, 106, 0.16) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

body.has-overlay-header .site-header.is-scrolled .site-header__bar,
body.has-overlay-header .site-header.is-past-hero .site-header__bar,
body.site-menu-open .site-header .site-header__bar {
  background: transparent !important;
  box-shadow: none !important;
}

body.has-overlay-header .site-header.is-scrolled .site-header__rule,
body.has-overlay-header .site-header.is-past-hero .site-header__rule {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(254, 218, 106, 0.32),
    transparent
  );
}



/* ==========================================================================
   RHF mobile header CTA second row
   Keeps row 1 as Menu / Logo / Phone and shows Schedule Free Estimate on row 2.
   ========================================================================== */

.header-cta--mobile-row {
  display: none !important;
}

@media (max-width: 720px) {
  .site-header {
    --header-height: 7.55rem !important;
  }

  .site-header__bar {
    display: grid !important;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem !important;
    grid-template-areas:
      "menu logo phone"
      "cta cta cta" !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    row-gap: 0.56rem !important;
    min-height: var(--header-height) !important;
    padding: 0.68rem 0.82rem 0.78rem !important;
  }

  .site-header__side--left {
    grid-area: menu !important;
    justify-self: start !important;
  }

  .site-header__logo {
    grid-area: logo !important;
    justify-self: center !important;
    width: min(220px, 58vw) !important;
  }

  .site-header__side--right {
    grid-area: phone !important;
    justify-self: end !important;
    justify-content: flex-end !important;
  }

  .site-header__side--right > .header-cta:not(.header-cta--mobile-row) {
    display: none !important;
  }

  .site-header__bar > .header-cta--mobile-row {
    grid-area: cta !important;
    display: inline-flex !important;
    width: 100% !important;
    min-height: 2.92rem !important;
    padding: 0.78rem 1rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 215, 0, 0.46) !important;
    background: rgba(4, 16, 31, 0.66) !important;
    color: #ffffff !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 14px 34px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(10px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
  }

  .site-header__bar > .header-cta--mobile-row .header-cta__icon {
    color: #ffd700 !important;
  }

  .site-header__bar > .header-cta--mobile-row .header-cta__text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 950 !important;
    letter-spacing: -0.005em !important;
    text-transform: none !important;
  }

  body.has-overlay-header:not(.site-menu-open) .site-header:not(.is-scrolled) .header-cta--mobile-row {
    background: rgba(4, 16, 31, 0.44) !important;
  }

  .site-header__rule {
    margin-inline: 0.82rem !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    --header-height: 7.35rem !important;
  }

  .site-header__bar {
    grid-template-columns: 2.55rem minmax(0, 1fr) 2.55rem !important;
    padding-inline: 0.72rem !important;
  }

  .site-header__logo {
    width: min(205px, 56vw) !important;
  }

  .site-header__bar > .header-cta--mobile-row {
    min-height: 2.82rem !important;
  }
}

@media (max-width: 360px) {
  .site-header__logo {
    width: min(188px, 54vw) !important;
  }

  .site-header__bar > .header-cta--mobile-row .header-cta__text {
    font-size: 0.88rem !important;
  }
}

/* ===========================================================================
   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 === */

/* ==========================================================================
   Royal Core Page — Shared dark luxury styling
   ========================================================================== */

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

.rhf-page--lifetime-installation-warranty .rhf-page-hero { min-height: clamp(680px, 92vh, 940px); isolation: isolate; }
.rhf-page--lifetime-installation-warranty .rhf-page-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(135deg, #1d1e22, #393f4d); }
.rhf-page--lifetime-installation-warranty .rhf-page-hero__video { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; }
.rhf-page--lifetime-installation-warranty .rhf-page-hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--rhf-central-hero-shade) !important; }
.rhf-page--lifetime-installation-warranty .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--lifetime-installation-warranty .rhf-page-hero__copy { display: grid; justify-items: start; max-width: 1040px; }
.rhf-page--lifetime-installation-warranty .rhf-page-kicker,
.rhf-page--lifetime-installation-warranty .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; }
.rhf-page--lifetime-installation-warranty .rhf-page-hero h1 { max-width: 11.5ch; margin: 0; color: #fff; -webkit-text-fill-color: #fff; font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 7.4rem); font-weight: 850; line-height: 1.02; letter-spacing: -0.06em; text-wrap: balance; }
.rhf-page--lifetime-installation-warranty .rhf-page-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(1.8rem, 3vw, 2.6rem); }

.rhf-page--lifetime-installation-warranty section:not(.rhf-page-hero) { position: relative; overflow: clip; padding: clamp(4.75rem, 9vw, 9rem) 0; }
.rhf-page--lifetime-installation-warranty section > .rhf-container { position: relative; z-index: 1; }
.rhf-page--lifetime-installation-warranty h2 { margin: 0; color: #fff; -webkit-text-fill-color: #fff; font-family: var(--font-heading); font-size: clamp(2.15rem, 5vw, 5.6rem); font-weight: 850; line-height: 1; letter-spacing: -0.052em; text-wrap: balance; }
.rhf-page--lifetime-installation-warranty h3 { margin: 0; color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(1.18rem, 1.7vw, 1.55rem); line-height: 1.1; letter-spacing: -0.035em; }
.rhf-page--lifetime-installation-warranty p { color: rgba(255,255,255,.84); }
.rhf-page--lifetime-installation-warranty .button--outline-light { color: #fff; border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.06); }
.rhf-page--lifetime-installation-warranty .button--outline-light:hover { color: #1d1e22; border-color: var(--rhf-page-accent); background: var(--rhf-page-accent); }

@media (max-width: 760px) {
  .rhf-page--lifetime-installation-warranty .rhf-page-hero { min-height: 720px; }
  .rhf-page--lifetime-installation-warranty .rhf-page-hero__inner { padding-block: 7.2rem 4.5rem; }
  .rhf-page--lifetime-installation-warranty .rhf-page-hero h1 { font-size: clamp(2.35rem, 11vw, 4.4rem); line-height: 1.06; letter-spacing: -0.045em; }
  .rhf-page--lifetime-installation-warranty .rhf-page-hero__actions { width: 100%; }
  .rhf-page--lifetime-installation-warranty .button { width: 100%; }
  .rhf-page--lifetime-installation-warranty section:not(.rhf-page-hero) { padding-block: 3.75rem; }
}

.rhf-liw-hero__lede { max-width: 780px; margin: 1.2rem 0 0; color: rgba(255,255,255,.88); font-size: clamp(1.02rem,1.24vw,1.18rem); line-height: 1.72; font-weight: 500; }
.rhf-liw-certificate, .rhf-liw-voids { background: radial-gradient(760px 380px at 50% 0%, rgba(239,68,68,.10), transparent 60%), linear-gradient(180deg, rgba(31,31,35,.97), rgba(18,18,20,.99)); }
.rhf-liw-lists, .rhf-liw-faq { background: radial-gradient(900px 460px at 8% 0%, rgba(255,255,255,.08), transparent 58%), radial-gradient(760px 360px at 100% 20%, rgba(254,218,106,.09), transparent 54%), linear-gradient(135deg,#494d5f 0%,#393f4d 46%,#1d1e22 100%); }
.rhf-liw-final { background: linear-gradient(135deg,#3c3640 0%,#221f26 100%); }
.rhf-liw-certificate__grid { display:grid; grid-template-columns:minmax(0,.82fr) minmax(360px,1.18fr); gap:clamp(2rem,5vw,5rem); align-items:center; }
.rhf-liw-certificate__copy p { max-width:760px; font-size:clamp(1.02rem,1.16vw,1.14rem); line-height:1.72; }
.rhf-liw-certificate__visual .royal-lifetime-warranty { margin: 0; }
.rhf-liw-fallback-certificate { padding:3rem; border:1px solid rgba(254,218,106,.42); border-radius:1.25rem; text-align:center; background:rgba(255,255,255,.07); box-shadow:var(--rhf-shadow-dark); }
.rhf-liw-fallback-certificate p { color:#feda6a; font-weight:950; letter-spacing:.16em; text-transform:uppercase; }
.rhf-liw-fallback-certificate h3 { font-size:clamp(2rem,4vw,4rem); }
.rhf-liw-heading { max-width:1080px; margin-bottom:clamp(2rem,4vw,3.5rem); }
.rhf-liw-list-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.rhf-liw-list-grid article, .rhf-liw-void-grid article { padding:clamp(1.35rem,2.4vw,2rem); border:1px solid rgba(255,255,255,.15); border-radius:var(--rhf-radius-lg); background:radial-gradient(520px 260px at 100% 0%, rgba(254,218,106,.10), transparent 60%), rgba(255,255,255,.06); }
.rhf-liw-list-grid__warning { background: radial-gradient(520px 260px at 100% 0%, rgba(239,68,68,.12), transparent 60%), rgba(0,0,0,.22) !important; }
.rhf-liw-list-grid ul { display:grid; gap:.8rem; margin:1rem 0 0; padding:0; list-style:none; }
.rhf-liw-list-grid li { position:relative; padding-left:1.45rem; color:rgba(255,255,255,.84); line-height:1.62; }
.rhf-liw-list-grid li::before { content:""; position:absolute; left:0; top:.62em; width:.55rem; height:.55rem; border-radius:50%; background:#feda6a; box-shadow:0 0 0 4px rgba(254,218,106,.14); }
.rhf-liw-void-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.rhf-liw-faq__grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(320px,1.15fr); gap:clamp(1.5rem,5vw,5rem); }
.rhf-liw-faq__items { display:grid; gap:.85rem; }
.rhf-liw-faq details { border:1px solid rgba(255,255,255,.15); border-radius:1.15rem; background:rgba(255,255,255,.06); overflow:hidden; }
.rhf-liw-faq summary { cursor:pointer; padding:1.15rem 1.3rem; color:#fff; font-weight:900; list-style:none; }
.rhf-liw-faq summary::-webkit-details-marker { display:none; }
.rhf-liw-faq details p { margin:0; padding:0 1.3rem 1.25rem; }
.rhf-liw-final__inner { max-width:980px; }
.rhf-liw-final__inner p { max-width:760px; font-size:clamp(1.02rem,1.16vw,1.14rem); line-height:1.72; }
@media (max-width: 1160px){ .rhf-liw-void-grid{grid-template-columns:repeat(2,minmax(0,1fr));} .rhf-liw-certificate__grid,.rhf-liw-faq__grid{grid-template-columns:1fr;} }
@media (max-width: 760px){ .rhf-liw-list-grid,.rhf-liw-void-grid{grid-template-columns:1fr;} }

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/website/assets/06156eb6e366-8vIU7ww63mVu7gtR-kwKxNvkNOjw-gjgTYo.ttf") format('truetype');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/website/assets/59b1fd406398-8vIU7ww63mVu7gtR-kwKxNvkNOjw-jHgTYo.ttf") format('truetype');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/website/assets/dfab259e1987-8vIU7ww63mVu7gtR-kwKxNvkNOjw-lbgTYo.ttf") format('truetype');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/website/assets/9c10d83b62bc-8vIU7ww63mVu7gtR-kwKxNvkNOjw-n_gTYo.ttf") format('truetype');
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/website/assets/592c5d8fa635-RWmMoKWR9v4ksMfaWd_JN-XC.ttf") format('truetype');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/website/assets/9ae7d8f84793-kmKUZrc3Hgbbcjq75U4uslyuy4kn0olVQ-LglH6T17uj8Q4SCQ.ttf") format('truetype');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/website/assets/d93895988169-kmKUZrc3Hgbbcjq75U4uslyuy4kn0olVQ-LglH6T17ujFgkSCQ.ttf") format('truetype');
}

/* ==========================================================================
   Royal Home Flooring — Lifetime Installation Warranty Certificate
   HD certificate-style reusable component
   ========================================================================== */

.royal-lifetime-warranty {
  --rlw-ivory: #fff8e6;
  --rlw-ivory-2: #f4ead0;
  --rlw-ivory-3: #ead9ae;

  --rlw-navy: #17385f;
  --rlw-navy-deep: #0d2442;
  --rlw-navy-soft: rgba(23, 56, 95, 0.72);

  --rlw-gold: #feda6a;
  --rlw-gold-2: #d8a63d;
  --rlw-gold-3: #a87920;
  --rlw-gold-4: #70490c;

  --rlw-brown: #5c3d14;
  --rlw-red-ribbon: #7b1f22;
  --rlw-blue-ribbon: #17385f;

  width: 100%;
  display: grid;
  justify-items: center;
  margin: clamp(1.5rem, 4vw, 3rem) 0;
  isolation: isolate;
  perspective: 1600px;
}

/* Certificate paper */
.royal-lifetime-warranty__certificate {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  min-height: clamp(560px, 54vw, 690px);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(3rem, 5vw, 4.8rem) clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  text-align: center;
  color: var(--rlw-navy-deep);
  border-radius: 0.85rem;

  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.65), transparent 20%),
    radial-gradient(circle at 88% 82%, rgba(112, 73, 12, 0.10), transparent 24%),
    linear-gradient(135deg, var(--rlw-ivory) 0%, #fffaf0 38%, var(--rlw-ivory-2) 100%);

  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.46),
    0 18px 44px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    inset 0 0 0 10px rgba(23, 56, 95, 0.07);

  transform: none !important;
}

/* Shadow under certificate */
.royal-lifetime-warranty::after {
  content: "";
  width: min(82%, 900px);
  height: 34px;
  margin-top: -12px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38), transparent 70%);
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}

/* Fine paper texture, not image-like */
.royal-lifetime-warranty__paper-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      35deg,
      rgba(23, 56, 95, 0.028) 0,
      rgba(23, 56, 95, 0.028) 1px,
      transparent 1px,
      transparent 13px
    ),
    repeating-linear-gradient(
      112deg,
      rgba(112, 73, 12, 0.032) 0,
      rgba(112, 73, 12, 0.032) 1px,
      transparent 1px,
      transparent 16px
    );
  mix-blend-mode: multiply;
}

/* Outer ornate border */
.royal-lifetime-warranty__ornate-border {
  position: absolute;
  inset: clamp(0.95rem, 1.8vw, 1.35rem);
  z-index: 1;
  pointer-events: none;
  border-radius: 0.62rem;
  border: 7px double rgba(23, 56, 95, 0.58);

  background:
    radial-gradient(circle at 0 0, transparent 0 1.42rem, rgba(216, 166, 61, 0.70) 1.45rem 1.55rem, transparent 1.58rem),
    radial-gradient(circle at 100% 0, transparent 0 1.42rem, rgba(216, 166, 61, 0.70) 1.45rem 1.55rem, transparent 1.58rem),
    radial-gradient(circle at 0 100%, transparent 0 1.42rem, rgba(216, 166, 61, 0.70) 1.45rem 1.55rem, transparent 1.58rem),
    radial-gradient(circle at 100% 100%, transparent 0 1.42rem, rgba(216, 166, 61, 0.70) 1.45rem 1.55rem, transparent 1.58rem),
    linear-gradient(90deg, transparent 0 7%, rgba(23, 56, 95, 0.18) 7.35% 7.65%, transparent 8% 92%, rgba(23, 56, 95, 0.18) 92.35% 92.65%, transparent 93%),
    linear-gradient(0deg, transparent 0 7%, rgba(23, 56, 95, 0.18) 7.35% 7.65%, transparent 8% 92%, rgba(23, 56, 95, 0.18) 92.35% 92.65%, transparent 93%);

  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.70),
    inset 0 0 0 9px rgba(216, 166, 61, 0.20),
    inset 0 0 0 12px rgba(23, 56, 95, 0.12);
}

.royal-lifetime-warranty__ornate-border::before,
.royal-lifetime-warranty__ornate-border::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.royal-lifetime-warranty__ornate-border::before {
  inset: 0.75rem;
  border: 1px solid rgba(216, 166, 61, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(23, 56, 95, 0.18),
    inset 0 0 0 5px rgba(255, 255, 255, 0.26);
}

.royal-lifetime-warranty__ornate-border::after {
  inset: 1.25rem;
  opacity: 0.36;
  background:
    repeating-linear-gradient(90deg, rgba(23, 56, 95, 0.28) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(0deg, rgba(23, 56, 95, 0.22) 0 1px, transparent 1px 12px);
  padding: 0.8rem;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* Inner fine border */
.royal-lifetime-warranty__inner-border {
  position: absolute;
  inset: clamp(2.05rem, 3.4vw, 2.85rem);
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(23, 56, 95, 0.28);
  border-radius: 0.35rem;
  box-shadow:
    0 0 0 1px rgba(216, 166, 61, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

/* Subtle watermark */
.royal-lifetime-warranty__certificate::before {
  content: "ROYAL";
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 0;
  color: rgba(23, 56, 95, 0.045);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: 0.10em;
  line-height: 1;
  transform: translate(-50%, -48%);
  pointer-events: none;
}

/* Decorative corner medallions */
.royal-lifetime-warranty__certificate::after {
  content: "";
  position: absolute;
  inset: clamp(1.5rem, 2.7vw, 2.1rem);
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(216, 166, 61, 0.72) 0 0.25rem, transparent 0.27rem),
    radial-gradient(circle at 100% 0, rgba(216, 166, 61, 0.72) 0 0.25rem, transparent 0.27rem),
    radial-gradient(circle at 0 100%, rgba(216, 166, 61, 0.72) 0 0.25rem, transparent 0.27rem),
    radial-gradient(circle at 100% 100%, rgba(216, 166, 61, 0.72) 0 0.25rem, transparent 0.27rem);
}

/* Content should sit above decorative layers */
.royal-lifetime-warranty__certificate > *:not(.royal-lifetime-warranty__paper-texture):not(.royal-lifetime-warranty__ornate-border):not(.royal-lifetime-warranty__inner-border) {
  position: relative;
  z-index: 3;
}

/* Top registry line */
.royal-lifetime-warranty__topline {
  width: min(100%, 810px);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(0.8rem, 1.5vw, 1.15rem);
  color: var(--rlw-navy-soft);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.58rem, 0.85vw, 0.72rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Crest */
.royal-lifetime-warranty__crest {
  width: clamp(3rem, 5vw, 4.35rem);
  height: clamp(3rem, 5vw, 4.35rem);
  display: grid;
  place-items: center;
  margin: 0 0 clamp(0.65rem, 1.1vw, 0.95rem);
  border-radius: 50%;
  color: #fff9dd;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
    conic-gradient(from 16deg, #74500f, #d8a63d, #fff0a6, #b97e1e, #74500f);
  box-shadow:
    0 0 0 3px rgba(23, 56, 95, 0.13),
    0 10px 26px rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.52),
    inset 0 0 0 9px rgba(112, 73, 12, 0.28);
}

.royal-lifetime-warranty__crest span {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.38);
}

/* Eyebrow */
.royal-lifetime-warranty__eyebrow {
  margin: 0;
  color: var(--rlw-gold-4);
  -webkit-text-fill-color: var(--rlw-gold-4);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Main certificate title */
.royal-lifetime-warranty h3 {
  max-width: 820px;
  margin: clamp(0.45rem, 1vw, 0.85rem) 0 0;
  color: var(--rlw-navy-deep);
  -webkit-text-fill-color: currentColor;
  font-family: "Cinzel", Georgia, serif;
  text-align: center;
  text-rendering: geometricPrecision;
}

.royal-lifetime-warranty h3 span {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.85rem, 5vw, 4.35rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.royal-lifetime-warranty h3 em {
  display: block;
  margin-top: -0.05em;
  color: var(--rlw-gold-4);
  -webkit-text-fill-color: currentColor;
  font-family: "Great Vibes", "Edwardian Script ITC", "Palace Script MT", "Brush Script MT", cursive;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  font-style: normal;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.012em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Statement */
.royal-lifetime-warranty__statement {
  width: min(100%, 700px);
  margin-top: clamp(0.75rem, 1.4vw, 1.1rem);
  padding-top: clamp(0.7rem, 1.2vw, 1rem);
  border-top: 1px solid rgba(23, 56, 95, 0.22);
}

.royal-lifetime-warranty__statement p {
  margin: 0;
  color: rgba(13, 36, 66, 0.82);
  -webkit-text-fill-color: rgba(13, 36, 66, 0.82);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.72;
}

/* Gold embossed seal with serrated edge */
.royal-lifetime-warranty__seal {
  position: absolute !important;
  right: clamp(2.4rem, 6vw, 5.2rem);
  bottom: clamp(5rem, 8vw, 6.6rem);
  z-index: 5;
  width: clamp(6.2rem, 11vw, 8.6rem);
  height: clamp(6.2rem, 11vw, 8.6rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #563507;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.98), transparent 16%),
    radial-gradient(circle at center, #fff2a8 0 25%, #e5b947 26% 48%, #a87218 49% 70%, #f3cf65 71% 100%);
  box-shadow:
    0 18px 38px rgba(87, 52, 8, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.50),
    0 0 0 9px rgba(216, 166, 61, 0.16),
    inset 0 0 0 2px rgba(86, 53, 7, 0.34),
    inset 0 0 0 12px rgba(255, 255, 255, 0.20);
  transform: rotate(7deg);
}

.royal-lifetime-warranty__seal::before {
  content: "";
  position: absolute;
  inset: -0.68rem;
  z-index: -1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #f3cf65 0deg 5deg,
      #996715 5deg 10deg,
      #ffe58a 10deg 15deg
    );
  clip-path: polygon(50% 0%, 55% 8%, 62% 2%, 66% 10%, 75% 7%, 77% 16%, 87% 15%, 85% 25%, 95% 29%, 90% 37%, 100% 45%, 91% 51%, 98% 60%, 88% 63%, 92% 74%, 82% 74%, 79% 85%, 70% 80%, 63% 91%, 56% 82%, 50% 100%, 44% 82%, 37% 91%, 30% 80%, 21% 85%, 18% 74%, 8% 74%, 12% 63%, 2% 60%, 9% 51%, 0% 45%, 10% 37%, 5% 29%, 15% 25%, 13% 15%, 23% 16%, 25% 7%, 34% 10%, 38% 2%, 45% 8%);
  filter: drop-shadow(0 6px 10px rgba(87, 52, 8, 0.25));
}

.royal-lifetime-warranty__seal::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.35rem;
  z-index: -2;
  width: clamp(2.7rem, 5.2vw, 3.65rem);
  height: clamp(2.5rem, 4.7vw, 3.3rem);
  background: linear-gradient(180deg, var(--rlw-blue-ribbon), var(--rlw-navy-deep));
  clip-path: polygon(0 0, 100% 0, 78% 100%, 50% 72%, 22% 100%);
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.royal-lifetime-warranty__seal-ring {
  position: absolute;
  top: clamp(1rem, 1.7vw, 1.35rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(86, 53, 7, 0.90);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.44rem, 0.78vw, 0.6rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.royal-lifetime-warranty__seal strong {
  display: block;
  color: #563507;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.92rem, 1.75vw, 1.28rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.royal-lifetime-warranty__seal small {
  display: block;
  position: absolute;
  bottom: clamp(1rem, 1.8vw, 1.45rem);
  color: rgba(86, 53, 7, 0.82);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.44rem, 0.78vw, 0.58rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

/* Signature fields */
.royal-lifetime-warranty__signature-row {
  width: min(100%, 650px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 7vw, 4.8rem);
  margin-top: clamp(1.1rem, 2.2vw, 1.75rem);
}

.royal-lifetime-warranty__field {
  display: grid;
  align-items: end;
  min-height: clamp(3rem, 5vw, 4rem);
}

.royal-lifetime-warranty__script {
  display: block;
  padding-bottom: 0.32rem;
  border-bottom: 1px solid rgba(23, 56, 95, 0.46);
  color: var(--rlw-navy-deep);
  -webkit-text-fill-color: var(--rlw-navy-deep);
  font-family: "Great Vibes", "Edwardian Script ITC", "Palace Script MT", "Brush Script MT", cursive;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1;
  transform: rotate(-1.2deg);
}

.royal-lifetime-warranty__field small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(13, 36, 66, 0.72);
  -webkit-text-fill-color: rgba(13, 36, 66, 0.72);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.52rem, 0.78vw, 0.64rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

/* Fine print */
.royal-lifetime-warranty__fineprint {
  width: min(100%, 720px);
  margin: clamp(1rem, 1.5vw, 1.25rem) 0 0;
  color: rgba(13, 36, 66, 0.58);
  -webkit-text-fill-color: rgba(13, 36, 66, 0.58);
  font-size: clamp(0.6rem, 0.82vw, 0.74rem);
  font-weight: 700;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 900px) {
  .royal-lifetime-warranty__certificate {
    min-height: auto;
    padding: 3.5rem 1.75rem 2rem;
  }

  .royal-lifetime-warranty__topline {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
  }

  .royal-lifetime-warranty h3 span {
    font-size: clamp(1.65rem, 9vw, 3.2rem);
    letter-spacing: 0.035em;
  }

  .royal-lifetime-warranty h3 em {
    font-size: clamp(3rem, 14vw, 5.6rem);
  }

  .royal-lifetime-warranty__statement {
    width: 100%;
  }

  .royal-lifetime-warranty__seal {
    position: relative !important;
    right: auto;
    bottom: auto;
    width: 6.5rem;
    height: 6.5rem;
    margin-top: 1.25rem;
    transform: rotate(5deg);
  }

  .royal-lifetime-warranty__signature-row {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .royal-lifetime-warranty__field {
    min-height: 2.75rem;
  }

  .royal-lifetime-warranty__fineprint {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .royal-lifetime-warranty__certificate {
    border-radius: 0.6rem;
    padding: 2.7rem 1.1rem 1.5rem;
  }

  .royal-lifetime-warranty__ornate-border {
    inset: 0.65rem;
    border-width: 5px;
  }

  .royal-lifetime-warranty__inner-border {
    inset: 1.35rem;
  }

  .royal-lifetime-warranty__certificate::before {
    font-size: 5.2rem;
  }

  .royal-lifetime-warranty__eyebrow {
    letter-spacing: 0.16em;
  }

  .royal-lifetime-warranty__statement p {
    font-size: 0.82rem;
  }
}
