/* Homepage-Specific Styles */

/* Hero Section Gradient Animation */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #EBF4FF 0%, #FFFFFF 50%, #FFF4ED 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 51, 102, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255, 102, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Button Hover Effects */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
}

/* Card Hover Effects */
.hover\:shadow-lg:hover {
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Step Arrows Animation */
@media (min-width: 768px) {
  .step-arrow {
    animation: pulse-arrow 2s ease-in-out infinite;
  }

  @keyframes pulse-arrow {
    0%, 100% {
      transform: translateX(0);
      opacity: 1;
    }
    50% {
      transform: translateX(5px);
      opacity: 0.7;
    }
  }
}

/* Carpet Card Image Aspect Ratio */
.aspect-w-4 {
  position: relative;
  padding-bottom: 75%; /* 4:3 aspect ratio */
}

.aspect-w-4 > * {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Trust Signal Icons Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero-section svg {
  animation: float 3s ease-in-out infinite;
}

/* Mobile Menu Slide Animation */
@media (max-width: 768px) {
  .mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #003366;
  outline-offset: 2px;
}

/* Skip to Main Content Link (for screen readers) */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 1rem;
  background: #003366;
  color: white;
  text-decoration: none;
}

.skip-to-main:focus {
  left: 0;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .hero-section,
  nav,
  footer,
  .btn-primary,
  .btn-secondary {
    display: none;
  }
}

/* ===== DRAFT BANNER STYLES ===== */
.draft-banner {
  background: linear-gradient(135deg, #e6f0fa 0%, #f0f4ff 100%);
  border: 1px solid #bfd7ff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.draft-banner-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.draft-banner-header {
  margin-bottom: 16px;
}

.draft-banner-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.draft-banner-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.draft-banner-details {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.draft-step-info {
  margin-bottom: 12px;
}

.draft-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #0b63c7;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.draft-step-name {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  margin: 0;
}

.draft-progress {
  margin-bottom: 12px;
}

.progress-bar-small {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #0b63c7;
  transition: width 0.3s ease;
}

.draft-progress-text {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.draft-timestamp {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
  font-style: italic;
}

.draft-banner-actions {
  display: flex;
  gap: 12px;
}

.draft-banner-actions .btn-primary {
  flex: 1;
  padding: 12px 16px;
  background: #0b63c7;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.draft-banner-actions .btn-primary:hover {
  background: #0953a5;
  transform: none;
  box-shadow: none;
}

.draft-banner-actions .btn-primary:active {
  background: #073d8a;
}

.draft-banner-actions .btn-secondary {
  flex: 1;
  padding: 12px 16px;
  background: white;
  color: #0b63c7;
  border: 1px solid #0b63c7;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.draft-banner-actions .btn-secondary:hover {
  background: #f0f7ff;
  transform: none;
  box-shadow: none;
}

.draft-banner-actions .btn-secondary:active {
  background: #e6f0ff;
}

/* Mobile: stack buttons vertically */
@media (max-width: 640px) {
  .draft-banner {
    padding: 16px;
    margin-bottom: 24px;
  }

  .draft-banner-actions {
    flex-direction: column;
  }

  .draft-banner-actions button {
    width: 100%;
  }

  .draft-banner-title {
    font-size: 16px;
  }

  .draft-step-name {
    font-size: 14px;
  }
}

@media (max-width: 375px) {
  .draft-banner {
    padding: 12px;
    margin-bottom: 16px;
  }

  .draft-banner-title {
    font-size: 14px;
  }

  .draft-step-name {
    font-size: 13px;
  }

  .draft-banner-actions {
    gap: 8px;
  }

  .draft-banner-actions button {
    padding: 10px 12px;
    font-size: 12px;
  }
}
