/* Custom Styles for Party Wall Specialist London */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

/* Hero section video background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: -1;
}

/* Fixed positioning for hero contact form - IMPROVED */
#hero-contact-form {
    position: relative;
    z-index: 20;
    margin-top: 60px; /* Increased margin to push form down */
    margin-bottom: 40px; /* Added bottom margin for better spacing */
    transform: none; /* Removed transform that was causing positioning issues */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ensure form is fully visible on smaller screens */
@media (max-height: 800px) {
    #hero-contact-form {
        margin-top: 40px;
        margin-bottom: 20px;
    }
}

@media (max-height: 700px) {
    #hero-contact-form {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

/* HubSpot form customizations */
.hs-form {
    font-family: 'Inter', sans-serif !important;
}

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

.hs-form .hs-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.hs-form .hs-button {
    background-color: #2563eb !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white !important;
    width: 100% !important;
    transition: background-color 0.3s ease !important;
}

.hs-form .hs-button:hover {
    background-color: #1d4ed8 !important;
}

.hs-form .hs-error-msgs {
    color: #dc2626 !important;
    font-size: 12px !important;
}

/* Service cards hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.mobile-menu.show {
    display: block !important;
}

/* Button animations */
.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonial cards */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

/* Blog card styles */
.blog-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.blog-card img {
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* FAQ styles */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #2563eb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 500px;
}

/* Area cards */
.area-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.area-card img {
    transition: transform 0.3s ease;
}

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

.area-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: white;
}

/* Team member cards */
.team-card {
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #e5e7eb;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-photo {
    border-color: #3b82f6;
}

/* Contact info styling */
.contact-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 30px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Blog article styles */
.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
}

.blog-content p {
    margin-bottom: 1.25rem;
    color: #4b5563;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.blog-content blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-content th,
.blog-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.blog-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Interactive elements */
.interactive-element {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.interactive-element::before {
    content: "💡";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #0ea5e9;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Progress bars for blog articles */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    #hero-contact-form {
        margin: 20px auto;
        max-width: 90%;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    #hero-contact-form {
        margin: 10px;
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0,0,0,0.9);
    }
    
    .text-gray-600 {
        color: #374151 !important;
    }
}

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