/* ==========================================================================
   צוות יהלום — Business FX Layer
   Enhanced scroll-driven animations & premium components
   Loaded AFTER style.css — overrides scoped to services-business page.
   Brand: Navy (#1B2A4A) + Gold (#D4A843). RTL.
   ========================================================================== */

:root {
  --fx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-gold-grad: linear-gradient(135deg, #E5C36A 0%, #D4A843 45%, #B8912E 100%);
  --fx-navy-grad: linear-gradient(160deg, #2A3F6A 0%, #1B2A4A 55%, #111D35 100%);
}

/* --------------------------------------------------------------------------
   1) ENHANCED SCROLL REVEAL  (upgrades existing [data-anim] system)
   The inline JS already adds .animate-in + a stagger transition-delay.
   We make the entrance far more cinematic: blur + lift + subtle scale.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-anim] {
    opacity: 0;
    transform: translateY(46px) scale(0.965);
    filter: blur(10px);
    transition:
      opacity 0.9s var(--fx-ease),
      transform 1s var(--fx-ease),
      filter 0.9s var(--fx-ease);
    will-change: transform, opacity, filter;
  }
  [data-anim].animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  /* directional variants (RTL aware) */
  [data-anim="slide-right"] { transform: translateX(60px) translateY(10px); }
  [data-anim="slide-left"]  { transform: translateX(-60px) translateY(10px); }
  [data-anim="zoom-in"]     { transform: scale(0.82); filter: blur(14px); }
  [data-anim="flip-up"]     { transform: perspective(1200px) rotateX(22deg) translateY(50px); transform-origin: bottom; }
  [data-anim="slide-right"].animate-in,
  [data-anim="slide-left"].animate-in,
  [data-anim="zoom-in"].animate-in,
  [data-anim="flip-up"].animate-in { transform: none; filter: blur(0); }
}

/* New generic reveal hook used by FX components (handled by business-fx.js) */
.fx-reveal {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(8px);
  transition: opacity 0.9s var(--fx-ease), transform 1s var(--fx-ease), filter 0.9s var(--fx-ease);
  will-change: transform, opacity, filter;
}
.fx-reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1; transform: none; filter: none; }
}

/* --------------------------------------------------------------------------
   2) STATS BAND  (new component — animated count-up on scroll)
   -------------------------------------------------------------------------- */
