@import url('https://fonts.cdnfonts.com/css/spartan');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto&display=swap');

@font-face {
    font-family: 'YourFontName';
    /* Give your font a name */
    src: url('path/to/your/font-file.otf') format('opentype');
    /* Specify the path to your font file */
    /* Add other font properties like font-weight and font-style if needed */
}

:root {
    font-size: 12px;
    --primary-color: #86090A;
    --secondary-color: #FE0000;
    --body-background-img: url('./src/img/body_background.svg') --transition: all 0.3s ease-in-out;
    --menu-background: rgba(0, 0, 0, 0.80);
    --menu-links-color: white;
    --transition: all 0.3s ease;
    --hero-img: url('./src/img/hero.webp');
    --hero-mobile-img: url('./src/img/hero-mobile.webp');
    --hero-text-color: white;
    --service-hero-text-color: black;
    --tablet-breakpoint: 750px;
    --page-margin: 5% 7%;
    --spartan-font: 'Spartan', sans-serif;
    --spartan-letter-spacing_font-size-2REM: 0.28rem;
    --spartan-letter-spacing_font-size-1_5REM: 0.18rem;
    --spartan-letter-spacing_font-size-1REM: 0.01rem;
    /*--bold-Spartan-font-declaration: font-family: var(--spartan-font); font-weight: bold; letter-spacing: 6.24px;*/

}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('./src/img/body_background.svg');
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Lato", sans-serif;
}

h1 {
    font-family: "Spartan", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 3.5rem;
    letter-spacing: var(--spartan-letter-spacing_font-size-2REM);
}

h2 {
    font-family: "Spartan", sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 3rem;
    letter-spacing: var(--spartan-letter-spacing_font-size-1_5REM);
}

h3 {
    font-family: "Spartan", sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.5rem;
    text-align: center;
    letter-spacing: var(--spartan-letter-spacing_font-size-1_5REM);
}

h4 {
    font-family: "Spartan", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2rem;
    letter-spacing: var(--spartan-letter-spacing_font-size-1_5REM);
}

.primary-color {
    color: var(--primary-color);
}

.justify-content-center {
    justify-content: center;
}

.button {
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    padding: 20px 34px;
    justify-content: center;
    align-items: center;
    color: white;
    border: 1px solid var(--secondary-color);
    background: var(--primary-color);
    box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.25);
    width: fit-content;
    transition: var(--transition);
    font-family: var(--spartan-font);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1.8px;
    scale: 1;

}

.button.nude {
    background: transparent;
}

.button:hover {
    background: var(--secondary-color);
    color: black;
    scale: 1.05;
}

textarea,
select,
input:not([type="submit"]) {
    border: 1px solid var(--primary-color);
    height: 2rem;
}

/* --------- MENU ------- */


nav,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    width: 100.1vw;
    background: var(--menu-background);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    gap: 5%
}

nav{
    padding: 15px;
}

nav .logo {
    transition: var(--transition);
    cursor: pointer;
    max-height: 40px;
}

nav .logo:hover {
    scale: 1.1;
}

.menu a {
    text-transform: uppercase;
    color: var(--menu-links-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    text-align: center;
    font-family: 'Spartan', sans-serif;
    font-size: 2rem;
}

.menu a:hover {
    scale: 1.1;
}

.menu a.selected {
    text-decoration: none;
}


.menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--menu-links-color);
    transition: width 0.3s ease;
}

.menu a.selected::after {
    width: 100%;
}

.menu a.selected:hover::after {
    width: 0;
}

.burger-menu {
    height: 40px;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    cursor: pointer;
    position: relative;
    z-index: 15;
}

.burger-menu .line {
    width: 100%;
    height: 4px;
    background-color: var(--menu-links-color);
    transform-origin: center top;
    transition: transform 0.3s ease;
}

.burger-menu.open .line:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

.burger-menu.open .line:nth-child(2) {
    visibility: hidden;
}

.burger-menu.open .line:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
}



.menu.open {
    position: absolute;
    top: 0;
    left: 0;
    height: 100.1vh;
    width: 100.1vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background: var(--menu-background);
    z-index: 2;
    padding-left: 50px;
    padding-right: 50px;

}

nav>.button {
    padding: 1rem;
    width: 45px;
    height: 45px;
}

nav .button.mobile {
    width: auto;
}

nav .button img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/*----------FOOTER--------*/

