/* Mobile-only lightweight overrides (max-width: 768px) */
/* Load this file with media="(max-width: 768px)" for quick mobile fixes */

/* Simplify hero on small screens */
.hero {
    background-position: center top !important;
    padding: 60px 12px 30px !important;
}

.hero-overlay {
    opacity: 0.18 !important;
    background-size: cover !important;
}

.hero-title {
    font-size: 1.9em !important;
    line-height: 1.15 !important;
}

.hero-subtitle {
    font-size: 1.05em !important;
}

/* Navigation stack and improve tappable area */
.nav-container {
    padding: 0 12px !important;
}

.logo-img {
    height: 48px !important;
}

.hamburger {
    display: flex !important;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-menu.active {
    max-height: 500px; /* Adjust based on menu height */
}

.nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    width: 100%;
    padding: 15px 14px !important;
    border-radius: 0 !important;
}

/* Calculator: single column cards with tighter padding */
.calculator-options {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 12px !important;
}

.calc-card {
    padding: 16px !important;
}

.calc-result {
    margin: 12px !important;
    padding: 14px !important;
}

/* Buttons full-width where appropriate */
.btn-large, .plan-card .btn, .cta-buttons .btn {
    width: 100% !important;
    padding: 12px 14px !important;
}

/* Ensure images and SVG backgrounds do not overflow */
img, .logo-img, .hero-overlay {
    max-width: 100% !important;
    height: auto !important;
}

/* Reduce shadows/gradients that can create visual banding on small devices */
.hero, .plan-card, .speed-card, .service-card {
    box-shadow: none !important;
}

/* Improve text scaling on older Android browsers */
html, body {
    -webkit-text-size-adjust: 100% !important;
    /* Removed -ms-text-size-adjust (unsupported by modern browsers); unprefixed text-size-adjust removed to avoid Firefox/Safari compatibility warnings */
}

/* Minor utility */
.container {
    padding-left: 12px !important;
    padding-right: 12px !important;
}
