/* =============================================================================
   LLC Games Site — Global CSS
   Design tokens, scoped reset, shared layout primitives, and shared components.
   ALL styles are scoped to .llcg-page to prevent bleed into the active theme.
   ============================================================================= */

/* ─── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --llcg-navy:          #0F1F3D;
  --llcg-navy-mid:      #1A3260;
  --llcg-navy-light:    #243C6E;
  --llcg-blue:          #2251A3;
  --llcg-blue-light:    #4A7FD4;
  --llcg-gold:          #D4A017;
  --llcg-gold-pale:     rgba(212, 160, 23, 0.12);

  /* Neutrals */
  --llcg-off-white:     #F8F7F4;
  --llcg-stone:         #EAE8E3;
  --llcg-white:         #FFFFFF;
  --llcg-text-dark:     #0D1B2A;
  --llcg-text-body:     #3D4F6B;
  --llcg-text-muted:    #7A8EA8;

  /* Typography */
  --llcg-font-display:  'DM Serif Display', Georgia, 'Times New Roman', serif;
  --llcg-font-body:     'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --llcg-space-2xs:     4px;
  --llcg-space-xs:      8px;
  --llcg-space-sm:     16px;
  --llcg-space-md:     28px;
  --llcg-space-lg:     48px;
  --llcg-space-xl:     80px;
  --llcg-space-2xl:   136px;

  /* Container */
  --llcg-container:   1180px;
  --llcg-gutter:        40px;

  /* Radius */
  --llcg-radius-sm:     4px;
  --llcg-radius-md:    12px;
  --llcg-radius-lg:    24px;
  --llcg-radius-pill: 100px;

  /* Motion */
  --llcg-ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --llcg-dur:     0.28s;
  --llcg-dur-lg:  0.60s;

  /* Section padding */
  --llcg-section-py:   var(--llcg-space-xl);
}

/* ─── Document-level smooth scroll (applied via body class, not globally) ────── */
html:has(body.llcg-page--home) {
  scroll-behavior: smooth;
}

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

