/* ======================================================
   RESPONSIVE IMAGE RATIO CONTROL
   Target screens:
   - Desktop: default
   - Tablet: ≤1024px
   - Mobile: ≤768px
====================================================== */


/* --------------------------------------
   GLOBAL IMAGE SAFETY
-------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}

/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (min-width: 1600px) {
    .hero {
        padding-top: 380px;
        padding-bottom: 380px;
    }

    .hero-title {
        font-size: var(--h2-font-size);
    }
}

/* Tablet (≤1024px) */
@media screen and (max-width: 1024px) {
    .hero-image {
        min-width: 100%;
        width: 100%;
        height: auto;

        transform: translate(-50%, -30%);
    }
    
    .clients-image {
        max-width: 80%;
    }
    
    .services-icon-wrap,
    .adventure-icon-wrap {
        width: 32%;
        height: 32%;
    }
    
    .services-thumb,
    .adventure-thumb {
        padding-bottom: 100px;
    }

    .navbar .custom-btn {
        font-size: 16px;
    }

    .projects-title {
        font-size: 26px;
    }

    .img-link {
        aspect-ratio: 4 / 3;
    }

    .projects-image,
    .contact-image {
        aspect-ratio: 4 / 3;
    }
}

@media screen and (max-width: 991px) {
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 32px;
    }

    h4 {
        font-size: 28px;
    }

    h5 {
        font-size: 20px;
    }

    h6 {
        font-size: 18px;
    }

    .section-padding {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .custom-btn,
    .navbar .custom-btn {
        font-size: var(--copyright-text-font-size);
        padding: 8px 16px;
    }

    .navbar .container {
        background: var(--white-color);
    }

    .navbar-brand,
    .navbar-brand:hover {
        color: var(--dark-color);
    }

    .navbar-icon {
        background: var(--secondary-color);
        color: var(--white-color);
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    .navbar .custom-btn {
        border-color: var(--secondary-color);
        color: var(--secondary-color);
    }

    .navbar-toggler .navbar-toggler-icon,
    .navbar-toggler .navbar-toggler-icon:before,
    .navbar-toggler .navbar-toggler-icon:after {
        background: var(--dark-color);
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        margin-left: 0;
    }

    .navbar-nav .nav-link {
        color: var(--p-color);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 100px;
    }

    .hero-text {
        top: 0;
        margin-bottom: 20px;
    }

    .about-thumb {
        padding-right: 20px;
        padding-left: 20px;
    }

    .about-numbers {
        font-size: 42px;
    }

    .services-thumb-up,
    .adventure-thumb-up {
        bottom: 0;
        margin-bottom: 32px;
    }

    .services-thumb,
    .adventure-thumb {
        margin-bottom: 32px;
        padding-bottom: 270px;
    }

    .services-icon-wrap,
    .adventure-icon-wrap {
        width: 45%;
        height: 60%;
    }

    .services .col-lg-10 .row .col-lg-6:last-child,
    .projects .col-lg-4:last-child {
        margin-bottom: 0;
    }

    .projects-thumb {
        margin-top: 0;
        margin-bottom: 32px;
    }

    .contact-info {
        border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
        padding: 40px 40px;
    }

    .contact-info-border-start {
        border-right: 0;
        border-bottom: 0;
        border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
    }

    .form-floating {
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 768px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        max-width: 720px;
    }

    .hero-text {
        margin-bottom: 0px;
    }

    /* Prevent Horizontal Overflow */

    .hero-image {
        min-width: 100%;
        transform: translate(-50%, -50%);
    }

    /* Services icon cropped in mobile */
    .services-icon,
    .adventure-icon {
        font-size: 48px;
        bottom: 0;
        /* reset push */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .services-thumb,
    .adventure-thumb {
        padding-bottom: 80px;
    }

    .services-icon-wrap,
    .adventure-icon-wrap {
        width: 18%;
        height: 40%;
        transform: rotate(-35deg) translateY(35px);
    }

    .clients-image {
        max-width: 65%;
    } /* reduce to 65% */

    .projects-image,
    .contact-image {
        aspect-ratio: 1 / 1;
        transform: none;
        /* remove rotation on small screens */
    }

    /* Ensure image fills container */
    .img-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        aspect-ratio: 1 / 1;
    }

    .switch-section {
        display: flex;
        flex-direction: column;
    }
    
    .col-hero-text {
        order: 2;
    }
    .col-hero-image {
        order: 1;
    }

    .featured {
        background: var(--white-color);
    }

    .join {
        background: var(--section-bg-color);
    }

    .contact-info {
        background: var(--white-color);
    }

    .about-desktop {
        display: none;
    }
    
    .about-mobile {
        display: block;
    }
}

@media screen and (max-width: 575px) {
    .navbar .container {
        margin-right: 12px;
        margin-left: 12px;
    }

    .contact-info-border-start {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
        border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
    }

}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 26px;
    }

    h4 {
        font-size: 22px;
    }

    h5 {
        font-size: 20px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .custom-btn,
    .navbar .custom-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .navbar-icon {
        font-size: var(--copyright-font-size);
        width: 35.5px;
        height: 35.5px;
        line-height: 35.5px;
    }

    .custom-btn1 {
        font-size: 14px;
    }

    .custom-btn {
        margin-left: 8px;
    }

    .hero-title {
        font-size: 30px;
    }

    .avatar-image {
        width: 50px;
        height: 50px;
    }

    .navbar-brand {
        display: none;
    }

    .services-icon-wrap,
    .adventure-icon-wrap {
        width: 25%;
        height: 30%;
        transform: rotate(-35deg) translateY(28px);
    }

    .services-icon,
    .adventure-icon {
        font-size: 42px;
    }

    .services-thumb,
    .adventure-thumb {
        padding-bottom: 65px;
    }

    .clients-image {
        max-width: 55%;
    }

}