:root{
    --standard-width: 1040px;
    --nav-menu-gap: 1.2rem;
    --card-gap : 2rem;
    --card-radius: 20px;
    --inner-gap: 10px;

    --font-size-h1: 3rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 2rem;
    --font-size-h4: 1.7rem;
    --font-size-h5: 1.2rem;
    --standard-p-font-size: 1rem;
    --title-font-size: 60px;

    --spacing-sm: 0.5rem;
    --spacing-md-narrow: 0.8rem;
    --spacing-md: 1rem;
    --spacing-md-broad: 1.2rem;
    --spacing-lg : 2rem;
    --spacing-xl : 3rem;


    --color-grey: rgb(74, 74, 74);
    --color-lightgrey: #7A7A7A;
    --color-border-grey: #D5D7DA;
    --color-blue: #184193;
    --color-red: #ED1C24;

    --font-sm : 12px;

    
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
}

h1{
    font-size: var(--font-size-h1);
    font-weight: 500;
}

h2{
    font-size: var(--font-size-h2);
    font-weight: 500;
}

h3{
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin: var(--spacing-md) 0;
}

h4{
    font-size: var(--font-size-h4);
    font-weight: 400;
}

h5{
    font-size: var(--font-size-h5);
    font-weight: 400;
}

a{
    text-decoration: none;
    color: black;
}

/* layout */
section{
    margin-bottom: var(--spacing-xl);
}

.container{
    max-width: var(--standard-width);
    margin: auto;
}

header{
    position: relative;
}

.hidden{
    display: none !important;
}

/* topbar */

.topbar-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid lightgray;
}

.topbar{
    width: 100%;
    max-width: var(--standard-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-sm);
    color: var(--color-grey);
    padding: var(--spacing-sm);
}

.topbar .left{
    display: flex;
    column-gap: var(--spacing-sm);
    align-items: center;
}

.topbar .right{
    display: flex;
    column-gap: var(--spacing-sm);
    align-items: center;
}

.topbar svg{
    fill: var(--color-grey);
    width: 14px;
    height: 14px;
    transform: translateY(2px);
}

.topbar .right svg{
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px;
}

.topbar .right svg:hover{
    scale: 1.15;
    fill: white;
    background-color: var(--color-grey);
    border-radius: 50%;
}

.phone, .address, .email{
    display: flex;
    align-items: center;
    column-gap: 4px;
}

/* nav */
nav{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--standard-width);
    margin: auto;
}

.mobile-nav{
    display: none;
}

#nav-open{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 4px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-blue);
    position: fixed;
    top: 40px;
    right: 10px;
    z-index: 4;
    cursor: pointer;
    transition: all 0.2s;
}

#nav-open:hover{
    background-color: var(--color-red);
    transform: scale(1.1);
}

#nav-open .bar{
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 4px;
}

.logo{
    width: 240px;
    height: 50px;
}

.nav-menu{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu a{
    cursor: pointer;
    padding: var(--spacing-lg) var(--nav-menu-gap);
    transition: all 0.3s;
}

.nav-menu a:hover{
    background-color: var(--color-red);
    color: white;
}

/* hero */
.hero-title{
    color: white;
    z-index: 2;
}

.hero-section .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 580px;
    position: relative;
    background-image: url('../images/background.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-section .container::after{
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#upscroll{
    background-color: var(--color-blue);
    position: fixed;
    bottom: 40px;
    right: 10px;
    width: 30px;
    height: 30px;
    z-index: 2;
    cursor: pointer;
    fill: white;
    border-radius: 50%;
}

/* footer */
footer{
    background-color: #4A4C53;
    padding: var(--spacing-lg) 0;
}

footer .content-wrapper{
    width: 100%;
    max-width: var(--standard-width);
    margin: auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: white;
}

footer .col{
    width: 30%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
}

footer .subtitle{
    color: white;
    border-left: 3px solid white;
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
    margin: var(--spacing-md-narrow) 0;
}

footer svg{
    width: 14px;
    height: 14px;
    fill: white;
}

footer .logo{
    width: 90%;
    aspect-ratio: 2 / 0.5;
    height: auto;
}

/* first column */
footer p, .icon-list{
    font-size: 14px;
}

.icon-list{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* second */
#map{
    width: 100%;
    height: 100%;
}


/* third */
footer .heading{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sns-icons{
    display: flex;
    column-gap: var(--spacing-sm);
    align-items: center;
}

.sns-icons svg{
    cursor: pointer;
}

.col.last-col{
    justify-content: flex-start;
    align-items: center;
}

/* #insta-feed{
    width: 100%;
    height: 100%;
    background-color: #0051BA;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items:center;
    row-gap: 2%;
}

.feed{
    width: 31%;
    height: 48%;
    background-color: var(--color-red);
} */

@media only screen and (max-width: 1039px) {
    .container{
        padding: var(--inner-gap);
        box-sizing: border-box;
    }
}

@media only screen and (max-width:896px) {
    :root{
        --card-gap : 1.5rem;
        --font-size-h1: 2.7rem;
        --font-size-h2: 2.3rem;
        --font-size-h3: 1.8rem;
        --font-size-h4: 1.3rem;
        --font-size-h5: 1rem;
        --standard-p-font-size: 0.9rem;
        --title-font-size: 46px;
    
        --spacing-sm: 0.4rem;
        --spacing-md-narrow: 0.65rem;
        --spacing-md: 0.8rem;
        --spacing-md-broad: 1rem;
        --spacing-lg : 1.7rem;
        --spacing-xl : 2rem;
    }
}

@media only screen and (max-width:670px){
    :root{
        --spacing-lg : 1.2rem;
    }

    footer .content-wrapper{
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: var(--spacing-md);
        padding: var(--inner-gap);
        box-sizing: border-box;
    }

    footer .col{
        width: 100%;
        height: 280px;
        justify-content: center;
    }

    footer .logo{
        width: 100%;
        height: 120px;
    }

    .navigation{
        display: none;
    }

    #nav-open{
        display: flex;
    }

    .mobile-nav{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 220px;
        height: 100vh;
        position: fixed;
        top: 0;
        right: 0;
        background:linear-gradient(135deg, #184193, #4a8cc2);
        z-index: 5;
        transform: translateX(220px);
        transition: transform 0.3s;
    }

    .mobile-nav.active{
        transform: translateX(0);
    }

    .mobile-nav .logo{
        width: 200px;
        height: 50px;
        margin-bottom: var(--spacing-xl);
    }

    .nav-menu-mobile{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: var(--spacing-lg);
    }
    .nav-menu-mobile a{
        color:white;
    }
    .nav-menu-mobile svg{
        fill: white;
        margin-top: var(--spacing-xl);
        width: 30px;
        height: 30px;
        cursor: pointer;
        background-color: white;
        border-radius: 50%;
    }
    
}
@media only screen and (max-width:540px) {
    :root{
        --title-font-size: 36px;
        --standard-p-font-size: 0.8rem;
    }

}


@media only screen and (max-width: 430px) {
    :root{
        --card-gap : 1rem;
        --font-size-h1: 2.2rem;
        --font-size-h2: 1.8rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.2rem;
        --font-size-h5: 1rem;
        --font-sm:10px
 
    }

    .topbar{
        justify-content: space-between;
    }

    #nav-open{
        width: 40px;
        height: 40px;
    }

    #nav-open .bar{
        width: 18px;

    }

    footer .logo{
        height: 78px;
    }
}