/* ===========================
   Prevail Metals — Site Styles
   Black/Gray/Gold theme + brighter logo + ombré headings
   =========================== */

:root{
  --bg:#0f0f10;
  --panel:#161719;
  --card:#1b1c1f;
  --text:#f4f4f5;
  --muted:#9aa0a6;
  --gold:#c8aa62;
  --border:#2a2b2f;
  --max:1100px;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}
.container{max-width:var(--max);margin:0 auto;padding:20px}

/* Utilities */
.flex{display:flex}
.between{justify-content:space-between}
.vcenter{align-items:center}
.muted{color:var(--muted)}
.copy{padding:8px 0;border-top:1px solid var(--border);margin-top:12px;text-align:center}

/* Ombré (white → gold) text */
.ombre,
.hero h1,
.featured h2,
.info h3,
.card h3{
  background:linear-gradient(180deg,#ffffff 0%, var(--gold) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Top ticker bar */
.topbar{
  background:#111;
  border-bottom:1px solid var(--border);
  font-size:14px;
  color:var(--muted);
}
.ticker{display:flex;gap:10px;align-items:center}
.ticker strong{color:var(--text)}
.ticker .sep{color:#555;margin:0 8px}

/* Header / Brand */
.site-header{
  background:var(--panel);
  border-bottom:1px solid var(--border);
  box-shadow:0 6px 24px rgba(0,0,0,.35);
}
.site-header.sticky{position:sticky;top:0;z-index:10}

.brand{
  display:flex;gap:14px;align-items:center;
  font-weight:800;color:var(--text)
}
.brand img{
  height:64px; /* Make logo more prevalent */
  width:auto;
  filter:brightness(1.6) contrast(1.1) drop-shadow(0 0 12px rgba(200,170,98,.35));
}
.brand span{font-size:1.15rem;letter-spacing:.3px}

.main-nav a{
  margin-left:16px;color:var(--text);opacity:.92;position:relative
}
.main-nav a:hover{opacity:1}
.main-nav a[aria-current="page"]::after{
  content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;background:var(--gold);opacity:.9;border-radius:2px
}

/* Hero */
.hero{padding:48px 20px 28px}
.hero h1{font-size:2.2rem;margin:0 0 8px}
.hero p{color:var(--muted);margin:0 0 16px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}

/* Buttons */
.button{
  display:inline-block;
  background:var(--gold);
  color:#111;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid #a08a4f;
  box-shadow:0 2px 10px rgba(200,170,98,.25);
  transition:transform .08s ease;
}
.button:hover{transform:translateY(-1px)}
.button.ghost{background:transparent;color:var(--gold);border-color:var(--gold);box-shadow:none}
.button.small{padding:8px 12px;font-size:.9rem}

/* Featured section & Grid */
.featured h2{margin:0 0 12px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  transition:box-shadow .15s ease, transform .15s ease;
}
.card:hover{box-shadow:0 10px 24px rgba(0,0,0,.35);transform:translateY(-2px)}
.card img{border-radius:8px;border:1px solid var(--border);background:#0c0c0d}
.card h3{margin:10px 0 6px;font-size:1.05rem}
.price-row{margin:8px 0}

/* Info blocks */
.info-rows{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;margin:24px 0
}
.info{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px
}

/* Filters (Inventory) */
.filters{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}
.filters input,.filters select{
  background:#0f0f10;color:var(--text);
  border:1px solid var(--border);
  border-radius:8px;padding:10px;
  outline:none;min-width:200px
}
.filters input:focus,.filters select:focus{border-color:#3a3b3f;box-shadow:0 0 0 3px rgba(200,170,98,.15)}

/* Footer */
.site-footer{
  background:#111;
  border-top:1px solid var(--border);
  margin-top:28px
}
.footer-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px
}

/* Responsive tweaks */
@media (max-width:720px){
  .brand img{height:56px}
  .hero{padding:36px 16px 20px}
  .hero h1{font-size:1.9rem}
  .main-nav a{margin-left:12px}
}

/* Motion preference */
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}
/* Reset */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
}

/* Forge Background Video */
#forgeVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* keeps video behind everything */
}
/* ===== Intro video & reveal ===== */
.intro-video{
  position:fixed; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0; /* base layer */
}

/* Keep a poster image background visible even after video hides */
body{
  background: #0f0f10 url("img/forge_still.jpg") center/cover no-repeat fixed;
}

/* Optional soft scrim; sits above video, below content */
.video-scrim{
  position:fixed; inset:0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.15), rgba(0,0,0,.5));
  z-index:0;
  pointer-events:none;
}

/* Content wrapper is above video/scrim */
.page-content{ position:relative; z-index:1; }

/* Hide content until intro finishes; then fade in */
body.intro-playing .page-content{ opacity:0; transform:translateY(6px); pointer-events:none; }
body.intro-done .page-content{ opacity:1; transform:translateY(0); transition: opacity .5s ease, transform .5s ease; }

/* After reveal, hide the video element itself (poster remains via body background) */
.intro-hidden{ display:none !important; }

/* Make top bars slightly translucent so the forged still peeks through */
.topbar,.site-header{
  background: rgba(22,23,25,0.65);
  backdrop-filter: saturate(1.1) blur(2px);
}

/* Optional glass look for sections/cards */
.glass{
  background: rgba(27,28,31,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  backdrop-filter: blur(3px) saturate(1.1);
  padding: 12px;
}

/* Respect reduced motion: skip the intro and show content */
@media (prefers-reduced-motion: reduce){
  body .page-content{ opacity:1 !important; transform:none !important; }
  .intro-video{ display:none !important; }
  .video-scrim{ display:none !important; }
  body{ background: #0f0f10 url("img/forge_still.jpg") center/cover no-repeat fixed; }
}
/* ===== Intro video one-time reveal ===== */
.intro-video{
  position:fixed; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0; /* base layer */
}

/* Keep a poster/still as background after reveal */
body{
  background: #0f0f10 url("img/prevail_intro_poster.jpg") center/cover no-repeat fixed;
}

/* Soft vignette for readability over the image/video */
.video-scrim{
  position:fixed; inset:0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.18), rgba(0,0,0,.55));
  z-index:0;
  pointer-events:none;
}

/* Content wrapper sits above intro */
.page-content{ position:relative; z-index:1; }

/* Fade in content after intro */
body.intro-playing .page-content{ opacity:0; transform:translateY(6px); pointer-events:none; }
body.intro-done .page-content{ opacity:1; transform:translateY(0); transition: opacity .5s ease, transform .5s ease; }

/* Hide the video element after reveal (poster remains via body background) */
.intro-hidden{ display:none !important; }

/* Make bars translucent so the background peeks through */
.topbar, .site-header{
  background: rgba(22,23,25,0.65);
  backdrop-filter: saturate(1.1) blur(2px);
}

/* Optional glass effect for sections/cards */
.glass{
  background: rgba(27,28,31,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  backdrop-filter: blur(3px) saturate(1.1);
  padding: 12px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .intro-video{ display:none !important; }
  .video-scrim{ display:none !important; }
  body .page-content{ opacity:1 !important; transform:none !important; }
  body{ background: #0f0f10 url("img/prevail_intro_poster.jpg") center/cover no-repeat fixed; }
}
