/* ═══════════════════ BASE & RESET ═══════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

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

/* ═══════════════════ HERO ANIMATED SHAPES ═══════════════════ */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.circle-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 84, 48, 0.15) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: float-slow 12s ease-in-out infinite;
}

.circle-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(254, 249, 195, 0.1) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation: float-slow 16s ease-in-out infinite reverse;
}

.circle-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(232, 84, 48, 0.2) 0%, transparent 70%);
  top: 40%;
  right: 5%;
  animation: float-slow 8s ease-in-out infinite;
}

.hero-rect {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(254, 249, 195, 0.06);
  border-radius: 24px;
  top: 20%;
  left: 5%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.hero-tri {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(232, 84, 48, 0.08);
  bottom: 20%;
  right: 15%;
  animation: float-slow 10s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

/* ═══════════════════ CTA SECTION CIRCLES ═══════════════════ */
.cta-circle-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 84, 48, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  left: -150px;
  animation: float-slow 14s ease-in-out infinite;
}

.cta-circle-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(254, 249, 195, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  right: -50px;
  animation: float-slow 10s ease-in-out infinite reverse;
}

/* ═══════════════════ SCROLL REVEAL (Progressive Enhancement) ═══════════════════ */
/* Default state: all elements visible */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is ready and prefers-reduced-motion allows, enable animations */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .reveal-up {
    opacity: 0;
    transform: translateY(40px);
  }
  .js-ready .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }
  .js-ready .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }
  .js-ready .reveal-up.revealed,
  .js-ready .reveal-left.revealed,
  .js-ready .reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ═══════════════════ NAVBAR SCROLL STATE ═══════════════════ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(253, 246, 236, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
  color: #3D2B1F;
}

#navbar.scrolled a:not([class*="bg-terra"]) {
  color: rgba(61, 43, 31, 0.7);
}

#navbar.scrolled a:not([class*="bg-terra"]):hover {
  color: #E85430;
}

/* ═══════════════════ MOBILE MENU ═══════════════════ */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════ MOBILE HAMBURGER ANIMATION ═══════════════════ */
#menu-toggle.active #bar1 {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

#menu-toggle.active #bar2 {
  opacity: 0;
}

#menu-toggle.active #bar3 {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ═══════════════════ SCROLLBAR STYLING ═══════════════════ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #FDF6EC;
}

::-webkit-scrollbar-thumb {
  background: #E85430;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #DC3D1E;
}

/* ═══════════════════ SELECTION ═══════════════════ */
::selection {
  background: #E85430;
  color: white;
}

/* ═══════════════════ RESPONSIVE TWEAKS ═══════════════════ */
@media (max-width: 768px) {
  .hero-circle {
    display: none;
  }
  .hero-rect,
  .hero-tri {
    display: none;
  }
}
