/*
Theme Name: Justin Buys Video Games
Theme URI: https://games.j2sw.com
Author: Justin Wilson
Description: A focused lead-generation theme for buying video games, collections, and arcade machines.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: jbvg
*/

:root {
  --ink: #f7f3e8;
  --muted: #b9c3d1;
  --navy: #081424;
  --navy-2: #0d2038;
  --panel: #112943;
  --blue: #37a8ff;
  --blue-deep: #1479c9;
  --orange: #ff9d42;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.25rem; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.75rem, 7vw, 5.8rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); max-width: 17ch; }
h3 { font-size: 1.35rem; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tight { padding: 48px 0; }
.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--orange);
  font: 700 0.78rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lede { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--ink);
  font-weight: 750;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--orange); }
.pixel { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }
.accent { color: var(--blue); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 20, 36, 0.9);
  backdrop-filter: blur(16px);
}
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; line-height: 1; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-copy small { display: block; margin-top: 5px; color: var(--blue); font: 700 0.65rem/1 ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.mobile-nav-panel { position: absolute; right: 0; top: 42px; width: min(290px, calc(100vw - 40px)); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-2); box-shadow: var(--shadow); }
.mobile-nav-panel a { display: block; padding: 9px 6px; color: var(--ink); text-decoration: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 21px;
  border: 2px solid transparent;
  border-radius: 11px;
  color: #03111f;
  background: var(--blue);
  box-shadow: 0 12px 32px rgba(55, 168, 255, 0.22);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover, .button:focus-visible { color: #03111f; background: #78c7ff; transform: translateY(-2px); }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line); box-shadow: none; }
.button-secondary:hover, .button-secondary:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.button-small { min-height: 42px; padding: 10px 15px; font-size: 0.88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(rgba(55, 168, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 168, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(55, 168, 255, 0.18), transparent 34%),
    var(--navy);
  background-size: 38px 38px, 38px 38px, auto, auto;
}
.hero::after { content: ""; position: absolute; inset: auto -10% -38% 45%; height: 560px; border-radius: 50%; background: rgba(255, 157, 66, 0.08); filter: blur(70px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 64px; padding: 100px 0 80px; }
.hero-copy p { max-width: 660px; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.35rem); }
.hero-art { position: relative; min-height: 450px; }
.game-stack { position: absolute; inset: 20px 0 0; }
.game-card {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.game-card svg { width: 62%; height: 62%; }
.game-card-one { width: 250px; height: 310px; right: 0; top: 0; transform: rotate(5deg); }
.game-card-two { width: 230px; height: 180px; left: 0; top: 170px; transform: rotate(-7deg); }
.game-card-three { width: 175px; height: 140px; right: 28px; bottom: 0; transform: rotate(3deg); }
.signal-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 24px var(--orange); }
.signal-one { left: 5%; top: 10%; }
.signal-two { right: 10%; top: 56%; background: var(--blue); box-shadow: 0 0 24px var(--blue); }

.proof-bar { border-block: 1px solid var(--line); background: var(--navy-2); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 26px 24px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: 1.05rem; }
.proof-item span { color: var(--muted); font-size: 0.88rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-2); }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 28px; border-radius: 14px; color: var(--navy); background: var(--blue); font-weight: 950; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card a { font-weight: 850; text-decoration: none; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 42px; }
.step { position: relative; padding-top: 72px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; color: var(--orange); font: 900 2.4rem/1 ui-monospace, monospace; }
.step p { color: var(--muted); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.promise-panel { padding: clamp(28px, 5vw, 54px); border: 1px solid rgba(55, 168, 255, 0.35); border-radius: 28px; background: linear-gradient(145deg, rgba(55,168,255,.12), rgba(13,32,56,.85)); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 30px 0 0; }
.check-list li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }

.estate-band { position: relative; overflow: hidden; background: var(--ink); color: var(--navy); }
.estate-band .section-label { color: #a84b00; }
.estate-band .lede { color: #3f4b58; }
.estate-band .button-secondary { color: var(--navy); border-color: rgba(8,20,36,.25); }
.estate-band .button-secondary:hover { color: var(--navy); background: rgba(8,20,36,.08); }

.about-photo { min-height: 440px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, var(--panel), #183b5c); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { padding: 38px; text-align: center; }
.photo-placeholder .brand-mark { width: 86px; height: 86px; margin: 0 auto 22px; }
.photo-placeholder strong { display: block; font-size: 1.3rem; }
.photo-placeholder span { color: var(--muted); font-size: 0.92rem; }

.service-box { padding: clamp(32px, 6vw, 70px); border: 1px solid var(--line); border-radius: 30px; background: var(--navy-2); }
.location-line { margin-top: 28px; color: var(--orange); font: 800 0.92rem/1.5 ui-monospace, monospace; }
.final-cta { text-align: center; background: radial-gradient(circle at center, rgba(55,168,255,.14), transparent 50%); }
.final-cta h2, .final-cta .lede { margin-inline: auto; }
.final-cta .button-row { justify-content: center; }

.page-hero { padding: 110px 0 72px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 82% 10%, rgba(55,168,255,.17), transparent 34%); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.content-wrap { padding: 70px 0 110px; }
.content-wrap h2 { margin-top: 2.2em; }
.content-wrap h3 { margin-top: 1.8em; }
.content-wrap ul, .content-wrap ol { padding-left: 1.25rem; }
.content-wrap li { margin-bottom: 0.65rem; }
.notice { margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--orange); background: var(--navy-2); }
.offer-layout { display: grid; grid-template-columns: 0.68fr 1.32fr; gap: 44px; align-items: start; }
.offer-aside { position: sticky; top: 110px; }

.jbvg-form { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 24px; background: var(--navy-2); }
.jbvg-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.jbvg-field { margin-bottom: 18px; }
.jbvg-field-full { grid-column: 1 / -1; }
.jbvg-field label, .jbvg-form legend { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 800; }
.jbvg-field input, .jbvg-field select, .jbvg-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  color: var(--ink);
  background: #071728;
  font: inherit;
}
.jbvg-field textarea { min-height: 130px; resize: vertical; }
.jbvg-field input:focus, .jbvg-field select:focus, .jbvg-field textarea:focus { outline: 3px solid rgba(55,168,255,.35); border-color: var(--blue); }
.jbvg-help { display: block; margin-top: 6px; color: var(--muted); font-size: 0.82rem; }
.jbvg-checkbox { display: flex; gap: 10px; align-items: flex-start; }
.jbvg-checkbox input { width: auto; margin-top: 7px; }
.jbvg-alert { margin-bottom: 24px; padding: 15px 18px; border-radius: 9px; }
.jbvg-alert-success { background: rgba(45, 180, 110, .16); border: 1px solid rgba(45,180,110,.5); }
.jbvg-alert-error { background: rgba(255, 90, 90, .13); border: 1px solid rgba(255,90,90,.45); }
.jbvg-hp { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 58px 0 30px; border-top: 1px solid var(--line); background: #050e19; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 44px; }
.footer-heading { color: var(--ink); font-size: 0.82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 14px 0 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-note { max-width: 470px; color: var(--muted); font-size: 0.9rem; }
.copyright { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: #8391a2; font-size: 0.78rem; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { min-height: auto; }
  .hero-grid, .split, .offer-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 78px; gap: 20px; }
  .hero-art { min-height: 360px; max-width: 520px; width: 100%; margin-inline: auto; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .offer-aside { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  body.admin-bar .site-header { top: 46px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .header-row { min-height: 68px; }
  .brand-copy { font-size: 0.82rem; }
  .hero-grid { padding-top: 62px; }
  .hero-art { min-height: 300px; }
  .game-card-one { width: 190px; height: 245px; }
  .game-card-two { width: 175px; height: 130px; top: 145px; }
  .game-card-three { width: 135px; height: 105px; }
  .proof-grid, .jbvg-form-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .button-row { flex-direction: column; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

