/*
  Static site styles for Rachel Jenkins-Stevens, LCSW (expanded)
  - Color system, typography, spacing
  - Utilities and components (buttons, cards, containers)
  - Layout (navbar, hero, sections, footer)
  - Animations
  - Responsive helpers
*/

:root {
  --primary-50: #f8f6ff;
  --primary-100: #f0ebff;
  --primary-200: #e4daff;
  --primary-300: #c3b2f9;
  --primary-400: #a28ff2;
  --primary-500: #876ae8;
  --primary-600: #8041a8;
  --primary-700: #aa75cb;
  --primary-800: #37335e;
  --primary-900: #2a1f4f;
  --text-900: #111827;
  --text-700: #374151;
  --text-600: #4b5563;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6 { font-family: "Playfair Display", Georgia, serif; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.container-custom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Utilities */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 20px rgba(58, 49, 120, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(58, 49, 120, 0.24); }

.btn-secondary {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(128,65,168,0.2);
  color: var(--primary-800);
  font-weight: 700;
  background: rgba(245,242,255,0.6);
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-secondary:hover { background: rgba(245,242,255,0.85); transform: translateY(-1px); }

.gradient-text {
  background: linear-gradient(90deg, var(--primary-600), var(--primary-700), var(--primary-800));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(164, 140, 255, 0.25);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(58,49,120,0.08);
  backdrop-filter: blur(8px);
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px);} }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out both; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Nav specific tweaks */
.navbar {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-bottom: 1px solid rgba(55,51,94,0.12); }

/* Navigation Link Animations */
.nav-link {
  font-weight: 500;
  color: var(--primary-800);
  position: relative;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-600), var(--primary-800));
  transition: width 0.3s ease;
}

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

.nav-link.active {
  color: var(--primary-600);
}

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

/* Services dropdown items with dots animation */
.nav-dropdown-item {
  position: relative;
  transition: all 0.2s ease;
}

.nav-dropdown-item .dot {
  width: 8px;
  height: 8px;
  background: var(--primary-400);
  border-radius: 50%;
  margin-right: 12px;
  transition: background 0.2s ease;
}

.nav-dropdown-item:hover .dot {
  background: var(--primary-600);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  transition: all 0.3s ease-in-out; /* Add transition for smooth animation */
  max-height: 0;
  overflow: hidden;
}

.mobile-menu.open {
  display: block;
  max-height: 500px; /* Adjust as needed to fit content */
  overflow: visible;
}

/* Footer */
.footer { 
  background: var(--primary-800); 
  color: #fff; 
  width: 100%;
  margin: 0;
  padding: 0;
}
.footer a { color: #d2d6ff; text-decoration: none; }
.footer a:hover { color: #fff; }

/* Responsive improvements */
@media (max-width: 768px) {
  .container-custom {
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .grid {
    gap: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .footer .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container-custom {
    padding: 0 0.75rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .navbar .container-custom {
    padding: 0 1rem;
  }
}