/* ============================================================
   LUXURY.css — premium motion + typographic polish
   Loads AFTER refresh.css and refresh-pages.css. Adds atmosphere.
   ============================================================ */

:root {
  /* Refined easing palette (ease-out exponential family — no bounce) */
  --lx-ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --lx-ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --lx-ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --lx-ease-out-circ:  cubic-bezier(0, 0.55, 0.45, 1);
}

/* ============================================================
   GLOBAL TYPOGRAPHIC POLISH
   ============================================================ */
html {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -moz-font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

/* Modern CSS: balance display headings, prettier body wrap */
.rf-hero__title,
.rf-h1, .rf-h2, .rf-h3,
.rf-display,
.rf-script-large,
.rf-pullquote,
.rf-tile__title,
.rf-qual__title {
  text-wrap: balance;
}
.rf-body, .rf-hero__body, .rf-qual__text, .rf-tile__list li, .rf-list li {
  text-wrap: pretty;
}

/* Old-style figures in body, lining in numerals on headings */
.rf-body { font-variant-numeric: oldstyle-nums; }
.rf-h1, .rf-h2, .rf-h3, .rf-hero__title { font-variant-numeric: lining-nums; }

/* ============================================================
   FILM GRAIN — analog atmosphere, fixed overlay 4% opacity
   ============================================================ */
.lx-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) {
  .lx-grain { display: none; }
}

/* ============================================================
   SCROLL PROGRESS BAR — thin gold line at top
   ============================================================ */
.lx-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rf-gold) 30%, var(--rf-gold-warm) 50%, var(--rf-gold) 70%, transparent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 110;
  pointer-events: none;
  transition: transform .15s linear;
}

/* ============================================================
   CUSTOM CURSOR — desktop only, no touch
   ============================================================ */
.lx-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--rf-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width .35s var(--lx-ease-out-quart),
              height .35s var(--lx-ease-out-quart),
              background .25s,
              opacity .25s;
  opacity: 0;
}
.lx-cursor--ready { opacity: 1; }
.lx-cursor--hover {
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rf-gold-warm);
  mix-blend-mode: normal;
}
.lx-cursor--text {
  width: 1px;
  height: 22px;
  border-radius: 0;
}
/* Custom cursor disabled — keep native pointer */
.lx-cursor { display: none !important; }

/* ============================================================
   REFINED LINK UNDERLINES — draws in from left, out to right
   ============================================================ */
.rf-body a:not(.rf-btn):not(.rf-circle-cta),
.rf-footer ul a,
.rf-drawer__link,
.lx-link {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size .6s var(--lx-ease-out-expo);
  padding-bottom: 1px;
}
.rf-body a:not(.rf-btn):not(.rf-circle-cta):hover,
.rf-footer ul a:hover,
.rf-drawer__link:hover,
.lx-link:hover {
  background-size: 100% 1px;
}

/* ============================================================
   PARALLAX HERO PHOTO — controlled by JS, smooth via transform
   ============================================================ */
.rf-hero__photo {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform .1s linear;
}

/* ============================================================
   MAGNETIC BUTTONS — JS adjusts transform, CSS smooths it
   ============================================================ */
.rf-btn, .rf-circle-cta {
  will-change: transform;
  transition: transform .55s var(--lx-ease-out-expo),
              background .35s var(--lx-ease-out-quart),
              box-shadow .4s var(--lx-ease-out-quart),
              color .25s;
}

/* ============================================================
   WORD/CHAR REVEAL — staggered fade-up for headings
   ============================================================ */
