/* ──────────────────────────────────────────────────────────────
   LOONEY'S — Sports Bar & Balkan Restaurant
   Design system + base styles. Tailwind handles utilities.
   ────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces (warm dark) */
  --ink-950: #07050a;
  --ink-900: #0d0a0d;
  --ink-850: #131013;
  --ink-800: #1a1517;
  --ink-700: #25201f;
  --ink-600: #34292a;
  --ink-line: #2a2326;

  /* Brand */
  --amber: #47b651;        /* primary green */
  --amber-2: #5fc966;       /* lighter green for hover */
  --amber-glow: 71 182 81;
  --green-deep: #286d1f;    /* deep green for outlines/depth */
  --crimson: #b1221c;       /* restaurant red walls */
  --crimson-2: #d4321f;
  --copper: #c2410c;
  --bone: #f6efe2;          /* warm paper */
  --cream: #efe2c7;
  --pool: #1486a6;          /* pool table teal — accent only */
  --grass: #286d1f;         /* matchday green — used sparingly */

  /* Type scale tokens */
  --display: "Bebas Neue", "Anton", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { background: var(--ink-900); color: var(--bone); }
body {
  font-family: var(--body);
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: var(--ink-900); }

/* Typography classes */
.font-display { font-family: var(--display); font-weight: 400; letter-spacing: 0.005em; }
.font-body    { font-family: var(--body); }

/* Logo wordmark — chunky italic athletic style */
.logo-wordmark {
  font-family: "Russo One", "Anton", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: inline-block;
  transform: skewX(-14deg);
  transform-origin: 50% 50%;
  line-height: 1;
  color: var(--amber);
  -webkit-text-stroke: 1.2px var(--green-deep);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 rgba(7, 5, 10, 0.35);
}
.logo-sub {
  font-family: var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  font-weight: 700;
  font-size: 10px;
  color: rgba(246, 239, 226, 0.7);
}

.display-xl   { font-family: var(--display); font-size: clamp(72px, 13vw, 220px); line-height: 0.86; letter-spacing: -0.005em; }
.display-lg   { font-family: var(--display); font-size: clamp(56px, 8.5vw, 140px); line-height: 0.88; letter-spacing: 0; }
.display-md   { font-family: var(--display); font-size: clamp(40px, 5.5vw, 88px); line-height: 0.92; }
.display-sm   { font-family: var(--display); font-size: clamp(28px, 3.5vw, 56px); line-height: 0.96; }

/* Eyebrow / label */
.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(246, 239, 226, 0.62);
}

.label-mono {
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  font-size: 11px;
  text-transform: uppercase;
}

/* ─── Atmospheric backgrounds ─────────────────────────────────── */

/* Page-level grain + radial */
.atmo-base {
  background:
    radial-gradient(80% 60% at 75% 0%, rgba(71,182,81,0.08), transparent 60%),
    radial-gradient(60% 50% at 0% 80%, rgba(71,182,81,0.07), transparent 55%),
    linear-gradient(180deg, #0d0a0d 0%, #100c0e 50%, #0a0708 100%);
}

.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Edison-bulb glow used behind hero text */
.glow-bulb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  transform: translateZ(0);
  contain: paint;
}
.glow-amber { background: rgba(71,182,81,0.55); }
.glow-crimson { background: rgba(71,182,81,0.45); }

/* Image with cinematic treatment (warm color graded) */
.cine-warm {
  filter: contrast(1.05) saturate(0.92) brightness(0.92);
}
.cine-cool {
  filter: contrast(1.05) saturate(0.85) brightness(0.85) hue-rotate(-3deg);
}

/* Image overlay frame */
.frame-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.frame-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,5,10,0.65) 100%);
  pointer-events: none;
}
.frame-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Halftone for accent sections */
.halftone {
  background-image: radial-gradient(rgba(246,239,226,0.18) 1px, transparent 1.4px);
  background-size: 6px 6px;
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Blink dot (live indicator) */
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(71,182,81, 0.7);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(71,182,81, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(71,182,81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71,182,81, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.5, 1),
              background 220ms ease, color 220ms ease, border-color 220ms ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn-primary {
  background: var(--amber);
  color: var(--ink-900);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px -10px rgba(71, 182, 81, 0.55);
}
.btn-primary:hover { background: var(--amber-2); }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(246,239,226,0.20);
}
.btn-ghost:hover { background: rgba(246,239,226,0.05); border-color: rgba(246,239,226,0.40); }

.btn-crimson {
  background: rgba(71, 182, 81, 0.12);
  color: var(--amber);
  border: 1px solid rgba(71, 182, 81, 0.35);
}
.btn-crimson:hover {
  background: rgba(71, 182, 81, 0.20);
  border-color: rgba(71, 182, 81, 0.55);
}
.btn-crimson .arr { background: rgba(71, 182, 81, 0.25); }

.btn .arr {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(0,0,0,0.16);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.5, 1);
}
.btn:hover .arr { transform: translateX(2px); }
.btn-ghost .arr { background: rgba(246,239,226,0.10); }

