/*=================================================
Responsive Stylesheet
=================================================*/

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }

    .navbar-toggler {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .package-content h5 {
        font-size: 1.15rem;
    }

    .footer-brand {
        font-size: 1.3rem;
    }

    .footer-section-title {
        font-size: 1.1rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .how-it-works-step {
        margin-bottom: 2rem;
    }

    .package-card {
        margin-bottom: 2rem;
    }

    .testimonial-card {
        margin: 0;
    }

    .final-cta-section .display-4 {
        font-size: 2rem;
    }

    .footer-brand,
    .footer-section-title,
    .social-links,
    .footer-copyright,
    .footer-legal-link {
        text-align: center;
        display: block;
        margin: 0.5rem 0;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .quote-form-body,
    .contact-info-section,
    .contact-form-section,
    .about-content,
    .terms-content,
    .privacy-content {
        padding: 1.5rem;
    }
}

/* Mobile Sidebar Enhancements */
.mobile-sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1050;
    top: 0;
    right: 0;
    background-color: var(--rich-black);
    overflow-x: hidden;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-top: 60px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

.mobile-sidebar .sidebar-nav {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-sidebar .sidebar-nav li a {
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem; /* Increased font size */
    color: var(--cadet-gray-light);
    display: block;
    transition: background-color 0.3s, color 0.3s, padding-left 0.3s;
    font-weight: 500;
}

.mobile-sidebar .sidebar-nav li a:hover {
    background-color: var(--pigment-green);
    color: white;
    padding-left: 40px;
}

.mobile-sidebar .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem; /* Larger close icon */
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.mobile-sidebar .close-btn:hover {
    transform: rotate(90deg);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* General Mobile Optimizations */
body.mobile-nav-active {
    overflow: hidden; /* Prevent scrolling when mobile nav is open */
}

.btn {
    padding: 0.8rem 1.5rem; /* Larger buttons for easier tapping */
    font-size: 1rem;
}

.section-title, .page-title {
    margin-bottom: 2rem;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
}