/* =========================================================
   A5Collection — Custom styles & animations
   (Tailwind handles the rest via the Play CDN in index.html)
   ========================================================= */

:root {
  --a5-bg:      #0B0B0D;
  --a5-bg-2:    #111114;
  --a5-gold:    #C9A227;
  --a5-gold-2:  #E7C86A;
  --a5-text:    #F5F5F3;
  --a5-muted:   #A1A1A6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--a5-bg);
  color: var(--a5-text);
}

.font-display { font-family: 'Cormorant Garamond', Georgia, serif; letter-spacing: -0.01em; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Subtle film-grain / vignette for depth (luxury) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 120% at 50% 0%, transparent 60%, rgba(0,0,0,.45) 100%);
}

/* ---- Gold accents ---- */
.text-gold      { color: var(--a5-gold-2); }
.gold-gradient  { background: linear-gradient(120deg, var(--a5-gold) 0%, var(--a5-gold-2) 100%); }
.gold-line::after {
  content: ""; display: block; width: 56px; height: 2px; margin-top: .75rem;
  background: linear-gradient(90deg, var(--a5-gold), transparent);
}
.gold-line.center::after { margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, transparent, var(--a5-gold), transparent); }

/* ---- Gradient image placeholders (used when img is empty) ---- */
.ph {
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(231,200,106,.18), transparent 55%),
    radial-gradient(120% 90% at 90% 90%, rgba(201,162,39,.14), transparent 50%),
    linear-gradient(160deg, #1a1a1f 0%, #0d0d10 100%);
}
.ph-emoji { filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }

/* ---- Reveal-on-scroll ----
   Base state is VISIBLE. Only once JS confirms IntersectionObserver
   support (adds .reveal-ready) do un-revealed items hide, so content is
   never stuck invisible if JS/observer fails. */
.reveal {
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---- Hero load animation ---- */
@keyframes floatUp { from { opacity:0; transform: translateY(24px);} to {opacity:1; transform:translateY(0);} }
.hero-anim { opacity: 0; animation: floatUp .9s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-anim.h1 { animation-delay: .15s; }
.hero-anim.h2 { animation-delay: .35s; }
.hero-anim.h3 { animation-delay: .55s; }

/* ---- Floating WhatsApp pulse ---- */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-pulse { animation: pulseRing 2.4s infinite; }

/* ---- Card hover glow ---- */
.card-glow { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.card-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(231,200,106,.45);
  box-shadow: 0 12px 40px -12px rgba(201,162,39,.35);
}

/* ---- Buttons ---- */
.btn-wa   { background:#25D366; color:#062012; }
.btn-wa:hover   { filter: brightness(1.07); transform: translateY(-1px); }
.btn-call { border:1px solid rgba(231,200,106,.4); color: var(--a5-gold-2); }
.btn-call:hover { background: rgba(231,200,106,.08); }
.btn-wa, .btn-call { transition: all .25s ease; }

/* ---- Hide scrollbar (filter bar) ---- */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---- Catalog filter chips ---- */
.chip-active {
  background: linear-gradient(120deg, var(--a5-gold), var(--a5-gold-2));
  color: #0B0B0D !important;
  border-color: transparent !important;
  font-weight: 600;
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-anim { opacity: 1 !important; animation: none; }
  .wa-pulse { animation: none; }
}
