/* ==========================================================================
   Decora — premium motion layer (Heritage Gold). Loaded after style.css.
   Everything here is decorative; content works without it.
   ========================================================================== */

/* ---- Ambient moving gold light behind every page ---- */
.ambient { position: fixed; inset: 0; z-index: -5; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at 50% -20%, rgba(var(--gold-rgb), .07), transparent 60%), var(--navy-950); }
.ambient i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.ambient i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: 8vh; background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 65%); animation: orbA 26s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { width: 38vmax; height: 38vmax; right: -10vmax; top: 45vh; background: radial-gradient(circle, rgba(var(--accent2-rgb), .18), transparent 65%); animation: orbB 32s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { width: 30vmax; height: 30vmax; left: 30vw; bottom: -14vmax; background: radial-gradient(circle, rgba(var(--gold-rgb), .12), transparent 65%); animation: orbA 38s ease-in-out infinite alternate-reverse; }
.ambient::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(var(--gold-rgb), .035) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--gold-rgb), .035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  transform: translateY(calc(var(--scroll, 0) * -0.08px)); }
@keyframes orbA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(8vw, 10vh, 0) scale(1.15); } }
@keyframes orbB { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-10vw, -8vh, 0) scale(.9); } }
body { background: transparent; }

/* ---- Scroll progress bar ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: var(--grad); box-shadow: 0 0 12px rgba(var(--gold-rgb), .7); }

/* ---- Header: shrinks on scroll, gold hairline ---- */
.site-header.scrolled { height: 62px; }
.site-header.scrolled .logo-chip img { height: 34px; }
.logo-chip img { transition: height .3s var(--ease); }
.site-header.scrolled::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .55), transparent); }

/* ---- Hero: gold particles canvas, light sweep, vignette ---- */
.fx-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero .hero-media::after, .page-hero .hero-media::after { content: ""; position: absolute; inset: -20%; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(var(--gold-rgb), .13) 48%, rgba(255,255,255,.06) 50%, transparent 58%);
  animation: lightSweep 9s ease-in-out infinite; }
@keyframes lightSweep { 0%, 15% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.hero::before { background: linear-gradient(90deg, rgba(var(--deep-rgb), .92) 0%, rgba(var(--deep-rgb), .62) 45%, rgba(var(--deep-rgb), .2) 100%), radial-gradient(ellipse at 75% 60%, transparent 30%, rgba(var(--deep-rgb), .6) 100%) !important; }
.hero h1 .text-grad { background-size: 220% 100%; animation: goldFlow 6s ease-in-out infinite; }
@keyframes goldFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .eyebrow, .hero .legacy-badge { animation-delay: .1s; }

/* ---- Animated stats strip ---- */
.stats-strip { position: relative; z-index: 2; margin-top: -54px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(var(--gold-rgb), .25);
  background: rgba(var(--gold-rgb), .18); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stat { padding: 22px 18px; text-align: center; background: rgba(var(--surface-rgb), .88); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(var(--gold-rgb), .14), transparent 70%); opacity: 0; transition: opacity .4s; }
.stat:hover::before { opacity: 1; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; letter-spacing: -.02em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } .stat { padding: 30px 20px; } }

/* ---- Premium scroll reveal (applied by premium.js) ---- */
.pv { opacity: 0; transform: translate3d(0, 42px, 0) scale(.98); filter: blur(6px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: var(--pvd, 0s); }
.pv.pv-left { transform: translate3d(-48px, 0, 0); }
.pv.pv-right { transform: translate3d(48px, 0, 0); }
.pv.in { opacity: 1; transform: none; filter: none; }

/* ---- Section dividers: animated gold hairline ---- */
main > section + section, .section + .section, .section-tight + .section, .section + .section-tight { position: relative; }
.divider-line { position: absolute; left: 50%; top: 0; width: min(1100px, 86vw); height: 1px; transform: translateX(-50%); overflow: hidden; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .22), transparent); }
.divider-line::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; left: -20%; background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .95), transparent); animation: hairline 6s ease-in-out infinite; }
@keyframes hairline { 0% { left: -20%; } 60%, 100% { left: 110%; } }

