
/*
Author: Bootstrapthemes
Author URI: http://www.xpeedstudio.com
*/

/* ===========================================
   RESPONSIVE STYLES - LEXBRIDGE
   =========================================== */

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

/* Portrait tablets and medium desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    body {
        font-size: 1rem;
    }
    
    .main_home .home_text h1 {
        font-size: 42px;
    }
    
    .main_home .home_text h2 {
        font-size: 32px;
    }
    
    .main_home .home_text h3 {
        font-size: 22px;
    }
    
    .logo {
        width: 100px !important;
    }
}

/* Portrait tablets and small desktops (768px - 991px) */
@media (max-width: 991px) {
    .sm-text-center {
        text-align: center !important;
    }
    
    .sm-pull-none {
        float: none !important;
    }
    
    .sm-m-top-10 {
        margin-top: 10px;
    }
    
    .sm-m-top-20 {
        margin-top: 20px;
    }
    
    .sm-m-top-30 {
        margin-top: 30px;
    }
    
    .sm-m-top-40 {
        margin-top: 40px;
    }
    
    .sm-m-top-50 {
        margin-top: 50px;
    }
    
    /* Navigation */
    .navbar-top {
        padding: 10px 0;
    }
    
    .navbar-callus,
    .navbar-socail {
        text-align: center;
        margin-top: 10px;
    }
    
    .navbar-callus ul,
    .navbar-socail ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .navbar-callus li a {
        font-size: 12px;
        padding: 5px;
    }
    
    .logo {
        width: 90px !important;
    }
    
    /* Home Section */
    .home {
        padding-top: 200px;
        padding-bottom: 120px;
    }
    
    .main_home .home_text h1 {
        font-size: 38px;
    }
    
    .main_home .home_text h2 {
        font-size: 28px;
    }
    
    .main_home .home_text h3 {
        font-size: 20px;
    }
    
    /* About Section */
    .about_item {
        margin-bottom: 30px;
    }
    
    .about_item ul {
        padding-left: 20px;
    }
    
    /* Expertise Section */
    .expertise_item {
        margin-bottom: 40px;
    }
    
    .expertise_item .expertise-img {
        max-width: 100%;
        height: auto;
    }
    
    /* Organization Section */
    .organization-slider {
        flex-direction: column;
        gap: 30px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .organization_item {
        max-width: 100%;
        flex: none;
        min-width: 100%;
    }
    
    .organization_item img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact Section */
    .contact_item,
    .contact_form {
        margin-bottom: 30px;
    }
    
    /* Footer */
    .footer .col-md-4 {
        margin-bottom: 30px;
    }
    
    .item_img i {
        right: 0%;
    }
}

/* Landscape phones and portrait tablets (481px - 768px) */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 90%;
        line-height: 1.8rem;
    }
    
    .xs-pull-none {
        float: none !important;
    }
    
    .xs-text-center {
        text-align: center !important;
    }
    
    .xs-m-top-10 {
        margin-top: 10px;
    }
    
    .xs-m-top-30 {
        margin-top: 30px;
    }
    
    .xs-m-bottom-10 {
        margin-bottom: 10px;
    }
    
    .xs-m-bottom-20 {
        margin-bottom: 20px;
    }
    
    /* Navigation */
    .navbar-top {
        display: none;
    }
    
    .navbar-header {
        padding: 10px 0;
    }
    
    .logo {
        width: 80px !important;
    }
    
    .navbar-toggle {
        margin-top: 10px;
        margin-right: 15px;
    }
    
    .navbar-nav {
        margin-top: 0;
    }
    
    .navbar-nav > li > a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .navbar-collapse {
        border-top: 1px solid #e7e7e7;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .navbar-collapse.in {
        overflow-y: visible;
    }
    
    /* Home Section */
    .home {
        padding-top: 150px;
        padding-bottom: 100px;
    }
    
    .main_home .home_text h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .main_home .home_text h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .main_home .home_text h3 {
        font-size: 18px;
    }
    
    /* About Section */
    .roomy-70 {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .about_item {
        margin-bottom: 30px;
    }
    
    .about_item h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    
    .about_item p {
        margin-bottom: 15px;
    }
    
    .about_item ul {
        padding-left: 20px;
        margin-top: 15px;
    }
    
    .about_item ul li {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    #aboutCarousel {
        margin-top: 30px;
    }
    
    .carousel-control {
        display: none;
    }
    
    /* Expertise Section */
    .expertise_item {
        margin-bottom: 40px;
        padding: 20px;
    }
    
    .expertise_item h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .expertise_item .expertise-img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto 20px;
        display: block;
    }
    
    .expertise_item .hidden-list {
        margin-top: 15px;
    }
    
    .expertise_item .hidden-list li {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* Organization Section */
    .organization-slider {
        display: flex;
        flex-direction: column;
        gap: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
    }
    
    .organization_item {
        padding: 20px;
        margin-bottom: 30px;
        min-width: 100%;
        flex-shrink: 0;
    }
    
    .organization_item img {
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
        display: block;
    }
    
    .organization_item h4 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .organization_item p {
        text-align: center;
        font-size: 14px;
    }
    
    /* Contact Section */
    .contact_item h4 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .contact_item p {
        font-size: 14px;
        margin-bottom: 12px;
        line-height: 1.6;
    }
    
    .contact_item p i {
        margin-right: 8px;
    }
    
    .contact_form h4 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .contact_form input,
    .contact_form textarea {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin-bottom: 15px;
        border-radius: 4px;
    }
    
    .contact_form textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .contact_form button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Footer */
    .footer {
        padding-top: 50px;
        padding-bottom: 30px;
    }
    
    .footer .col-md-4 {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer h5 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    .footer ul.list-inline {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer ul.list-inline li {
        margin: 5px 10px;
    }
    
    .main_product .carousel-control {
        display: none;
    }
}

/* Landscape phones and smaller (480px and below) */
@media (max-width: 479px) {
    html {
        font-size: 85%;
    }
    
    /* Navigation */
    .logo {
        width: 70px !important;
    }
    
    .navbar-nav > li > a {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .navbar-collapse {
        max-height: 400px;
        overflow-y: auto;
    }
    
    /* Home Section */
    .home {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .main_home .home_text h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .main_home .home_text h2 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .main_home .home_text h3 {
        font-size: 17px;
        line-height: 1.4;
    }
    
    /* Sections spacing */
    .roomy-70 {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    /* About Section */
    .about_item h2 {
        font-size: 1.5rem;
    }
    
    .about_item p {
        font-size: 14px;
    }
    
    .about_item ul li {
        font-size: 13px;
    }
    
    /* Expertise Section */
    .expertise_item {
        padding: 15px;
    }
    
    .expertise_item h4 {
        font-size: 1.2rem;
    }
    
    .expertise_item .expertise-img {
        max-width: 150px;
    }
    
    /* Organization Section */
    .organization_item {
        padding: 15px;
    }
    
    .organization_item img {
        width: 80px;
        height: 80px;
    }
    
    .organization_item h4 {
        font-size: 1.1rem;
    }
    
    .organization_item p {
        font-size: 13px;
    }
    
    /* Contact Section */
    .contact_item p {
        font-size: 13px;
        word-break: break-word;
    }
    
    .contact_form input,
    .contact_form textarea {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Footer */
    .footer {
        padding-top: 40px;
        padding-bottom: 20px;
    }
    
    .footer p {
        font-size: 12px;
    }
}

/* Very small phones (400px and below) */
@media (max-width: 400px) {
    html {
        font-size: 80%;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Home Section */
    .main_home .home_text h1 {
        font-size: 24px;
    }
    
    .main_home .home_text h2 {
        font-size: 18px;
    }
    
    .main_home .home_text h3 {
        font-size: 15px;
    }
    
    /* Sections */
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Contact */
    .contact_item p {
        font-size: 12px;
    }
    
    .contact_form input,
    .contact_form textarea {
        font-size: 13px;
    }
}

/* Extra small phones (320px and below) */
@media (max-width: 320px) {
    html {
        font-size: 60.5%;
    }
    
    .logo {
        width: 60px !important;
    }
    
    .main_home .home_text h1 {
        font-size: 20px;
    }
    
    .main_home .home_text h2 {
        font-size: 16px;
    }
    
    .main_home .home_text h3 {
        font-size: 14px;
    }
    
    .roomy-70 {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .expertise_item,
    .organization_item {
        padding: 10px;
    }
}

/* Orientation specific styles */
@media (max-width: 768px) and (orientation: landscape) {
    .home {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .main_home .home_text h1 {
        font-size: 28px;
    }
    
    .main_home .home_text h2 {
        font-size: 20px;
    }
    
    .main_home .home_text h3 {
        font-size: 16px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .contact_form,
    .home_btns {
        display: none;
    }
    
    .home {
        padding: 50px 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .toggle-list,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .contact_form input,
    .contact_form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Smooth scrolling for better mobile experience */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Better tap targets */
    .navbar-nav > li > a,
    .toggle-list {
        padding: 12px 15px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .container {
        overflow-x: hidden;
    }
}

/* Carousel improvements for mobile */
@media (max-width: 768px) {
    .carousel-inner > .item > img {
        width: 100%;
        height: auto;
        min-height: 200px;
        object-fit: cover;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators li {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
}
