/* ----------------------- */
/* Custom properties       */
/* ----------------------- */

:root {
    /* colors */
    --clr-primary-500: #32475c;
    --clr-primary-400: #5f7996;
    --clr-primary-300: 167 36% 54%;

    --clr-secondary-500: 0 90% 57%;
    --clr-secondary-400: 240 2% 92%;
    --clr-secondary-300: 0 0% 98%;

    --clr-white: 0 0% 100%;

    /* font sizes */
    --fs-800: 2.25rem;
    --fs-700: 2rem;
    --fs-600: 1.25rem;
    --fs-500: 1.125rem;
    --fs-400: 1rem;
    --fs-300: 0.9375rem;
    --fs-200: 0.8125rem;
    --fs-100: 0.75rem;

    /* font-families */
    --ff-heading: 'Arial', sans-serif;
    --ff-normal: 'Arial', sans-serif;

}

@media screen and (min-width: 37.5rem) {
    :root {
        /* font sizes */
        --fs-800: 3.75rem;
        --fs-700: 2.5rem;
        --fs-600: 1.25rem;
        --fs-500: 1.125rem;
        --fs-400: 1rem;
        --fs-300: 0.9375rem;
        --fs-200: 0.8125rem;
        --fs-100: 0.75rem;
    }   
}



/* ----------------------- */
/* Reset                   */
/* ----------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
picture {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-weight: 400; 
}

picture,
img {
    display: block;
    max-width: 100%;
}

input,
textarea,
button {
    font: inherit;
}

body {
    position: relative;
    font-family: var(--ff-normal);
    line-height: 1.5;
    color: var(--clr-primary-500);
}


/* ----------------------- */
/* Utility                 */
/* ----------------------- */

.container {
    max-width: 87.5rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 4.5rem;
}

.flex {
    display: flex;
}

.sb {
    justify-content: space-between;
}

.ai-c {
    align-items: center;
}

.grid-container {
    display: grid;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; /* added line */
    border: 0;
}

.uppercase {
    text-transform: uppercase;
}

.small-caps {
    font-variant: small-caps;
}

.btn {
    display: inline-block;
    background-color: #04AA6D;
    padding: 1em 2em;
    text-decoration: none;
    color: #ffffff;
}

/*  Typography */

.ff-heading {
    font-family: var(--ff-heading);
}

.ff-normal {
    font-family: var(--ff-normal);
}

/*  font sizes */
.fs-800 {
    font-size: var(--fs-800);
}

.fs-700 {
    font-size: var(--fs-700);
}

.fs-600 {
    font-size: var(--fs-600);
}

.fs-500 {
    font-size: var(--fs-500);
}

/* font weight */
.fw-bold {
    font-weight: bold;
}

/* font color */
.text-dark {
    color: var(--clr-primary-500);
}

/* spacing */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }

/* ----------------------- */
/* Layout                  */
/* ----------------------- */

/* heading */
.header {
    position: relative;
    margin-bottom: 5rem;
    box-shadow: 0 10px 15px rgb(0 0 0 / 0.2);
}

.hero {
    background-image: linear-gradient(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.5)), url('../images/banner-mobile.jpg');    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 2rem 0.5rem 2rem;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__content {
    background: rgb(0 0 0 / 0.6);
    margin: 0 auto;
    padding: 2rem 0;
    border:2px solid #ffffff;
    text-align: center;
    color: #ffffff;
    line-height: 1.2;
}

.hero__content h1 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
}

.hero__content h1 span {
    color: #ff0000;
}

@media screen and (min-width: 37.5rem) {
    .hero {
        height: 100vh;
        background-image: linear-gradient(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.5)), url('../images/banner-desktop.jpeg');
    }

    .hero__content {
        width: 75%;
    }

    .hero__content h1 {
        font-size: 3.75rem;
    }
}

@media screen and (min-width: 52rem) {
    /* .hero {
        height: 100vh;
        background-image: linear-gradient(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.5)), url('../images/banner-desktop.jpeg');
    } */

    .hero__content {
        width: 50%;
    }
}

/*  navigation */
.nav-toggle {
    position: relative;
}