.fx-stats {
  position: relative;
  background: var(--fx-navy-grad);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  overflow: hidden;
  isolation: isolate;
}
.fx-stats::before {
  /* moving security grid */
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(212,168,67,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  z-index: -1;
  animation: fx-grid-drift 22s linear infinite;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 75%);
}
@keyframes fx-grid-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(46px, 46px); }
}
.fx-stats::after {
  /* gold glow sweep */
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(212,168,67,0.16) 0%, transparent 70%);
  z-index: -1;
  animation: fx-glow-sweep 9s ease-in-out infinite alternate;
}
@keyframes fx-glow-sweep {
  from { transform: translateX(-10%); opacity: 0.5; }
  to   { transform: translateX(160%); opacity: 1; }
}
.fx-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.fx-stat {
  position: relative;
  padding: 0.5rem 0.25rem;
}
.fx-stat + .fx-stat::before {
  content: '';
  position: absolute;
  right: calc(-1 * clamp(0.75rem, 2vw, 1.5rem));
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56%;
  background: linear-gradient(180deg, transparent, rgba(212,168,67,0.4), transparent);
}
.fx-stat-num {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  background: var(--fx-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fx-stat-num span { -webkit-text-fill-color: transparent; }
.fx-stat-label {
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.82);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 500;
}
@media (min-width: 768px) {
  .fx-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
/* On mobile the grid is 2 columns — kill dividers that land at a row start */
@media (max-width: 767px) {
  .fx-stat:nth-child(odd)::before { display: none; }
}

/* --------------------------------------------------------------------------
   3) PREMIUM SERVICE CARDS  ("למי מתאים")
   Gold gradient border on hover + spotlight + animated icon medallion.
   (Works together with the inline tilt/magnetic-glow already present.)
   -------------------------------------------------------------------------- */
.services-grid { perspective: 1600px; }

.service-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #E8ECF3;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(27,42,74,0.06);
  transition: box-shadow 0.45s var(--fx-ease), border-color 0.45s var(--fx-ease), transform 0.45s var(--fx-ease);
  --mx: 50%; --my: 50%;
}
/* gold spotlight that follows the cursor (vars set by business-fx.js) */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(212,168,67,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: 0 26px 70px rgba(27,42,74,0.18), 0 0 0 1.5px rgba(212,168,67,0.55);
}
.service-card:hover::after { opacity: 1; }
/* keep content above the spotlight, but DON'T touch the injected .magnetic-glow
   (it must stay absolute, otherwise it sits in flow and stretches the card) */
.service-card > *:not(.magnetic-glow) { position: relative; z-index: 1; }

/* Icon medallion upgrade */
.service-card-icon {
  position: relative;
  width: 66px;
  height: 66px;
  margin-inline: auto;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fx-navy-grad) !important;
  color: var(--gold-light) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(17,29,53,0.35), inset 0 0 0 1px rgba(212,168,67,0.25);
  transition: transform 0.5s var(--fx-ease), box-shadow 0.5s var(--fx-ease);
  overflow: visible;
}
.service-card-icon svg { width: 30px; height: 30px; }
.service-card-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: var(--fx-gold-grad);
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.5s ease;
}
.service-card:hover .service-card-icon {
  transform: translateY(-4px) scale(1.06);
}
.service-card:hover .service-card-icon::before { opacity: 0.9; }
.service-card:hover .service-card-icon svg { animation: fx-icon-pop 0.6s var(--fx-ease); }
@keyframes fx-icon-pop {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.18) rotate(-6deg); }
  70% { transform: scale(0.94) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

/* corner accent that draws on hover */
.service-card-title { transition: color 0.35s ease; }
.service-card:hover .service-card-title { color: var(--gold-dark); }

/* --------------------------------------------------------------------------
   4) "מה כלול" — feature cards (was a plain flex list)
   Turn each row into a glass-ish hover card with a left gold rail.
   -------------------------------------------------------------------------- */
.service-features { gap: 1.1rem; }
@media (min-width: 700px) { .service-features { grid-template-columns: 1fr 1fr; } }

.service-feature-item {
  position: relative;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(27,42,74,0.08);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.4s var(--fx-ease), box-shadow 0.4s var(--fx-ease), border-color 0.4s var(--fx-ease);
}
.service-feature-item::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--fx-gold-grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--fx-ease);
}
.service-feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(27,42,74,0.12);
  border-color: rgba(212,168,67,0.45);
}
.service-feature-item:hover::before { transform: scaleY(1); }
.service-feature-item:hover .service-feature-icon {
  transform: rotate(-6deg) scale(1.1);
  background: var(--fx-gold-grad) !important;
  color: #fff !important;
}
.service-feature-icon { transition: transform 0.45s var(--fx-ease), background 0.4s ease, color 0.4s ease; }

/* --------------------------------------------------------------------------
   5) PROCESS TIMELINE — scroll-progress fill
   Base rail becomes faint; a gold rail grows with scroll (--fx-progress).
   Number medallions "light up" as the fill passes them.
   -------------------------------------------------------------------------- */
.process-timeline::before {
  background-color: rgba(212,168,67,0.18) !important;
}
.process-timeline {
  --fx-progress: 0;
}
.process-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  right: 24px;            /* matches the base rail position (RTL) */
  width: 3px;
  height: calc(var(--fx-progress) * 100%);
  background: linear-gradient(180deg, #E5C36A, #D4A843 60%, #B8912E);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(212,168,67,0.65);
  z-index: 1;
  transition: height 0.15s linear;
}
.process-timeline-number {
  transition: transform 0.5s var(--fx-ease), box-shadow 0.5s var(--fx-ease), background 0.5s ease;
  z-index: 2;
}
.process-timeline-step.fx-lit .process-timeline-number {
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(212,168,67,0.18), 0 10px 26px rgba(212,168,67,0.45);
}
.process-timeline-step.fx-lit .process-timeline-content h3 { color: var(--gold-dark); }
.process-timeline-content h3 { transition: color 0.4s ease; }

/* --------------------------------------------------------------------------
   6) MARQUEE — moving "trust" ribbon (new)
   -------------------------------------------------------------------------- */
