/* ============================================================
   A HOT PARTY — global.css
   Reset · CSS Variables · Typography · Utilities
   ============================================================ */

/* Fonts are loaded via <link> in each page's <head>, not @import.
   An @import here would force the browser to fetch this file, parse it,
   and only then start on the fonts — one extra round trip before any
   text can paint. */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Palette */
  --black:        #0A0A0A;
  --dark:         #111111;
  --dark-card:    #1A1A1A;
  --surface:      #222222;
  --border:       rgba(255,255,255,0.08);
  --red:          #C41E3A;
  --red-light:    #E8294A;
  --red-dark:     #8B0000;
  --gold:         #D4AF37;
  --gold-light:   #F0D060;
  --gold-dark:    #A07820;
  --white:        #FFFFFF;
  --text:         #E8E8E8;
  --muted:        #999999;
  --muted-dark:   #666666;

  /* Logo flame palette — sampled from the poker-chip logo */
  --flame-crimson: #990306;
  --flame-red:     #CC030A;
  --flame-scarlet: #F73C03;
  --flame-orange:  #FD6B04;
  --flame-amber:   #FD8304;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg,#0A0A0A 0%,#1A0808 50%,#0A0A0A 100%);
  --grad-gold:    linear-gradient(135deg,#A07820,#D4AF37,#F0D060,#D4AF37,#A07820);
  --grad-red:     linear-gradient(135deg,#8B0000,#C41E3A);
  --grad-flame:   linear-gradient(135deg,#990306 0%,#CC030A 30%,#F73C03 60%,#FD6B04 82%,#FD8304 100%);
  --grad-card:    linear-gradient(145deg,#1A1A1A,#222222);
  --grad-glass:   linear-gradient(135deg,rgba(255,255,255,0.07),rgba(255,255,255,0.01));

  /* Shadows */
  --sh-gold:      0 0 30px rgba(212,175,55,.3), 0 0 60px rgba(212,175,55,.1);
  --sh-red:       0 0 30px rgba(196,30,58,.4),  0 0 60px rgba(196,30,58,.15);
  --sh-card:      0 8px 32px rgba(0,0,0,.6),     0 2px 8px rgba(0,0,0,.4);
  --sh-deep:      0 20px 60px rgba(0,0,0,.8),    0 8px 20px rgba(0,0,0,.5);
  --sh-nav:       0 4px 40px rgba(0,0,0,.6);

  /* Spacing */
  --sp-xs:  .5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;
  --sp-xxl: 10rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast:   .2s cubic-bezier(.4,0,.2,1);
  --t-smooth: .4s cubic-bezier(.4,0,.2,1);
  --t-slow:   .7s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* body alone doesn't reliably stop sideways scroll on mobile browsers */
  overflow-x: hidden;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Focus visibility ──────────────────────────────────────────
   Keyboard users need to see where they are. Gold reads clearly
   against every surface on the site; the dark ring keeps it legible
   if it ever lands on a gold button. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.btn-nav:focus-visible,
.mobile-call:focus-visible,
#back-to-top:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 5px rgba(0,0,0,.7);
}
/* Don't paint rings on mouse clicks */
:focus:not(:focus-visible) { outline: none; }

/* Skip link — first stop for keyboard and screen-reader users */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 100000;
  padding: .85rem 1.75rem;
  background: var(--grad-gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ── Typography Scale ──────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(2.5rem,6vw,5rem); }
h2 { font-size: clamp(1.8rem,4vw,3rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.75rem); }
h4 { font-size: 1.25rem; }
p  { line-height: 1.8; color: var(--text); }

/* ── Utility Classes ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-sm  { max-width: 800px;  margin: 0 auto; padding: 0 2rem; }
.container-lg  { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }

.section {
  padding: 5rem 0;
  position: relative;
}
.section-sm { padding: 3rem 0; }
.section-lg { padding: 8rem 0; }

/* ── Section Background Textures ───────────────────────────────
   Adapted from the original ahotparty.com, which tiled a card-suit
   pattern behind its casino sections and a speckle/confetti wash
   elsewhere. Rebuilt here as pure CSS (no extra image requests) and
   retuned for the dark gold/flame palette. Applied alternately via
   .tex-suits / .tex-confetti so adjacent sections never repeat.     */
/* NOTE: no `overflow: hidden` here on purpose. It turns the section into a
   scroll container, which breaks the IntersectionObserver scroll-reveal for
   everything inside. The ::before is inset-0 and masked, so it cannot spill. */
.tex-suits, .tex-confetti { position: relative; }
.tex-suits > *, .tex-confetti > * { position: relative; z-index: 1; }

.tex-suits::before,
.tex-confetti::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Card suits — spade / heart / diamond / club, offset on a 2-row grid */
.tex-suits::before {
  background-image:
    /* spade */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23D4AF37' fill-opacity='0.16'%3E%3Cpath d='M30 18c-6 7-12 11-12 17a7 7 0 0 0 11 6l-2 7h6l-2-7a7 7 0 0 0 11-6c0-6-6-10-12-17z'/%3E%3Cpath d='M90 78c-6 7-12 11-12 17a7 7 0 0 0 11 6l-2 7h6l-2-7a7 7 0 0 0 11-6c0-6-6-10-12-17z'/%3E%3C/g%3E%3Cg fill='%23C41E3A' fill-opacity='0.18'%3E%3Cpath d='M90 20c-3-4-9-3-9 2 0 5 6 9 9 13 3-4 9-8 9-13 0-5-6-6-9-2z'/%3E%3Cpath d='M30 80c-3-4-9-3-9 2 0 5 6 9 9 13 3-4 9-8 9-13 0-5-6-6-9-2z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-repeat: repeat;
  /* fade the pattern toward the section edges so it never fights the content */
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 78%);
  opacity: .85;
}

/* Confetti speckle — scattered dots + soft glow blooms in gold/flame tones.
   Dots alone vanish on near-black, so larger blurred blooms carry the texture
   and the crisp specks add the sparkle on top. */
.tex-confetti::before {
  background-image:
    radial-gradient(circle at 18% 28%, rgba(212,175,55,.11) 0%, transparent 42%),
    radial-gradient(circle at 78% 62%, rgba(253,107,4,.09)  0%, transparent 45%),
    radial-gradient(circle at 12% 18%, rgba(240,208,96,.55) 0 2.1px, transparent 2.1px),
    radial-gradient(circle at 68% 8%,  rgba(253,131,4,.48)  0 2.4px, transparent 2.4px),
    radial-gradient(circle at 34% 62%, rgba(255,107,94,.42) 0 2.2px, transparent 2.2px),
    radial-gradient(circle at 86% 44%, rgba(240,208,96,.44) 0 1.9px, transparent 1.9px),
    radial-gradient(circle at 52% 88%, rgba(253,131,4,.40)  0 2.1px, transparent 2.1px),
    radial-gradient(circle at 4% 76%,  rgba(212,175,55,.38) 0 1.8px, transparent 1.8px);
  background-size:
    620px 620px, 700px 700px,
    190px 190px, 240px 240px, 210px 210px, 170px 170px, 260px 260px, 200px 200px;
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 82%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 82%);
}

/* Deliberately static. An animated background-position on a layer this large
   repaints continuously (it can't be GPU-composited) and starved the
   scroll-reveal IntersectionObserver, leaving ~35 elements stuck invisible. */

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,4vw,3rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.section-title span { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.8;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-subtitle { margin: 0 auto; }

/* Gold gradient text */
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }

/* Shimmer animated gold text */
.shimmer-text {
  background: linear-gradient(90deg,#A07820 0%,#F0D060 25%,#D4AF37 50%,#F0D060 75%,#A07820 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

/* Glassmorphism card */
.glass-card {
  background: var(--grad-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}

/* Dark card */
.dark-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}

/* Gold border accent */
.gold-border { border: 1px solid rgba(212,175,55,.3); }
.gold-border-top { border-top: 2px solid var(--gold); }

/* Divider line */
.divider {
  width: 60px; height: 3px;
  background: var(--grad-gold);
  border-radius: var(--r-full);
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

/* Floating animation */
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-12px) rotate(1deg); }
  66%      { transform: translateY(-6px) rotate(-1deg); }
}
.float          { animation: float 6s ease-in-out infinite; }
.float-delayed  { animation: float 6s ease-in-out 2s infinite; }
.float-slow     { animation: float 9s ease-in-out 1s infinite; }

/* Pulse animation */
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 10px rgba(212,175,55,.3); }
  50%      { box-shadow: 0 0 30px rgba(212,175,55,.7); }
}