.mobile-nav {
    position: relative;
    z-index: 100;
    height: 55px;
    background-color: var(--clr-primary-400);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1rem;
    border-bottom: 1px solid rgb(0 0 0 / 0.2);
    box-shadow: 0 5px 7px rgba(0 0 0 / 0.2);
}

.mobile-nav-toggle {
    width: 30px;
    aspect-ratio: 1/1;
    border: 0;
    background-color: transparent;
    background-image: url('../images/icons/icon-hamburger.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.mobile-nav-toggle[aria-expanded="true"] {
    background-image: url('../images/icons/icon-close.svg');
}

.primary-nav {
    background-color: var(--clr-primary-400);
}

.primary-nav > .container {
    padding: 0;
}

.primary-nav__list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    max-height: 0;
    transition: max-height 400ms ease;
    overflow: hidden;
}

.primary-nav__item a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid rgb(0 0 0 / 0.2);
}


@media screen and (min-width: 37.5rem) {
    .mobile-nav {
        display: none;
    }

    .primary-nav__list {
        max-height: 356px;
        display: flex;
        justify-content: flex-end;
    }
    
    .primary-nav__item a {
        padding: 1rem 2rem;
        border: 0;
    }
    
    .primary-nav__item a:hover,
    .primary-nav__item a:focus {
        background-color: #dddddd;
        color: #000000;
    }
    
    .primary-nav__item.active a,
    .primary-nav__item.active a:hover,
    .primary-nav__item.active a:focus {
        background-color: #04AA6D;
        color: #ffffff;
    }
}

/* Social media icons */
.social-icons-fixed {
    position: fixed;
    right: 5px;
    top: 25%;
    text-align: center;
    z-index: 100;
}

@media screen and (min-width: 37.5rem) {
    .social-icons-fixed {
        top: 20%;
    }
}

.social-icons-fixed p {
    margin-bottom: 0.75rem;
}

.social-icons-fixed a {
    display: block;
    color: #ff0000;
}

.social-icons-fixed a:hover {
    opacity: 0.5;
}

/* Contact form */
.contact-form-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: rotate(270deg) translateX(calc(50% + 56px));
    transform-origin: right bottom;
    border: 0;
    background-color: #ff0000;
    cursor: pointer;
    z-index: 100;
}

@media screen and (max-height: 56rem) {
    .contact-form-btn {
        top: 60%;
    }
}

