/* ========================================
   BASE STYLES
   Reset, typography, utility classes
   ======================================== */

/* === RESET & DEFAULTS === */
/* Bootstrap Reboot handles box-sizing and element resets */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-deepest);
  background-image: var(--gradient-ambient);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent-light);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* === SECTION BASE === */
section {
  position: relative;
  padding: var(--section-py) 0;
}

.section-dark {
  background: var(--gradient-section);
}

.section-alt {
  background: var(--gradient-section-alt);
}

/* === SECTION HEADINGS === */
.section-heading {
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.section-heading h2 {
  margin-bottom: var(--gap-sm);
}

.section-heading .section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-heading .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 1rem auto 0;
  border-radius: var(--radius-pill);
}

/* === TEXT UTILITIES === */
.text-accent {
  color: var(--color-accent-light);
}

.text-gradient-gold {
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* === SELECTION === */
::selection {
  background: rgba(var(--color-accent-rgb), 0.3);
  color: var(--text-primary);
}

/* === SCROLLBAR (Webkit) === */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius);
}

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

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation-play-state: paused !important;
  }
}

/* Use Bootstrap's .visually-hidden instead of custom .sr-only */
