/* File: static/css/core/home.css */

/* ==================================================
   HOME PAGE STYLES - FRISIVO THEME
   ================================================== */

/* Import AOS styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css');

/* ==================================================
   HERO SECTION
   ================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--linen-white) 0%, var(--rose-quartz) 50%, var(--soft-mauve) 100%);
  padding-bottom: 0; /* Remove bottom padding */
  margin-bottom: 0; /* Ensure no bottom margin */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="50" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="30" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--charcoal-plum);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.badge-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--charcoal-plum);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(230, 183, 193, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .subtitle {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--soft-mauve);
  display: block;
}

.text-gradient {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--charcoal-plum);
  opacity: 0.8;
  max-width: 500px;
}

/* Enhanced Search Form */
.search-form-container {
  max-width: 600px;
}

.search-form {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  border: 1px solid rgba(230, 183, 193, 0.2);
}

.search-form-inner {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  min-height: 70px;
}

.search-icon {
  color: var(--soft-mauve);
  font-size: 1.1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
}

.search-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--soft-mauve);
  margin-bottom: 0.25rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-form .form-control,
.search-form .form-select {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal-plum);
  box-shadow: none;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}

.search-form .form-control::placeholder {
  color: var(--soft-mauve);
  opacity: 0.7;
}

.search-divider {
  width: 1px;
  height: 40px;
  background: rgba(161, 141, 163, 0.2);
  margin: 0 0.5rem;
}

.search-btn {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  min-height: 60px;
  flex-shrink: 0;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--rose-quartz-dark), var(--soft-mauve-dark));
}

/* Hero Stats */
.hero-stats {
  margin-top: 2rem;
  margin-bottom: 0; /* Ensure no bottom margin */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 500px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal-plum);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--soft-mauve);
  font-weight: 500;
}

/* Hero Image */
.hero-image-container {
  position: relative;
  height: 600px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(230, 183, 193, 0.1), rgba(161, 141, 163, 0.1));
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  z-index: 3;
}

.floating-card-1 {
  top: 20%;
  right: -20px;
  width: 200px;
}

.floating-card-2 {
  bottom: 20%;
  left: -20px;
  width: 180px;
}

.floating-card-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-card-content i {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 183, 193, 0.1);
}

.floating-card-title {
  font-weight: 600;
  color: var(--charcoal-plum);
  font-size: 0.875rem;
}

.floating-card-subtitle {
  font-size: 0.75rem;
  color: var(--soft-mauve);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--charcoal-plum);
  cursor: pointer;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-5px);
}

.scroll-text {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* ==================================================
   SECTION STYLES
   ================================================== */
.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rose-quartz);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal-plum);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--soft-mauve);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================================================
   HOW IT WORKS SECTION - FIXED GAP ISSUE
   ================================================== */
.how-it-works-section {
  padding: 1rem 0 6rem 0; /* Minimal top padding to eliminate gap */
  background: var(--linen-white);
  margin-top: 0; /* No negative margin */
}

.steps-container {
  position: relative;
}

.step-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(230, 183, 193, 0.1);
  transition: var(--transition-normal);
  height: 100%;
  position: relative;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.step-number {
  position: absolute;
  top: -15px;
  right: 2rem;
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal-plum);
  margin-bottom: 1rem;
}

.step-description {
  color: var(--soft-mauve);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.step-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--charcoal-plum);
}

/* Step Connectors */
.step-connector {
  position: absolute;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-quartz), var(--soft-mauve));
  z-index: 1;
  display: none;
}

.step-connector-1 {
  left: 33.33%;
  width: 16.67%;
}

.step-connector-2 {
  left: 50%;
  width: 16.67%;
}

@media (min-width: 992px) {
  .step-connector {
    display: block;
  }
}

/* ==================================================
   FEATURED STYLISTS SECTION
   ================================================== */
.featured-stylists-section {
  padding: 6rem 0;
  background: white;
}

.stylists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.stylist-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(230, 183, 193, 0.1);
  transition: var(--transition-normal);
}

.stylist-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.stylist-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.stylist-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.stylist-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.verification-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stylist-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(60, 42, 77, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.stylist-card:hover .stylist-overlay {
  opacity: 1;
}

.stylist-card:hover .stylist-image {
  transform: scale(1.1);
}

.stylist-info {
  padding: 1.5rem;
}

.stylist-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal-plum);
  margin-bottom: 0.25rem;
}

.stylist-salon {
  color: var(--soft-mauve);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.stylist-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rating-stars {
  color: var(--champagne-gold);
}

.rating-stars .inactive {
  color: rgba(161, 141, 163, 0.3);
}

.rating-text {
  font-size: 0.875rem;
  color: var(--soft-mauve);
}

.stylist-bio {
  color: var(--soft-mauve);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.stylist-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soft-mauve);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.stylist-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.specialty-tag {
  background: rgba(230, 183, 193, 0.1);
  color: var(--rose-quartz);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--soft-mauve);
  margin-bottom: 1.5rem;
}

