/* Promo Video Section - Responsive */
@media (max-width: 768px) {
    .promo-video {
        padding: 4rem 0;
    }

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

    .video-text h2 {
        font-size: 32px;
    }

    .video-text p {
        font-size: 16px;
    }

    .video-features {
        align-items: center;
    }

    .play-button {
        width: 70px;
        height: 70px;
    }
}

/* Footer Bottom - Responsive */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        align-items: center;
    }

    .copyright {
        min-width: auto;
        order: 2;
    }

    .copyright p {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .footer-bottom-links {
        order: 1;
        min-width: auto;
    }

    .footer-bottom-links nav {
        justify-content: center;
        gap: 1rem;
    }

    .footer-bottom-links a {
        font-size: 0.85rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-container {
        padding: 0 15px;
    }

    .top-bar-right {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: flex-end;
    }

    .top-bar a {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* Fix header positioning on mobile */
    .header {
        position: fixed !important;
        top: 0 !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    }

    /* Navigation Mobile */
    .nav-container {
        padding: 0.75rem 15px;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .logo {
        flex: 1;
    }

    .logo svg {
        max-width: 160px;
        height: auto;
    }

    /* Fix logo visibility on mobile - remove white filter */
    .hizo-logo {
        filter: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .hamburger-line {
        background-color: var(--gray-dark) !important;
    }

    .header.scrolled .hamburger-line {
        background-color: var(--gray-dark) !important;
    }

    /* Add padding to body to account for fixed header */
    body {
        padding-top: 60px;
    }

    /* Dropdown Mobile Adjustments */
    .dropdown-menu {
        width: 100vw;
        max-width: none;
        left: 0;
        transform: translateX(0) translateY(-10px);
        padding: 1.5rem;
        border-radius: 5px;
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .dropdown-menu.single-column {
        width: calc(100vw - 40px);
        left: 20px;
        max-width: 300px;
        padding: 1rem;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: translateX(0) translateY(0);
    }

    .dropdown-section {
        margin-bottom: 1.5rem;
    }

    .dropdown-section:last-child {
        margin-bottom: 0;
    }

    .featured-services {
        padding: 1.25rem;
    }

    .featured-item {
        padding: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .featured-item strong {
        font-size: 0.8rem;
    }

    .featured-item span {
        font-size: 0.7rem;
    }

    .hero {
        padding: 3rem 1.5rem 4rem;
        min-height: 500px;
        margin-top: 0; /* No extra margin since header is fixed */
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 1rem;
    }

    .hero-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .hero-subtext {
        font-size: 0.85rem;
        line-height: 1.4;
        display: none; /* Hide secondary text on very small screens */
    }

    .section-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        letter-spacing: 0.5px;
    }

    h2 {
        font-size: 28px !important;
        line-height: 34px !important;
    }

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

    .why-choose-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .why-choose-stats .stat-number {
        font-size: 2.5rem;
    }

    .types-grid,
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .service-areas h2 {
        font-size: 32px;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .area-card {
        padding: 2rem;
    }

    .hero-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -40px;
        width: 200px;
        height: 200px;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        min-height: 48px; /* Better touch target */
        font-size: 0.95rem;
        padding: 14px 24px;
    }

    .btn-text {
        font-size: 0.9rem;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-section > .container > h2 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .service-card {
        padding: 1.5rem;
    }

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

    .services, .building-types, .service-areas {
        padding: 3rem 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

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

    .footer-about,
    .footer-contact {
        max-width: 100%;
    }


    .footer-cta {
        padding: 1rem;
    }

    .footer-cta-button {
        display: block;
        margin: 0.5rem 0;
    }

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

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .dropdown-menu {
        max-width: 900px;
        gap: 1.5rem;
        padding: 1.75rem;
    }

    .dropdown-menu.single-column {
        width: 260px;
        padding: 1.25rem;
    }

    .featured-services {
        padding: 1.5rem;
    }

    .nav-container {
        max-width: 1000px;
        padding: 1rem 20px;
    }

    .top-bar-container {
        max-width: 1000px;
    }
}

/* Responsive sticky menu */
@media (max-width: 768px) {
    .footer {
        margin-bottom: 90px; /* Larger space for mobile sticky menu */
    }

    .sticky-bottom-menu {
        min-height: 80px;
    }

    .sticky-menu-container {
        grid-template-columns: 1fr 1fr;
        padding: 16px 20px;
        min-height: 80px;
        gap: 12px;
    }

    .sticky-menu-item:first-child,
    .sticky-menu-item:last-child {
        justify-content: center;
    }

    .sticky-social {
        display: none;
    }

    .sticky-text {
        font-size: 0.85rem;
    }

    .sticky-btn {
        padding: 14px 18px;
        font-size: 0.9rem;
        min-height: 48px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .hero-text {
        font-size: 0.875rem;
    }

    h2 {
        font-size: 24px !important;
        line-height: 30px !important;
    }

    .service-card h3,
    .type-card h3,
    .area-item h3 {
        font-size: 1.1rem !important;
    }

    .service-item,
    .feature-item {
        font-size: 0.875rem;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .service-image-gallery {
        height: 200px;
    }

    .type-card,
    .area-card {
        padding: 1.5rem;
    }

    .hero-badge {
        width: 150px;
        height: 150px;
        bottom: -30px;
    }

    .quality-services {
        padding: 3rem 1rem;
    }

    .quality-services h2 {
        font-size: 22px !important;
        line-height: 28px !important;
    }

    .quality-services p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* Hide top bar on very small screens */
    .top-bar {
        display: none !important;
    }

    /* Header at top without top bar */
    .header {
        position: fixed !important;
        top: 0 !important;
    }

    /* Adjust body padding for header only */
    body {
        padding-top: 60px !important;
    }

    .footer-section h3,
    .footer-about h3 {
        font-size: 1.1rem !important;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        top: 60px;
        bottom: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        padding: 3rem 1.5rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .hero-subtext {
        display: none;
    }

    .hero-badge {
        display: none; /* Hide badge in landscape to save space */
    }
}

/* Improve touch targets and spacing */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific styles */
    a, button, .btn, .sticky-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .service-item a,
    .dropdown-subsection a,
    .dropdown-menu.single-column > a {
        padding: 12px 16px;
        margin: 4px 0;
    }

    .nav-links a {
        padding: 12px 16px;
    }

    /* Prevent text selection issues on touch */
    .btn, .sticky-btn, .mobile-menu-toggle {
        -webkit-tap-highlight-color: rgba(30, 165, 222, 0.2);
        user-select: none;
    }

    /* Form inputs optimized for touch */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }

    textarea {
        min-height: 120px;
    }
}

/* Mobile form improvements */
@media (max-width: 768px) {
    #dynamic-form {
        max-width: 100% !important;
        padding: 1.5rem !important;
        border-radius: 8px !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px 16px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        margin-bottom: 12px;
    }

    form label {
        font-size: 0.95rem;
        margin-bottom: 6px;
        display: block;
        font-weight: 500;
    }

    form button[type="submit"],
    form .submit-btn {
        width: 100%;
        min-height: 50px;
        font-size: 1rem;
        padding: 14px 24px;
        border-radius: 8px;
        margin-top: 12px;
    }

    /* Modal improvements for mobile */
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem) !important;
    }

    .modal-body {
        padding: 1.5rem !important;
    }

    .modal-header {
        padding: 1rem 1.5rem !important;
    }

    .modal-footer {
        padding: 1rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    #dynamic-form {
        padding: 1rem !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px;
        padding: 12px 14px;
    }

    form label {
        font-size: 0.9rem;
    }
}
