/* ==========================================================================
   BASE RESET & MOBILE-FIRST FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-body);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  /* Extra bottom padding to prevent content being concealed by the sticky mobile bar */
  padding-bottom: calc(var(--bottom-bar-height) + 24px);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-3xl); }
h2 { font-size: var(--font-2xl); }
h3 { font-size: var(--font-xl); }
h4 { font-size: var(--font-lg); }
h5 { font-size: var(--font-md); }
h6 { font-size: var(--font-base); }

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

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

a:hover, a:focus-visible {
  color: var(--color-gold-light);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: var(--font-base);
  color: inherit;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
  body {
    padding-bottom: var(--space-xl);
  }
}

/* Visually Hidden for Screen Readers */
.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;
}

/* Section Header Typography */
.section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-transform: uppercase;
  font-size: var(--font-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  background: rgba(255, 160, 0, 0.1);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xs);
  border: 1px solid var(--color-border-gold);
}

.section-head h2 {
  margin-bottom: var(--space-xs);
}

.section-head p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* ==========================================================================
   SVG Vector Icons Utility
   ========================================================================== */
.svg-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-icon-sm {
  width: 0.9em;
  height: 0.9em;
}

.svg-icon-lg {
  width: 1.4em;
  height: 1.4em;
}

.svg-icon-xl {
  width: 1.85em;
  height: 1.85em;
}

.brand-svg {
  width: 26px;
  height: 26px;
}