.fx-marquee {
  position: relative;
  background: var(--navy-dark);
  border-block: 1px solid rgba(212,168,67,0.22);
  padding: 1.05rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fx-marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: fx-marquee 32s linear infinite;
}
.fx-marquee:hover .fx-marquee-track { animation-play-state: paused; }
@keyframes fx-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }   /* RTL friendly: content duplicated */
}
.fx-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  white-space: nowrap;
}
.fx-marquee-item svg { color: var(--gold); flex: none; }
.fx-marquee-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* --------------------------------------------------------------------------
   7) CTA banner — animated aurora glow + shimmer button
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(212,168,67,0.28), transparent 70%),
    radial-gradient(45% 65% at 85% 90%, rgba(42,63,106,0.55), transparent 70%);
  animation: fx-aurora 11s ease-in-out infinite alternate;
}
@keyframes fx-aurora {
  from { transform: translate3d(-4%, -3%, 0) scale(1.05); }
  to   { transform: translate3d(5%, 4%, 0) scale(1.15); }
}
.cta-banner .btn-primary { position: relative; overflow: hidden; }
.cta-banner .btn-primary::after {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: fx-shimmer 3.4s ease-in-out infinite;
}
@keyframes fx-shimmer {
  0%, 60% { inset-inline-start: -130%; }
  100% { inset-inline-start: 130%; }
}

/* --------------------------------------------------------------------------
   8) HERO — scroll cue + parallax depth tweaks
   -------------------------------------------------------------------------- */
.fx-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  animation: fx-cue-bob 2.4s ease-in-out infinite;
}
.fx-scroll-cue .fx-mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(212,168,67,0.7);
  border-radius: 14px;
  position: relative;
}
.fx-scroll-cue .fx-mouse::before {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: fx-wheel 1.8s ease-in-out infinite;
}
@keyframes fx-wheel { 0%,100%{ opacity:0; transform: translate(-50%, 0);} 30%{opacity:1;} 60%{opacity:0; transform: translate(-50%, 12px);} }
@keyframes fx-cue-bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(7px);} }

@media (prefers-reduced-motion: reduce) {
  .fx-stats::before, .fx-stats::after,
  .fx-marquee-track, .cta-banner::before,
  .cta-banner .btn-primary::after, .fx-scroll-cue { animation: none !important; }
}

/* --------------------------------------------------------------------------
   9) SECTION TITLE — animated gold underline
   -------------------------------------------------------------------------- */
/* center the title + its underline without forcing the whole container centered
   (scoped this way so it won't re-center body text on other pages) */
.section-title {
  position: relative;
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  margin: 0.7rem auto 0;
  background: var(--fx-gold-grad);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(212,168,67,0.5);
  transition: width 0.8s var(--fx-ease) 0.2s;
}
.section-title.animate-in::after { width: 72px; }

/* --------------------------------------------------------------------------
   10) TESTIMONIALS CAROUSEL
   -------------------------------------------------------------------------- */
