/* ==========================================================================
   Responsive Styles & Design Fixes
   ========================================================================== */

/* Navbar */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* In a real scenario, implement a hamburger menu */
    }
    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .hero-content {
        order: 1;
    }
    .simulator-wrapper {
        order: 2;
        margin-top: 2rem;
    }
    .hero-cta {
        justify-content: center;
    }
    .certified-partner {
        justify-content: center;
    }
    
    .calculator-controls {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    .section {
        padding: 60px 0;
    }
    
    /* Calculator Section */
    .glass-panel[style*="grid-template-columns: 1fr 1fr;"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 2rem !important;
    }
    
    /* Features & Services Grid */
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .glass-panel[style*="display: flex; align-items: center;"] {
        flex-direction: column;
        text-align: center;
        gap: 1rem !important;
    }
    
    /* Footer */
    .grid[style*="grid-template-columns: 2fr 1fr 1fr 1fr;"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
    
    .nav-actions .btn-secondary {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .grid[style*="grid-template-columns: 2fr 1fr 1fr 1fr;"] {
        grid-template-columns: 1fr !important;
    }
}

/* Base Fixes */
.glass-panel {
    border-radius: 16px; /* Ensure rounded corners */
}

/* Typography fixes */
p {
    line-height: 1.6;
}

img, svg {
    max-width: 100%;
    height: auto;
}
