/* Westminster Surveyors - Custom CSS */

/* Fonts */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Custom Colors */
:root {
    --navy-900: #1e3a8a;
    --navy-800: #1e40af;
    --navy-700: #1d4ed8;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
}

.bg-navy-900 {
    background-color: var(--navy-900);
}

.bg-navy-800 {
    background-color: var(--navy-800);
}

.text-navy-900 {
    color: var(--navy-900);
}

.text-gold-400 {
    color: var(--gold-400);
}

.text-gold-500 {
    color: var(--gold-500);
}

.bg-gold-400 {
    background-color: var(--gold-400);
}

.bg-gold-500 {
    background-color: var(--gold-500);
}

.hover\:text-gold-300:hover {
    color: #fcd34d;
}

.hover\:text-gold-400:hover {
    color: var(--gold-400);
}

.hover\:text-gold-600:hover {
    color: var(--gold-600);
}

.hover\:bg-gold-400:hover {
    background-color: var(--gold-400);
}

.border-gold-500 {
    border-color: var(--gold-500);
}

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

/* Navigation Styles */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--navy-900);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: var(--navy-900);
    transform: translateY(-2px);
}

/* FAQ Styles */
.faq-button {
    transition: all 0.3s ease;
}

.faq-button:hover {
    background-color: #f8fafc;
}

.faq-button.active {
    background-color: #f1f5f9;
}

.faq-button.active i {
    transform: rotate(180deg);
}

.faq-content {
    transition: all 0.3s ease;
}

/* Form Styles */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 8px 16px;
    background: var(--navy-900);
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* HubSpot Form Overrides */
.hbspt-form .hs-form-field > label {
    font-weight: 600 !important;
    color: var(--navy-900) !important;
    margin-bottom: 8px !important;
}

.hbspt-form .hs-input {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease !important;
}

.hbspt-form .hs-input:focus {
    border-color: var(--gold-500) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

.hbspt-form .hs-button {
    background: var(--gold-500) !important;
    border: none !important;
    color: var(--navy-900) !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.hbspt-form .hs-button:hover {
    background: var(--gold-400) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3) !important;
}

/* Team Member Cards */
.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Service Icons */
.service-icon {
    font-size: 3rem;
    color: var(--gold-500);
    margin-bottom: 1rem;
}

/* Video Styles */
video {
    width: 100%;
    height: auto;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-600);
}

/* Mobile Menu Animation */
.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu.show {
    max-height: 400px;
    opacity: 1;
}

.mobile-menu.hide {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Blog Styles */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.blog-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Styles */
.article-content h2 {
    color: var(--navy-900);
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.article-content h3 {
    color: var(--navy-900);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Search Styles */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f9fafb;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-gradient-navy {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-navy-900 {
        background-color: #000;
    }
    
    .text-gray-600 {
        color: #333;
    }
}

/* 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;
    }
}