/* =========================================================
   AeroCapital Website
   Header (hero) and Navbar Stylesheet
   ---------------------------------------------------------
   Description: contains hero and navbar styles (FULLY RESPONSIVE)
   Author: Shayan Bhatti https://github.com/Shayan-Bhatti
   ========================================================= */

/* __________________NAVBAR_______________________ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    padding: 0 3%;
    background-color: #172F48;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.nav_brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.nav_brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.nav_brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav_brand strong {
    font-size: 1rem;
    font-weight: 800;
}

.nav_brand small {
    font-size: 0.8rem;
    color: #cfdce8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav_links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav_links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav_links a:hover {
    color: #f60837;
}


.hamburger_btn {
    display: none;
}


@media (max-width: 995px) {

    #navbar .hamburger_btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger_btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav_links {
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background-color: #172F48;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .nav_links a {
        width: 100%;
        text-align: center;
        padding: 16px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }


    #navbar #menu_toggle:checked~.nav_links {
        max-height: 350px;
    }

    #menu_toggle:checked~.hamburger_btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menu_toggle:checked~.hamburger_btn span:nth-child(2) {
        opacity: 0;
    }

    #menu_toggle:checked~.hamburger_btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* __________________HEADER_______________________ */

#hero {
    width: 100%;
    max-width: 100vw;

    position: relative;

    margin-top: 74px;

    min-height: calc(100vh - 74px);

    display: flex;
    align-items: center;

    padding: 3rem 0;

    overflow: visible;
}

#hero_content {
    position: relative;
    z-index: 3;
    width: min(65%, 750px);
    padding-left: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hero_tagline {
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    font-weight: 800;
    color: #AD080C;
    text-align: left;
    margin-top: 0;
    margin-bottom: var(--basic_vertical_space);
    margin-left: 0;
    margin-right: 0;
}

#hero_title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    line-height: 1.3;
    font-weight: 800;
    color: #003852;
    text-align: left;
    margin-top: 0;
    margin-bottom: var(--basic_vertical_space);
    margin-left: 0;
    margin-right: 0;
}

#hero_divider {
    width: 50px;
    height: 6px;
    margin-top: 2.5vh;
    background-color: #AD080C;
    margin-top: 0px;
    margin-bottom: var(--basic_vertical_space);
    margin-left: 0px;
    margin-right: 0px;
}

#hero_description {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 400;
    color: black;
    text-align: left;
    margin-top: 2.5vh;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px 0px 0px 0px;
    max-width: 40vw;
}

#hero_buttons {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    display: flex;
    gap: 25px;
    margin-top: 2.5vh;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px 0px 0px 0px;
    max-width: 40vw;
}

@media (max-width: 910px) {
    #hero_description {
        max-width: 45vw;
    }

    #hero_buttons {
        max-width: 45vw;
    }
}

#btn_hero_consult,
#btn_hero_service {
    text-decoration: none;
}

#btn_hero_consult {
    color: white;
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background-color: #AD080C;
    border-radius: 5px;
}

#btn_hero_service {
    color: #003852;
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background-color: white;
    border: 3px solid #003852;
    border-radius: 5px;
}

#hero_firm_features {
    display: flex;
    gap: clamp(12px, 2vw, 28px);
    margin-top: 5vh;
    max-width: 700px
}

.feature_item {
    display: flex;
    flex: 1;
    align-items: center;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}


@media (max-width: 1100px) {
    #hero_firm_features {
        display: flex;
        gap: clamp(12px, 2vw, 28px);
        margin-top: 5vh;


        width: auto;
        max-width: none;

        position: relative;
        z-index: 4;
    }


    .feature_item {
        display: flex;
        align-items: center;
        padding: 0 0 0 15px;

        flex: 1;
        min-width: 210px;
        height: 92px;

        box-sizing: border-box;
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
        background-color: #FEFEFE;
        border: 3px solid #E7E8EC;
        border-radius: 7px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

}

.feature_item img {
    width: clamp(2.1rem, 3.5vw, 3.5rem);
    margin-right: 10px;
}

#hero_image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 2;
    -webkit-mask-image: linear-gradient(to right, transparent 15%, black 40%);
    mask-image: linear-gradient(to right, transparent 15%, black 40%);
}

@media (max-width: 821px) {
    #hero_image {
        -webkit-mask-image: linear-gradient(to right, transparent 24%, black 35%);
        mask-image: linear-gradient(to right, transparent 24%, black 35%);
    }
}

#hero_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (500px <= width <= 700px){
    #hero_title br{
        display: none;
    }
    
}
@media (max-width: 700px) {
    #hero {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
        min-height: 100vh;
    }

    #hero_content {
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }
    #hero_title{
        width: 80%;
    }

    #hero_buttons {
        flex-direction: column;
        width: 100%;
        max-width: 220px;
        gap: 15px;
    }

    #btn_hero_consult,
    #btn_hero_service {
        flex: none;
        width: 100%;
    }

    #hero_image {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 90%;
        z-index: 0;

        -webkit-mask-image: none;
        mask-image: none;
    }

    #hero_image img {
        object-position: right top;
    }

    #hero_description {
        max-width: 70vw;
    }

    #hero_buttons {
        max-width: 45vw;
    }

    #hero_firm_features {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 64vw;

        gap: 2px;
    }

    .feature_item {
        width: 100%;
        max-width: 360px;
        min-width: unset;
        height: 65px;
        margin: 0;
        padding: 5px 20px;
        justify-content: flex-start;
    }
    .feature_item p br {
        display: none;
    }

    .feature_item p {
        font-size: 0.95rem;
        display: inline-flex;
        gap: 4px;
    }
}
@media (max-width: 600px){
    #hero_title{
        width: 90%;
    }
    #hero_image {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 82.5%;
        z-index: 0;

        -webkit-mask-image: none;
        mask-image: none;
    }
    #hero_firm_features {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 70vw;
        
        gap: 2px;
    } 
}
@media(max-width: 530px){
    #hero_title{
        width: 100%;
    }
}
@media (max-width: 500px){
    #hero_description {
        max-width: 80vw;
    }
    #hero_image {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 75%;
        z-index: 0;

        -webkit-mask-image: none;
        mask-image: none;
    }
    #hero_firm_features {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 57.5vw;

        gap: 2px;
    } 
}
@media(max-width: 450px) {
    #hero_image {
        height: 70%;
    }
}
@media(max-width: 391px) {
    #hero_image {
        height: 65%;
    }
}
@media(max-width: 375px) {
    #hero_image {
        height: 60%;
    }
}