/* ============================================================================================ */
/* WEBSITE RESETS
/* ============================================================================================ */
*{ 
    margin : 0;
    padding : 0;

    font-family: Poppins, Arial;
    text-decoration: none;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body{
    overflow-x: hidden;
    position :relative;
}

/* ============================================================================================ */
/* CUSTOM STYLES
/* ============================================================================================ */
:root {
    --header-height: 3em;

    --color-black: #272727;
    --color-white: #fff;
    --color-red: #d90429;

    --color-black-300 : #212121;
    --color-black-500 : #4e4e4e;
    --color-black-700 : #5a5a5a;

    --color-white-300 : #a7a7a7;
    --color-white-500 : #c8c8c8;
    --color-white-700 : #eeeeee;


    --color-100: black;
    --color-300: red;
    --color-500: #555;
    --color-700: #bbb;
    --color-900: var(--color-white);

    --accent-300: #a8001a;
    --accent-500: var(--color-red);
    --accent-700: #ff4b5c;
    --accent-900: #ffd6db;

    --section-title-size: 2.6em;
}

h2.section-title{
    color : var(--color-300);
    margin-block : 0.5em;
    font-size : var(--section-title-size);
    font-family : Arial;
}

main{
    text-align : center;
}

main section{
    padding : 3em;
}

/* ============================================================================================ */
/* HEADER
/* ============================================================================================ */
header{
    display : flex;
    justify-content: space-between;
    align-items : center;
    padding : 0 1em;
    height : var(--header-height);

    background-color: white;
    position : relative;
}

.logo{
    font-size : 1.6em;
    color : black;
}

.logo-image img{
    width : 32px;
    height : 32px;
    vertical-align: middle;
    margin-right : 0.2em;
}

.logo span{
    color : var(--accent-500);
    font-weight: bold;
}

.hum-btn{
    width : 34px;
    height : 25px;
    border: none;
    background-color: inherit;
    position : relative;

    transition: all 150ms ease-in-out;
}

.hum-btn .middle::before,
.hum-btn .middle::after,
.hum-btn .middle{
    width : 100%;
    height : 5px;
    background-color : var(--color-black-300);
    left : 0;
    content : "";
}

.hum-btn .middle::before{
    position : absolute;
    top : 0;
}

.hum-btn .middle::after{
    position : absolute;
    bottom : 0;
}

nav:has(.hum-btn:focus-within) .menu{
    display : block;
}

.drop-menu{
    width : 50%;
    position : absolute;
    display : flex;
    gap : 0.4em;
    flex-direction: column;
    top : 100%;
    right : -100%;
    z-index: 1000;
    padding : 1em;
    background-color : var(--color-white);
    transition : all 150ms linear;
}

.drop-menu a{
    font-size: 1.2em;
    color : var(--color-black);
}

header:has(.hum-btn:focus-within) .drop-menu{
    display : flex;
    right : 0;
}

.contacts{
    background-color: rgb(242, 242, 242);
    display: flex;
    justify-content: center;
    flex-wrap : wrap;
    gap : 1em;
    padding : 0.4em;
}

.contacts a{
    color : var(--color-black-500);
}
/* ============================================================================================ */
/* SECTION HERO
/* ============================================================================================ */
.section--hero {
    position: relative;
    padding: 0 0.6em;
    background-image: url("../media/images/hero-image-2.webp");
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
    height : fit-content;
}

.hero-copyright{
    font-size: 1.8em;
}

.hero-copyright h1{
    color: var(--accent-500);
    font-size : 2em;
    margin-bottom : 0.5em;
}

.hero-copyright h1 span{
    color: var(--color-black-300);
}


.hero-copyright h2{
    width : 60%;
    font-size: 1em;
}

.loan-application{
    padding : 0.4em;
    margin : 1em;
    box-shadow: 0 0 5px var(--color-100);
    background-color: hsla(0, 0%, 90%, 0.2);

    display: flex;
    flex-direction: column;
}

.loan-application.form-mobile{
    display: none;
}

.loan-application .form-title{
    margin : 0 auto;
    margin-bottom : 0.5em;
    color: var(--color-black-300);
}

.loan-application label{
    font-size : 1em;
    display : flex;
    flex-direction : column;
}

.loan-application input{
    background-color: var(--color-white);
    padding: 0.3em 1em;
    margin-top: 0.1em;
    border: 2px solid transparent;
    outline: none;
    font-weight: bold;
    color: var(--color-black);
    transition: border-color 150ms ease-in;
    border-radius: 0.25em;
}

.loan-application input:focus{
    border-color: var(--accent-700);
}

.loan-application button {
    margin-top : 0.6em;
    padding : 0.4em;
    font-size : 1.05em;
    background-color : var(--accent-500);
    border : none;
    color : var(--color-white);
}

/* ============================================================================================ */
/* SECTION BENEFITS
/* ============================================================================================ */
.section--benefits{
    display : flex;
    flex-direction : column;
    align-items: center;
}

.section--process .processes{
    width : 90%;
    display : flex;
    gap : 1em;
    flex-wrap: wrap;
}

.section--benefits .benefits{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap : 1em;
    grid-template-columns: 100%;
    width : 100%;
    /* overflow: hidden; */
}

.section--benefits .benefit{
    padding : 1em;
    width: 100%;
    width: min(12em, 100%);
    border-radius : 2em;
    background-color: var(--color-white-700);
    box-shadow: 0 0 5px var(--color-white-300);

    display : flex;
    flex-direction: column;
    align-items: center;
    gap : 1em;
}

.section--benefits .benefit .benefit-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width : 200px;
}

