/* House Surveys - Professional Surveying Services */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d7c;
    --secondary-color: #2c7ab5;
    --accent-color: #f39c12;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #27ae60;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

/* 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(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-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: var(--transition);
}

.header-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 {
    font-size: 1.8rem;
}

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

nav ul li a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.cta-button {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
}

/* Hamburger Icon Animation */
.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Hero Dynamic Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Hero Background Image with Dynamic Animation */
.hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    object-fit: cover;
    opacity: 0.4;
    animation: heroZoom 20s ease-in-out infinite alternate, heroMove 30s ease-in-out infinite;
}

/* Hero Background Video (if using video instead of image) */
.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

/* Hero Background Animations */
@keyframes heroZoom {
    0% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes heroMove {
    0% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    25% {
        transform: translate(-48%, -52%) scale(1.15);
    }
    50% {
        transform: translate(-52%, -50%) scale(1.2);
    }
    75% {
        transform: translate(-50%, -48%) scale(1.15);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 124, 0.88) 0%, rgba(44, 122, 181, 0.85) 100%);
    z-index: 1;
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        background: linear-gradient(135deg, rgba(26, 77, 124, 0.88) 0%, rgba(44, 122, 181, 0.85) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(26, 77, 124, 0.85) 0%, rgba(44, 122, 181, 0.82) 100%);
    }
}

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

.hero-text h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.2;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.hero-feature i {
    color: var(--accent-color);
}

/* Contact Form in Hero */
.hero-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    max-height: none;
    overflow: visible;
    min-height: auto;
}

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

.hero-form-container p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.section {
    padding: 4rem 0;
}

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

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

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    background: var(--bg-light);
}

.trust-badge {
    text-align: center;
}

.trust-badge-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.trust-badge h4 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.service-card ul {
    list-style: none;
    margin: 1rem 0;
}

.service-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card ul li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

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

