/* Custom styles for Hamilton Mortgage */

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

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

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

::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Selection color */
::selection {
    background: #0f766e;
    color: white;
}

/* Hero image hover effect */
.grid-cols-2 > div > img {
    transition: transform 0.3s ease;
}

.grid-cols-2 > div > img:hover {
    transform: scale(1.02);
}

/* Floating badge animation */
.absolute.-bottom-6.-left-6 {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Process step connector lines */
.grid.md\:grid-cols-4 > div:not(:last-child) > div::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -1.5rem;
    width: 1rem;
    height: 2px;
    background: #e2e8f0;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* Service card hover effect */
.group:hover .group-hover\:bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .absolute.-bottom-6.-left-6 {
        animation: none;
    }
    
    .grid-cols-2 > div > img {
        transition: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #contactForm,
    iframe {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}