/* Scroll-down indicator */
@keyframes bounce-down {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* Gradient overlays */
.overlay-dark {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  pointer-events: none;
}
/* Two layers: a diagonal brand wash for colour, plus a centred radial scrim
   that darkens exactly where the headline sits. The old single gradient
   dropped to .25 alpha at the 50% stop — right under the text — which left
   white and gold type competing with whatever the photo was doing. */
.overlay-hero {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 65% at 50% 50%, rgba(6,6,6,.82) 0%, rgba(6,6,6,.62) 55%, rgba(6,6,6,.35) 100%),
    linear-gradient(135deg, rgba(10,10,10,.9) 0%, rgba(139,0,0,.45) 50%, rgba(10,10,10,.94) 100%);
  pointer-events: none;
}

/* Tag / badge chip */
.tag {
  display: inline-block;
  padding: .25rem .75rem;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.tag-red {
  background: rgba(196,30,58,.12);
  border-color: rgba(196,30,58,.3);
  color: var(--red-light);
}

/* Page hero shared */
.page-hero {
  min-height: 55vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
}
.page-hero-bg {
  position: absolute; inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem,5vw,4rem); margin-bottom: 1rem; }
.page-hero p  { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto; }

/* Diagonal clip sections */
.clip-bottom { clip-path: polygon(0 0,100% 0,100% 92%,0 100%); }
.clip-top    { clip-path: polygon(0 8%,100% 0,100% 100%,0 100%); }
.clip-both   { clip-path: polygon(0 5%,100% 0,100% 95%,0 100%); }

/* Scroll-progress bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-gold);
  z-index: 99999;
  transition: width .1s linear;
}

/* Back-to-top */
#back-to-top {
  position: fixed;
  bottom: 5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--grad-gold);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-size: 1rem;
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--t-smooth);
  box-shadow: 0 4px 20px rgba(212,175,55,.4);
  border: none;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover   { transform: translateY(-3px); box-shadow: var(--sh-gold); }

/* Mobile bottom padding for sticky CTA */
@media (max-width: 768px) {
  body { padding-bottom: 64px; }
  #back-to-top { bottom: 5.5rem; right: 1rem; }
}
