/* ==========================================================================
   GLOBAL BASE RESET & UTILITIES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #FAF7F0; /* Fallback cream */
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, textarea, select {
  font-family: inherit;
}

/* Visibility helpers */
.hidden {
  display: none !important;
}

/* Scroll reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   SCROLL PROGRESS INDICATOR
   ========================================================================== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 100000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #dfa612, #f5c542);
  border-radius: 0 2px 2px 0;
  transition: width 0.05s linear;
}

/* ==========================================================================
   CUSTOM CURSOR (desktop only; enabled via js/animations.js)
   ========================================================================== */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  border-radius: 50%;
  will-change: transform;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #dfa612;
}

.custom-cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(223, 166, 18, 0.55);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease,
    border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.custom-cursor-dot.cursor-visible,
.custom-cursor-ring.cursor-visible {
  opacity: 1;
}

.custom-cursor-ring.cursor-hover {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-color: rgba(223, 166, 18, 0.9);
  background: rgba(223, 166, 18, 0.08);
}

.custom-cursor-ring.cursor-down {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}

/* Hide native cursor only when custom cursor is active */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor [role="button"] {
  cursor: none;
}

/* Never show custom cursor on touch devices or reduced motion */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: auto;
  }
}

/* Respect reduced motion for reveal animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-progress-bar {
    transition: none;
  }
}