/* Number tag */
.numtag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(246,239,226,0.75);
  text-transform: uppercase;
}
.numtag .num {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--amber);
}

/* Card variants */
.card {
  background: rgba(26, 21, 23, 0.88);
  border: 1px solid var(--ink-line);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(246, 239, 226, 0.04),
    0 28px 56px -32px rgba(0, 0, 0, 0.7);
}
.card-flat {
  background: rgba(19, 16, 19, 0.6);
  border: 1px solid var(--ink-line);
  border-radius: 22px;
}

.divider-h {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246,239,226,0.15), transparent);
}

/* Scoreboard tile */
.scoreboard {
  font-family: var(--display);
  background: linear-gradient(180deg, #0a0708, #100c0e);
  border: 1px solid var(--ink-line);
  border-radius: 22px;
  padding: 18px 22px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.18, 0.7, 0.2, 1);
}
.reveal.is-on { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.18, 0.7, 0.2, 1); }
.reveal-stagger.is-on > * { opacity: 1; transform: none; }
.reveal-stagger.is-on > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-on > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-on > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-on > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-on > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-on > *:nth-child(6) { transition-delay: 400ms; }

/* Hero text reveal */
.hero-line {
  overflow: hidden;
  display: block;
}
.hero-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lift 900ms cubic-bezier(0.18, 0.8, 0.2, 1) forwards;
}
.hero-line.delay-1 > span { animation-delay: 120ms; }
.hero-line.delay-2 > span { animation-delay: 240ms; }
.hero-line.delay-3 > span { animation-delay: 360ms; }
@keyframes lift { to { transform: translateY(0%); } }

/* Hover image lift */
.tile-img { transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.tile:hover .tile-img { transform: scale(1.04); }

/* Sticky nav scroll bg */
.nav-scroll-bg {
  background: rgba(13,10,13,0.96);
  border-bottom: 1px solid rgba(246,239,226,0.06);
}

/* Marker line under heading */
.flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.flag::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--amber);
}

/* Pool-cloth band utility (used as accent strip) */
.pool-strip {
  background: linear-gradient(180deg, #0e6e87, #0c5970);
  color: #f5f7f8;
}

/* Crimson cloth band */
.crimson-strip {
  background: linear-gradient(180deg, #1d4a18, #143111);
  color: var(--bone);
}

/* Hover underline */
.linkline {
  position: relative;
  padding-bottom: 2px;
}
.linkline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.linkline:hover::after { transform: scaleX(1); }

/* Mobile menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ink-950);
  transform: translateY(-100%);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-nav.is-open { transform: none; }
.mobile-nav-link {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid rgba(246,239,226,0.08);
  font-family: var(--display);
  font-size: 44px;
  letter-spacing: 0.01em;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Scrollbar — branded green */
html {
  scrollbar-color: var(--amber) var(--ink-950);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-950); }
::-webkit-scrollbar-thumb {
  background: var(--amber);
  border-radius: 999px;
  border: 2px solid var(--ink-950);
}
::-webkit-scrollbar-thumb:hover { background: var(--amber-2); }

/* Hero overlay vignette */
.vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 110%, rgba(7,5,10,0.95), transparent 60%);
  pointer-events: none;
}

/* Stronger image color treatment for sport sections */
.cine-floodlight {
  filter: contrast(1.08) saturate(0.85) brightness(0.85);
}

/* Restaurant chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--body);
  border: 1px solid rgba(246,239,226,0.20);
  background: rgba(246,239,226,0.04);
  color: rgba(246,239,226,0.85);
}
.chip-amber { color: var(--amber); border-color: rgba(71,182,81,0.35); background: rgba(71,182,81,0.06); }
.chip-crimson { color: var(--amber); border-color: rgba(71,182,81,0.4); background: rgba(71,182,81,0.08); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}
