/* Custom styles for Canary Insurance Solutions */

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

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

::-webkit-scrollbar-track {
    background: #1e293b;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Animation for mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.9) 0%,
        rgba(15, 118, 110, 0.7) 50%,
        rgba(2, 6, 23, 0.85) 100%
    );
}

/* Service card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: left 0.5s ease;
}

.btn-shine:hover::after {
    left: 100%;
}

/* Grid pattern background */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(13, 148, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(2, 6, 23, 0.85) 0%,
            rgba(15, 118, 110, 0.6) 100%
        );
    }
}

/* Print styles */
@media print {
    nav,
    .mobile-menu-btn,
    .btn-shine::after {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}