.lx-word, .lx-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.5em, 0);
  transition: opacity .9s var(--lx-ease-out-expo),
              transform 1s var(--lx-ease-out-expo);
}
.lx-reveal .lx-word,
.lx-reveal .lx-char {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* Stagger via custom property set in JS */
.lx-reveal .lx-word { transition-delay: calc(var(--i, 0) * 50ms); }
.lx-reveal .lx-char { transition-delay: calc(var(--i, 0) * 25ms); }

@media (prefers-reduced-motion: reduce) {
  .lx-word, .lx-char {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   PAGE TRANSITION OVERLAY — olive curtain on internal link click
   ============================================================ */
.lx-transition {
  position: fixed;
  inset: 0;
  background: var(--rf-olive-dark);
  z-index: 500;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .7s var(--lx-ease-out-expo);
  pointer-events: none;
}
.lx-transition--out {
  transform: scaleY(1);
  pointer-events: auto;
}
.lx-transition--in {
  transform-origin: bottom;
  transform: scaleY(0);
}

@media (prefers-reduced-motion: reduce) {
  .lx-transition { display: none; }
}

/* ============================================================
   DROP CAP — for editorial paragraphs (about hero, story blocks)
   ============================================================ */
.lx-dropcap::first-letter {
  font-family: var(--rf-serif);
  font-weight: 500;
  float: left;
  font-size: 4.5em;
  line-height: 0.85;
  margin: .08em .12em 0 0;
  color: var(--rf-gold);
  font-feature-settings: "kern" 1, "ss01" 1;
}
@media (max-width: 540px) {
  .lx-dropcap::first-letter { font-size: 3.6em; margin: .15em .1em 0 0; }
}

/* ============================================================
   NUMBERED SECTIONS — LV / Hermès style "01 / 02 / 03"
   Replaces the banned side-stripe border on .rf-qual
   ============================================================ */
.rf-quals { counter-reset: rf-qual; }
.rf-qual {
  counter-increment: rf-qual;
  border-left: none !important;
  padding-top: 2.4rem !important;
  position: relative;
}
.rf-qual::before {
  content: counter(rf-qual, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  left: 1.5rem;
  font-family: var(--rf-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0;
  color: var(--rf-gold);
  line-height: 1;
  opacity: .9;
}
.rf-qual::after {
  content: '';
  position: absolute;
  top: 1.9rem;
  left: 3.6rem;
  width: 2rem;
  height: 1px;
  background: var(--rf-gold);
  opacity: .45;
}
.rf-section--olive .rf-qual::before,
.rf-section--olive-dark .rf-qual::before { color: var(--rf-gold-warm); opacity: 1; }
.rf-section--olive .rf-qual::after,
.rf-section--olive-dark .rf-qual::after { background: var(--rf-gold-warm); opacity: .55; }

/* Story block H3 — replace border-left with leading marker */
.rf-story-block .rf-h3 {
  border-left: none !important;
  padding-left: 0 !important;
  position: relative;
}
.rf-story-block .rf-h3::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--rf-gold);
  vertical-align: middle;
  margin-right: .8rem;
  margin-bottom: .25em;
}

/* ============================================================
   FULL-BLEED HERO — photo covers the whole screen, text overlaid
   ============================================================ */
.rf-hero--full .rf-hero__photo {
  width: 100%;
  height: 100%;
}
/* Stronger left-to-right gradient so left-aligned text stays legible
   over the full-bleed image */
.rf-hero--full::before {
  background:
    linear-gradient(90deg, rgba(28,30,22,.9) 0%, rgba(28,30,22,.7) 30%, rgba(28,30,22,.3) 55%, rgba(0,0,0,0) 78%),
    linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.45) 100%);
}
@media (max-width: 880px) {
  .rf-hero--full::before {
    background:
      linear-gradient(180deg, rgba(28,30,22,.55) 0%, rgba(28,30,22,.4) 45%, rgba(28,30,22,.8) 100%);
  }
  .rf-hero--full .rf-hero__photo { opacity: 1; }
}

/* ============================================================
   SKIP-TO-MAIN LINK — visible on focus, hidden otherwise
   ============================================================ */
.lx-skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  background: var(--rf-olive-dark);
  color: var(--rf-cream);
  padding: .75rem 1.25rem;
  font-family: var(--rf-sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top .25s var(--lx-ease-out-quart);
}
.lx-skip:focus-visible {
  top: 1rem;
  outline: 2px solid var(--rf-gold);
  outline-offset: 2px;
}

/* ============================================================
   FOCUS RING — accessible + tasteful
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--rf-gold);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible, a:focus-visible {
  outline-color: var(--rf-gold-warm);
}

/* ============================================================
   FIRST-LOAD ORCHESTRATION — staggered entrance on home hero
   ============================================================ */
.lx-stagger > * {
  opacity: 0;
  transform: translate3d(0, 1.2rem, 0);
  transition: opacity 1.1s var(--lx-ease-out-expo),
              transform 1.1s var(--lx-ease-out-expo);
}
.lx-stagger.lx-stagger--ready > *  { opacity: 1; transform: translate3d(0, 0, 0); }
.lx-stagger.lx-stagger--ready > *:nth-child(1) { transition-delay: 100ms; }
.lx-stagger.lx-stagger--ready > *:nth-child(2) { transition-delay: 250ms; }
.lx-stagger.lx-stagger--ready > *:nth-child(3) { transition-delay: 400ms; }
.lx-stagger.lx-stagger--ready > *:nth-child(4) { transition-delay: 550ms; }
.lx-stagger.lx-stagger--ready > *:nth-child(5) { transition-delay: 700ms; }
.lx-stagger.lx-stagger--ready > *:nth-child(6) { transition-delay: 850ms; }

/* ============================================================
   HERO HALO — subtle gold radial behind hero text on dark heroes
   ============================================================ */
.rf-hero::after {
  content: '';
  position: absolute;
  left: -10%;
  top: 30%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(201,168,122,.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  filter: blur(20px);
}
@media (max-width: 880px) {
  .rf-hero::after {
    width: 90%;
    left: 5%;
    background: radial-gradient(ellipse at center, rgba(201,168,122,.10) 0%, transparent 65%);
  }
}

/* ============================================================
   SERVICE CARD POLISH — luxury micro-interaction
   ============================================================ */
.rf-service {
  transition: filter .6s var(--lx-ease-out-expo);
}
.rf-services:hover .rf-service { filter: brightness(.7) saturate(.85); }
.rf-services:hover .rf-service:hover { filter: brightness(1) saturate(1); }
.rf-service__img { transition: transform 1.2s var(--lx-ease-out-expo); }
.rf-service:hover .rf-service__img { transform: scale(1.08); }

/* ============================================================
   GALLERY ITEM POLISH
   ============================================================ */
.rf-gallery-grid {
  counter-reset: lx-gallery;
}
.rf-gallery-grid__item {
  counter-increment: lx-gallery;
  position: relative;
  transition: filter .6s var(--lx-ease-out-expo),
              transform .8s var(--lx-ease-out-expo);
}
.rf-gallery-grid:hover .rf-gallery-grid__item { filter: saturate(.7) brightness(.85); }
.rf-gallery-grid:hover .rf-gallery-grid__item:hover {
  filter: saturate(1.1) brightness(1.02);
  transform: scale(1.02);
}

/* ============================================================
   TILES — refine featured tile glow on hover
   ============================================================ */
.rf-tile {
  transition: transform .6s var(--lx-ease-out-expo),
              box-shadow .6s var(--lx-ease-out-expo),
              border-color .4s ease;
}
.rf-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(28,30,22,.10);
}
.rf-tile--featured:hover {
  box-shadow: 0 28px 70px rgba(28,30,22,.22),
              inset 0 0 0 1px var(--rf-gold-warm);
}

/* ============================================================
   HERO SCROLL ARROW — slower, more meditative
   ============================================================ */
.rf-hero__scroll {
  animation: lx-bob 3.6s ease-in-out infinite;
  opacity: .7;
  transition: opacity .4s ease;
}
.rf-hero__scroll:hover { opacity: 1; }
@keyframes lx-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .7; }
  50%      { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ============================================================
   TESTIMONIALS — symmetric groups by aspect ratio
   ============================================================ */
.lx-tgroup {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
}
.lx-tgroup + .lx-tgroup { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.lx-tgroup--audio { max-width: 640px; }

.lx-video {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--rf-olive-dark);
}
.lx-video::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,30,22,.05) 40%, rgba(28,30,22,.5) 100%);
  transition: opacity .5s var(--lx-ease-out-quart);
  pointer-events: none;
}
.lx-video--playing::after { opacity: 0; }
.lx-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Portrait cards — equal 9:16 */
.lx-video--portrait {
  width: clamp(240px, 30vw, 320px);
  aspect-ratio: 9 / 16;
  border-radius: 8px;
}
.lx-video--portrait video { border-radius: 8px; }

