/* Angel Surveyors - Main Stylesheet */

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #4299e1;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --success-color: #38a169;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Better tap highlight on mobile */
* {
    -webkit-tap-highlight-color: rgba(66, 153, 225, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(44, 82, 130, 0.85) 50%, rgba(66, 153, 225, 0.8) 100%);
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 30s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.1) translateX(-2%);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInRight 1s ease-out 0.4s backwards;
    max-height: 90vh;
    overflow-y: auto;
}

.hero-form-container h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-form-container p {
    color: var(--text-light);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Container & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Service Content Grid - Desktop (2-column layout) */
.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.service-content-grid > div {
    width: 100%;
}

.service-content-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: block;
}

/* Service image first (for party wall section) */
.service-image-first {
    order: 1;
}

.service-image-first + div {
    order: 2;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-color);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-color);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author-info p {
    font-size: 0.875rem;
    margin: 0;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

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

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
}

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

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

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

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Form */
.contact-form-section {
    background: var(--bg-light);
    padding: 3rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    line-height: 2;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.footer-bottom p {
    color: var(--white) !important;
}

/* Mobile Optimization - Touch Targets & Accessibility */
.btn,
.faq-question,
button,
a {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(66, 153, 225, 0.3);
}

/* Contact Grid - Desktop Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Larger touch targets for mobile */
    .mobile-menu-toggle {
        display: block;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.75rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Hero section mobile optimization */
    .hero-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero-text h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .hero-form-container {
        padding: 0.75rem !important;
        max-height: none;
        margin-bottom: 2rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .hero-form-container h3,
    .hero-form-container p {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Force HubSpot form in hero to fit viewport */
    .hero-form-container .hbspt-form,
    .hero-form-container .hs-form,
    .hero-form-container iframe {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* Typography mobile optimization */
    body {
        font-size: 16px; /* Prevent zoom on iOS */
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    h1 { 
        font-size: 1.875rem; 
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h2 { 
        font-size: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h3 {
        font-size: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Prevent text overflow */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Container padding for mobile */
    .container {
        padding: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section {
        padding: 3rem 0;
        overflow-x: hidden;
    }
    
    .nav-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    /* Prevent any element from causing horizontal scroll */
    .section > *,
    .container > * {
        max-width: 100%;
    }
    
    /* Grid layouts for mobile */
    .features-grid,
    .services-grid,
    .blog-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards optimization for mobile */
    .feature-card,
    .service-card,
    .blog-card,
    .team-member,
    .testimonial-card {
        margin-bottom: 0;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* FAQ mobile optimization */
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .faq-answer-content {
        padding: 0 1rem 1rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    /* Form elements mobile */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 48px;
        padding: 12px;
    }
    
    /* Blog card mobile */
    .blog-card img {
        height: 180px;
    }
    
    /* Service card mobile */
    .service-card img {
        height: 180px;
    }
    
    /* Contact page mobile - single column layout */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* About page mobile - single column layout */
    .about-story-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-story-grid > div:last-child {
        order: -1; /* Move image above text on mobile */
    }
    
    /* HubSpot form container mobile */
    .form-container {
        padding: 1.5rem !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure HubSpot forms are fully visible on mobile - AGGRESSIVE TARGETING */
    .form-container iframe,
    .form-container .hbspt-form,
    .form-container .hs-form,
    .form-container .hs-form-iframe,
    .hbspt-form iframe,
    #hsForm_c9959d29-7e40-476e-8182-c2a5551af482 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* HubSpot form fields */
    .hs-form-field,
    .hs-form .hs-form-field,
    .field {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* HubSpot inputs - all types */
    .hs-input,
    input.hs-input,
    textarea.hs-input,
    select.hs-input,
    .hs-fieldtype-text input,
    .hs-fieldtype-textarea textarea,
    .hs-fieldtype-select select {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        min-height: 48px !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    
    /* HubSpot submit button */
    .hs-button,
    input.hs-button,
    .hs-submit input[type="submit"],
    .actions input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
    
    /* HubSpot form wrapper elements */
    .hs_submit,
    .hs-submit,
    .actions,
    .hs-form-required,
    fieldset,
    fieldset.form-columns-1,
    fieldset.form-columns-2 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix any flex or grid layouts in HubSpot forms */
    .hs-form fieldset {
        display: block !important;
    }
    
    .hs-form .hs-form-field > label {
        display: block !important;
        width: 100% !important;
    }
    
    /* Team grid mobile */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .team-member img {
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Service content grid mobile - CRITICAL FIX */
    .service-content-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    .service-content-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    .service-content-grid img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    /* Reset order on mobile - show images first */
    .service-content-grid > div {
        order: 0 !important;
    }
    
    .service-content-grid img {
        margin-bottom: 1.5rem;
    }
    
    /* Override ALL inline grid styles on mobile */
    [style*="grid-template-columns"] {
        display: block !important;
    }
    
    [style*="grid-template-columns"] > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem;
    }
    
    /* Fix ALL images and videos on mobile */
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }
    
    /* CONTACT PAGE FORM FIX - CRITICAL */
    .contact-grid {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Ensure form wrapper in contact page gets full width */
    .contact-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
    }
    
    /* Form wrapper mobile - critical for HubSpot - NO PADDING */
    .form-wrapper-mobile {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* Form container gets full available width - REDUCED PADDING */
    .form-wrapper-mobile .form-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .form-container h3,
    .form-container > p {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* HubSpot form container - AGGRESSIVE WIDTH CONTROL */
    #hubspot-form-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #hubspot-form-container iframe,
    #hubspot-form-container .hbspt-form,
    #hubspot-form-container .hs-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* Additional contact form fix - make wrapper div full width - NO PADDING */
    .contact-grid > div > div {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Blog article mobile optimization */
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
    }
    
    /* Table mobile responsiveness */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
    }
    
    /* List styling for mobile */
    ul, ol {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    li {
        margin-bottom: 0.5rem;
        line-height: 1.7;
    }
    
    /* CTA sections mobile */
    .cta-section {
        padding: 2rem 1rem !important;
        text-align: center;
    }
    
    /* Improve link targets on mobile - ensure 48x48 minimum */
    a:not(.btn) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Navigation links touch-friendly */
    .nav-menu li a {
        min-height: 48px;
        padding: 1rem 1.5rem;
        display: flex;
        align-items: center;
    }
    
    /* Card hover effects disabled on mobile (improves performance) */
    .feature-card:hover,
    .service-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better spacing between sections on mobile */
    section + section {
        margin-top: 0;
    }
    
    /* Footer links mobile optimization */
    .footer a {
        min-height: 44px;
        display: inline-block;
        padding: 0.25rem 0;
    }
    
    /* Areas covered page - location cards */
    .location-card {
        margin-bottom: 1.5rem;
    }
    
    /* Blog list page optimization */
    .blog-grid {
        padding: 0;
    }
    
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* Service cards full width on mobile */
    .service-card {
        width: 100%;
    }
    
    /* Testimonials mobile */
    .testimonial-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    /* Better button spacing on mobile */
    .btn + .btn {
        margin-top: 1rem;
    }
    
    /* Ensure no element exceeds viewport width */
    .hero-content-wrapper,
    .about-story-grid,
    .service-content-grid,
    .contact-grid {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Related resources section mobile (blog articles) */
    .related-resources {
        padding: 2rem 1rem;
    }
    
    /* Improve readability of long URLs on mobile */
    a[href^="http"] {
        word-break: break-all;
    }
    
    /* Optimize inline code blocks for mobile */
    code {
        word-wrap: break-word;
        white-space: pre-wrap;
    }
    
    /* Better spacing for blog article content */
    article p {
        margin-bottom: 1.5rem;
    }
    
    article h2 {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    article h3 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    /* Image captions mobile */
    figcaption {
        font-size: 0.875rem;
        padding: 0.5rem;
        text-align: center;
    }
    
    /* Better form layout on mobile */
    .hs-form fieldset {
        margin-bottom: 1rem;
    }
    
    /* Accessibility - larger focus indicators on mobile */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 3px solid #4299e1;
        outline-offset: 2px;
    }
    
    /* CRITICAL MOBILE FORM FIX - HOMEPAGE & CONTACT PAGE */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Force ALL form elements and wrappers to fit within viewport */
    .hero-form-container,
    .form-container,
    .form-wrapper-mobile,
    #hubspot-form-container,
    .hbspt-form,
    .hs-form,
    .hero-content-wrapper > div,
    .contact-grid > div {
        max-width: calc(100vw - 1rem) !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
    
    /* HubSpot form field width control */
    .hs-form .hs-form-field,
    .hs-form .hs-input,
    .hs-form .hs-button,
    .hs-form fieldset {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* HubSpot form container IDs - ensure visibility */
    #hubspot-form-container,
    #hubspot-form-bottom,
    #hubspot-form-contact {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* HubSpot iframe - critical for mobile visibility */
    #hubspot-form-container iframe,
    #hubspot-form-bottom iframe,
    #hubspot-form-contact iframe,
    .hbspt-form iframe,
    .hs-form-iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Performance - reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Medium screens - tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content-wrapper {
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .hero-form-container {
        padding: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Small mobile devices (320px-480px) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    /* Improve readability on small screens */
    .hero-text p {
        font-size: 0.9375rem;
    }
    
    .btn {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    /* Extra padding reduction for very small screens */
    .container {
        padding: 0.75rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    /* Smaller images on very small screens */
    .blog-card img,
    .service-card img {
        height: 150px;
    }
    
    /* Compact footer on small screens */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    /* Better text sizing on iPhone SE and similar */
    body {
        font-size: 15px;
    }
    
    /* Tighter spacing on small screens */
    .feature-card,
    .service-card {
        padding: 1.25rem;
    }
}

/* Mobile landscape optimization (480px-767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Performance optimizations for mobile */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for consistency */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Mobile landscape orientation optimization */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    /* Reduce header height in landscape */
    .header {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Reduce section padding in landscape */
    .section {
        padding: 2rem 0;
    }
    
    /* Compact hero in landscape */
    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-text p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    /* Smaller buttons in landscape */
    .btn {
        padding: 0.75rem 1.5rem;
        min-height: 44px;
    }
    
    /* Mobile menu in landscape - reduce padding */
    .nav-menu {
        padding: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }
}

/* Extra wide mobile screens (landscape tablets) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Two-column layout for certain elements */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Slightly larger touch targets */
    .btn {
        min-height: 52px;
    }
    
    /* Better use of space on wide mobile */
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}
