/* Custom styles for Blau Plumbing & Heating */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #c5a059;
    color: #0f172a;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text animation */
.hero-title {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1s ease forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease 0.3s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s ease 0.6s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold gradient text */
.gold-gradient-text {
    background: linear-gradient(135deg, #c5a059 0%, #e2c076 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover effects for cards */
.hover-card {
    transition: all 0.4s ease;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* Button pulse animation */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }
}

.pulse-animation {
    animation: pulse-gold 2s infinite;
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile menu animation */
.mobile-menu-open {
    animation: slideDown 0.3s ease;
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #c5a059 !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Decorative elements */
.decorative-line {
    position: relative;
}

.decorative-line::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #c5a059;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-blau-navy {
        background: #000;
    }
    
    .text-blau-gold {
        color: #ffd700;
    }
}

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

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #c5a059;
    outline-offset: 2px;
}

/* Accessibility: Skip to content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #c5a059;
    color: #0f172a;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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