/* ============================================================
   MOBILE PREMIUM UX REFINEMENT
   ============================================================ */

/* ---------- MOBILE HEADER REFINEMENT ---------- */
@media (max-width: 768px) {
    #site-header .nav-container {
        padding: 6px 12px !important; 
        justify-content: space-between;
        align-items: center;
        display: flex;
    }
    
    .logo-wrapper {
        max-width: 65% !important; /* Goal: Logo occupies no more than 65% width */
        flex: 1;
        min-width: 0; 
    }
    
    .logo-wrapper > div {
        align-items: center;
        gap: 6px; 
    }

    .logo-title {
        font-size: 14px !important; /* Goal: reduce logo text size */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-subtitle {
        font-size: 8px !important; /* Goal: reduce subtitle size */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 1 !important; 
        color: #ffffff !important; /* Goal: Increase visibility, use a significantly lighter color */
        font-weight: 700 !important;
        text-shadow: 0px 1px 2px rgba(0,0,0,0.8);
        letter-spacing: 0.5px;
    }

    .brand-logo-svg, .logo-wrapper img {
        height: 28px !important; /* Goal: reduce logo width/size */
        width: auto !important;
        margin-right: 0 !important;
    }

    .header-cta-btn {
        display: none !important; 
    }
    
    .hamburger {
        margin-left: 12px;
        flex-shrink: 0; /* Hamburger remains clearly visible */
    }
    
    /* Mobile Spacing Fix - Top Gap */
    .hero {
        margin-top: 56px !important; /* Reduced from 80px to match new compact header */
        height: calc(100vh - 56px) !important;
        padding-top: 24px !important;
    }
    .page-header {
        margin-top: 56px !important;
        padding-top: 32px !important;
    }
}

/* ---------- SERVICES CARD OPTIMIZATION ---------- */
@media (max-width: 768px) {
    .service-card {
        padding: 16px !important; 
        gap: 12px !important;
        border-radius: var(--radius) !important;
    }

    .service-card h3 {
        font-size: 18px !important; 
        margin-bottom: 6px !important;
    }

    .service-card p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    .service-card-img, .project-card-img-wrap {
        border-radius: var(--radius-sm) !important;
        margin-bottom: 12px !important;
    }
}

/* ---------- EXECUTION STANDARDS SECTION ---------- */
@media (max-width: 768px) {
    .reveal.comparison-box {
        padding: 24px 16px !important;
        margin: 0 -16px !important; 
        border-radius: 0 !important; 
        border-left: none !important;
        border-right: none !important;
    }
    
    .comparison-box-header h4 {
        font-size: 20px !important;
        text-align: center;
        margin-bottom: 24px !important;
    }
    
    .compare-row {
        flex-direction: column !important; 
        gap: 8px !important;
        padding: 16px 0 !important;
        text-align: center !important;
    }
    
    .compare-row > div {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .compare-us {
        font-size: 16px !important;
        border-left: none !important;
        padding-top: 8px !important;
        margin-top: 8px !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .compare-them {
        font-size: 14px !important;
        opacity: 0.8 !important;
    }
}

/* ---------- LUXURY MOBILE EXPERIENCE ---------- */
@media (max-width: 768px) {
    h1 { font-size: 32px !important; line-height: 1.2 !important; margin-bottom: 16px !important; }
    h2 { font-size: 26px !important; line-height: 1.3 !important; margin-bottom: 12px !important; }
    h3 { font-size: 20px !important; line-height: 1.4 !important; }
    p { font-size: 15px !important; line-height: 1.6 !important; }
    
    .section, section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    
    .btn:not(.header-cta-btn):not(.btn-admin), 
    .btn-primary, .btn-secondary, .btn-outline, .btn-gold {
        padding: 12px 24px !important;
        font-size: 14px !important;
        width: 100% !important; 
        text-align: center !important;
        display: block !important;
        box-sizing: border-box;
    }
    
    .grid-2, .grid-3, .grid-4 {
        gap: 24px !important; 
    }
    
    .hero-content {
        padding: 0 20px !important;
    }
}