.close-btn {
    padding: 1rem;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.contact-form {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 98%;
    max-height: 100%;
    background-color: #ffffff;
    box-shadow: 0px 10px 20px rgb(0 0 0 / 0.4);

    z-index: 10;
    overflow-y: auto;

    transform: translate(-200%, -50%);
    transition: transform 400ms ease;
}

.contact-form_layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form__header {
    padding: 2rem;
    background-color: rgb(0 0 0 / 0.6);
    color: #ffffff;
}

.contact-form__footer {
    padding: 2rem;
    background-color: rgb(0 0 0 / 0.6);
    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.contact-form__footer a {
    text-decoration: none;
    color: #ffffff;
}

.contact-form form,
.form-submitted {
    padding: 2rem;
}

.contact-form.open-form {
    transform: translate(-50%, -50%);
}

.contact-form label {
    /* display: block; */
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem 1rem;
}

.contact-form input[type='radio'] {
    width: auto;
}

.contact-form input[type='file'] {
    display: block;
    padding: 0;
}

.submit-btn,
.cancel-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
}
 
.btn[disabled] {
    background-color: lightgrey;
    cursor: default;
}

@media screen and (min-width: 42rem) {
    .contact-form {
        width: 75%;
    }

    .contact-form_layout {
        flex-direction: row;
    }

    .contact-form__header {
        flex-direction: row;
        gap: 0;
    }    
}

@media screen and (min-width: 62rem) {
    .contact-form {
        width: 50%;
    }
}



i.fa-circle-check {
    margin-right: 0.5rem;
}


/* advantages section */

@media screen and (min-width: 48rem) {
    .advantages__cols {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

.advantages__list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}


/* video gallery section */
.image-gallery {
    position: relative;
    height: 100%;
    border-top: 2px solid var(--clr-primary-500);
    border-bottom: 2px solid var(--clr-primary-500);
}

/* Swiper JS */
.swiper {
    padding: 30px 0 50px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-slide img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: red;
    background-color: rgba(255,255,255,0.5)
}

.swiper-button-next {
    right: 0;
}

.swiper-button-prev {
    left: 0;
}

.swiper-pagination-bullet {
    background-color: red;
}

@media screen and (max-width: 768px) {
    .swiper-nav-btn {
        display: none;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding-inline: 1rem;
    overflow: auto;
    background-color: #000;
    padding-top: 100px;
}

/* Close button */
.close {
    color: #fff;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    cursor: pointer;
    color: #999;
}
/* Modal content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
}

/* modal images */
.modal-image {
    display: none;
}

.modal-image img {
    width: 100%;
}


/* products section */
.products {
    background-color: var(--clr-primary-500);
    padding-block: 2rem;
    color: #ffffff;
}

.card {
    padding: 1rem;
}

.card img {
    height: auto;
    width: 100%;
    object-fit: cover;
}

.products__cols {
    row-gap: 2rem;
}

.product__cols {
    row-gap: 2rem;
}

@media screen and (min-width: 37.5rem) {
    .products__cols {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

@media screen and (min-width: 62.5rem) {
    .product__cols {
        grid-template-columns: 250px 1fr;
        column-gap: 2rem;
    }
    
    .product__cols div:nth-child(2) {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


/* application section */

.image-first__cols,
.content-first__cols {
    row-gap: 2rem;
}

.content-first__cols div:nth-child(2) {
    grid-row: 2;
}

.grid__img {
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.acc-head {
    width: 100%;
    background-color: transparent;
    border: none;
    text-decoration: none;
    text-align: start;
    color: var(--clr-primary-500);
    cursor: pointer;
}

.acc-head:not(:first-child) {
    margin-top: 1rem;
}

.acc-indicator {
    margin-right: 1rem;
}

.acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms ease;
}

.acc-content > div {
    padding: 1rem;
}

@media screen and (min-width: 48rem) {
    .image-first__cols,
    .content-first__cols {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        grid-auto-rows: max-content;
    }

    .content-first__cols div:nth-child(2) {
        grid-row: 1;
    }
}

/*  four column section */
.four-column {
    padding-block: 2rem;
    background-color: var(--clr-primary-500);
    color: #ffffff;
}

.four-column__list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.four-column__cols {
    row-gap: 1rem;
}

@media screen and (min-width: 37.5rem) {    
    .four-column__cols {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1rem;
    }
}

@media screen and (min-width: 62.5rem) {    
    .four-column__cols {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 1rem;
    }
}


/* TERMS AND CONDITIONS PAGE */

.t-and-c > li {
    margin-bottom: 2rem;
}

.t-and-c_inner {
    margin-bottom: 1rem;
}

.t-and-c h3,
.t-and-c p {
    margin-bottom: 0.75em;
}


/*  Footer */
.footer {
    background-color: var(--clr-primary-500);
    color: #ffffff;
    padding-block: 2rem
}

.footer-logo {
    font-size: 2.175rem;
}

.footer a {
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer__cols {
    justify-content: center;
    grid-template-rows: auto;
    gap: 2rem;
}

.footer__cols > div:nth-child(1),
.footer__cols > div:nth-child(2) {
    padding-bottom: 2rem;
    border-bottom: 1px solid #ffffff;
}

.social-media {
    display: flex;
    align-items: center;
    gap: 3rem;
    border: none;
}

.social-media__icon i:hover {
    color: #ff0000;
    transition: color 250ms linear;
}

@media screen and (min-width: 51rem) {
    .footer__cols {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }

    .footer__cols div:nth-child(1),
    .footer__cols div:nth-child(2) {
        padding-bottom: 0;
        border-right: 1px solid #ffffff;
        border-bottom: none;
    }
}

@media screen and (min-width: 57rem) {
    .footer-logo {
        font-size: 2.5rem;
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }

    .footer__cols div:nth-child(1),
    .footer__cols div:nth-child(2) {
        border-right: 1px solid #ffffff;
    }
}


