/*
Theme Name: ActiveCool Ltd
Description: Professional HVAC, Smart Controls & Facilities Management WordPress Theme
Author: ActiveCool Ltd
Version: 1.0
Text Domain: activecool
*/

/* CSS Variables for Consistent Color Scheme */
:root {
    --primary-blue: #183861;
    --secondary-blue: #b73515;
    --light-blue: #e1f0ff;
    --white: #ffffff;
    --grey-light: #f8fafc;
    --grey: #64748b;
    --grey-dark: #334155;
    --silver: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-color: #1e293b;
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(59, 130, 246, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background: var(--white);
    max-width: 100%;
    overflow-x: hidden;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Ensure sections don't cause overflow */
.section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

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

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

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

/* Container and Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

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

/* Grid System */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Form Styles - Enhanced for Mobile */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--silver);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    box-sizing: border-box;
    min-height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(183, 53, 21, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    line-height: 1;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background: #a02f12;
    border-color: #a02f12;
    color: var(--white);
}

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

.btn-outline {
    background: transparent;
    color: #b73515;
    border-color: #b73515;
}

.btn-outline:hover {
    background: #b73515;
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: #b73515;
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--light-blue);
    color: #a02f12;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-height);
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.site-branding .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.site-branding .logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--primary-blue);
}

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

.main-nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    display: flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
}

.header-phone i {
    margin-right: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 999;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: rgba(24, 56, 97, 0.05);
}

.mobile-menu-toggle:hover {
    background-color: rgba(24, 56, 97, 0.1);
    border-color: rgba(24, 56, 97, 0.2);
}

.mobile-menu-toggle:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

.mobile-menu-toggle:active {
    background-color: rgba(24, 56, 97, 0.15);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--secondary-blue);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--secondary-blue);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--secondary-blue);
}

.mobile-menu-toggle.active {
    background-color: rgba(24, 56, 97, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 12rem 0 6rem;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--light-blue);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Service Cards */
.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(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--secondary-blue);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

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

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--silver);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-blue);
}

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

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

/* Mobile Menu - Enhanced Visibility */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--secondary-blue);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 3px;
    background: var(--secondary-blue);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M0,1000V0h1000v1000H0z" fill="%23ffffff" opacity="0.05"/><path d="M200,800c100-50,200-100,300-50s200,100,300,50s200-100,300-50v200H0V800c50-25,100-75,200-25z" fill="%23ffffff" opacity="0.1"/></svg>') no-repeat center center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero p {
    color: var(--light-blue);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

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

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--secondary-blue);
}

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

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

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

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

