* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/*----------HEADER----------*/
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(images/banner.jpeg);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 180px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}

.header-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.header-btn::before,
.header-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #fff;
    transform: translateY(-50%);
}

.header-btn::before {
    left: -15px;
}

.header-btn::after {
    right: -15px;
}

.header-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}

nav .fa {
    display: none;
}

@media(max-width: 700px) {
    .text-box h1 {
        font-size: 20px;
    }

    nav img {
        margin-top: 10px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
}

/*----------SERVICES----------*/
.services {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 70px;
}

.services h1 {
    font-size: 36px;
    font-weight: 600;
    display: inline-block;
    border-bottom: 2px solid #000000;
}

p {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row {
    margin-top: 3%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}


.services-col {
    flex-basis: 31%;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5;
}

.services-col img{
    width: 70%;
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.services-btn {
    display: inline-block;
    text-decoration: none;
    color: black;
    border: 1px solid black;
    border-radius: 10px;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    margin-top: 10px;
}

.services-btn:hover {
    color: #fff;
    border: 1px solid #f44336;
    background: #f44336;
    transition: 0.5s;
}

.services-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

@media(max-width: 990px) {
    .row {
        flex-direction: column;
    }
}

/*----------BRANCHES----------*/
.branches {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 70px;
}

.branches h1 {
    font-size: 36px;
    font-weight: 600;
    display: inline-block;
    border-bottom: 2px solid #000000;
}

.branches-col {
    flex-basis: 45%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.branches-col img {
    width: 100%;
    display: block;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover {
    background: rgba(184, 182, 182, 0.7);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/*----------BRANDS----------*/
.brands {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 70px;
}

.brands h1 {
    font-size: 36px;
    font-weight: 600;
    display: inline-block;
    border-bottom: 2px solid #000000;
}

.brands-col {
    flex-basis: 31%;
    margin-bottom: 5px;
}

.brands-col img {
    width: 80%;
}

@media(max-width: 700px) {
    .brands-col img {
        margin: 15px;
    }
}

/*----------CALL-TO-ACTION----------*/
.cta {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(images/cta.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 70px 0;
}

.cta h1 {
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}

.fa-whatsapp {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgb(19, 165, 19);
    border-radius: 3rem;
    box-shadow: #11b92d 0px 1px 15px;
}

@media(max-width: 700px) {
    .cta h1 {
        font-size: 22px;
    }
}

/*----------FOOTER----------*/
.footer {
    background: #222;
    padding: 80px 13% 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 3.5rem;
    position: absolute;
    left: 0;
    right: 0;
}

.footer-col img {
    width: 250px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 20px;
    display: inline-block;
    border-bottom: 2px solid #fff;
    padding-bottom: 0.5rem;
}

.footer-col li {
    margin-bottom: 16px;
    list-style: none;
}

.footer-col li a {
    display: block;
    color: #d6d6d6;
    font-size: 15px;
    font-weight: 400;
    transition: all .40s ease;
    text-decoration: none;
}

.footer-col li a:hover {
    transform: translateY(-3px) translateX(-5px);
    color: #fff;
}

.footer-col p {
    color: #d6d6d6;
    font-size: 16px;
    line-height: 30px;
    margin: 20px 0;
}

.icons a {
    display: inline-block;
    font-size: 22px;
    color: #d6d6d6;
    margin-right: 17px;
    transition: all .40s ease;
}

.icons a:hover {
    color: #fff;
    transform: translateY(-5px);
}

.copyright {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
}

.copyright p {
    margin: 0;
    color: #fff;
    font-size: 14px;
}


@media(max-width: 1690px) {
    .footer {
        padding: 50px 5% 40px;
    }
}

@media(max-width: 1120px) {
    .footer {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, auto));
        gap: 2rem;
    }
}

@media(max-width: 700px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }
}

/*----------ABOUT PAGE----------*/
.sub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(images/banner.jpeg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

.sub-header h1 {
    margin-top: 100px;
}

.about {
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.about-col {
    flex-basis: 48%;
    padding: 30px 2px;
}

.logo {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.about-col img {
    width: 100%;
}

.about-col h1 {
    padding-top: 0;
}

.about-col p {
    padding: 15px 0 25px;
}

.red-btn {
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: fit-content; 
}

.red-btn::before,
.red-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: #f44336;
    transform: translateY(-50%);
}

.red-btn::before {
    left: -15px;
}

.red-btn::after {
    right: -15px;
}

.red-btn:hover {
    color: #fff;
}

@media(max-width: 1690px) {
    .logo {
        justify-content: space-evenly;
    }
}

@media(max-width: 700px) {
    .sub-header h1 {
        font-size: 24px;
    }
}

/*----------CONTACT PAGE----------*/
.location {
    width: 80%;
    margin: auto;
    padding: 80px 0;
}

.contact {
    width: 80%;
    margin: auto;
    margin-bottom: 80px;
}

.contact-col {
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contact-col h3 {
    display: block;
}

.contact-col iframe {
    width: 100%;
}

.contact-col div {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-col div .fa {
    font-size: 28px;
    color: #f44336;
    margin: 10px;
    margin-right: 30px;
}

.contact-col div p {
    padding: 0;
}

.contact-col div h5 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}

.contact-col input,
.contact-col textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
    resize: none;
}

/*----------GALERY PAGE----------*/
.galery-header {
    width: 100%;
}

.galery-header nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

.galery-header nav img {
    width: 180px;
}

.galery-header .nav-links {
    flex: 1;
    text-align: right;
}

.galery-header .nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.galery-header .nav-links ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 17px;
}

.galery-header .nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.galery-header .nav-links ul li:hover::after {
    width: 100%;
}

@media(max-width: 700px) {
    .galery-header nav img {
        margin-top: 10px;
    }

    .galery-header .nav-links ul li {
        display: block;
    }

    .galery-header .nav-links ul li a {
        color: #ffffff;
        text-decoration: none;
    }

    .galery-header .nav-links {
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    .galery-header nav .fa {
        display: block;
        color: #000000;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
}

.galery {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 30px 20px 0 20px;
}

.galery .galery-title {
    width: 50%;
    padding-bottom: 50px;
}

.galery .galery-title h2 {
    font-size: 3em;
    font-weight: 400;
    padding-bottom: 10px;
    border-bottom: 2px solid #222;
}

.galery .galery-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.galery .galery-box .galery-col {
    display: flex;
    flex-direction: column;
    width: 32.5%;
}

.galery .galery-box .galery-col img {
    width: 100%;
    padding-bottom: 15px;
    border-radius: 5px;
    transition: transform 1s ease, box-shadow 0.3s ease;
}

.galery .galery-box .galery-col img:hover {
    transform: scale(1.1); 
}

.galery .galery-box .galery-col iframe {
    width: 100%;
    padding-bottom: 15px;
    border-radius: 5px;
    transition: transform 1s ease, box-shadow 0.3s ease;
}

.galery .galery-box .galery-col iframe:hover {
    transform: scale(1.1); 
}

@media only screen and (max-width: 769px) {
    .galery .galery-box {
        flex-direction: column;
    }

    .galery .galery-box .galery-col {
        width: 100%;
    }
}

@media only screen and (max-width: 643px) {
    .galery .galery-title {
        width: 100%;
    }

    .galery .galery-title h2 {
        font-size: 1em;
    }
}

/*----------ERROR PAGE----------*/
.error {
    width: 100vw; 
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center;
    background-image: url(images/banner.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.error h1 {
    font-size: 4.5rem;
    color: #fff
}

.error a {
    margin: 40px;
}