/* =====================================================================
   All Star Entertainment — main.css
   Shared styles for EVERY page: design tokens, typography, buttons,
   navigation, footer, lightbox.
   Page-specific styles live in their own file (e.g. index.css).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --black:        #000000;   /* primary (text/structure on light surfaces) */
  --gold:         #FCCC47;   /* secondary (stage-light accents, outlines) */
  --red:          #DA4444;   /* accent (CTAs + highlighted emphasis) */
  --bg:           #22242A;   /* page background (house lights down) */

  /* Derived dark-mode surfaces + solid text colors.
     NOTE: text is NEVER faded with opacity — "muted" tones are solid
     colors so every word renders at full strength. */
  --surface:      #2A2D35;   /* raised panel on dark bg */
  --surface-2:    #32353F;   /* second-level panel / table rows */
  --line:         #3E424C;   /* hairline dividers on dark */

  --paper:        #F6F3E9;   /* primary text on dark surfaces */
  --paper-dim:    #B9BCC4;   /* secondary text on dark (solid, not faded) */

  --card:         #FFFFFF;   /* white cards */
  --card-ink:     #1B1C20;   /* near-black body text on white cards */
  --card-dim:     #5A5C64;   /* secondary text on white cards (solid) */

  --red-deep:     #B82F2F;   /* CTA hover */
  --gold-deep:    #E0A92E;   /* gold hover / pressed */

  /* ----- Typography -------------------------------------------------
     Fonts are variables so any section can be re-skinned by overriding
     --font-heading / --font-body / --font-label on that section. Example
     at the bottom of this file. */
  --font-heading: "Fraunces", "Georgia", serif;        /* earthy display */
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-label:   "Hanken Grotesk", system-ui, sans-serif; /* eyebrows/caps */

  /* Scale + layout */
  --maxw:         1200px;
  --gutter:       clamp(20px, 5vw, 48px);
  --radius:       16px;
  --radius-lg:    24px;
  --pill:         999px;
  --section-y:    clamp(64px, 9vw, 120px);

  --shadow:       0 18px 50px -24px rgba(0,0,0,.65);
  --shadow-card:  0 22px 50px -28px rgba(0,0,0,.55);

  /* Signature: marquee bulb strip (gold "stage lights") */
  --bulbs: radial-gradient(circle at center,
            var(--gold) 0 34%, transparent 36%) 0 0 / 18px 100% repeat-x;
}

/* ---------------------------------------------------------------------
   2. RESET + BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--paper);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Every <em> on the site is a red highlight (per brand rule). */
em {
  font-style: normal;
  color: var(--red);
  font-weight: 600;
}