/* Round cards — equal circles */
.lx-video--round {
  width: clamp(168px, 24vw, 230px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(28,30,22,.12);
}
.lx-video--round video { border-radius: 50%; }
.lx-video--round::after { background: radial-gradient(circle at 50% 82%, rgba(28,30,22,.32) 0%, transparent 70%); }

/* Play button */
.lx-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(240,231,213,.6);
  background: rgba(28,30,22,.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--rf-cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  padding-left: 3px;
  transition: transform .5s var(--lx-ease-out-expo), background .35s ease, border-color .35s ease, opacity .4s ease;
}
.lx-video--round .lx-video__play { width: 52px; height: 52px; }
.lx-video:hover .lx-video__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--rf-gold);
  border-color: var(--rf-gold);
}
.lx-video--playing .lx-video__play { opacity: 0; pointer-events: none; }
.lx-video__role {
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  text-align: center;
  z-index: 2;
  transition: opacity .4s ease;
}
.lx-video--playing .lx-video__role { opacity: 0; }
.lx-video__pname {
  display: block;
  font-family: var(--rf-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--rf-cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  line-height: 1.1;
}
.lx-video__city {
  display: block;
  font-family: var(--rf-sans);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--rf-gold-warm);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  margin-top: .25rem;
}

/* Round videos with caption below the circle */
.lx-round {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}
.lx-round .lx-video--round { width: clamp(168px, 24vw, 230px); }
.lx-round__cap { text-align: center; }
.lx-round__name {
  display: block;
  font-family: var(--rf-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--rf-ink);
  line-height: 1.1;
}
.lx-round__city {
  display: block;
  font-family: var(--rf-sans);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rf-gold);
  margin-top: .25rem;
}

