/* Custom CSS for Wakefield Surveyors */
.font-inter {
    font-family: 'Inter', sans-serif;
}

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

/* Hero section background styling */
.bg-gradient-to-r {
    background-attachment: fixed;
}

/* Custom button hover effects */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-semibold transition duration-300;
}

.btn-secondary {
    @apply border-2 border-blue-600 text-blue-600 hover:bg-blue-600 hover:text-white px-6 py-3 rounded-lg font-semibold transition duration-300;
}

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

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

/* Professional color scheme */
:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-yellow: #eab308;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1000;
        padding-top: 80px;
    }
    
    .mobile-menu.active {
        display: block;
    }
}

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

/* Professional form styling */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-vertical;
}

/* Team member cards */
.team-card {
    transition: transform 0.3s ease;
}

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

/* Blog post styling */
.blog-content {
    line-height: 1.8;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul {
    margin-bottom: 1rem;
}

/* Service pricing highlights */
.pricing-highlight {
    @apply text-2xl font-bold text-blue-600;
}

/* Responsive improvements */
@media (max-width: 640px) {
    .text-4xl {
        font-size: 2.25rem;
    }
    
    .text-5xl {
        font-size: 3rem;
    }
    
    .px-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Professional testimonial styling */
.testimonial-card {
    @apply bg-white p-6 rounded-lg shadow-md;
    border-left: 4px solid var(--secondary-blue);
}

/* FAQ accordion styling */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 1rem;
    padding-left: 1rem;
}

/* Loading states for images */
img {
    background-color: #f3f4f6;
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

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

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* HubSpot form integration styling */
#hubspot-form-top .hs-form,
#hubspot-form-bottom .hs-form,
#hubspot-contact-form .hs-form {
    margin: 0;
}

#hubspot-form-top .hs-form fieldset,
#hubspot-form-bottom .hs-form fieldset,
#hubspot-contact-form .hs-form fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

#hubspot-form-top .hs-form .hs-form-field,
#hubspot-form-bottom .hs-form .hs-form-field,
#hubspot-contact-form .hs-form .hs-form-field {
    margin-bottom: 1rem;
}

#hubspot-form-top .hs-form input,
#hubspot-form-bottom .hs-form input,
#hubspot-contact-form .hs-form input,
#hubspot-form-top .hs-form textarea,
#hubspot-form-bottom .hs-form textarea,
#hubspot-contact-form .hs-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

#hubspot-form-top .hs-form .hs-button,
#hubspot-form-bottom .hs-form .hs-button,
#hubspot-contact-form .hs-form .hs-button {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#hubspot-form-top .hs-form .hs-button:hover,
#hubspot-form-bottom .hs-form .hs-button:hover,
#hubspot-contact-form .hs-form .hs-button:hover {
    background-color: #1d4ed8;
}

/* Video responsive styling */
video {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}