.footer-section a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================================================
   COMPREHENSIVE RESPONSIVE DESIGN - ALL DEVICES
   ============================================================================ */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section {
        padding: 6rem 0;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1199px) {
    .container {
        max-width: 1140px;
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Large Tablet / Small Desktop (992px - 1199px) */
@media (max-width: 1023px) {
    .container {
        max-width: 960px;
        padding: 0 1.5rem;
    }

    .hero {
        padding: 10rem 0 5rem;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: auto;
        min-width: 200px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .header-content {
        padding: 0 1rem;
    }

    .hero {
        padding: 8rem 0 4rem;
        margin-top: calc(var(--header-height) + 1rem);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .section {
        padding: 4rem 0;
    }

    h2 {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }
}

/* Mobile Landscape & Portrait (320px - 767px) */
@media (max-width: 767px) {
    .header-content {
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .site-branding {
        flex: 1;
    }

    .site-branding .logo {
        font-size: 1.3rem;
    }

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

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        z-index: 998;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 1rem 0;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        transition: color 0.3s ease;
    }

    .main-nav ul li a:hover {
        color: var(--primary-blue);
    }

    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
        margin-left: auto;
    }

    .header-cta {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .main-nav {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hero Section Mobile */
    .hero {
        padding: 6rem 0 3rem;
        margin-top: var(--header-height);
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }

    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }

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

    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin: 0 auto 1.5rem !important;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .stat-card h3 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-card p {
        font-size: 0.9rem;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        order: -1;
        margin-bottom: 1rem;
    }

    /* Projects Grid Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        text-align: center;
    }

    /* Contact Content Mobile */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }

    /* General Mobile Improvements */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 6px;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .hero {
        padding: 5rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta .btn {
        max-width: 280px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .site-branding .logo {
        font-size: 1.2rem;
    }

    .site-branding .logo i {
        font-size: 1.3rem;
    }

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

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }

    .contact-card {
        padding: 1.25rem !important;
    }

    .contact-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* Form Responsive Styles */
@media (max-width: 767px) {

    .contact-form,
    .quote-form {
        background: var(--white);
        padding: 2rem 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .form-row {
        display: flex;
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .form-group {
        margin-bottom: 0;
        width: 100%;
    }

    .form-group label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        width: 100%;
        min-height: 48px;
        /* Touch-friendly minimum */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(24, 56, 97, 0.1);
        outline: none;
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .form-group select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1rem;
        padding-right: 3rem;
    }

    .form-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: 10px;
    }

    .form-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        margin-top: 1rem;
        min-height: 52px;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
        margin: 1rem 0;
    }
}

@media (max-width: 479px) {

    .contact-form,
    .quote-form {
        padding: 1.5rem 1rem;
        margin: 0 -0.5rem;
    }

    .form-section {
        padding: 1rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .g-recaptcha {
        transform: scale(0.8);
    }
}

/* Image and Media Responsive */
@media (max-width: 767px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .service-card img,
    .project-card img,
    .about-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .hero-image,
    .section-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }

    iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 250px;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .mobile-menu-toggle,
    .hero,
    .site-footer,
    .btn,
    .form-group {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000;
        page-break-after: avoid;
    }

    p,
    ul,
    ol {
        page-break-inside: avoid;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .section {
        padding: 1rem 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--silver);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Mobile Header */
    .header-cta .header-phone {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        display: none;
        padding: 2rem 1rem;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--silver);
    }

    /* Mobile Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Mobile Layout */
    .section {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Mobile Specific Adjustments */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta .btn {
        width: auto;
        min-width: 200px;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-card,
    .project-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }

    .page-header {
        padding: 5rem 0 2rem;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .mobile-menu-toggle,
    .hero,
    .site-footer,
    .btn,
    .form-group {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .section {
        padding: 1rem 0;
    }
}

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

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Project Filter Buttons */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-blue);
    background: transparent;
    color: var(--secondary-blue);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.filter-btn:hover {
    background: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 53, 21, 0.3);
}

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

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Project Card Animation */
.project-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Responsive Filter Buttons */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 44px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        max-width: calc(50% - 0.15rem);
    }
}

/* Testimonials Responsive */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .testimonial-meta {
        justify-content: center;
    }
}

/* Project Grid Additional Responsive */
@media (max-width: 480px) {
    .projects-grid {
        gap: 1rem;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-card .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Footer Comprehensive Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-section:last-child {
        grid-column: span 2;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section:last-child {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {

    /* Global spacing adjustments */
    .section-padding {
        padding: 3rem 1rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        min-width: 44px;
    }

    /* Card spacing */
    .service-card,
    .project-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }

    /* Image responsiveness */
    .about-image img,
    .hero-image img {
        border-radius: 12px;
    }
}

/* Ultra-wide screens optimization */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

   

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .service-card:hover,
    .project-card:hover,
    .testimonial-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    /* Ensure touch targets are accessible */
    .filter-btn,
    .btn,
    .nav-links a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve touch scrolling */
    .filter-buttons {
        -webkit-overflow-scrolling: touch;
    }
}

/* Tablet-Specific Styles (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Container adjustments for tablet */
    .container {
        max-width: 95%;
        padding: 0 1.5rem;
    }
    
    /* Typography scaling for tablet */
    h1 {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2.4rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    /* Hero section tablet optimization */
    .hero {
        padding: 8rem 0 5rem;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    /* Grid systems for tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Form layout for tablet */
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 3rem;
    }
    
    /* Navigation for tablet */
    .nav-links a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .service-card,
    .project-card,
    .testimonial-card {
        padding: 2rem;
    }
    
    /* About page tablet layout */
    .company-overview {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .profile-content {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 2.5rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .services-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Button sizing for tablet */
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Footer for tablet */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Stats grid for tablet */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Complex Layout Fixes - All Screen Sizes */
@media (max-width: 480px) {
    /* Ultra small mobile specific fixes */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Project filters mobile optimization */
    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: auto;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Project grid ultra-mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .project-card h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .project-card p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Testimonials ultra-mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .testimonial-content {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Service cards ultra-mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto 1rem;
    }
    
    /* Navigation improvements for small screens */
    .main-nav.active {
        padding-top: 1rem;
    }
    
    .nav-links a {
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--silver);
    }
    
    /* Footer ultra-mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Hero adjustments for ultra-small screens */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Stats grid ultra-mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
}

/* Large Mobile Specific (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    /* Project grid for large mobile */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Services grid for large mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Testimonials for large mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Filter buttons for large mobile */
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .filter-btn {
        flex: 0 1 auto;
        min-width: 120px;
        padding: 0.75rem 1.25rem;
    }
    
    /* Stats grid for large mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Media Responsiveness Optimization */
/* Global Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Images with Aspect Ratio */
.hero-image img,
.about-image img,
.service-image img,
.project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Project images with fixed aspect ratio */
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Service icons responsiveness */
.service-icon,
.contact-icon,
.value-icon {
    flex-shrink: 0;
}

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

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Background image responsiveness */
.hero,
.page-header,
.cta-section {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll; /* Better performance on mobile */
}

@media (max-width: 768px) {
    /* Mobile media optimizations */
    .hero-image,
    .about-image {
        margin-bottom: 2rem;
        order: -1;
    }
    
    .hero-image img,
    .about-image img {
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    /* Project images mobile */
    .project-card img {
        height: 180px;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    /* Service icons mobile */
    .service-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    /* Contact icons mobile */
    .contact-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    /* Logo responsiveness */
    .site-logo img {
        max-height: 50px;
        width: auto;
    }
    
    /* Background images mobile optimization */
    .hero,
    .page-header {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
    
    /* Ensure no overflow for background images */
   
    
    .hero > *,
    .page-header > * {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile media optimizations */
    .project-card img {
        height: 150px;
    }
    
    .service-icon,
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .site-logo img {
        max-height: 45px;
    }
    
    /* Profile images ultra-mobile */
    .profile-image {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* High DPI/Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero,
    .page-header {
        background-size: cover;
    }
    
    /* Ensure crisp icons on retina displays */
    .service-icon,
    .contact-icon,
    .value-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    .filter-buttons {
        display: none;
    }

    .hero {
        page-break-after: always;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
}

/* About Page Mobile Fixes - Prevent Horizontal Scroll */
@media (max-width: 768px) {

    /* Fix company overview section */
    .company-overview {
        display: block !important;
        grid-template-columns: none !important;
        gap: 2rem;
    }

    /* Fix profile content section */
    .profile-content {
        display: block !important;
        grid-template-columns: none !important;
        gap: 2rem;
    }

    /* Fix expertise grid */
    .expertise-grid {
        display: block !important;
        grid-template-columns: none !important;
        gap: 1rem;
    }

    .expertise-grid div {
        margin-bottom: 0.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Fix services overview */
    .services-overview {
        display: block !important;
        grid-template-columns: none !important;
        gap: 1.5rem;
    }

    .service-overview-card {
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    /* Fix service headers */
    .service-header {
        display: flex !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
        flex-wrap: wrap;
    }

    /* Fix value grid */
    .value-grid {
        display: block !important;
        grid-template-columns: none !important;
        gap: 1.5rem;
    }

    .value-card {
        width: 100% !important;
        margin-bottom: 1rem;
        padding: 1.5rem !important;
        box-sizing: border-box;
    }

    /* Fix CTA buttons */
    .cta-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    .cta-buttons .btn {
        width: 100% !important;
        max-width: 280px;
        text-align: center;
        box-sizing: border-box;
    }

    /* Fix contact info */
    .contact-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
}

/* Enhanced Mobile Menu Visibility */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        background: rgba(183, 53, 21, 0.1) !important;
        border: 2px solid var(--secondary-blue) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-toggle:hover {
        background: rgba(183, 53, 21, 0.2) !important;
        transform: scale(1.05);
    }

    .mobile-menu-toggle span {
        background: var(--secondary-blue) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}

/* Additional Mobile Overflow Fixes */
@media (max-width: 768px) {

    /* Force all elements to respect container width */
    * {
        /* max-width: 100% !important; */
        box-sizing: border-box !important;
    }

    /* Override any inline grid styles */
    [style*="display: grid"],
    [style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: none !important;
    }

    /* Fix any flexbox issues */
    [style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* Ensure text doesn't overflow */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    div,
    span {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* Fix images that might cause overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Section padding adjustments */
    .section {
        padding: 3rem 0 !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Mobile Form Optimizations */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1.2rem !important;
        font-size: 1.1rem !important;
        min-height: 52px !important;
        border-radius: 10px !important;
    }
    
    .form-group textarea {
        min-height: 150px !important;
        resize: vertical !important;
    }
    
    .form-group label {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Enhanced touch targets for buttons */
    .btn {
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        min-height: 52px !important;
        border-radius: 10px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Contact form specific mobile styles */
    .contact-form {
        padding: 0 !important;
    }
    
    .contact-content {
        display: block !important;
        grid-template-columns: none !important;
        gap: 2rem !important;
    }
    
    .contact-cards-grid {
        display: block !important;
        grid-template-columns: none !important;
        gap: 1.5rem !important;
    }
    
    .contact-card {
        width: 100% !important;
        margin-bottom: 1rem !important;
        padding: 2rem 1.5rem !important;
    }
    
    /* reCAPTCHA mobile optimization */
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
        margin-bottom: 1rem;
    }
    
    /* Enhanced Mobile Typography */
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    h2 {
        font-size: 1.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    h4 {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }
    
    p {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Mobile-optimized spacing */
    .section {
        padding: 4rem 0 !important;
    }
    
    .hero {
        padding: 8rem 0 4rem !important;
    }
    
    .page-header {
        padding: 6rem 0 3rem !important;
        margin-top: 80px !important;
    }
    
    /* Card spacing improvements */
    .service-card,
    .project-card,
    .testimonial-card {
        padding: 2rem 1.5rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
    }
    
    /* List and content spacing */
    ul, ol {
        margin-bottom: 1.5rem !important;
        padding-left: 1.5rem !important;
    }
    
    li {
        margin-bottom: 0.5rem !important;
        line-height: 1.6 !important;
    }
    
    /* Navigation improvements */
    .nav-links a {
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    /* Call-to-action spacing */
    .cta-buttons {
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    
}