.fx-carousel { position: relative; max-width: 780px; margin: 2.6rem auto 0; padding: 0 3.2rem; }
.fx-carousel-viewport { overflow: hidden; border-radius: 20px; box-shadow: 0 22px 55px rgba(17,29,53,0.20); }
.fx-carousel-track { display: flex; transition: transform 0.6s var(--fx-ease); will-change: transform; }
.fx-testi-card {
  flex: 0 0 100%;
  min-width: 100%;
  padding: clamp(2rem, 5vw, 3.4rem);
  background: var(--fx-navy-grad);
  position: relative;
  overflow: hidden;
}
.fx-testi-card::before {
  content: '\201D';
  position: absolute;
  top: -1rem; inset-inline-start: 1.4rem;
  font-size: 7rem; line-height: 1;
  color: rgba(212,168,67,0.20);
  font-family: Georgia, 'Times New Roman', serif;
}
.fx-testi-stars { color: var(--gold); letter-spacing: 4px; font-size: 1.05rem; margin-bottom: 1rem; }
.fx-testi-quote {
  color: #fff;
  font-size: clamp(1.05rem, 2.6vw, 1.32rem);
  line-height: 1.75; font-weight: 500;
  margin-bottom: 1.8rem; position: relative; z-index: 1;
}
.fx-testi-author { display: flex; align-items: center; gap: 0.9rem; justify-content: center; }
.fx-testi-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--fx-gold-grad); color: var(--navy-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(212,168,67,0.45); flex: none;
}
.fx-testi-meta { display: flex; flex-direction: column; text-align: start; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.fx-testi-meta strong { color: #fff; font-size: 1.05rem; margin-bottom: 2px; }
.fx-carousel-arrow {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(212,168,67,0.45); background: #fff;
  color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 3;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(27,42,74,0.15);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.fx-carousel-arrow:hover { background: var(--fx-gold-grad); color: #fff; transform: translateY(-50%) scale(1.08); }
.fx-carousel-prev { inset-inline-end: 0; }
.fx-carousel-next { inset-inline-start: 0; }
.fx-carousel-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.fx-carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(27,42,74,0.22); cursor: pointer; padding: 0;
  transition: background 0.3s var(--fx-ease), width 0.3s var(--fx-ease);
}
.fx-carousel-dots button.is-active { background: var(--gold); width: 28px; border-radius: 5px; }
@media (max-width: 560px) { .fx-carousel { padding: 0; } .fx-carousel-arrow { display: none; } }

/* --------------------------------------------------------------------------
   11) FAQ ACCORDION  (modern grid-rows 0fr->1fr reveal)
   -------------------------------------------------------------------------- */
.fx-faq { max-width: 760px; margin: 2.6rem auto 0; display: flex; flex-direction: column; gap: 0.9rem; text-align: start; }
.fx-faq-item {
  background: #fff; border: 1px solid rgba(27,42,74,0.09);
  border-radius: 14px; overflow: hidden;
  transition: box-shadow 0.4s var(--fx-ease), border-color 0.4s var(--fx-ease);
}
.fx-faq-item.is-open { box-shadow: 0 16px 42px rgba(27,42,74,0.12); border-color: rgba(212,168,67,0.45); }
.fx-faq-q {
  width: 100%; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; font-family: inherit;
  font-size: clamp(1rem, 2.4vw, 1.12rem); font-weight: 600;
  color: var(--navy); text-align: start;
}
.fx-faq-q:hover { color: var(--gold-dark); }
.fx-faq-icon { flex: none; width: 26px; height: 26px; position: relative; }
.fx-faq-icon::before, .fx-faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2.5px; background: var(--gold-dark); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform 0.4s var(--fx-ease), background 0.3s;
}
.fx-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.fx-faq-item.is-open .fx-faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.fx-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--fx-ease); }
.fx-faq-item.is-open .fx-faq-a { grid-template-rows: 1fr; }
.fx-faq-a-inner { overflow: hidden; min-height: 0; }
.fx-faq-a p { padding: 0 1.5rem 1.4rem; color: var(--gray-dark); line-height: 1.75; }
@media (prefers-reduced-motion: reduce) {
  .fx-carousel-track, .fx-faq-a { transition: none; }
}

/* --------------------------------------------------------------------------
   12) SPLIT-TEXT — section titles reveal word-by-word (mask rise)
   -------------------------------------------------------------------------- */
.section-title .fx-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.section-title .fx-word > span {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
}
.section-title.animate-in .fx-word > span {
  animation: fx-word-rise 0.8s var(--fx-ease) both;
}
@keyframes fx-word-rise {
  from { transform: translateY(115%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   13) FLOATING PARALLAX SHAPES (decorative, scroll-driven)
   -------------------------------------------------------------------------- */
.fx-testi-section, .fx-faq-section { position: relative; overflow: hidden; }
.fx-testi-section > .container, .fx-faq-section > .container { position: relative; z-index: 2; }
.fx-float {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  border: 2px solid rgba(212,168,67,0.32);
  border-radius: 10px;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .section-title .fx-word > span { transform: none; opacity: 1; transition: none; }
  .fx-float { display: none; }
}

/* --------------------------------------------------------------------------
   14) 3D IMAGE SHOWCASE  (scroll-driven tilt + parallax + hover glare)
   entrance handled by data-anim (robust); 3D is a progressive bonus.
   -------------------------------------------------------------------------- */
.fx-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  margin-top: 2.6rem;
  perspective: 1500px;
}
@media (min-width: 800px) { .fx-showcase-grid { grid-template-columns: repeat(3, 1fr); } }

.fx-showcase-card { margin: 0; }
.fx-showcase-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 50px rgba(17,29,53,0.28);
  border: 1px solid rgba(212,168,67,0.22);
  transform: rotateX(calc(var(--srx, 0deg) + var(--hrx, 0deg))) rotateY(var(--hry, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.fx-showcase-card:hover .fx-showcase-frame {
  box-shadow: 0 32px 78px rgba(17,29,53,0.42), 0 0 0 1.5px rgba(212,168,67,0.6);
}
.fx-showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.2) translateY(var(--shift, 0px));
  transition: transform 0.25s ease-out;
}
.fx-showcase-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 10%), rgba(255,255,255,0.42), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.fx-showcase-card:hover .fx-showcase-glare { opacity: 1; }
/* gold corner accent that grows on hover */
.fx-showcase-frame::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 0; height: 0;
  border-block-start: 56px solid rgba(212,168,67,0.85);
  border-inline-start: 56px solid transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.fx-showcase-card:hover .fx-showcase-frame::after { opacity: 1; }