.llcg-page {
  font-family: var(--llcg-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--llcg-text-body);
  background: var(--llcg-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default theme padding that accounts for a sticky header */
body.llcg-active {
  padding-top: 0 !important;
}

/* ─── Theme Container Neutralization ─────────────────────────────────────────── */
/*
 * Many themes wrap content in a max-width container. We need our full-width
 * sections to escape it. These rules target the most common class names.
 * They only fire inside llcg-page so they cannot affect the rest of the site.
 */
.llcg-active .entry-content .llcg-page,
.llcg-active .site-main .llcg-page {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ─── Layout Primitives ───────────────────────────────────────────────────────── */
.llcg-container {
  width: 100%;
  max-width: var(--llcg-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--llcg-gutter);
  padding-right: var(--llcg-gutter);
}

.llcg-section {
  padding-top: var(--llcg-section-py);
  padding-bottom: var(--llcg-section-py);
}

.llcg-section--compact {
  padding-top: var(--llcg-space-lg);
  padding-bottom: var(--llcg-space-lg);
}

/* Full-bleed utility — escapes any theme container */
.llcg-breakout {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

/* ─── Background Utilities ────────────────────────────────────────────────────── */
.llcg-bg-navy      { background-color: var(--llcg-navy); }
.llcg-bg-navy-mid  { background-color: var(--llcg-navy-mid); }
.llcg-bg-off-white { background-color: var(--llcg-off-white); }
.llcg-bg-stone     { background-color: var(--llcg-stone); }
.llcg-bg-white     { background-color: var(--llcg-white); }

/* ─── Typography Utilities ────────────────────────────────────────────────────── */
.llcg-text-white      { color: var(--llcg-white) !important; }
.llcg-text-gold       { color: var(--llcg-gold)  !important; }
.llcg-text-muted      { color: var(--llcg-text-muted) !important; }
.llcg-text-muted-light{ color: rgba(255,255,255,0.65) !important; }
.llcg-text-center     { text-align: center; }

/* ─── Section Header ──────────────────────────────────────────────────────────── */
.llcg-section__header {
  text-align: center;
  margin-bottom: var(--llcg-space-lg);
}

.llcg-section__title {
  font-family: var(--llcg-font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--llcg-text-dark);
  margin-bottom: var(--llcg-space-sm);
}

.llcg-section__sub {
  font-size: 17px;
  color: var(--llcg-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* On dark sections */
.llcg-bg-navy .llcg-section__title {
  color: var(--llcg-white);
}

/* ─── Body Text ───────────────────────────────────────────────────────────────── */
.llcg-body-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--llcg-text-body);
  margin-bottom: var(--llcg-space-md);
}

.llcg-body-text--large {
  font-size: 18px;
}

/* ─── Gold Rule Divider ───────────────────────────────────────────────────────── */
.llcg-gold-rule {
  width: 48px;
  height: 3px;
  background: var(--llcg-gold);
  border-radius: 2px;
  margin-bottom: var(--llcg-space-md);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────────── */
.llcg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--llcg-radius-pill);
  font-family: var(--llcg-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--llcg-dur) var(--llcg-ease);
  white-space: nowrap;
  border: 2px solid transparent;
}

.llcg-btn--primary {
  background: #F0BC2E;
  color: var(--llcg-navy);
  border-color: #F0BC2E;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.llcg-btn--primary:hover {
  background: var(--llcg-gold);
  border-color: var(--llcg-gold);
  color: var(--llcg-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
  text-decoration: none;
}

.llcg-btn--ghost {
  background: transparent;
  color: var(--llcg-white);
  border-color: rgba(255,255,255,0.45);
}
.llcg-btn--ghost:hover {
  border-color: var(--llcg-white);
  background: rgba(255,255,255,0.1);
  color: var(--llcg-white);
  text-decoration: none;
}

.llcg-btn--secondary {
  background: transparent;
  color: var(--llcg-blue);
  border-color: var(--llcg-blue);
}
.llcg-btn--secondary:hover {
  background: var(--llcg-blue);
  color: var(--llcg-white);
  text-decoration: none;
}

/* ─── Link Utilities ──────────────────────────────────────────────────────────── */
.llcg-link--light {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--llcg-dur) var(--llcg-ease);
}
.llcg-link--light:hover { color: var(--llcg-white); text-decoration: underline; }

/* ─── Two-Column Split Layout ─────────────────────────────────────────────────── */
.llcg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--llcg-space-xl);
  align-items: center;
}

.llcg-split--reverse .llcg-split__text { order: 2; }
.llcg-split--reverse .llcg-split__visual { order: 1; }

/* ─── Visual Block (decorative) ───────────────────────────────────────────────── */
.llcg-visual-block {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.llcg-visual-block__accent {
  position: absolute;
  inset: 0;
  border: 2px solid var(--llcg-gold-pale);
  border-radius: var(--llcg-radius-lg);
  transform: rotate(3deg);
}

.llcg-visual-block__card {
  position: relative;
  background: var(--llcg-navy);
  border-radius: var(--llcg-radius-md);
  padding: var(--llcg-space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--llcg-space-sm);
  min-width: 200px;
}

.llcg-visual-block__icon {
  font-size: 40px;
  color: var(--llcg-gold);
  line-height: 1;
}

.llcg-visual-block__label {
  font-family: var(--llcg-font-display);
  font-size: 20px;
  color: var(--llcg-white);
}

.llcg-visual-block__sub {
  font-size: 13px;
  color: var(--llcg-text-muted);
}

.llcg-visual-block__year {
  font-family: var(--llcg-font-display);
  font-size: 36px;
  color: var(--llcg-gold);
}

/* ─── Hero ────────────────────────────────────────────────────────────────────── */
.llcg-hero {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.llcg-hero--compact {
  padding-top: 80px;
  padding-bottom: 80px;
}

.llcg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(34, 81, 163, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.llcg-hero__inner {
  position: relative;
  z-index: 1;
}

.llcg-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--llcg-gold);
  border-radius: var(--llcg-radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--llcg-gold);
  margin-bottom: var(--llcg-space-md);
}

.llcg-hero__headline {
  font-family: var(--llcg-font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--llcg-white);
  margin-bottom: var(--llcg-space-md);
  max-width: 800px;
}

.llcg-hero__headline em {
  font-style: italic;
  color: var(--llcg-gold);
}

.llcg-hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: var(--llcg-space-lg);
  line-height: 1.6;
}

.llcg-hero__ctas {
  display: flex;
  gap: var(--llcg-space-sm);
  flex-wrap: wrap;
}

.llcg-hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.llcg-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--llcg-gold));
  animation: llcg-scroll-pulse 2s ease-in-out infinite;
}