/* ---- Cards: lift, gold glow border, image zoom, cursor spotlight ---- */
.range-card, .offer-tile, .feature-brand, .service-card, .product-card, .glass, .brand-tile, .stat { --mx: 50%; --my: 50%; }
.range-card, .offer-tile, .feature-brand, .service-card, .product-card, .brand-tile { position: relative; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.range-card::after, .offer-tile::after, .feature-brand::after, .service-card::after, .product-card::after, .brand-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--gold-rgb), .16), transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .55); }
.range-card:hover::after, .offer-tile:hover::after, .feature-brand:hover::after, .service-card:hover::after, .product-card:hover::after, .brand-tile:hover::after { opacity: 1; }
.range-card:hover, .offer-tile:hover, .feature-brand:hover, .service-card:hover, .product-card:hover, .brand-tile:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -28px rgba(0,0,0,.9), 0 0 40px -12px rgba(var(--accent-rgb), .45); }
.offer-tile img, .range-card img, .service-card img, .feature-brand img { transition: transform 1.1s var(--ease); }
.offer-tile:hover img, .range-card:hover img, .service-card:hover img { transform: scale(1.08); }

/* ---- Gold button shimmer ---- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1; pointer-events: none; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 252, 235, .75), transparent); animation: btnShimmer 4.5s ease-in-out infinite; }
@keyframes btnShimmer { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
.btn-primary > * { position: relative; z-index: 2; }

/* ---- Brand marquee: premium gold wordmarks ---- */
.brand-marquee { padding: clamp(34px, 6vw, 60px) 0; }
.brand-marquee .marquee { padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brand-marquee .marquee-track { gap: 18px; animation-duration: 55s; }
.brand-marquee .marquee.reverse .marquee-track { animation-duration: 62s; }
.brand-marquee .wordmark { padding: 14px 26px; border-radius: 14px; font-size: clamp(1rem, 2.2vw, 1.25rem); letter-spacing: .06em; color: #e9dcc0;
  background: linear-gradient(160deg, rgba(var(--panel-rgb), .55), rgba(var(--surface-rgb), .8)); border: 1px solid rgba(var(--gold-rgb), .18); transition: color .3s, border-color .3s, box-shadow .3s, transform .3s; white-space: nowrap; }
.brand-marquee .wordmark:hover { color: #fff; border-color: rgba(var(--gold-rgb), .7); box-shadow: 0 0 26px -6px rgba(var(--accent-rgb), .6); transform: translateY(-3px); }
.brand-marquee .wordmark.wm-gold { background: linear-gradient(160deg, rgba(var(--accent-rgb), .18), rgba(var(--surface-rgb), .85)); color: var(--gold); }

/* ---- Parallax backdrop sections ---- */
[data-parallax-bg] { background-attachment: scroll; background-size: cover; background-position: center calc(50% + var(--py, 0px)); }

/* ---- Mobile: keep it light ---- */
@media (max-width: 759px) {
  .ambient i { filter: blur(60px); opacity: .4; }
  .stats-strip { margin-top: -30px; }
  .range-card:hover, .offer-tile:hover, .feature-brand:hover, .service-card:hover, .product-card:hover, .brand-tile:hover { transform: translateY(-4px); }
}

/* ---- Reduced motion: everything static ---- */
@media (prefers-reduced-motion: reduce) {
  .ambient i, .ambient::after, .divider-line::after, .btn-primary::before, .hero h1 .text-grad,
  .hero .hero-media::after, .page-hero .hero-media::after { animation: none !important; transform: none !important; }
  .fx-canvas { display: none; }
  .pv { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .range-card:hover, .offer-tile:hover, .feature-brand:hover, .service-card:hover, .product-card:hover, .brand-tile:hover { transform: none; }
}
html { background: var(--navy-950); }
