/* ============================================================
   WEBLUX Base Styles — base.css
   Reset, Typography, Global Defaults
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body.no-scroll {
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-bold);
}

h1 {
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

h5 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
}

p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

p + p {
  margin-top: var(--space-4);
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: var(--transition-color);
}

a:hover {
  color: var(--color-gold-300);
}

a:focus-visible {
  outline: 2px solid var(--color-gold-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

strong, b {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* ── Lists ─────────────────────────────────────────── */
ul, ol {
  list-style: none;
}

/* ── Images ────────────────────────────────────────── */
img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ── Forms ─────────────────────────────────────────── */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Selection ─────────────────────────────────────── */
::selection {
  background-color: rgba(212, 175, 55, 0.25);
  color: var(--color-white);
}

::-moz-selection {
  background-color: rgba(212, 175, 55, 0.25);
  color: var(--color-white);
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-navy-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-600);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-navy-400) var(--bg-primary);
}

/* ── Utility Text ──────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--color-gold-300) 0%, var(--color-gold-500) 50%, var(--color-gold-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-white {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--text-accent);
}

.text-muted {
  color: var(--text-muted);
}

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

.text-balance {
  text-wrap: balance;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* ── Label / Overline ──────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-accent);
}

.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-gold-400);
}

/* ── Divider ───────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-default);
  border: none;
}

/* ── Skip Link (Accessibility) ─────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-preloader);
  padding: var(--space-3) var(--space-6);
  background: var(--color-gold-400);
  color: var(--color-navy-900);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Smooth Scroll Container ──────────────────────── */
.smooth-scroll {
  will-change: transform;
}

/* ── Screen Reader Only ────────────────────────────── */
.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;
}