.section--benefits .benefit .benefit-icon{
    font-size: 5em;
    color: var(--color-black-500);
}

.section--benefits .benefit h3{
    font-size: 1.4em;
    color: var(--color-black-300);
}

.section--benefits .benefit p{
    font-size: 1.2em;
    overflow-wrap: break-word;
    color: var(--color-black-700);
}
/* ============================================================================================ */
/* SECTION PROCESS
/* ============================================================================================ */
.section--process{
    background-color: var(--accent-900);

    display : flex;
    flex-direction: column;
    align-items: center;
}

.section--process .section-title{
    color: var(--color-black);
}

.section--process .processes{
    flex-wrap: wrap;
    gap :4em;
    justify-content: center;
}

.section--process .process-step{
    position : relative;
    background-color: var(--color-white);
    width : 10em;
    padding : 2em;
    display: flex;
    flex-direction: column;
    gap : 1.4em;

    border-radius: 0.4em;
    color: var(--color-black);
    border: 2px solid var(--accent-500);
}

.process-step i{
    position : absolute;
    top : 50%;
    left : 50%;
    transform : translate(-50%, -50%);
    opacity: 0.1;
    width : 100%;
    color : red;
    font-size: 4em;
}

.section--process .process-step h3{
    font-size: 1.2em;

}

/* ============================================================================================ */
/* SECTION FAQs
/* ============================================================================================ */

.section--faqs {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section--faqs details{
    width : 100%;
    border : 2px solid var(--color-black-300);
    border-top: none;
}

.section--faqs details:first-of-type{
    border-top : 2px solid var(--color-black-300);
}

.section--faqs details summary {
    font-weight: bold;
    font-size : 1.2em;
    padding : 0.4em;
    background-color: var(--color-black-700);
    color: var(--color-white);
}

.section--faqs details p{
    margin-block : 1em;
}

/* ============================================================================================ */
/* FOOTER
/* ============================================================================================ */

footer{
    background-color: var(--color-black-300);
    color: var(--color-white);

    display: flex;
    justify-content: center;
}

footer .container{
    margin : 1em;
    width : 80%;

    display: flex;
    gap : 2em;
    justify-content: center;
}

.ncr-logo{
    background-color: white;
    padding : 1em;
    width : 6em;
}

.footer--links{
    text-decoration: none;
    list-style : none;
}

.footer--links a{
    color: var(--color-white-700);
}

.footer-link.up a{
    color : red;
    position : fixed;
    right : 0.5em;
    bottom : 0.5em;
    font-size : 1.4em;

    background-color: var(--color-black-700);
    width : 2em;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    text-align: center;
    display : flex;
    justify-content: center;
    align-items: center;

}

/* =============================================================================== */
/* MEDIA QUARIES */
/* =============================================================================== */

@media (max-width: 640px) {
    /* MAIN > SECTION */
    main section {
        padding: 1em;
    }

    /* HAMBURGER MENU STYLE AND FUNCTIONALITY */
    .menu {
      flex-direction: column;
      align-items: flex-start;
      display : none;
    }

    .hum-btn:focus-within{
        transform: rotate(720deg);
    }
    .hum-btn:focus-within .middle {
      height : 0;
    }

    .hum-btn:focus-within .middle::after {
      transform: rotate(45deg);
      top: 9px;
    }

    .hum-btn:focus-within .middle::before {
      transform: rotate(-45deg);
      top: 9px;
    }

    nav.menu.active .hum-btn div {
      opacity: 0;
    }

    /* HERO COPYRIGHT */
    .hero-copyright h2{
        width : 100%;
    }
}

@media (min-width: 650px){
    /* HEADER */
    header{
        padding: 0 2em
    }

    /* DROP MENU */
    nav.drop-menu a{
        margin-left: 1em;
    }

    /* HERO */
    .section--hero{
        position : relative;
        padding : 2em;
        background-color: var(--color-700);
    }

    .hero-copyright{
        height : 300px;
    }

    .hero-copyright h1{
        color : var(--color-300);
        font-size : 2em;
        margin-bottom : 0.5em;
    }

    .hero-copyright h1 span{
        color : var(--color-black-300);
    }
    
    /* FORM FOR MOBILE DEVICES */

    .loan-application{
        position : absolute;
        top : 70%;
        right : 3em;
        transform : translateY(-50%);

        width : 30%;
        max-width : 300px;
    }

    /* SLIDING MENU -> DISPLAYED MENU */
    .drop-menu{
        width : fit-content;
        position :unset;
        display : block;
        gap : 1em;
        padding : 0;
        
        background-color: inherit;
    }
    .drop-menu a{
        background-color: hsl(0, 0, 0, 0);
    }

    .hum-btn{
        display : none;
    }

    /* SIZING THE BENEFITS FOR NONE MOBILE */
    .section--benefits .benefits{
        grid-template-columns: repeat(3, 1fr);
        width: 100%; /* fallback for min() */
        width: min(100%, 900px);
        justify-items: center;
        align-content: center;
    }
}
