/**
 * File: /assets/css/custom.css
 * Best Windows - Custom CSS
 * Additional styles to complement Tailwind
 * Brand Colors: Purple (#8e6ea5, #604679) with Light Gray accent (#d5dcdd)
 */

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

/* Brand color variables for easy reference */
:root {
    --brand-purple: #8e6ea5;
    --brand-purple-dark: #604679;
    --brand-gray: #d5dcdd;
    --brand-purple-light: #a390b8;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Focus styles for accessibility - using brand purple */
*:focus {
    outline: 2px solid #8e6ea5;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid #8e6ea5;
    outline-offset: 2px;
}

/* Custom scrollbar with brand colors */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f5f3f7;
}

::-webkit-scrollbar-thumb {
    background: #8e6ea5;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #604679;
}

/* Form input focus effects with purple */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(142, 110, 165, 0.15);
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px;
    }
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Hover effects for cards with subtle purple glow */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(142, 110, 165, 0.2);
}

/* Gradient text with brand colors */
.gradient-text {
    background: linear-gradient(135deg, #8e6ea5 0%, #604679 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Accent borders and highlights */
.accent-border {
    border-color: #d5dcdd;
}

.accent-bg {
    background-color: #d5dcdd;
}

/* Purple gradient backgrounds */
.purple-gradient {
    background: linear-gradient(135deg, #8e6ea5 0%, #604679 100%);
}

.purple-gradient-light {
    background: linear-gradient(135deg, #f5f3f7 0%, #ebe7ef 100%);
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
}

/* Utility classes */
.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Responsive typography */
.text-responsive {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.heading-responsive {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Custom button styles with brand purple */
.btn-primary {
    background-color: #8e6ea5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #604679;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(142, 110, 165, 0.3);
}

/* Hero background animation with purple tones */
@keyframes subtleMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-bg-animate {
    background-size: 200% 200%;
    animation: subtleMove 15s ease infinite;
}

/* Card hover effects with purple shadow */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(142, 110, 165, 0.15);
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #604679;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Accent highlights with light gray */
.highlight-accent {
    background-color: rgba(213, 220, 221, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Purple icon backgrounds */
.icon-purple {
    background-color: rgba(142, 110, 165, 0.1);
    color: #604679;
}

/* Subtle purple borders */
.border-purple {
    border-color: #8e6ea5;
}

.border-purple-light {
    border-color: rgba(142, 110, 165, 0.3);
}

/* Text colors for brand consistency */
.text-brand-purple {
    color: #8e6ea5;
}

.text-brand-purple-dark {
    color: #604679;
}

/* Background overlays with purple tint */
.overlay-purple {
    background: linear-gradient(135deg, rgba(142, 110, 165, 0.9) 0%, rgba(96, 70, 121, 0.9) 100%);
}
