/* ==========================================================================
   MOBILE RESPONSIVE - INDEX PAGE
   ========================================================================== */

/* --- TABLET & SMALL DESKTOP (1024px and below) --- */
@media screen and (max-width: 1024px) {
    
    /* PERFECT HEADER ALIGNMENT */
    .nt-header {
        height: 70px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
    
    .nt-nav-container {
        padding: 0 24px !important;
        height: 100% !important;
    }

    .nt-logo img {
        height: 38px !important; /* Slightly scaled for balanced mobile look */
    }

    /* POLISHED HAMBURGER MENU BUTTON */
    .nt-mobile-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        background-color: #f7f6f5 !important;
        border-radius: 8px !important;
        color: #141414 !important;
        font-size: 20px !important;
        border: 1px solid #eae8e5 !important;
        transition: all 0.3s ease !important;
    }
    
    .nt-mobile-btn:active {
        background-color: #eae8e5 !important;
        transform: scale(0.95) !important;
    }

    /* ENHANCED MOBILE MENU OVERLAY */
    .nt-mobile-overlay {
        background-color: #fcfbfa !important;
    }

    .nt-mob-header {
        padding: 24px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #eae8e5 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* Added a nice Title to the Mobile Menu */
    .nt-mob-header::before {
        content: "MENU";
        font-size: 16px;
        font-family: 'Nunito', sans-serif;
        font-weight: 800;
        color: #141414;
        letter-spacing: 1px;
    }

    .nt-mob-close {
        background: rgba(192, 97, 38, 0.1) !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        transition: background 0.3s ease !important;
    }
    
    .nt-mob-close::before {
        content: "\f00d"; /* FontAwesome 'X' icon */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
    }

    .nt-mob-link {
        background: #ffffff !important;
        margin: 12px 24px !important;
        border-radius: 10px !important;
        border: 1px solid #eae8e5 !important;
        padding: 16px 20px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
    }

    .nt-mob-footer {
        background: #ffffff !important;
        border-top: 1px solid #eae8e5 !important;
        padding: 24px !important;
    }

    /* HERO FIXES */
    #home-hero {
        margin-top: 70px !important;
        background-image: linear-gradient(rgba(192, 97, 38, 0.85), rgba(192, 97, 38, 0.85)), url('images/website_banner.jpeg') !important;
        background-size: cover !important;
        background-position: center right !important;
        min-height: 500px !important;
    }
    .nh-hero-inner {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .nh-hero-text h1 {
        font-size: clamp(32px, 6vw, 48px) !important;
        white-space: normal !important; /* Lets text wrap naturally on smaller screens */
        line-height: 1.2 !important;
    }
}

/* --- MOBILE PHONES (768px and below) --- */
@media screen and (max-width: 768px) {
    .nt-header { height: 64px !important; }
    .nt-nav-container { padding: 0 16px !important; }
    .nt-logo img { height: 32px !important; }
    #home-hero { 
        margin-top: 64px !important; 
        min-height: 550px !important;
    }
    
    .nh-hero-text h1 {
        font-size: clamp(28px, 8vw, 36px) !important;
    }
    
    /* Mobile Optimized Hero Form */
    .nh-hero-form {
        flex-direction: column !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 24px !important;
    }
    
    .nh-hero-form input {
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #eae8e5 !important;
        border-radius: 8px !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
        font-size: 16px !important; /* 16px prevents iOS auto-zoom */
    }
    
    .nh-hero-form button {
        width: 100% !important;
        border-radius: 8px !important;
        padding: 16px !important;
        font-size: 16px !important;
        background-color: #141414 !important;
        color: #ffffff !important;
    }

    /* Full index section refinements */
    #home-main section { padding: 50px 0 !important; }
    .section-header h2 { font-size: 28px !important; line-height: 1.3 !important; }
    
    .nh-services-grid { gap: 16px !important; }
    .nh-service-card { padding: 24px !important; }
    
    .nh-stats-grid { gap: 16px !important; }
    .nh-stat-card { padding: 24px 16px !important; text-align: center !important; }
    .nh-stat-number { font-size: 40px !important; }
    
    .testi-center { padding: 30px 20px !important; }
    .blog-grid { gap: 20px !important; }
    .nh-contact-form { padding: 24px 16px !important; }
}

/* --- SMALL PHONES (480px and below) --- */
@media screen and (max-width: 480px) {
    .nt-mobile-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    .nt-logo img {
        height: 28px !important;
    }
    .nh-hero-text h1 {
        font-size: 26px !important;
        letter-spacing: -0.5px !important;
    }
}