/* Audio testimonial player */
.lx-audio {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  background: var(--rf-cream);
  border: 1px solid rgba(201,168,122,.3);
  border-radius: 999px;
  padding: 1rem 1.5rem 1rem 1rem;
}
.lx-audio__toggle {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--rf-gold);
  color: var(--rf-cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding-left: 2px;
  transition: transform .4s var(--lx-ease-out-expo), background .3s ease;
}
.lx-audio__toggle:hover { transform: scale(1.06); background: var(--rf-gold-warm); }
.lx-audio--playing .lx-audio__toggle { padding-left: 0; }
.lx-audio__body { flex: 1; min-width: 0; }
.lx-audio__label {
  font-family: var(--rf-sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rf-gold);
  margin: 0 0 .55rem;
}
.lx-audio__track { cursor: pointer; padding: .35rem 0; }
.lx-audio__bar {
  position: relative;
  height: 3px;
  background: rgba(201,168,122,.3);
  border-radius: 2px;
  overflow: hidden;
}
.lx-audio__fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 0%;
  background: var(--rf-gold);
  border-radius: 2px;
}
.lx-audio__time {
  display: block;
  font-family: var(--rf-sans);
  font-size: .74rem;
  color: var(--rf-mute);
  margin-top: .5rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 540px) {
  .lx-video--portrait { width: calc(50% - .6rem); }
  .lx-video--round { width: calc(50% - .6rem); }
  .lx-video__play { width: 52px; height: 52px; }
  .lx-video--round .lx-video__play { width: 44px; height: 44px; }
  .lx-audio { border-radius: 16px; }
}

@media (prefers-reduced-data: reduce) {
  .lx-video { background-image: none !important; }
}

/* ============================================================
   WRITTEN TESTIMONIALS — quote cards with expand
   ============================================================ */
