/* ============================================================
   Atrie's Gaming Center — static site styles.
   Reuses the design-system tokens verbatim (no variables
   redefined here) and adds the layout the React build kept in
   inline styles. Mobile-first: base rules are the phone layout;
   media queries add the multi-column desktop layout.
   ============================================================ */
@import url('tokens/fonts.css');
@import url('tokens/colors.css');
@import url('tokens/typography.css');
@import url('tokens/spacing.css');
@import url('tokens/effects.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {                 /* ambient neon vignette */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grad-vignette);
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--line-tight); margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--s3); }
section { padding-block: var(--s6); }
.eyebrow {
  font-family: var(--font-ui); font-weight: var(--fw-semibold); font-size: 13px;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--pink);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
}
.eyebrow svg { width: 16px; height: 16px; }
.accent {
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head { max-width: 640px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
.sec-head p { color: var(--muted); margin: 16px 0 0; font-size: var(--fs-lead); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-ui); font-weight: var(--fw-semibold); font-size: 15px; letter-spacing: .02em;
  padding: 14px 24px; min-height: 48px; border-radius: var(--radius-pill); border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: var(--glow-pink); }
.btn-primary:hover { transform: var(--lift); box-shadow: var(--glow-pink-strong); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { transform: var(--lift); border-color: var(--text); background: rgba(255,255,255,.08); }

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 100; min-height: var(--header-h);
  background: rgba(10,10,15,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 13px; border-radius: 10px; color: var(--muted); font-weight: var(--fw-medium); font-size: 15px; white-space: nowrap; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links .btn { padding: 11px 20px; min-height: 44px; font-size: 14px; }
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px;
  background: none; color: var(--text); cursor: pointer;
}
.hamburger svg { width: 22px; height: 22px; }

/* Mobile: collapse links into a toggled panel */
.nav-links {
  position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
  background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px var(--s3) var(--s3);
  transform: translateY(-120%); transition: transform .3s var(--ease); max-height: calc(100dvh - var(--header-h)); overflow: auto;
}
.nav-links.open { transform: none; }
.nav-links a { padding: 14px; font-size: 17px; }
.nav-links .btn { justify-content: center; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s6); }
.hero h1 { font-size: var(--fs-hero); font-weight: var(--fw-bold); }
.hero .lead { font-size: var(--fs-lead); color: var(--muted); margin: 24px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-size: 28px; display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
.hero-media { margin-top: var(--s5); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16/11; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- TCG marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-block: 22px; }
.marquee-track { display: flex; width: max-content; gap: 0; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 20px; color: var(--muted-2); }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin: 0 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- What's inside: card grid (grid > carousel: simpler, better on mobile) ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: var(--s5); }
.card { background: var(--grad-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card:hover { transform: var(--lift-card); border-color: var(--line-2); box-shadow: var(--shadow-card-hover); }
.card-media { aspect-ratio: 16/10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: var(--tracking-chip); text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); margin-bottom: 16px; }
.chip svg { width: 13px; height: 13px; }
.card h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
.card p { color: var(--muted); margin: 12px 0 18px; font-size: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: var(--fw-semibold); font-size: 14px; color: var(--text); }
.card-link svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.card-link:hover svg { transform: translateX(5px); }
.c-pink { color: var(--pink); } .c-blue { color: var(--blue); } .c-violet { color: var(--violet); } .c-green { color: var(--green); }

/* ---------- Split sections (events + trade, visit) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
/* Let grid children shrink below content min-size (prevents iframe/img overflow) */
.split > *, .offer-grid > *, .hero .wrap > * { min-width: 0; }
.panel { padding: clamp(28px,4vw,40px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.panel h3 { font-size: 28px; font-weight: var(--fw-bold); margin: 14px 0 0; }
.panel p { color: var(--muted); font-size: 16px; margin: 12px 0 0; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(47,169,255,.14); color: var(--blue); }
.feature-list .tick svg { width: 15px; height: 15px; }
.feature-list b { display: block; }
.feature-list span { color: var(--muted); font-size: 15px; }
.trade-steps { display: flex; gap: 20px; margin: 22px 0 0; flex-wrap: wrap; }
.trade-steps > div { display: flex; align-items: center; gap: 10px; }
.trade-steps .g { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.trade-steps .g svg { width: 18px; height: 18px; }
.trade-steps b { font-family: var(--font-display); font-size: 14px; }
.panel .btn { margin-top: 26px; }

/* ---------- Visit ---------- */
.visit-info .row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.visit-info .row:last-child { border-bottom: 0; }
.visit-info .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,169,255,.12); color: var(--blue); }
.visit-info .ic svg { width: 22px; height: 22px; }
.visit-info h3 { font-family: var(--font-body); font-size: 16px; font-weight: var(--fw-semibold); margin-bottom: 6px; }
.hours { display: grid; gap: 2px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.hours span:first-child { color: var(--muted); }
.hours span:last-child { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.visit-map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; width: 100%; border: 1px solid var(--line-2); }
.visit-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- Footer (centered on mobile, per request) ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: var(--s6) var(--s4); }
.foot-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand img { height: 40px; }
.foot-brand b { font-family: var(--font-display); font-size: 19px; letter-spacing: -.01em; }
.socials { display: flex; gap: 12px; }
.socials a { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; place-items: center; color: var(--muted); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.socials a:hover { color: #fff; border-color: var(--pink); background: rgba(255,46,136,.12); }
.socials svg { width: 20px; height: 20px; }
.foot-bottom { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted-2); font-size: 14px; }
.tagline { font-family: var(--font-display); letter-spacing: .04em; }

/* ---------- Reveal on scroll (tiny; respects reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--pink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 200; }
.skip:focus { left: 0; }

/* ============================================================
   Breakpoints — add the multi-column desktop layout.
   ============================================================ */
@media (min-width: 760px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .hamburger { display: none; }
  .nav-links {
    position: static; inset: auto; flex-direction: row; transform: none;
    background: none; border: 0; padding: 0; max-height: none; overflow: visible;
  }
  .nav-links a { padding: 10px 13px; font-size: 15px; }
  .nav-links .btn { margin-top: 0; }
  section { padding-block: var(--s7); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; }
  .split.center-y { align-items: center; }

  /* Hero → info left, photo right */
  .hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s6); align-items: center; }
  .hero-media { margin-top: 0; aspect-ratio: 4/5; }

  /* Footer → brand left, socials right; bottom bar spread */
  .foot-top { flex-direction: row; justify-content: space-between; text-align: left; }
  .foot-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; white-space: normal; width: auto; flex-wrap: wrap; justify-content: center; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
