/* ==========================================
   RESPONSIVE STYLES FOR LOWRY FINANCE
   ========================================== */

/* Mobile-first responsive breakpoints */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Hero section adjustments */
    .hero.call_to_action_21 {
        min-height: auto !important;
        padding-bottom: 40px !important;
    }
    
    .padding_top120 {
        padding-top: 40px !important;
    }
    
    .top120 {
        margin-top: 40px !important;
    }
    
    .padding_bottom165 {
        padding-bottom: 40px !important;
    }
    
    /* Typography - make headings smaller on mobile */
    h1, .h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .h3, h3 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    .h4, h4 {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    /* Button adjustments */
    .btn.size60 {
        height: 48px !important;
        line-height: 48px !important;
        font-size: 16px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
        max-width: 280px;
        display: inline-block;
    }
    
    .font20 {
        font-size: 16px !important;
    }
    
    /* Container and spacing */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .max_width900 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation adjustments */
    .navigation_desktop {
        display: none !important;
    }
    
    .mobile_logo {
        display: block !important;
    }
    
    .open_menu {
        display: block !important;
    }
    
    /* Logo sizing */
    .nav_logo img,
    .mobile_logo .nav_logo img {
        max-width: 150px !important;
        max-height: 45px !important;
        width: auto !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }
    
    /* Mobile logo container */
    .mobile_logo {
        background: rgba(27, 26, 28, 0.95);
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 998;
    }
    
    .mobile_logo .nav_logo {
        padding: 5px 0;
        text-align: center !important;
    }
    
    .mobile_logo .row,
    .mobile_logo .col-lg-3,
    .mobile_logo .col-md-4 {
        text-align: center !important;
    }
    
    /* Hide on mobile */
    .hide-on-mobile {
        display: none !important;
    }
    
    /* Padding and margins */
    .top30 {
        margin-top: 20px !important;
    }
    
    .top20 {
        margin-top: 15px !important;
    }
    
    .bottom15 {
        margin-bottom: 15px !important;
    }
    
    .right10, .left10 {
        margin-right: 5px !important;
        margin-left: 5px !important;
    }
    
    /* Make images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Adjust hero content to account for fixed mobile header */
    .hero.call_to_action_21 .container.nopadding.white.text-center.padding_top120 {
        padding-top: 100px !important;
        margin-top: 70px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero.call_to_action_21 {
        min-height: 70vh !important;
        padding-bottom: 60px !important;
    }
    
    .padding_top120 {
        padding-top: 80px !important;
    }
    
    h1, .h1 {
        font-size: 36px !important;
    }
    
    .h3, h3 {
        font-size: 20px !important;
    }
    
    .h4, h4 {
        font-size: 18px !important;
    }
    
    .btn.size60 {
        height: 50px !important;
        line-height: 50px !important;
        font-size: 18px !important;
    }
    
    .navigation_desktop {
        display: none !important;
    }
    
    .mobile_logo {
        display: block !important;
    }
    
    .mobile_logo .nav_logo img {
        max-width: 160px !important;
        max-height: 50px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero.call_to_action_21 {
        min-height: 80vh !important;
    }
    
    .call_to_action_21 {
        padding-top: 30px;
    }
    
    .padding_top120 {
        padding-top: 80px !important;
    }
    
    h1, .h1 {
        font-size: 42px !important;
    }
    
    .h3, h3 {
        font-size: 22px !important;
    }
    
    .h4, h4 {
        font-size: 18px !important;
    }
    
    /* Optimize desktop navigation for tablets */
    .mobile_logo {
        display: none !important;
    }
    
    .navigation_desktop {
        display: block !important;
        padding-top: 0 !important;
        padding-bottom: 10px !important;
    }
    
    .navigation_desktop .nav_logo img {
        max-width: 140px !important;
        max-height: 42px !important;
    }
    
    .navigation_desktop .link {
        font-size: 13px !important;
        margin-right: 10px !important;
        padding: 5px 8px !important;
    }
    
    .navigation_desktop .right30 {
        margin-right: 10px !important;
    }
    
    .navigation_desktop .right_block {
        padding-top: 0 !important;
    }
    
    .open_menu {
        display: none !important;
    }
    
    .btn.padding_sides20 {
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 13px !important;
    }
    
    .btn.size45 {
        height: 38px !important;
        line-height: 38px !important;
        font-size: 13px !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .mobile_logo {
        display: none !important;
    }
    
    .open_menu {
        display: none !important;
    }
    
    .navigation_desktop {
        display: block !important;
    }
}

/* Mobile navigation menu */
.navigation_mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.navigation_mobile .nav_logo img {
    max-width: 180px !important;
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
}

.navigation_mobile.active {
    left: 0;
}

.navigation_mobile .close_menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.navigation_mobile .inner {
    padding: 60px 40px 40px 40px;
}

.navigation_mobile a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
}

.navigation_mobile .link {
    color: #333 !important;
}

.navigation_mobile .hr {
    border-top: 1px solid #e0e0e0;
}

/* Mobile menu button */
.open_menu {
    position: fixed;
    top: 20px;
    left: 15px;
    z-index: 999;
    background: rgba(0, 163, 222, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .open_menu {
        display: none !important;
    }
}

/* Dropdown menus in mobile nav */
.navigation_mobile .dropdown {
    position: relative;
}

.navigation_mobile .dropdown-menu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
}

.navigation_mobile .dropdown.open .dropdown-menu {
    display: block;
}

/* Desktop dropdown styling */
.navigation_desktop .dropdown {
    position: relative;
    display: inline-block;
}

.navigation_desktop .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    margin-top: 10px;
    border-radius: 4px;
    z-index: 1000;
}

.navigation_desktop .dropdown:hover .dropdown-menu,
.navigation_desktop .dropdown.open .dropdown-menu {
    display: block;
}

.navigation_desktop .dropdown-menu a {
    padding: 8px 0;
    display: block;
}

/* Text alignment utilities for mobile */
@media (max-width: 767.98px) {
    .text-center {
        text-align: center !important;
    }
    
    .text-left-mobile {
        text-align: left !important;
    }
}

/* Ensure content is readable on all screen sizes */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Mobile form input focus improvements */
@media (max-width: 767.98px) {
    /* Ensure inputs are visible when keyboard appears */
    input:focus,
    textarea:focus,
    select:focus {
        position: relative;
        z-index: 10;
    }
    
    /* Prevent zoom on input focus on iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

