/* Mobile Responsiveness Improvements
   Created to enhance the mobile experience of Vasudaika website
*/

/* Global Responsive Adjustments */
@media (max-width: 991.98px) {
    /* General spacing adjustments */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Navigation improvements */
    .navbar-brand img {
        height: 40px;
    }
    
    /* Hero section adjustments */
    #hero {
        padding-top: 120px !important;
        padding-bottom: 60px !important;
        margin-top: 0 !important;
    }
    
    #hero h1.display-4 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    #hero .lead {
        font-size: 1.1rem;
    }
    
    /* Button spacing */
    .btn-group-lg > .btn, .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 20px;
    }
    
    .card-body {
        padding: 20px !important;
    }
    
    /* Section spacing */
    section {
        padding: 40px 0;
    }
    
    /* Fix for services dropdown */
    .dropdown-menu {
        border: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
}

/* Small Mobile Devices */
@media (max-width: 767.98px) {
    /* Header and navigation */
    .navbar-brand img {
        height: 35px;
    }
    
    /* Hero section further adjustments */
    #hero {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }
    
    #hero h1.display-4 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    /* Section headings */
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Fix for the "Get a Quote" button in navbar */
    .nav-item .btn {
        margin-top: 10px;
        display: inline-block;
        width: auto;
    }
    
    /* Adjust card layouts */
    .card-deck {
        display: block;
    }
    
    /* Fix for service cards */
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Adjust image sizes */
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix for team member cards */
    .team-card img {
        width: 100%;
        height: auto;
    }
    
    /* Improve spacing in about page */
    #ready-to-partner .row .col-md-4 {
        margin-bottom: 15px;
    }
    
    /* Fix for location cards */
    .location-card {
        margin-bottom: 20px;
    }
    
    .location-card img {
        height: 200px;
        object-fit: cover;
    }
}

/* Extra Small Devices */
@media (max-width: 575.98px) {
    /* Further reduce font sizes */
    #hero h1.display-4 {
        font-size: 1.6rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Adjust section dividers */
    .section-divider {
        width: 80px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Adjust padding for all sections */
    section {
        padding: 30px 0;
    }
    
    /* Fix for the contact form */
    .contact-form {
        padding: 20px;
    }
    
    /* Adjust footer */
    footer {
        padding: 3rem 0 1rem;
        text-align: center;
    }
    
    footer .col-md-3, footer .col-md-4 {
        margin-bottom: 30px;
    }
    
    /* Fix for the services section on homepage */
    #services .col-md-4 {
        margin-bottom: 20px;
    }
    
    /* Fix for testimonials */
    .testimonial {
        padding: 15px;
    }
    
    /* Fix for the initiatives page */
    .initiative-card {
        margin-bottom: 20px;
    }
}

/* Fix for navbar collapse */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-blue-dark);
        padding: 15px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .dropdown-menu {
        background-color: rgba(255,255,255,0.95);
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .dropdown-item {
        padding: 10px 25px;
    }
    
    /* Fix for the "Get a Quote" button */
    .nav-item:last-child {
        margin-top: 10px;
        margin-bottom: 5px;
    }
    
    .nav-item:last-child .nav-link.btn {
        display: block;
        text-align: center;
    }
}

/* Fix for images in mobile view */
@media (max-width: 767.98px) {
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix for the empowering business section */
    #empowering-business img {
        max-height: 300px;
        object-fit: cover;
        width: 100%;
    }
    
    /* Fix for the contact page location images */
    .location-card img {
        height: 180px;
        object-fit: cover;
    }
}
