/* =============================================================================
   LightGuysGTA — global.css
   CSS Custom Properties · Reset · Base Typography · Utilities
   ============================================================================= */

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --color-gold:     #C1A035;
  --color-gold-lt:  #D4B44A;
  --color-black:    #0A0A0A;
  --color-carbon:   #1C1C1C;
  --color-offwhite: #F5F3EF;
  --color-text:     #2A2A2A;
  --color-muted:    #888888;
  --color-white:    #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 4px;

  --container-max: 1280px;
  --container-pad: 1.5rem;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Base Typography ────────────────────────────────────────────────────────── */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-feature-settings: "kern" 1, "liga" 1;
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Uniform font inheritance for interactive elements */
button,
input,
select,
textarea,
optgroup {
  font-family: var(--font-body);
  font-size: inherit;
  line-height: inherit;
}

p {
  max-width: 68ch;
}

/* ─── Container ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── Section Spacing ────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--space-lg);
}

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

/* ─── Section Backgrounds ────────────────────────────────────────────────────── */
.bg-black    { background-color: var(--color-black); }
.bg-carbon   { background-color: var(--color-carbon); }
.bg-offwhite { background-color: var(--color-offwhite); }

.bg-black h1, .bg-black h2, .bg-black h3, .bg-black p,
.bg-carbon h1, .bg-carbon h2, .bg-carbon h3, .bg-carbon p { color: var(--color-white) !important; }

/* ─── Text Colour Helpers ────────────────────────────────────────────────────── */
.text-white  { color: var(--color-white); }
.text-gold   { color: var(--color-gold); }
.text-muted  { color: var(--color-muted); }
.text-dark   { color: var(--color-text); }

/* ─── Eyebrow Labels ─────────────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

/* ─── Section Header ─────────────────────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-md);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-inline: auto;
}

/* ─── Scroll Reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Visually Hidden (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;
}

/* ─── Gold Divider ───────────────────────────────────────────────────────────── */
.gold-divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-gold);
  margin-block: var(--space-sm);
}

.gold-divider--center {
  margin-inline: auto;
}

/* ─── Aspect Ratio Helpers ───────────────────────────────────────────────────── */
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1; }

.ratio-16-9 img,
.ratio-4-3  img,
.ratio-1-1  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Feed Notice (plugin fallbacks) ────────────────────────────────────────── */
.feed-notice {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-style: italic;
  padding: var(--space-md);
  border: 1px solid var(--color-carbon);
  text-align: center;
}

/* ─── Star Rating ────────────────────────────────────────────────────────────── */
.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating .star {
  color: var(--color-gold);
  font-size: 1rem;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────────── */
.wc-breadcrumb,
.lgg-breadcrumb {
  padding-block: var(--space-sm);
}

.wc-breadcrumb ol,
.lgg-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.wc-breadcrumb a,
.lgg-breadcrumb a {
  color: var(--color-gold);
  transition: color var(--transition);
}

.wc-breadcrumb a:hover,
.lgg-breadcrumb a:hover {
  color: var(--color-gold-lt);
}

.breadcrumb-sep {
  color: var(--color-muted);
}

/* ─── Responsive Media ───────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --container-pad: 2rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --container-pad: 3rem;
  }
}