.process-step {
    position: relative;
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

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

.team-member {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.team-member-info {
    padding: 1.5rem;
}

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

.team-member-info .role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-member-info .credentials {
    font-size: 0.875rem;
    color: var(--text-light);
    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: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial-stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

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

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

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

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    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;
    color: var(--text-light);
}

/* Areas Coverage */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.area-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.area-card:hover {
    background: var(--white);
    box-shadow: var(--box-shadow);
    transform: translateX(10px);
}

.area-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-section {
    background: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

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

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

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

.blog-card img {
    width: 100%;
    height: 250px;
    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.5rem;
    font-size: 1.25rem;
}

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

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

.read-more:hover {
    gap: 1rem;
}

/* Blog Post Page */
.blog-post {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.blog-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

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

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

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.footer-section p {
    color: var(--white);
    opacity: 1;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    opacity: 0.95;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: var(--white);
    opacity: 0.95;
}

/* Responsive Design - Comprehensive Mobile Optimization */

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Large (Large Desktops) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
}

/* Extra Large (Laptops) */
@media (max-width: 1200px) {
    .container {
        padding: 3rem 2rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
}

/* Large (Small Laptops) */
@media (max-width: 968px) {
    /* Typography Adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Hero Section - Stack Layout */
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-form-container {
        max-width: 500px;
        margin: 0 auto;
        max-height: none;
        overflow: visible;
    }
    
    /* Hide Video on Tablets */
    .hero-video-bg {
        display: none;
    }
    
    /* Services Grid - 2 Columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Team Grid - 2 Columns */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process Steps - 2 Columns */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials - 2 Columns */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Blog Grid - 2 Columns */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Areas Grid - 3 Columns */
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer Grid Adjustment */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium (Tablets) */
@media (max-width: 768px) {
    /* Base Typography */
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.125rem; }
    
    /* Header & Navigation */
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 999;
        gap: 0;
        animation: slideDown 0.3s ease-out;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    nav ul.active {
        display: flex;
        max-height: 500px;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    .cta-button {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Containers & Sections */
    .container {
        padding: 3rem 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero {
        margin-top: 60px;
    }
    
    /* Reduce hero background animation on tablets for performance */
    .hero-bg-image,
    .hero-bg-video {
        animation: none;
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
    
    /* Two Column Grids to Single Column */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Blog Post */
    .blog-post {
        padding: 5rem 1.5rem 3rem;
    }
    
    .blog-post-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-post-image {
        height: 250px;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
}

/* Small (Mobile Landscape) */
@media (max-width: 600px) {
    /* Base Typography */
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
    
    /* Containers & Sections */
    .container {
        padding: 2rem 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Hero Section - Mobile Optimized */
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .hero-feature {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Hero Form - Mobile Optimized */
    .hero-form-container {
        padding: 1.25rem;
        width: 100%;
        max-height: none;
        overflow: visible;
    }
    
    #hubspot-form-wrapper {
        overflow: visible;
        min-height: auto;
    }
    
    .hero-form-container h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-form-container p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    /* HubSpot Forms - Mobile Touch Friendly */
    .hero-form-container .hs-form .hs-input,
    .hero-form-container .hbspt-form input,
    .hero-form-container .hbspt-form select,
    .hero-form-container .hbspt-form textarea {
        padding: 0.6rem !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .hero-form-container .hs-form .hs-button,
    .hero-form-container .hbspt-form input[type="submit"] {
        padding: 0.75rem 1rem !important;
        width: 100% !important;
        font-size: 1rem !important;
    }
    
    .hero-form-container .hs-form label,
    .hero-form-container .hbspt-form label {
        font-size: 0.9rem;
    }
    
    /* Trust Badges */
    .trust-badges {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .trust-badge-icon {
        font-size: 2rem;
    }
    
    .trust-badge h4 {
        font-size: 0.875rem;
    }
    
    /* All Grids - Single Column */
    .services-grid,
    .team-grid,
    .process-steps,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    /* Areas Grid - 2 Columns on Mobile */
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .area-card {
        padding: 1rem;
    }
    
    /* Blog Cards */
    .blog-card img {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-card h3 {
        font-size: 1.125rem;
    }
    
    /* Blog Post */
    .blog-post {
        padding: 4rem 1rem 2rem;
    }
    
    .blog-post-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-post-image {
        height: 200px;
    }
    
    .blog-post-content h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .blog-post-content h3 {
        font-size: 1rem;
    }
    
    /* FAQ Section */
    .faq-container {
        margin-top: 2rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Contact Info */
    .contact-info-item {
        margin-bottom: 1rem;
    }
    
    .contact-info-item i {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        padding: 1.5rem 0 1rem;
    }
    
    /* Buttons - Touch Friendly */
    .btn,
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
        display: block;
        width: 100%;
    }
    
    .btn-primary,
    .btn-accent {
        width: 100%;
    }
    
    /* CTA Sections */
    .cta-section {
        padding: 2rem 1rem;
        border-radius: 4px;
    }
    
    .cta-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Extra Small (Mobile Portrait) */
@media (max-width: 480px) {
    /* Base Typography */
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.25rem; }
    h2 { font-size: 1.125rem; }
    h3 { font-size: 0.9rem; }
    
    /* Containers */
    .container {
        padding: 1.5rem 1rem;
    }
    
    /* Header */
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    /* Hero Section - Extra Small */
    .hero-content {
        padding: 0.75rem;
    }
    
    .hero-text h1 {
        font-size: 1.25rem;
    }
    
    .hero-text p {
        font-size: 0.875rem;
    }
    
    .hero-form-container h3 {
        font-size: 1.1rem;
    }
    
    .hero-form-container .hs-form .hs-input,
    .hero-form-container .hbspt-form input,
    .hero-form-container .hbspt-form select {
        padding: 0.6rem !important;
        font-size: 16px !important;
    }
    
    .hero-form-container .hs-form .hs-button,
    .hero-form-container .hbspt-form input[type="submit"] {
        padding: 0.7rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Areas Grid - Single Column */
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    /* Blog Post */
    .blog-post-header h1 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .blog-post-image {
        height: 180px;
    }
    
    /* Step Numbers */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 1rem;
    }
}

/* Additional Mobile Fixes */
@media (max-width: 768px) {
    /* Prevent Horizontal Scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Responsive Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Responsive Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Touch Optimization */
    button,
    a,
    input,
    select,
    textarea {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Disable Text Size Adjust */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

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

.btn-accent:hover {
    background: #e67e22;
}

/* HubSpot Form Styling */
.hero-form-container .hs-form,
.hero-form-container .hbspt-form {
    margin-top: 1rem;
}

/* Ensure HubSpot form wrapper has proper height */
#hubspot-form-wrapper {
    min-height: 400px;
    overflow: visible;
}

.hero-form-container .hs-form .hs-input,
.hero-form-container .hbspt-form input,
.hero-form-container .hbspt-form select,
.hero-form-container .hbspt-form textarea {
    width: 100% !important;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

/* Ensure form fields are fully visible */
.hero-form-container .hs-form .hs-form-field,
.hero-form-container .hbspt-form .hs-form-field {
    margin-bottom: 1rem !important;
    overflow: visible !important;
}

/* Ensure error messages are visible */
.hero-form-container .hs-form .hs-error-msgs,
.hero-form-container .hbspt-form .hs-error-msgs {
    margin-top: 0.5rem !important;
    overflow: visible !important;
}

.hero-form-container .hs-form .hs-button,
.hero-form-container .hbspt-form input[type="submit"] {
    background: var(--accent-color) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.hero-form-container .hs-form .hs-button:hover,
.hero-form-container .hbspt-form input[type="submit"]:hover {
    background: #e67e22 !important;
    transform: translateY(-2px);
}

/* Mobile Menu Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