.fx-showcase-cap {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
}

@media (prefers-reduced-motion: reduce) {
  .fx-showcase-frame, .fx-showcase-frame img { transform: none !important; }
}

/* ==========================================================================
   15) MOBILE COMFORT  (≤767px)
   On a phone the mouse-driven FX is gone, so what matters is breathing room and
   reach — NOT density. The page felt cramped, so this layer opens it up:
   generous side/section spacing, large 48px tap targets, readable 16px+ type
   with relaxed line-height, and a smaller hero halo so the headline leads.
   Loaded after style.css so it wins on phones.
   ========================================================================== */
@media (max-width: 767px) {
  /* — Side breathing room so nothing hugs the screen edge — */
  .container { padding-inline: 1.35rem; }

  /* — Hero: smaller halo leads with the headline; roomy, readable — */
  .hero-logo-main { width: 88px; height: 88px; }
  .hero-logo-bg   { width: 232px; height: 232px; }
  .hero-ring              { width: 204px; height: 204px; }
  .hero-ring:nth-child(2) { width: 158px; height: 158px; }
  .hero-ring:nth-child(3) { width: 114px; height: 114px; }
  .hero-content  { padding-block: 3rem; }
  .hero-title    { font-weight: 800; line-height: 1.24; letter-spacing: -0.01em; margin-bottom: 1.2rem; }
  .hero-subtitle { font-size: 1.05rem; line-height: 1.75; letter-spacing: 0; max-width: 38ch; }

  /* — Open up the vertical rhythm between sections (the page felt cramped) — */
  .services-section, .fx-showcase, .fx-stats, .cta-banner { padding-block: 3.75rem; }
  .services-grid { gap: 1.75rem; }
  .section-title { font-size: clamp(1.6rem, 6.4vw, 2rem); margin-bottom: 0.55rem; }
  .section-subtitle { font-size: 1.02rem; line-height: 1.65; margin-bottom: 1.75rem; }

  /* — Service cards: roomy padding + readable text + always-on gold rail — */
  .service-card {
    padding: 2.1rem 1.7rem;
    border-radius: 18px;
    border-color: #ECEFF5;
    box-shadow: 0 8px 26px rgba(27,42,74,0.10), inset 0 3px 0 0 #D4A843;
  }
  .service-card:active {
    transform: scale(0.99);
    box-shadow: 0 13px 34px rgba(27,42,74,0.16), inset 0 3px 0 0 #D4A843;
  }
  .service-card-icon { width: 64px; height: 64px; margin-bottom: 1.2rem; }
  .service-card-title { font-size: 1.24rem; margin-bottom: 0.65rem; }
  .service-card-desc { font-size: 1.02rem; line-height: 1.72; }

  /* — Feature items: comfortable padding + permanent gold rail — */
  .service-features { gap: 1.2rem; }
  .service-feature-item { padding: 1.5rem 1.5rem; }
  .service-feature-item::before { transform: scaleY(1); opacity: 0.8; }

  /* — Stats band: airy spacing between numbers — */
  .fx-stats-grid { gap: 2.25rem 1.25rem; }

  /* — 3D showcase: comfortable gap — */
  .fx-showcase-grid { gap: 2.1rem; margin-top: 2.25rem; }

  /* — Accessibility: readable base text + generous 48px tap targets — */
  body { font-size: 16px; }
  .footer-links a, .nav-links a, .dropdown-menu a, .service-card-link {
    min-height: 48px; display: flex; align-items: center;
  }

  /* — Touch CTAs: full-width, comfortable 52px height — */
  .cta-banner .btn, .hero-cta .btn {
    width: 100%; max-width: 340px; min-height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
  }
}

/* Extra-small phones — keep it roomy, trim only the halo a touch */
@media (max-width: 380px) {
  .container { padding-inline: 1.2rem; }
  .hero-logo-bg { width: 214px; height: 214px; }
  .hero-ring    { width: 188px; height: 188px; }
  .service-card { padding: 1.9rem 1.4rem; }
}