@keyframes llcg-scroll-pulse {
  0%,100% { opacity: 0.4; transform: scaleY(0.8); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ─── CTA Band ────────────────────────────────────────────────────────────────── */
.llcg-cta-band {
  padding-top: var(--llcg-space-xl);
  padding-bottom: var(--llcg-space-xl);
  position: relative;
  overflow: hidden;
}

.llcg-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.llcg-cta-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.llcg-wordmark-llc {
  font-family: var(--llcg-font-body);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--llcg-white);
}

.llcg-wordmark-games {
  font-family: var(--llcg-font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--llcg-gold);
  margin-left: 8px;
}

.llcg-cta-band__tagline {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  margin: 20px 0 36px;
  font-style: italic;
}

.llcg-cta-band__actions {
  display: flex;
  gap: var(--llcg-space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Scroll Reveal ───────────────────────────────────────────────────────────── */
.llcg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.llcg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered reveal for grid children */
.llcg-values__grid .llcg-reveal:nth-child(2) { transition-delay: 0.1s; }
.llcg-values__grid .llcg-reveal:nth-child(3) { transition-delay: 0.2s; }
.llcg-team__grid .llcg-reveal:nth-child(2)   { transition-delay: 0.1s; }
.llcg-team__grid .llcg-reveal:nth-child(3)   { transition-delay: 0.2s; }
.llcg-stats__grid .llcg-reveal:nth-child(2)  { transition-delay: 0.1s; }
.llcg-stats__grid .llcg-reveal:nth-child(3)  { transition-delay: 0.2s; }

/* ─── Placeholder Label (admin/dev only) ──────────────────────────────────────── */
/*
 * .llcg-ph-label is visible by default so editors can see what needs filling in.
 * Hide it by adding a custom CSS snippet or editing the template once data is ready.
 * It does NOT affect layout — it is display:block below existing content.
 */
.llcg-ph-label {
  display: block;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(201, 168, 76, 0.15);
  border-left: 3px solid var(--llcg-gold);
  border-radius: 2px;
  font-size: 11px;
  font-style: italic;
  color: var(--llcg-text-muted);
  font-family: var(--llcg-font-body);
}

/* Legal notice */
.llcg-legal-notice {
  font-size: 13px;
  color: var(--llcg-text-muted);
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ─── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --llcg-gutter: 20px;
    --llcg-section-py: var(--llcg-space-lg);
  }

  .llcg-split {
    grid-template-columns: 1fr;
    gap: var(--llcg-space-lg);
  }

  .llcg-split--reverse .llcg-split__text,
  .llcg-split--reverse .llcg-split__visual {
    order: unset;
  }

  .llcg-hero { padding-top: 72px; padding-bottom: 72px; }
  .llcg-hero--compact { padding-top: 56px; padding-bottom: 56px; }
  .llcg-hero__scroll-cue { display: none; }

  .llcg-cta-band__actions { flex-direction: column; align-items: center; }
  .llcg-hero__ctas        { flex-direction: column; }
  .llcg-btn               { width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 480px) {
  :root { --llcg-gutter: 16px; }
}
