/* Custom CSS for RICS Surveyor Near Me */

/* Ensure proper mobile viewport handling */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 0;
    margin: 0;
}

/* Fix for hero section text positioning */
.hero-section {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Ensure video background covers properly */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        z-index: 40;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .hero-content {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-section {
        padding-top: 100px !important;
        min-height: calc(100vh - 80px) !important;
    }
}

/* FAQ accordion styling */
.faq-button.active .fas {
    transform: rotate(180deg);
}

.faq-content.active {
    max-height: 200px;
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Hover effects */
.hover-lift:hover {
    transform: translateY(-4px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[data-loading="true"] {
    opacity: 0.5;
}

/* Form styling improvements */
.hubspot-form {
    margin-top: 1rem;
}

/* Custom button hover effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive text sizing */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Accessibility improvements */
.focus\:outline-none:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-brand-gray {
        color: #000 !important;
    }
    
    .bg-gray-50 {
        background-color: #fff !important;
        border: 1px solid #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}