/* 
 * Custom CSS for Macaw Landing Page
 * This file contains brand-specific styles and TailwindCSS overrides
 * 
 * Brand Colors:
 * - Primary (Macaw Blue): #008CFF
 * - Accent (Macaw Green): #23D160
 * 
 * Feel free to customize colors, fonts, and spacing below
 */

/* CSS Custom Properties for easy color customization */
:root {
  --macaw-blue: #008CFF;
  --macaw-red: #FF4444;
  --macaw-blue-dark: #0070CC;
  --macaw-red-dark: #E63946;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles for better accessibility */
input:focus,
button:focus {
  outline: 2px solid var(--macaw-blue);
  outline-offset: 2px;
}

/* Custom button hover effects */
.btn-primary {
  background-color: var(--macaw-blue);
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--macaw-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 140, 255, 0.3);
}

/* Loading state for form submission */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading button {
  position: relative;
}

.loading button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom animations for hero section */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(45deg, var(--macaw-blue), var(--macaw-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom shadow styles */
.shadow-macaw {
  box-shadow: 0 10px 25px rgba(0, 140, 255, 0.1);
}

.shadow-macaw-lg {
  box-shadow: 0 20px 40px rgba(0, 140, 255, 0.15);
}

/* Responsive typography improvements */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Form styling enhancements */
.form-container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* Error state styling */
.input-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success state styling */
.input-success {
  border-color: var(--macaw-red);
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Navigation improvements */
nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

/* Section spacing improvements */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Partner logo styling */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer improvements */
footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--macaw-blue);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-gray-50 {
    background-color: white;
  }
  
  .text-gray-600 {
    color: #000;
  }
  
  .border-gray-200 {
    border-color: #000;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}
