/* Reset & Base */
*, *::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: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-bright);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  max-width: 70ch;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* Utility classes */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  color: var(--color-text-bright);
}

.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-accent);
  margin: 1rem auto 0;
  opacity: 0.5;
  border-radius: 1px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: -0.5rem auto 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.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;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1;
  min-height: 48px;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-surface);
  color: var(--color-text-bright);
  border-color: var(--color-border-light);
}

.btn--dark:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-accent);
  color: var(--color-text-bright);
  transform: translateY(-2px);
}

/* Text utilities */
.text-accent { color: var(--color-accent); }
.text-left { text-align: left; }

/* Section variants */
.section--alt {
  background: var(--gradient-section);
}

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

.section--dark .section-title {
  color: var(--color-text-bright);
}

.section--dark .section-title::after {
  background: var(--color-gold);
}

.section--dark .section-subtitle {
  color: var(--color-text);
}

/* Legacy section variant classes */
.section--warm {
  background: var(--gradient-section);
}

.section--cool {
  background: var(--color-bg-section-alt);
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Gradient hero fallback */
.gradient-hero,
.page-hero-gradient {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-bg) 50%, rgba(26, 26, 26, 0.95) 100%);
}