/* Custom design system - Plum & Amber | Fresh & Airy */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --plum-50: #faf5f9;
  --plum-100: #f3e5f1;
  --plum-200: #e8bfd9;
  --plum-300: #d495be;
  --plum-400: #c06aa3;
  --plum-500: #a84d8a;
  --plum-600: #7B2D8B;
  --plum-700: #5c1f68;
  --plum-800: #3d1447;
  --plum-900: #2a0e33;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --amber-700: #B45309;
}

/* Tailwind config override */
@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
  }

  h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
  }
}

@layer utilities {
  .font-playfair {
    font-family: 'Playfair Display', serif;
  }
  .font-outfit {
    font-family: 'Outfit', sans-serif;
  }
}

/* Header scroll state */
#header {
  background: transparent;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-blur-lg;
  box-shadow: 0 1px 20px rgba(123, 45, 139, 0.08);
}

#header.scrolled .header-logo-text {
  color: var(--plum-800);
}

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

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

.hamburger-line {
  transition: all 0.3s ease;
}

#mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 20px;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero animations */
.fade-in {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--plum-50);
}

::-webkit-scrollbar-thumb {
  background: var(--plum-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--plum-500);
}

/* Selection color */
::selection {
  background: var(--plum-200);
  color: var(--plum-900);
}

/* Nav link underline effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber-500);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile nav link animation */
.mobile-nav-link {
  position: relative;
}

/* Service card hover glow */
.group:hover .w-14 {
  box-shadow: 0 0 20px rgba(123, 45, 139, 0.2);
}

/* Neighborhood card overlay transition */
.group .absolute {
  transition: all 0.4s ease;
}

/* Smooth form focus transitions */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(123, 45, 139, 0.1);
}