::selection { background: var(--gold); color: var(--black); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------
   3. LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  margin-top: .01em;
}
.section-sub {
  color: var(--paper-dim);
  max-width: 56ch;
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Marquee bulb strip — the page's signature accent. Use sparingly. */
.bulbs {
  height: 8px;
  background: var(--bulbs);
  border-radius: var(--pill);
}

/* ---------------------------------------------------------------------
   4. BUTTONS  (all CTAs are pills)
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-ink: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  line-height: 1;
  padding: .92em 1.7em;
  border-radius: var(--pill);
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease,
              box-shadow .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: 0 10px 24px -14px rgba(218,68,68,.9);
}
.btn:hover { transform: translateY(-2px); background: var(--red-deep); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-ink: var(--black);
  box-shadow: 0 10px 24px -14px rgba(252,204,71,.9);
}
.btn--gold:hover { background: var(--gold-deep); }

/* Outline button for secondary actions on dark backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--red);
  box-shadow: none;
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn--lg { font-size: 1.15rem; padding: 1.1em 2.4em; }

/* ---------------------------------------------------------------------
   5. NAVIGATION
   --------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,28,33,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

/* Wordmark / logo in nav */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -.01em;
  color: var(--paper);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand__star { color: var(--gold); font-size: 1.25em; line-height: 0; }
.brand__sub {
  font-family: var(--font-label);
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-left: .15rem;
  align-self: flex-end;
  padding-bottom: .18rem;
}

/* Logo image variant */
.brand--logo { gap: 0; }
.brand__img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand__img--lg {
  height: 72px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.6vw, 1.6rem);
}
.nav__link {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .94rem;
  color: var(--paper);
  padding: .4rem .15rem;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right .25s ease;
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { right: 0; }
.nav__link[aria-current="page"] { color: var(--gold); }

.nav__cta { margin-left: .4rem; }

/* Hamburger */
.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle span::before { transform: translate(-50%, -8px); }
.nav__toggle span::after  { transform: translate(-50%, 6px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translate(-50%,-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translate(-50%,-50%) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.4rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    /* Ensure it sits above everything */
    z-index: 99;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link {
    padding: .95rem .2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav__link::after { display: none; }
  .nav__cta {
    margin: 1rem 0 0;
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 1em 1.5em;
  }
}

@media (max-width: 480px) {
  .brand__img { height: 42px; }
  .nav__inner { min-height: 62px; }
  .nav__links { inset: 62px 0 auto 0; max-height: calc(100vh - 62px); }
}

/* ---------------------------------------------------------------------
   6. FOOTER
   --------------------------------------------------------------------- */
.footer {
  background: #1A1C21;
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 84px) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer__brand .brand { font-size: 1.4rem; }
.footer__tag {
  color: var(--paper-dim);
  margin-top: 1rem;
  max-width: 34ch;
  font-size: .98rem;
}
.footer__h {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.footer__links { display: grid; gap: .7rem; }
.footer__links a { color: var(--paper-dim); font-size: .97rem; width: max-content; }
.footer__links a:hover { color: var(--paper); }

.footer__social { display: flex; gap: 1rem; margin-top: 1.2rem; }
.footer__social a { color: var(--paper-dim); display: flex; align-items: center; transition: color .2s; }
.footer__social a:hover { color: var(--gold); }

.footer__contact { display: grid; gap: .95rem; }
.footer__row { display: flex; gap: .7rem; align-items: flex-start; color: var(--paper-dim); font-size: .97rem; }
.footer__row a { color: var(--paper-dim); }
.footer__row a:hover { color: var(--gold); }
.footer__row svg { flex: none; color: var(--gold); margin-top: .15rem; }

.footer__cta-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer__cta-block h3 { font-size: 1.45rem; color: var(--paper); }
.footer__cta-block p { color: var(--paper-dim); margin: .5rem 0 1.2rem; }

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer__brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .footer__tag { max-width: 42ch; text-align: center; }
  .footer__links { justify-items: start; }
  .footer__links a { width: auto; }
  .footer__contact { justify-items: start; }
  .footer__cta-block { text-align: center; }
  .footer__cta-block .btn { width: 100%; justify-content: center; }
  .footer__legal { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------------------------------------------------------------------
   7. LIGHTBOX (award badges, gallery, etc.)
   --------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 5vw;
  background: rgba(10,11,14,.88);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: grid; }
.lightbox__img {
  max-width: min(680px, 92vw);
  max-height: 84vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}
.lightbox__cap {
  color: var(--paper);
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-label);
  letter-spacing: .04em;
}
.lightbox__close {
  position: absolute;
  top: 4vw; right: 5vw;
  width: 48px; height: 48px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { background: var(--red); border-color: var(--red); }

/* ---------------------------------------------------------------------
   8. ACCESSIBILITY
   --------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------------------------------------------------------------------
   9. HOW TO RE-SKIN A SINGLE SECTION'S FONTS
   ---------------------------------------------------------------------
   Every heading/body element reads from --font-heading / --font-body,
   and CSS variables cascade, so overriding them on one wrapper restyles
   just that section. Example:

     .services { --font-heading: "Bricolage Grotesque", sans-serif; }
     .pricing  { --font-body: "Inter", sans-serif; }

   (Remember to load the new font file in the <head>.)
   --------------------------------------------------------------------- */