/* ============================================
   Styles Unlimited — Vero Beach Hair Salon
   Custom Styles
   ============================================ */

:root {
  --terracotta: #C1694F;
  --terracotta-dark: #A8553A;
  --sand: #F5F0EB;
  --sand-light: #FAF7F4;
  --espresso: #2C2420;
  --espresso-light: #4A3F38;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--sand);
  color: var(--espresso);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Lora', serif;
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(245, 240, 235, 0.97);
  box-shadow: 0 1px 0 rgba(44, 36, 32, 0.08);
}

.nav-logo {
  transition: color 0.3s ease;
}

/* Mobile Menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 1.1rem;
}

/* Scroll Indicator Animation */
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

.animate-scroll-line {
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* Reveal Animations */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered delays for service cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Gallery items */
.gallery-item {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Gallery hover */
.gallery-item img {
  transition: transform 0.7s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Testimonial cards */
.testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.25s; }

/* Eyebrow labels */
.service-eyebrow,
.about-eyebrow,
.gallery-eyebrow,
.testimonial-eyebrow,
.contact-eyebrow {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-eyebrow.revealed,
.about-eyebrow.revealed,
.gallery-eyebrow.revealed,
.testimonial-eyebrow.revealed,
.contact-eyebrow.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero text reveal */
.reveal-text.hero-eyebrow { transition-delay: 0.1s; }
.reveal-text.hero-subtitle { transition-delay: 0.3s; }
.reveal-text.hero-stats { transition-delay: 0.5s; }

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C2420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
  -webkit-appearance: none;
}

/* Smooth focus styles */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(193, 105, 79, 0.15);
}

/* Selection color */
::selection {
  background: var(--terracotta);
  color: white;
}

/* Subtle image zoom on hover for service cards */
.service-card:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Floating accent card animation */
@media (min-width: 640px) {
  .absolute.-bottom-6.-left-6 {
    animation: floatCard 4s ease-in-out infinite;
  }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 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;
  }
  .reveal-text,
  .reveal-text.hero-eyebrow,
  .reveal-text.hero-subtitle,
  .reveal-text.hero-stats {
    opacity: 1;
    transform: none;
  }
  .gallery-item {
    opacity: 1;
    transform: none;
  }
  .testimonial-card {
    opacity: 1;
    transform: none;
  }
}

/* Wide screens */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}
