/*
 * Base CSS for all proyects
 * and screen sizes
 */

/* Modules CSS */
@import url(./header.css);
@import url(./hero.css);
@import url(./clients.css);
@import url(./text&image.css);
@import url(./services.css);
@import url(./experience.css);
@import url(./footer.css);


/* Global variables */
:root {
    /* colors */
    --color1: #041E42;
    /* paddings and margins */
    --max_w: 1920px;
    /* fonts */
    --font1: BeVietnam, sans-serif;
    --font2: Garet, sans-serif;
}

/* Fonts Tipography */
@font-face {
    font-family: Garet;
    src: url(../Assets/Fonts/Garet-Book.ttf);
    font-weight: 500;
}

@font-face {
    font-family: Garet;
    src: url(../Assets/Fonts/Garet-Heavy.ttf);
    font-weight: 900;
}

@font-face {
    font-family: BeVietnam;
    src: url(../Assets/Fonts/BeVietnam-Thin.ttf);
    font-weight: 100;
}

@font-face {
    font-family: BeVietnam;
    src: url(../Assets/Fonts/BeVietnam-Light.ttf);
    font-weight: 300;
}

@font-face {
    font-family: BeVietnam;
    src: url(../Assets/Fonts/BeVietnamPro-Regular.ttf);
    font-weight: 500;
}

@font-face {
    font-family: BeVietnam;
    src: url(../Assets/Fonts/BeVietnam-Bold.ttf);
    font-weight: 700;
}

@font-face {
    font-family: BeVietnam;
    src: url(../Assets/Fonts/BeVietnam-ExtraBold.ttf);
    font-weight: 900;
}



/* General */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    padding: 0;
    max-width: 19200px;
    color: var(--color1);
    font-family: var(--font1);
    font-weight: 500;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
p,
a {
    line-height: 1.1;
}

a, button {
    line-height: 1.1;
    text-decoration: none;
    color: inherit;
}

img {
    object-fit: contain;
}


/* Tipografy */
h1,
h2,
h3 {
    font-family: var(--font1);
    font-weight: 900;
}


/* Containers */
section,
header,
footer {
    width: 100%;
}

section {
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--max_w);
}


/* Texts */
.ts {
    text-align: start;
}

.te {
    text-align: end;
}

.tc {
    text-align: center;
}

.t_white {
    color: white;
}

.no-style {
    list-style-type: none;
    padding: 0;
}

.title-section {
    color: var(--color1);
    font-family: var(--font2);
    font-weight: 500;
    font-size: 16px;
}


/* Flexbox */
.flex {
    display: flex;
}

.f-col {
    flex-direction: column;
}

.wrap {
    flex-wrap: wrap;
}

.wrapr {
    flex-wrap: wrap-reverse;
}

.a-start {
    align-items: flex-start;
}

.a-end {
    align-items: flex-end;
}

.a-center {
    align-items: center;
}

.j-start {
    justify-content: flex-start;
}

.j-end {
    justify-content: flex-end;
}

.j-between {
    justify-content: space-between;
}

.j-center {
    justify-content: center;
}


/* CTAS */
.btn {
    width: fit-content;
    padding: 14px 24px;
    transition: .3s;
}

.btn:hover {
    opacity: .7;
}

.btn.primary {
    background-color: var(--color1);
    color: white;
    font-weight: bold;
    font-size: 16px;
}


/* Helpers */
.hidden {
    display: none;
}



/* General elements */
.float-whatsapp {
    position: fixed;
    animation: beating 1.5s infinite;
}

.float-whatsapp img {
    width: 65px;
    transition: .5s;
}

.form-wrapper {
    position: fixed;
    transition: .3s;
    cursor: pointer;
}

.form-wrapper .message-img {
    width: 65px;
    height: 65px;
    transition: .3s;
    border-radius: 50%;
    border: 4px solid white;
    animation: beating 1.5s .5s infinite;
    background: rgb(211, 184, 118);
}

.form-wrapper form {
    display: none;
    transition: .4s;
    padding: 10px 20px;
}

.form-wrapper form input,
.form-wrapper form textarea {
    width: 100%;
}

.form-wrapper input {
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 1px solid black;
}

.form-wrapper textarea {
    border: 1px solid black;
    border-radius: 5px;
}

.form-wrapper button {
    background: rgb(211, 184, 118);
    color: white;
    cursor: pointer;
    border: 0px;
    padding: 5px;
}

.form-wrapper button:disabled {
    opacity: .6;
    cursor: initial;
}

.form-wrapper form span {
    font-size: 10px;
    color: red;
    padding: 4px 0;
}

.form-wrapper.active {
    width: 90%;
    max-width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 10px gray;
}

.form-wrapper.active .message-img {
    display: none;
}

.form-wrapper.active form {
    display: flex;
    flex-direction: column;
    width: 100%;
}


/* Animations */
@keyframes beating {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


@media (max-width: 768px) {

    .desktop { display: none !important; }

    header {
        padding: 20px 0;
    }

    h1, .h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 18px;
        line-height: 1.5;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 18px;
    }

    p,
    a {
        font-size: 16px;
    }

    .p-sm,
    .a-sm {
        font-size: 16px;
    }

    .container.wpad {
        padding: 0 20px;
    }

    .float-whatsapp {
        right: 5%;
        bottom: 30px;
    }

    .form-wrapper {
        right: 5%;
        bottom: 110px;
    }

    .form-wrapper form input,
    .form-wrapper form textarea {
        margin: 10px 0;
    }

}

@media (min-width: 769px) {

    .mobile {
        display: none;
    }

    h1,
        .h1 {
            font-size: 40px;
        }

    h2 {
        font-size: 26px;
        line-height: 1.5;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 18px;
    }

    p,
    a {
        font-size: 16px;
    }

    .p-sm,
    .a-sm {
        font-size: 16px;
    }

    .container.wpad {
        padding: 0 50px;
    }

    .float-whatsapp {
        right: 8%;
        bottom: 30px;
    }

    .form-wrapper {
        right: 8%;
        bottom: 120px;
    }

    .form-wrapper form input,
    .form-wrapper form textarea {
        margin: 5px 0;
    }

    @media screen and (min-width: 1300px) {

        h1,
        .h1 {
            font-size: 50px;
        }

        h2 {
            font-size: 28px;
        }

        h3 {
            font-size: 26px;
        }

        p,
        a {
            font-size: 18px;
        }

        .float-whatsapp {
            right: 40px;
        }
    }

    @media screen and (min-width: 1600px) {
        .container.wpad {
            padding: 0 100px;
        }
    }

}