.empty-state h4 {
  color: var(--charcoal-plum);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--soft-mauve);
  margin-bottom: 2rem;
}

/* ==================================================
   SERVICES SECTION - 3 CARDS PER ROW RESPONSIVE
   ================================================== */
.services-section {
  padding: 6rem 0;
  background: var(--linen-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(230, 183, 193, 0.1);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(230, 183, 193, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(230, 183, 193, 0.1);
  color: var(--rose-quartz);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.service-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--charcoal-plum);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-description {
  color: var(--soft-mauve);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-action {
  margin-top: auto;
}

.service-price {
  font-weight: 600;
  color: var(--rose-quartz);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: block;
}

.service-btn {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
}

.service-btn:hover {
  background: linear-gradient(135deg, var(--rose-quartz-dark), var(--soft-mauve-dark));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Service Link Overlay */
.service-link {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(230, 183, 193, 0.9);
  color: white;
  text-decoration: none;
  padding: 0.75rem;
  text-align: center;
  transform: translateY(100%);
  transition: all 0.3s ease;
  font-weight: 500;
  z-index: 10;
}

.service-card:hover .service-link {
  transform: translateY(0);
}

.service-link:hover {
  background: rgba(230, 183, 193, 1);
  color: white;
  text-decoration: none;
}

/* Special styling for specific cards */
.service-card:nth-child(1) .service-icon {
  background: rgba(230, 183, 193, 0.1);
}

.service-card:nth-child(2) .service-icon {
  background: rgba(161, 141, 163, 0.1);
  color: var(--soft-mauve);
}

.service-card:nth-child(3) .service-icon {
  background: rgba(244, 214, 160, 0.1);
  color: var(--champagne-gold);
}

.service-card:nth-child(4) .service-icon {
  background: rgba(230, 183, 193, 0.1);
  color: var(--rose-quartz);
}

.service-card:nth-child(5) .service-icon {
  background: rgba(181, 214, 167, 0.1);
  color: var(--success-color);
}

.service-card:nth-child(6) .service-icon {
  background: rgba(161, 141, 163, 0.1);
  color: var(--soft-mauve);
}

/* Hover effects for specific cards */
.service-card:nth-child(2):hover .service-icon {
  background: linear-gradient(135deg, var(--soft-mauve), var(--soft-mauve-dark));
}

.service-card:nth-child(3):hover .service-icon {
  background: linear-gradient(135deg, var(--champagne-gold), #f0c674);
}

.service-card:nth-child(5):hover .service-icon {
  background: linear-gradient(135deg, var(--success-color), #a0c48a);
}

/* ==================================================
   TESTIMONIALS SECTION - FIXED DESIGN
   ================================================== */
.testimonials-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--charcoal-plum) 0%, var(--soft-mauve) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="testimonial-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="white" opacity="0.1"/><circle cx="40" cy="25" r="1" fill="white" opacity="0.08"/><circle cx="25" cy="40" r="1.2" fill="white" opacity="0.12"/></pattern></defs><rect width="100" height="100" fill="url(%23testimonial-pattern)"/></svg>');
  opacity: 0.3;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-quartz), var(--soft-mauve));
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  margin-bottom: 2rem;
}

.testimonial-quote {
  text-align: center;
  margin-bottom: 1.5rem;
}

.testimonial-quote i {
  font-size: 2.5rem;
  color: var(--rose-quartz);
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--charcoal-plum);
  font-style: italic;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating i {
  font-size: 1.25rem;
  color: var(--champagne-gold);
}

.testimonial-rating i.inactive {
  color: rgba(161, 141, 163, 0.3);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(161, 141, 163, 0.1);
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal-plum);
  margin-bottom: 0.25rem;
}

.author-service {
  font-size: 0.875rem;
  color: var(--soft-mauve);
  opacity: 0.8;
}

/* Testimonials slider controls (if needed) */
.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.testimonials-nav button {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonials-nav button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.testimonials-nav .active {
  background: rgba(255, 255, 255, 0.4);
}

/* ==================================================
   CTA SECTION
   ================================================== */
.cta-section {
  padding: 6rem 0;
  background: white;
}

.cta-container {
  background: linear-gradient(135deg, var(--linen-white), white);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(230, 183, 193, 0.1);
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--charcoal-plum);
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--soft-mauve);
  margin-bottom: 2rem;
  max-width: 500px;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--charcoal-plum);
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-btn-primary {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  border: none;
  font-weight: 600;
}

