/* ============================================
   STR8GAS DIECAST — MAIN STYLESHEET
   Dark theme, electric blue + chrome silver
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:ital,wght@0,300;0,400;0,500;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #06C8F0;
  --blue-deep: #0490B5;
  --blue-glow: rgba(6,200,240,0.25);
  --silver: #C4C8D0;
  --silver-light: #E2E6EC;
  --white: #F0F4F8;
  --offwhite: #B8BEC8;
  --dark: #07050A;
  --dark2: #0D0A12;
  --panel: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --border-blue: rgba(6,200,240,0.2);
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- NOISE GRAIN ---- */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
.scanlines {
  position: fixed; inset: 0; z-index: 199; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
}
.vignette {
  position: fixed; inset: 0; z-index: 198; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 70%, rgba(7,5,10,0.35) 100%);
}

/* ---- CORNER BRACKETS ---- */
.corners { position: fixed; inset: 14px; z-index: 100; pointer-events: none; }
.corners span { position: absolute; width: 32px; height: 32px; }
.corners span:nth-child(1) { top: 0; left: 0; border-top: 1.5px solid var(--border-blue); border-left: 1.5px solid var(--border-blue); }
.corners span:nth-child(2) { top: 0; right: 0; border-top: 1.5px solid var(--border-blue); border-right: 1.5px solid var(--border-blue); }
.corners span:nth-child(3) { bottom: 0; left: 0; border-bottom: 1.5px solid var(--border-blue); border-left: 1.5px solid var(--border-blue); }
.corners span:nth-child(4) { bottom: 0; right: 0; border-bottom: 1.5px solid var(--border-blue); border-right: 1.5px solid var(--border-blue); }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 70px;
  border-bottom: 2px solid rgba(6,200,240,0.3);
  background: #1C1C2E !important; isolation: isolate;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 46px; width: 46px; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 0 12px rgba(6,200,240,0.8)) brightness(1.3); }
.nav-logo span { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #FFFFFF; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #FFFFFF; text-decoration: none;
  padding: 8px 14px; border-radius: 2px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--blue); background: rgba(6,200,240,0.08); }
.nav-links a.active { color: var(--blue); }
.nav-cta {
  font-family: var(--font-ui); font-size: 12px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: #FFFFFF !important; background: var(--blue) !important;
  padding: 9px 20px !important;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  animation: navCtaPulse 3s ease-in-out infinite;
}
@keyframes navCtaPulse {
  0%,100% { box-shadow: 0 0 16px rgba(6,200,240,0.3); }
  50% { box-shadow: 0 0 30px rgba(6,200,240,0.6); }
}
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all .3s; }
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: #0D0A12;
  z-index: 99999;
  overflow-y: auto;
}
.nav-mobile.open { display: flex !important; }
.nav-mobile a {
  display: block;
  font-family: var(--font-ui); font-size: 15px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #ffffff; text-decoration: none;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: none;
  transition: color .2s;
}
.nav-mobile a:hover { color: var(--blue); }
.nav-mobile.open { display: flex; }


/* ---- PAGE WRAPPER ---- */
.page { padding-top: 70px; min-height: 100vh; }
.canvas-bg { position: fixed; inset: 0; z-index: -1; }
.page-content { position: relative; z-index: 10; }

/* ---- SECTION BASE ---- */
section { padding: 100px 48px; position: relative; }
.section-eyebrow {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.section-eyebrow::after { content: ''; flex: 1; max-width: 50px; height: 1px; background: var(--blue); opacity: 0.35; }
.section-title { font-family: var(--font-display); font-size: clamp(48px, 7vw, 96px); line-height: 0.9; color: var(--white); margin-bottom: 30px; }
.section-title em { color: var(--blue); font-style: normal; }
.section-title .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.15); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; font-family: var(--font-ui);
  font-size: 14px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.08); transform: translateX(-101%); transition: transform .3s ease; }
.btn:hover::after { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--dark); box-shadow: 0 2px 20px rgba(6,200,240,0.25); }
.btn-primary:hover { box-shadow: 0 6px 32px rgba(6,200,240,0.45); }
/* Keep old .btn-red working as alias */
.btn-red { background: var(--blue); color: var(--dark); box-shadow: 0 2px 20px rgba(6,200,240,0.25); }
.btn-red:hover { box-shadow: 0 6px 32px rgba(6,200,240,0.45); }
.btn-silver { background: var(--silver); color: var(--dark); }
.btn-gold { background: var(--silver); color: var(--dark); }
.btn-ghost { background: transparent; color: var(--silver-light); border: 1px solid rgba(196,200,208,0.3); clip-path: none; }
.btn-ghost:hover { border-color: var(--silver-light); color: var(--white); box-shadow: 0 0 16px rgba(196,200,208,0.15); }
.btn-sm { padding: 10px 22px; font-size: 12px; }

/* ---- REFERRAL BANNER ---- */
.referral-banner {
  background: var(--blue); border: none;
  padding: 20px 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.referral-banner .rb-icon { font-size: 28px; }
.referral-banner .rb-text { flex: 1; }
.referral-banner .rb-title { font-family: var(--font-ui); font-size: 16px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #000000; }
.referral-banner .rb-sub { font-size: 13px; color: rgba(0,0,0,0.7); margin-top: 3px; }

/* ---- PANEL / CARD ---- */
.panel { background: var(--panel); border: 1px solid var(--border); padding: 32px; position: relative; }
.panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--silver)); opacity: 0; transition: opacity .3s; }
.panel:hover::before { opacity: 1; }

/* ---- FOOTER ---- */
footer {
  background: #1C1C2E !important; border-top: 2px solid rgba(6,200,240,0.3); padding: 40px 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.footer-logo img { height: 28px; opacity: 1; }
.footer-center { text-align: center; font-family: var(--font-ui); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #ffffff; }
.footer-links { display: flex; justify-content: flex-end; gap: 20px; }
.footer-links a { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #ffffff; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--blue); }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- ADMIN ONLY — hidden unless URL has ?admin=heffisdaadmin ---- */
.admin-only { display: none !important; }
.admin-mode .admin-only { display: block !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 70px 24px; }
  footer { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .footer-links { justify-content: center; }
  .corners { display: none; }
}
