/* ============================================
   BASE — Reset, Shared Styles, Animations
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background: var(--color-bg-primary);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.2;
}

/* Star background layer */
.stars-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-gold-bright);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite alternate;
}

/* Gold accent line */
.gold-line {
  position: fixed;
  left: var(--gold-line-left);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-gold-bright), transparent);
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

/* Main content wrapper */
.page-content {
  position: relative;
  z-index: 2;
}

/* Section utility */
.section {
  padding: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Gold divider */
.gold-divider {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
}

/* Label / eyebrow text */
.label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

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

/* 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;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes twinkle {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spinIn {
  from {
    opacity: 0;
    transform: rotate(-30deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 110, 0.1); }
  50% { box-shadow: 0 0 40px rgba(201, 169, 110, 0.3); }
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-fadeUp {
  animation: fadeUp 0.8s var(--ease-out-expo) both;
}

.animate-slideIn {
  animation: slideIn 0.6s var(--ease-out-expo) both;
}

.animate-spinIn {
  animation: spinIn 1.2s var(--ease-out-expo) 0.2s both;
}

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

  html {
    scroll-behavior: auto;
  }

  .star {
    animation: none;
    opacity: 0.5;
  }
}

/* ============================================
   RESPONSIVE BASE
   ============================================ */

@media (max-width: 1024px) {
  .section {
    padding: var(--space-xl);
  }

  .gold-line {
    left: 20px;
  }

  :root {
    --gold-line-left: 20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-lg);
  }

  .gold-line {
    display: none;
  }
}