.cta-btn-primary:hover {
  background: linear-gradient(135deg, var(--rose-quartz-dark), var(--soft-mauve-dark));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-btn-secondary {
  border: 2px solid var(--soft-mauve);
  color: var(--soft-mauve);
  font-weight: 600;
}

.cta-btn-secondary:hover {
  background: var(--soft-mauve);
  color: white;
  transform: translateY(-2px);
}

/* ==================================================
   RESPONSIVE DESIGN FOR SERVICES GRID
   ================================================== */

/* Large Desktop (1200px and up) - 3 cards per row */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .service-card {
    padding: 3rem 2.5rem;
    min-height: 360px;
  }
  
  .service-icon {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }
  
  .service-title {
    font-size: 1.5rem;
  }
}

/* Desktop (992px to 1199px) - 3 cards per row */
@media (min-width: 992px) and (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .service-card {
    padding: 2.5rem 2rem;
    min-height: 340px;
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .service-title {
    font-size: 1.375rem;
  }
}

/* Tablet (768px to 991px) - 2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    min-height: 320px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .service-title {
    font-size: 1.25rem;
  }
  
  .service-description {
    font-size: 0.9rem;
  }
  
  .testimonials-track {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
}

/* Mobile Large (576px to 767px) - 2 cards per row with smaller spacing */
@media (min-width: 576px) and (max-width: 767px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem 1.25rem;
    min-height: 280px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .service-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .service-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .testimonials-track {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
}

/* Mobile Small (up to 575px) - 1 card per row */
@media (max-width: 575px) {
  .services-section {
    padding: 4rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    min-height: 260px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
  }
  
  .service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .service-description {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .service-price {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .service-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .testimonials-track {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  .author-avatar {
    width: 50px;
    height: 50px;
  }
}

/* Extra Small Mobile (up to 375px) - Optimized for small screens */
@media (max-width: 375px) {
  .service-card {
    padding: 1.5rem 1rem;
    margin: 0 auto;
    max-width: 320px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-title {
    font-size: 1.125rem;
  }
  
  .service-description {
    font-size: 0.85rem;
  }
  
  .service-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .testimonial-card {
    padding: 1.25rem;
  }
  
  .testimonial-quote i {
    font-size: 2rem;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
}

/* ==================================================
   RESPONSIVE DESIGN - MAIN BREAKPOINTS
   ================================================== */
@media (max-width: 1200px) {
  .floating-card-1 {
    right: -10px;
    width: 180px;
  }
  
  .floating-card-2 {
    left: -10px;
    width: 160px;
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding: 2rem 0 0 0; /* Remove bottom padding completely */
    margin-bottom: 0; /* Ensure no bottom margin */
  }
  
  .how-it-works-section {
    padding: 1rem 0 6rem 0; /* Minimal top padding on mobile */
    margin-top: 0; /* No negative margin on mobile */
  }
  
  .search-form-inner {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-field {
    padding: 1rem;
    border-bottom: 1px solid rgba(161, 141, 163, 0.1);
  }
  
  .search-field:last-of-type {
    border-bottom: none;
  }
  
  .search-divider {
    display: none;
  }
  
  .search-btn {
    margin: 0.5rem;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .hero-image-container {
    height: 400px;
    margin-top: 3rem;
  }
  
  .floating-card {
    display: none;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    margin-top: 2rem;
  }
  
  .testimonials-section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .step-card {
    padding: 2rem 1.5rem;
  }
  
  .stylists-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-track {
    grid-template-columns: 1fr;
  }
  
  .cta-container {
    padding: 3rem 2rem;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .testimonial-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 1rem 0 0 0; /* Minimal padding only */
  }
  
  .how-it-works-section {
    padding: 0.5rem 0 4rem 0; /* Very minimal top padding */
  }
  
  .search-form {
    padding: 0.25rem;
  }
  
  .search-field {
    padding: 0.75rem;
  }
  
  .stats-grid {
    gap: 0.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .step-card {
    padding: 1.5rem 1rem;
  }
  
  .cta-container {
    padding: 2rem 1.5rem;
  }
  
  .testimonials-section {
    padding: 2rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
}

/* ==================================================
   GRID ALIGNMENT AND SPACING UTILITIES
   ================================================== */

/* Ensure equal heights for all cards in a row */
.services-grid {
  align-items: stretch;
}

.testimonials-track {
  align-items: stretch;
}

/* Add subtle animation for grid items */
@media (prefers-reduced-motion: no-preference) {
  .service-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
  }
  
  .service-card:nth-child(1) { animation-delay: 0.1s; }
  .service-card:nth-child(2) { animation-delay: 0.2s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.4s; }
  .service-card:nth-child(5) { animation-delay: 0.5s; }
  .service-card:nth-child(6) { animation-delay: 0.6s; }
  
  .testimonial-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
  }
}

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

/* ==================================================
   ANIMATIONS
   ================================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-card {
  animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
  animation-delay: 0.5s;
}

.floating-card-2 {
  animation-delay: 1s;
}

/* Hover animations */
.service-card,
.stylist-card,
.step-card,
.testimonial-card {
  transition: all var(--transition-normal);
}

.service-card:hover,
.stylist-card:hover,
.step-card:hover {
  transform: translateY(-8px);
}

/* Loading states */
.hero-image,
.stylist-image {
  transition: opacity var(--transition-normal);
}

.hero-image[loading],
.stylist-image[loading] {
  opacity: 0.7;
}

/* ==================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================== */

/* Focus states for keyboard navigation */
.service-btn:focus,
.cta-btn-primary:focus,
.cta-btn-secondary:focus {
  outline: 2px solid var(--rose-quartz);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem rgba(230, 183, 193, 0.25);
}

.service-link:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .testimonial-card {
    border: 2px solid var(--charcoal-plum);
  }
  
  .service-card:hover,
  .testimonial-card:hover {
    border-color: var(--rose-quartz);
  }
  
  .testimonials-section {
    background: var(--charcoal-plum);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-icon,
  .service-btn,
  .testimonial-card,
  .floating-card {
    transition: none;
    animation: none;
  }
  
  .service-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
  
  .service-card:hover .service-icon {
    transform: none;
  }
  
  .service-btn:hover,
  .cta-btn-primary:hover,
  .cta-btn-secondary:hover {
    transform: none;
  }
  
  .scroll-arrow {
    animation: none;
  }
}

/* ==================================================
   LOADING STATES
   ================================================== */
.service-card.loading,
.testimonial-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.service-card.loading .service-icon,
.testimonial-card.loading .author-avatar {
  background: #f0f0f0;
  animation: pulse 1.5s ease-in-out infinite;
}

.service-card.loading .service-title,
.service-card.loading .service-description,
.service-card.loading .service-price,
.testimonial-card.loading .testimonial-text,
.testimonial-card.loading .author-name {
  background: #f0f0f0;
  color: transparent;
  border-radius: var(--radius-sm);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ==================================================
   PRINT STYLES
   ================================================== */
@media print {
  .services-section,
  .testimonials-section {
    background: white !important;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  .testimonials-track {
    grid-template-columns: 1fr !important; 
    gap: 1rem !important;
  }
  
  .service-card,
  .testimonial-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .service-btn,
  .service-link {
    display: none !important;
  }
  
  .floating-card,
  .testimonials-nav {
    display: none !important;
  }
  
  .testimonials-section {
    color: black !important;
  }
  
  .testimonial-card {
    background: white !important;
    color: black !important;
  }
}

/* Enhanced responsive styles for 3-stylist layout */
.featured-stylists-section .stylist-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.featured-stylists-section .stylist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.featured-stylists-section .stylist-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-stylists-section .stylist-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.featured-stylists-section .stylist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-stylists-section .stylist-card:hover .stylist-image {
    transform: scale(1.05);
}

.featured-stylists-section .stylist-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e6b7c1, #dda0c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.featured-stylists-section .verification-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-stylists-section .stylist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-stylists-section .stylist-card:hover .stylist-overlay {
    opacity: 1;
}

.featured-stylists-section .stylist-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-stylists-section .stylist-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.featured-stylists-section .stylist-salon {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
}

.featured-stylists-section .stylist-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.featured-stylists-section .rating-stars {
    display: flex;
    gap: 2px;
}

.featured-stylists-section .rating-stars i {
    color: #ffc107;
    font-size: 0.85rem;
}

.featured-stylists-section .rating-stars i.inactive {
    color: #e9ecef;
}

.featured-stylists-section .rating-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.featured-stylists-section .stylist-bio {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.featured-stylists-section .stylist-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.75rem;
}

.featured-stylists-section .stylist-location i {
    color: #e74c3c;
}

.featured-stylists-section .stylist-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.featured-stylists-section .specialty-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.featured-stylists-section .empty-state {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 3rem;
}

.featured-stylists-section .empty-state-icon {
    font-size: 3rem;
    color: #6c757d;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .featured-stylists-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .featured-stylists-section .section-header .btn {
        align-self: stretch;
        text-align: center;
    }
    
    .featured-stylists-section .stylist-image-container {
        height: 200px;
    }
    
    .featured-stylists-section .stylist-info {
        padding: 1rem;
    }
    
    .featured-stylists-section .stylist-name {
        font-size: 1rem;
    }
    
    .featured-stylists-section .empty-state {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .featured-stylists-section .stylist-image-container {
        height: 180px;
    }
    
    .featured-stylists-section .stylist-info {
        padding: 0.75rem;
    }
    
    .featured-stylists-section .specialty-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Ensure equal height cards on larger screens */
@media (min-width: 992px) {
    .featured-stylists-section .row {
        display: flex;
        align-items: stretch;
    }
}