/* Global Styles */
:root {
    --primary-color: #003d82;
    --secondary-color: #e63946;
    --accent-color: #f1faee;
    --text-dark: #1a1a1a;
    --text-light: #4a5568;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #10b981;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 70px; /* Account for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-nav {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #002a5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 61, 130, 0.3);
}

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

.btn-secondary:hover {
    background-color: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.3);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 24px;
}

.btn-nav:hover {
    background-color: #d62839;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo i {
    font-size: 1.5rem;
}

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

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

.nav-menu a:not(.btn-nav):hover,
.nav-menu a.active {
    color: var(--primary-color);
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.9) 0%, rgba(0, 61, 130, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 20px;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.hero-form-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-form-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Trust Badges */
.trust-badges {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

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

.badge {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.badge i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.badge h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.badge p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Services Preview */
.services-preview {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 61, 130, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.service-link:hover {
    gap: 12px;
}

/* About Preview */
.about-preview {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
}

/* Process Section */
.process-section {
    padding: 5rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #c72030);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-display i {
    color: #fbbf24;
    font-size: 1.25rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.review-rating {
    margin-bottom: 1rem;
}

.review-rating i {
    color: #fbbf24;
    margin-right: 4px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.review-author {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.review-author strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.review-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Areas Covered Preview */
.areas-covered-preview {
    padding: 5rem 0;
    text-align: center;
}

.areas-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.area-tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

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

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

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

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

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

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-form-wrapper {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 4rem 0 2rem;
}

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

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

.footer-section p {
    color: #a0aec0;
    margin-bottom: 1rem;
}

.footer-accreditations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.accreditation-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
}

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

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #718096;
}

.footer-bottom a {
    color: #a0aec0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    /* Mobile Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Mobile Hero Section */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.9rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-feature {
        padding: 1rem;
    }
    
    /* Mobile Video */
    .hero-video-wrapper {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-video {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Mobile Images */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .blog-image,
    .article-featured-image,
    .related-card img,
    .team-member img,
    .service-icon img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Mobile Grids */
    .services-grid,
    .process-steps,
    .reviews-grid,
    .team-grid,
    .blog-grid,
    .area-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile Forms - HubSpot Optimization */
    .hero-form-card,
    .contact-form-section,
    #hubspot-form-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .hs-form-field,
    .hs-input {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hs-input input,
    .hs-input textarea,
    .hs-input select {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
    }
    
    .hs-submit {
        width: 100% !important;
    }
    
    .hs-submit input[type="submit"],
    .hs-button {
        width: 100% !important;
        padding: 16px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Mobile Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-nav {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        margin-bottom: 1rem;
        touch-action: manipulation;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile Sections */
    .section-padding {
        padding: 3rem 1rem;
    }
    
    .about-content,
    .service-content {
        padding: 2rem 1rem;
    }
    
    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 1.5rem 0;
    }
    
    /* Mobile Cards */
    .service-card,
    .review-card,
    .blog-card {
        padding: 1.5rem;
    }
    
    /* Mobile FAQ */
    .faq-item {
        padding: 1rem;
    }
    
    .faq-question {
        font-size: 1.05rem;
        padding: 1rem 3rem 1rem 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile Typography */
    h1 {
        font-size: 1.65rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.4rem !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Extra Small Mobile Buttons */
    .btn-primary, 
    .btn-secondary, 
    .btn-nav {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }
    
    /* Extra Small Mobile Hero */
    .hero {
        min-height: 100vh;
        padding: 70px 0 30px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.6rem !important;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Extra Small Mobile Navigation */
    .navbar {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        padding: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.9rem 0;
    }
    
    /* Extra Small Mobile Sections */
    .section-padding {
        padding: 2.5rem 1rem;
    }
    
    /* Extra Small Mobile Cards */
    .service-card,
    .review-card,
    .blog-card {
        padding: 1.25rem;
    }
    
    .blog-card h3 {
        font-size: 1.15rem;
    }
    
    /* Extra Small Mobile Forms */
    .hero-form-card,
    .contact-form-section {
        padding: 1.25rem;
        margin: 0.75rem 0;
    }
    
    .hs-input input,
    .hs-input textarea,
    .hs-input select {
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    .hs-submit input[type="submit"] {
        padding: 14px !important;
        font-size: 1rem !important;
    }
    
    /* Extra Small Mobile Images */
    .blog-image,
    .article-featured-image {
        max-height: 220px !important;
    }
    
    /* Extra Small Mobile Footer */
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
    
    /* Extra Small Mobile Spacing */
    .container {
        padding: 0 1rem;
    }
    
    /* Extra Small Mobile Tables (if any) */
    table {
        font-size: 0.85rem;
    }
    
    /* Extra Small Mobile Accreditations */
    .accreditation-badge,
    .trust-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Extra Small Mobile Blog Meta */
    .blog-meta {
        font-size: 0.8rem;
    }
    
    /* Extra Small Mobile FAQ */
    .faq-question {
        font-size: 1rem;
        padding: 0.9rem 2.5rem 0.9rem 0.9rem;
    }
    
    .faq-answer {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    /* Extra Small Mobile CTA */
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Blog Styles */
.blog-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    text-align: center;
}

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

.blog-hero p {
    color: var(--accent-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

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

.blog-meta i {
    margin-right: 4px;
}

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

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

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    gap: 10px;
}

/* Article Styles */
.article-hero {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.article-header {
    max-width: 900px;
    margin: 0 auto;
}

.article-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.article-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.article-content h3 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content img {
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

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

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

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

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

/* HubSpot Form Styling */
.hs-form {
    max-width: 100%;
}

.hs-form-field {
    margin-bottom: 1rem;
}

.hs-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.hs-form-field input[type="text"],
.hs-form-field input[type="email"],
.hs-form-field input[type="tel"],
.hs-form-field textarea,
.hs-form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.hs-form-field input:focus,
.hs-form-field textarea:focus,
.hs-form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.hs-submit input[type="submit"] {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.hs-submit input[type="submit"]:hover {
    background-color: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Service Detail Pages */
.service-detail-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    text-align: center;
}

.service-detail-hero h1 {
    color: var(--white);
}

.service-detail-content {
    padding: 4rem 0;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    text-align: center;
}

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

.contact-hero p {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-content {
    padding: 4rem 0;
}

.contact-form-section {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Areas Page */
.areas-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    text-align: center;
}

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

.areas-hero p {
    color: var(--accent-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.areas-content {
    padding: 4rem 0;
}

.area-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.area-section:last-child {
    border-bottom: none;
}

.area-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.area-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.area-item {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.area-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* About Page */
.about-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    text-align: center;
}

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

.about-hero p {
    color: var(--accent-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.about-section {
    padding: 4rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

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

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

.team-member p {
    text-align: left;
}

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

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

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

.hidden {
    display: none;
}

/* Blog Article Styles */
.blog-article {
    padding: 2rem 0;
}

.article-header {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 0.7rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 4px;
}

.article-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    display: block !important;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.article-content .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 500;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

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

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block !important;
}

.related-card h4 {
    padding: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
    padding: 3rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.faq-item h3 i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

/* Article CTA */
.article-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--white);
}

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

.article-cta p {
    color: var(--accent-color);
    margin-bottom: 2rem;
}

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

.article-cta .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* HubSpot Form Mobile Fixes */
.hero-form-card,
#hero-form-container,
#bottom-form-container,
.contact-form-section {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force HubSpot forms visible on all devices */
.hs-form,
.hs-form-field,
.hs-input,
.hs-button,
.submitted-message {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hs-form-field {
    margin-bottom: 1rem !important;
}

.hs-input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px !important;
}

.hs-button {
    width: 100% !important;
    padding: 14px 32px !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.hs-button:hover {
    background-color: #002a5c !important;
}

/* Mobile Image & Video Fixes */
@media (max-width: 768px) {
    /* HubSpot Form Mobile Specific */
    .hero-form-card {
        padding: 1.5rem !important;
        margin: 2rem 0 !important;
        max-width: 100% !important;
    }
    
    .contact-form-section {
        padding: 2rem 1rem !important;
        max-width: 100% !important;
    }
    
    #hero-form-container,
    #bottom-form-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .hs-form {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hs-form-field {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .hs-input,
    .hs-input[type="text"],
    .hs-input[type="email"],
    .hs-input[type="tel"],
    textarea.hs-input {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
    
    .hs-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        margin-top: 1rem !important;
    }
    
    .hs-error-msgs {
        font-size: 14px !important;
    }
    
    /* Ensure ALL images are visible and responsive on mobile */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .blog-image,
    .article-featured-image,
    .related-card img,
    .team-photo,
    .service-card img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hero video mobile fixes */
    .hero-video-wrapper {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Blog grid mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .blog-card {
        max-width: 100%;
    }
    
    .blog-image {
        height: 240px;
        object-fit: cover;
    }
    
    /* Related articles mobile */
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-card img {
        height: 200px !important;
    }
    
    /* Article featured image mobile */
    .article-featured-image {
        max-height: 400px;
        margin: 1rem 0;
    }
    
    /* FAQ section mobile */
    .faq-section {
        padding: 2rem 1rem;
    }
    
    /* Article CTA mobile */
    .article-cta {
        padding: 2rem 1rem;
    }
    
    /* Team photos mobile */
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    /* HubSpot Form Small Mobile */
    .hero-form-card {
        padding: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .contact-form-section {
        padding: 1.5rem 0.75rem !important;
    }
    
    .hs-input,
    .hs-input[type="text"],
    .hs-input[type="email"],
    .hs-input[type="tel"],
    textarea.hs-input {
        padding: 10px !important;
        font-size: 16px !important;
    }
    
    .hs-button {
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    /* Extra small mobile - force image visibility */
    img,
    video {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .article-content {
        padding: 1.5rem 15px;
    }
    
    .article-featured-image {
        max-height: 300px;
        border-radius: 4px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .related-card img {
        height: 180px !important;
    }
    
    .faq-section {
        padding: 1.5rem 1rem;
    }
    
    .article-cta {
        padding: 1.5rem 1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .article-meta {
        font-size: 0.85rem;
        gap: 1rem;
    }
}

/* =================================================================
   MOBILE-FIRST OPTIMIZATIONS & TOUCH ENHANCEMENTS
   ================================================================= */

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

/* Mobile Touch Optimization */
* {
    -webkit-tap-highlight-color: rgba(230, 57, 70, 0.2);
    -webkit-touch-callout: none;
}

a, button, input[type="submit"], .btn {
    -webkit-tap-highlight-color: rgba(230, 57, 70, 0.3);
    touch-action: manipulation;
}

/* Smooth Scrolling for Mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Mobile-Friendly Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Prevent Text Size Adjustment on Orientation Change */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Optimize Images for Mobile Performance */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mobile Video Optimization */
video {
    max-width: 100%;
    height: auto;
}

/* Safe Area for iPhone Notch */
@supports (padding: max(0px)) {
    .navbar,
    .footer {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Mobile Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding: 50px 0 30px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* Mobile Performance: Reduce Animation on Low-End Devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Additional Mobile Breakpoint for Large Phones */
@media (min-width: 481px) and (max-width: 767px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet Portrait Specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .services-grid,
    .team-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Mobile-First: Force Image Visibility */
@media (max-width: 768px) {
    picture,
    figure,
    .image-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    picture img,
    figure img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

/* Mobile Navigation Accessibility */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-toggle:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .nav-menu a:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: -2px;
    }
}

/* Mobile Form Validation Styles */
@media (max-width: 768px) {
    .hs-error-msgs,
    .hs-error-msg {
        font-size: 0.85rem !important;
        color: #e63946 !important;
        margin-top: 0.5rem !important;
        display: block !important;
    }
    
    .hs-form-field.error input,
    .hs-form-field.error textarea {
        border-color: #e63946 !important;
        background-color: #fff5f5 !important;
    }
}

/* Mobile Loading States */
@media (max-width: 768px) {
    .loading {
        opacity: 0.6;
        pointer-events: none;
    }
    
    button:disabled,
    input[type="submit"]:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

/* Mobile Print Styles */
@media print {
    .navbar,
    .footer,
    .mobile-menu-toggle,
    .cta-buttons,
    .hero-form-card,
    #hero-form-container,
    #bottom-form-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
}

/* Mobile Sticky Elements Fix */
@media (max-width: 768px) {
    .sticky,
    .fixed {
        position: -webkit-sticky;
        position: sticky;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
    
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Android Specific Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Mobile: Optimize for High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Mobile Accessibility: High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
    
    a {
        text-decoration: underline;
    }
}

/* =================================================================
   END MOBILE OPTIMIZATIONS
   ================================================================= */