.footer {
    bottom: 0;
    top: auto;
    position: relative;
    flex-direction: column;
    color: var(--menu-links-color);
    padding: 30px 10%;
    gap: 40px;
}

.footer .columns-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-direction: column;
    gap: 40px;
}

.footer .columns-container .column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer a {
    text-decoration: none;
    color: var(--menu-links-color);
    font-family: "Spartan", sans-serif;
    letter-spacing: var(--spartan-letter-spacing_font-size-1REM);
    transition: var(--transition);
}

.footer a:hover{
    color: var(--secondary-color);
    scale: 1.1;
    text-decoration: underline;
}

.footer .full-width-container {
    width: 100%;
}

.footer .columns-container .column>img {
    height: 30px;
    width: auto;
}

.footer .footer-icon-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-title {
    text-transform: uppercase;
    font-family: "Spartan", sans-serif;
    font-weight: 400;
    letter-spacing: var(--spartan-letter-spacing_font-size-1_5REM);
}

.footer p {
    font-weight: 300;
}

/* ----------- HERO SECTION ----------*/

.hero {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* ------------- HOME -------------*/


.hero.home {
    background: rgba(0, 0, 0, 0.40);
}

.hero.home::before {
    content: "";
    background-image: var(--hero-mobile-img);
    background-size: cover;
    background-repeat: no-repeat;
    /*background-position: center center;*/
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -10;
}

.hero-content { /*mobile only */
    position: relative;
    padding: 7%;
    height: auto;
    width: 100%;
    color: var(--hero-text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    
}

.hero-text-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content .hero-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.hero-text-container h2{
    text-align: center;
}

.hero-content .hero-button-container>img {
    object-fit: contain;
    height: calc(100%/2.5);
    width: auto;
    max-width: calc(100%/2.5);

}

/* -------- SECTION LAYOUT -----*/

.section-header,
.section-subheader {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-title {
    text-align: center;
    text-transform: uppercase;
}

.section-title-icon {
    display: none;

}

.section-title-icon.underline {
    bottom: 20%;
}

.full-width-subsections-layout {
    margin: var(--page-margin);
    display: flex;
    flex-direction: column;
    gap: 5rem;
    flex-wrap: wrap;
}

.section-image-text {
    display: flex;
    gap: 3.7rem;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
}

.section-image-text>img {
    object-fit: contain;
}

.section-bullet-points {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-bullet-points .bullet-points-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.section-full-width h3,
.full-width-layout h3 {
    text-align: left;
}

.legal-container{
    margin: var(--page-margin);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.identity-legal{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.metions-legales{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ------ ICON-BOX---------*/

.icon-box-layout {
    margin: var(--page-margin);
}

.icon-box-layout .icon-boxes-container {
    display: flex;
    flex-direction: column;
    gap: 2%;
}

.icon-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-box-title {
    font-family: "Spartan", sans-serif;
    font-size: 1.1rem;
    padding-bottom: 1rem;
}

.icon-box-icon {
    position: relative;
    top: 4.5rem;
    height: 9rem;
    width: auto;
    object-fit: contain;
}

.icon-box-icon>img{
    height: 100%;
}

.icon-box-content {
    padding: 10%;
    padding-top: 6.25rem;
    border: var(--primary-color) 1px solid;
    height: 100%;
    width: 100%;
    /*text-align: justify;*/
}

.icon-box-content .icon-box-title {
    font-weight: bold;
    text-align: center;
}

/*--------- img-content-horizontal-full-layout --------*/

.img-content-horizontal-full-layout {
    position: relative;
    padding: 50px 0;
}

.img-content-horizontal-full-layout .image {
    display: none;
}

.img-content-horizontal-full-layout .section-header,
.img-content-horizontal-full-layout .horizontal-layout-text {
    width: auto;
    position: relative;
    left: 0;
    margin: var(--page-margin);
}

/*----------text-bullets layout -----------*/
.text-bullets-layout {
    margin: var(--page-margin);
    display: flex;
    flex-direction: column;
    gap: 60px;

}

.text-bullets-layout .section-header {
    grid-area: header;
}


.text-bullets-layout .section-text {
    grid-area: text;
}


.text-bullets-layout .bullet-points-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bullet-container {
    display: flex;
    align-items: center;
    gap: 20px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: "Spartan", sans-serif;
    letter-spacing: var(--spartan-letter-spacing_font-size-1REM);
}

.bullet-container>img{
    height: 47px;
    width: 43px;
}


.normal-text-style .bullet-container {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

.section-bullet-points .bullet-points-container {
    grid-gap: 20px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));

}


/*-------------- horizontal-gallery layout-----------*/
.horizontal-gallery-layout {
    margin: var(--page-margin);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.horizontal-gallery-layout .image-gallery-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

}

.image-gallery-container>img{
    max-height: 150px;
}

/*---------- image-text-layout ----------*/

.image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.image-text-layout img {
    height: 100%;
    object-fit: contain;
    width: auto;
}

.image-text-layout .text-container {
    flex: 1;
}



/*------------full-width-button-layout -------------*/


.full-width-button-layout {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*-------------text-container layout ---------*/

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}


/*------------form-full-layout ---------------*/
form label {
    text-transform: uppercase;
    font-size: 18px;
}

.form-full-layout {
    margin: var(--page-margin);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-full-layout form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;

}

.form-full-layout form>div {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.form-full-layout form>div>label {
    flex: 1;
}

.form-full-layout form>div>select,
.form-full-layout form>div>textarea,
.form-full-layout form>div>input:not([type="submit"]) {
    flex: 2;
    padding: 0.5em;
    font-size: 1.2rem;
    font-weight: 200;
    height: 3rem;
    overflow: hidden !important;
    white-space: nowrap;
    text-overflow: ellipsis; 
    width: 100%;
    min-width: 150px;
}

.form-full-layout form>div>textarea {
    height: auto;
}

.hero.service .hero-content {
    color: var(--service-hero-text-color);
    height: 75%;
    bottom: 0;
    margin-top: calc(150px - 7vh);
}

.hero.service>img {
    position: absolute;
    top: 35px;
    right: 0;
    z-index: -10;
    height: 100%;
    width: auto;
    max-width: 40vw;
    object-fit: contain;
    object-position: top;
}

.desktop {
    display: none;
}

@media screen and (min-width: 800px) {

    :root {
        font-size: 16px;
        --page-margin: 10% 15%;
    }
    .mobil {
        display: none;
    }

    .desktop {
        display: block;
    }

    nav .menu {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        width: 100%;
        gap: 15px
    }

    .hero-content {
        position: absolute;
        left: 200px;
        margin: 0;
        bottom: 200px;
        width: 65%;
        height: 33%;
        top: auto;
        transform: translateY(0%);
        padding: 0;
    }

    .hero-content .hero-button-container>img {
        width: calc(100%/5);
        height: 100%;
    }


    .hero.service .hero-content {
        color: var(--service-hero-text-color);
        height: 60%;
        bottom: 50px;
            margin-top: 0;
            left: 100px;
        
    }

    .section-image-text {
        flex-direction: row;
    }

    .icon-box-layout .icon-boxes-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2%;
    }

    .full-width-subsections-layout {
        margin: var(--page-margin);
        display: flex;
        flex-direction: column;
        gap: 80px;
        flex-wrap: wrap;
    }

    .text-bullets-layout {
        margin: var(--page-margin);
        display: grid;
        grid-template-columns: 3fr 2fr;
        grid-template-areas:
            "header bullets"
            "text bullets";
        gap: 10%;

    }

    .text-bullets-layout .bullet-points-container {
        margin: 0;
        grid-area: bullets;
    }

    .footer .columns-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        flex-direction: row;
    }

    nav .button {
        padding: 2% 3%;
        height: auto;
        width: fit-content;
    }

    nav .button.mobile {
        display: none;
    }

    .menu a {
        font-size: 1rem;
    }

    .img-content-horizontal-full-layout .section-header,
    .img-content-horizontal-full-layout .horizontal-layout-text {
        width: 50%;
        left: 50%;
        padding-right: 10%;
        margin: 0;
    }

    .img-content-horizontal-full-layout .image {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        object-fit: cover;
    }

    .text-bullets-layout .bullet-points-container {
        display: flex;
        flex-direction: column;
        margin-left: 10%;
        gap: 20px;
    }

    .section-title-icon {
        position: absolute;
        display: block;
    }

    nav{
        padding: 30px;
    }

    nav .logo {
        max-height: 75px;
    }

    .hero-content .hero-button-container {
        justify-content: space-between;
    }

    .hero.home::before {
        background-image: var(--hero-img);
    }
}