.lx-quotes {
  column-count: 2;
  column-gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 1080px;
  margin: 0 auto;
}
.lx-quote {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  background: var(--rf-cream-soft);
  border: 1px solid rgba(201,168,122,.25);
  border-radius: 8px;
  padding: 2rem 1.85rem 1.6rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  position: relative;
}
.lx-quote::before {
  content: '\201C';
  font-family: var(--rf-serif);
  font-size: 3.4rem;
  line-height: .6;
  color: var(--rf-gold);
  opacity: .5;
  display: block;
  margin-bottom: .4rem;
}
.lx-quote__text {
  font-family: var(--rf-serif);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--rf-ink);
  max-height: 13.5em;
  overflow: hidden;
  position: relative;
  transition: max-height .6s var(--lx-ease-out-expo);
}
.lx-quote__text::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4em;
  background: linear-gradient(180deg, rgba(244,239,226,0) 0%, var(--rf-cream-soft) 92%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .4s ease;
}
.lx-quote--open .lx-quote__text { max-height: 240em; }
.lx-quote--open .lx-quote__text::after { opacity: 0; }
.lx-quote--fits .lx-quote__text { max-height: none; }
.lx-quote--fits .lx-quote__text::after { display: none; }
.lx-quote--fits .lx-quote__more { display: none; }
.lx-quote__more {
  background: none;
  border: none;
  cursor: pointer;
  padding: .6rem 0 0;
  font-family: var(--rf-sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rf-gold);
  transition: color .25s ease;
}
.lx-quote__more:hover { color: var(--rf-olive-dark); }
.lx-quote__by {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,122,.25);
}
.lx-quote__name {
  display: block;
  font-family: var(--rf-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--rf-ink);
}
.lx-quote__detail {
  display: block;
  font-family: var(--rf-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rf-gold);
  margin-top: .25rem;
}
@media (max-width: 720px) {
  .lx-quotes { column-count: 1; }
  .lx-quote__text { font-size: 1.02rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .lx-grain, .lx-cursor, .lx-progress, .lx-transition,
  .rf-scroll-top, .rf-cookie, .rf-popup { display: none !important; }
  .rf-hero { min-height: 0; }
  .rf-hero__photo, .rf-split__photo { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   REDUCED-DATA — respect Save-Data and prefers-reduced-data
   ============================================================ */
@media (prefers-reduced-data: reduce) {
  .lx-grain { display: none; }
  .rf-hero__photo,
  .rf-split__photo,
  .rf-service__img,
  .rf-gallery-grid__item,
  .rf-retreat__photo {
    background-image: none !important;
    background-color: var(--rf-olive);
  }
}

/* ============================================================
   FORCED COLORS (Windows High Contrast)
   ============================================================ */
@media (forced-colors: active) {
  .rf-btn, .rf-circle-cta {
    border: 1px solid CanvasText;
    background: ButtonFace;
    color: ButtonText;
  }
  .rf-tile, .rf-qual, .rf-contact-card {
    border: 1px solid CanvasText;
  }
}

/* ============================================================
   Testimonials — video LIGHTBOX (mobile + desktop, vertical 9:16)
   ============================================================ */
.lx-lightbox{
  position:fixed; inset:0; z-index:1000; display:none;
  align-items:center; justify-content:center;
  padding:calc(env(safe-area-inset-top) + .5rem) 1rem calc(env(safe-area-inset-bottom) + .5rem);
  background:rgba(28,30,22,.82);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.lx-lightbox.is-open{ display:flex; }
.lx-lightbox__stage{ position:relative; max-width:100%; max-height:100%; }
.lx-lightbox__stage video{
  display:block; width:auto; height:auto;
  max-height:88vh; max-width:92vw; aspect-ratio:9 / 16;
  border-radius:14px; background:#000;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}
.lx-lightbox__stage--round video{
  aspect-ratio:1 / 1; border-radius:50%; max-height:80vh;
}
.lx-lightbox__close{
  position:fixed; top:calc(env(safe-area-inset-top) + .7rem); right:1rem; z-index:2;
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(240,231,213,.4); background:rgba(28,30,22,.5);
  color:var(--rf-cream); font-size:1.7rem; line-height:1; cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}
.lx-lightbox__close:hover{ background:var(--rf-gold); border-color:var(--rf-gold); transform:scale(1.06); }
@media (prefers-reduced-motion:reduce){
  .lx-lightbox{ backdrop-filter:none; -webkit-backdrop-filter:none; }
  .lx-lightbox__close{ transition:none; }
}

/* Lightbox video in NATIVE fullscreen — letterbox vertical video on black,
   correct in both Chrome (:fullscreen) and Safari (:-webkit-full-screen) */
.lx-lightbox__stage video:fullscreen,
.lx-lightbox__stage video:-webkit-full-screen{
  width:100vw; height:100vh; max-width:100vw; max-height:100vh;
  object-fit:contain; border-radius:0; background:#000;
}

/* ============================================================
   WhatsApp floating button — persistent on every page
   ============================================================ */
.rf-wa-fab{
  position:fixed; right:2rem; bottom:2rem; z-index:60;
  width:56px; height:56px; border-radius:50%;
  display:grid; place-items:center;
  background:#25D366; color:#fff;
  box-shadow:0 10px 28px rgba(37,211,102,.42);
  transition:transform .25s var(--rf-ease), box-shadow .25s var(--rf-ease);
}
.rf-wa-fab svg{ width:30px; height:30px; fill:#fff; }
.rf-wa-fab:hover{ transform:translateY(-3px) scale(1.05); box-shadow:0 16px 36px rgba(37,211,102,.5); }
.rf-wa-fab:active{ transform:translateY(-1px) scale(1.02); }
/* lift the back-to-top button so it stacks ABOVE the WhatsApp button */
.rf-scroll-top{ bottom:calc(2rem + 70px); }

@media (max-width:600px){
  .rf-wa-fab{ width:54px; height:54px; right:1.25rem; bottom:1.25rem; }
  .rf-wa-fab svg{ width:28px; height:28px; }
  .rf-scroll-top{ bottom:calc(1.25rem + 66px); }
}
@supports (padding: env(safe-area-inset-bottom)){
  .rf-wa-fab{
    right:max(1.25rem, env(safe-area-inset-right) + .5rem);
    bottom:max(1.25rem, env(safe-area-inset-bottom) + .75rem);
  }
  .rf-scroll-top{ bottom:calc(max(1.25rem, env(safe-area-inset-bottom) + .75rem) + 66px); }
}

/* Center an orphan last card when a 3-column .rf-quals grid has a remainder of 1
   (e.g. 7 cards → last row has a single card, otherwise stuck to the left) */
@media (min-width: 861px){
  .rf-quals > .rf-qual:last-child:nth-child(3n + 1){ grid-column: 2; }
}
