/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

/* Hero shapes */
.shape-circle-1 {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  bottom: 15%;
  left: 5%;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  top: 30%;
  left: 10%;
  animation: float-medium 6s ease-in-out infinite;
}

.shape-square-1 {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  top: 20%;
  right: 15%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.12);
  bottom: 25%;
  right: 25%;
  transform: rotate(20deg);
  animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(245, 158, 11, 0.08);
  top: 45%;
  left: 8%;
  animation: float-medium 7s ease-in-out infinite;
}

.shape-dots {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  bottom: 10%;
  right: 8%;
  animation: float-slow 12s ease-in-out infinite;
}

/* About section shapes */
.shape-rect-accent-1 {
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.06);
  border-radius: 50%;
  top: -80px;
  left: -80px;
  animation: float-slow 9s ease-in-out infinite;
}

.shape-rect-accent-2 {
  width: 180px;
  height: 180px;
  background: rgba(139, 71, 133, 0.1);
  border-radius: 50%;
  bottom: -40px;
  right: 10%;
  animation: float-medium 7s ease-in-out infinite reverse;
}

/* CTA section shapes */
.shape-circle-cta-1 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation: float-slow 10s ease-in-out infinite;
}

.shape-circle-cta-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation: float-medium 8s ease-in-out infinite reverse;
}

.shape-diamond-cta {
  width: 100px;
  height: 100px;
  background: rgba(245, 158, 11, 0.15);
  top: 30%;
  left: 5%;
  transform: rotate(45deg);
  animation: spin-slow 18s linear infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(107, 47, 91, 0.08);
}

#navbar.scrolled .font-display {
  color: #6B2F5B !important;
}

#navbar.scrolled a:not([class*="bg-"]):not([class*="tel:"]) {
  color: #4a2040 !important;
}

#navbar.scrolled a:not([class*="bg-"]):not([class*="tel:"]).hover\:text-amber-600:hover {
  color: #d97706 !important;
}

#navbar.scrolled .bg-plum-600 {
  background: #6B2F5B !important;
}

#navbar.scrolled .bg-plum-600:hover {
  background: #5a274d !important;
}

#navbar.scrolled .menu-line {
  background: #6B2F5B !important;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== MENU LINE ANIMATION ===== */
#menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 5rem;
}

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

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible {
  outline: 3px solid #F59E0B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(107, 47, 91, 0.2);
  color: #250f20;
}

/* ===== UTILITY ===== */
@media (max-width: 640px) {
  .geo-shape {
    display: none;
  }
}
