@font-face{
    font-family:'AvantGarde';
    src:url('fonts/AvantGardeDemi.otf') format('opentype');
}

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,body{
    font-family:'AvantGarde', sans-serif;
    overflow-x:hidden;
}

/* NAVBAR */

.navbar{
    width:100%;
    height:74px;

    background:#1c2fa3;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 28px;

    position:fixed;
    top:0;

    z-index:999;
}

.logo img{
    height:72px;
}

.nav-links{
    display:flex;
    gap:50px;

    list-style:none;
}

.nav-links a{
    color:white;
    text-decoration:none;

    font-size:12px;
}

.contact-btn{
    background:white;
    color:#1c2fa3;

    text-decoration:none;

    padding:10px 18px;

    border-radius:8px;

    font-size:12px;
}

/* HERO */

.hero{
    position:relative;

    height:430px;

    background:url('images/cravecover.jpeg');

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    margin-top:74px;
}

.hero-overlay{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            90deg,
            rgba(8,32,149,0.88),
            rgba(195,14,66,0.55)
        )
}

.hero-content{
    position:relative;
    z-index:2;
}

.hero h1{
    color:white;

    font-size:70px;

    line-height:1;

    margin-bottom:16px;
}

.hero p{
    color:white;

    font-size:30px;

    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:16px;
}

.primary-btn{
    background:#d61c4e;
    color:white;

    text-decoration:none;

    padding:12px 28px;

    border-radius:999px;

    font-size:14px;
}

.secondary-btn{
    background:white;
    color:#1c2fa3;

    text-decoration:none;

    padding:12px 28px;

    border-radius:999px;

    font-size:14px;
}

/* HOW SECTION */

.white-divider{
    width: 100%;
    height: 10px;
    background: white;
}

/* HOW IT WORKS */

.how-it-works { 
    padding: 70px 20px 40px;
    text-align: center;
    position: relative;
    color: white;

    background: url('images/cravehowitworks.jpeg') center center no-repeat;

    background-size: 100% auto;
    

    padding: 70px 20px;

    overflow: hidden;

    text-align: center;
}



@media (max-width: 768px){
    .how-it-works{
        background-size: cover;
        background-position: center top;
    }
}




/* TITLE */
.how-it-works h2{
    color: white;

    font-size: 38px;
    font-weight: 700;

    margin-bottom: 40px;
}

/* CAROUSEL */
.carousel{
    position: relative;

    max-width: 600px;
    margin: auto;

    overflow: hidden;
}

/* TRACK */
.carousel-track{
    display: flex;

    transition: transform 0.5s ease;
}

/* EACH SLIDE */
.slide{
    min-width: 100%;

    display: flex;
    justify-content: center;
}

/* CARD */
.slide-card{
    width: 100%;
    max-width: 400px;

    background: white;

    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.slide-card img{
    width: 100%;
    height: auto;

    display: block;
}

/* BODY */
.card-body{
    padding: 22px;
}

/* STEP */
.step{
    color: #d61252;

    font-size: 15px;
    font-weight: 700;

    margin-bottom: 8px;
}

/* TEXT */
.card-body p{
    color: #1f2ea8;

    font-size: 30px;
    font-weight: 700;

    margin: 0;
}

/* ARROWS */
.arrow{
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background: white;
    color: #1f2ea8;

    font-size: 24px;

    cursor: pointer;

    z-index: 10;

    box-shadow: 0 5px 20px rgba(0,0,0,0.25);

    transition: 0.3s;
}

/* LEFT */
.left{
    left: 15px;
}

/* RIGHT */
.right{
    right: 15px;
}

/* HOVER */
.arrow:hover{
    background: #d61252;
    color: white;
}

/* MOBILE */
@media(max-width:768px){

    .how-it-works{
        padding: 60px 15px 80px;
    }

    .slide-card img{
        height: 230px;
    }

    .card-body p{
        font-size: 24px;
    }

    .arrow{
        width: 42px;
        height: 42px;

        font-size: 18px;
    }
}

/* FEATURES */
/* FEATURES */

.features-section{
    background:white;
    padding:60px 20px;
    text-align:center;
}

.features-section h2{
    color:#1c2fa3;
    font-size:42px;
    margin-bottom:50px;
}

.features-container{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:70px;
    flex-wrap:wrap;
}

.feature-card{
    width:300px;
    text-align:center;
}

.feature-image{
    width:100%;
    height:180px;
    background:#e5e5e5;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:18px;
}

.feature-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.feature-card h3{
    color:#1c2fa3;
    font-size:40px;
    font-weight:700;

    margin:0 0 14px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    text-align:center;
}

.feature-card h3 img{
    width:52px;
    height:52px;
    object-fit:contain;
    flex-shrink:0;
}

.feature-card p{
    color:#444;
    font-size:16px;
    line-height:1.4;
    text-align:center;
}

/* WHY SECTION */

.blue-divider{
    width:100%;
    height:12px;
    background:#1c2fa3;
}


.why-section{
    background:#1c2fa3;

    text-align:center;

    padding:24px;
}

.why-section h2{
    color:white;

    font-size:42px;

    margin-bottom:10px;
}

.why-section p{
    color:white;

    font-size:14px;
}

/* CONTACT */

/* CONTACT */

.contact-section{
    position:relative;

    background-image:url("images/footerbg.png");
    background-size:150%;
    background-position:center center;
    background-repeat:no-repeat;

    height:500px;
    padding:0 20px;

    overflow:hidden;
}

.contact-overlay{
    position:absolute;
    inset:0;
    background:rgba(28,47,163,0.72);
    z-index:1;
}

.contact-container{
    position:relative;
    z-index:2;

    max-width:1200px;
    height:100%;
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:60px;
}

.popup{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content{
    position:relative;

    background: white;
    color: #1c2fa3;
    text-align: center;
    padding: 35px 45px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.tick{
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    background: #d61c4e;
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
}

.popup-content h3{
    font-size: 28px;
    margin-bottom: 8px;
}

.popup-content p{
    font-size: 14px;
}

.popup-close{
    position:absolute;
    top:10px;
    right:14px;

    border:none;
    background:none;

    font-size:28px;
    color:#1c2fa3;

    cursor:pointer;
}

/* LEFT */

.contact-left{
    max-width:500px;
}

.contact-left h2{
    color:white;

    font-size:60px;

    margin-bottom:14px;
}

.contact-left p{
    color:white;

    line-height:1.6;

    font-size:16px;

    margin-bottom:30px;
}

.socials{
    display:flex;
    gap:18px;
    align-items:center;
}

.socials a{
    width:44px;
    height:44px;

    background:white;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:0.3s;
}

.socials a:hover{
    transform:translateY(-3px);
    background:#d61c4e;
}

.socials img{
    width:22px;
    height:22px;

    filter:invert(18%) sepia(90%) saturate(2255%) hue-rotate(227deg) brightness(87%) contrast(97%);
}

.socials a:hover img{
    filter:brightness(0) invert(1);
}

/* RIGHT */

.contact-right{
    width:420px;

    display:flex;
    flex-direction:column;

    gap:14px;
}

.contact-right input,
.contact-right textarea{
    padding:14px;

    border:none;

    border-radius:6px;

    font-family:'AvantGarde';

    outline:none;
}

.contact-right textarea{
    height:140px;

    resize:none;
}

.contact-right button{
    background:#d61c4e;
    color:white;

    border:none;

    padding:14px;

    border-radius:999px;

    cursor:pointer;

    font-family:'AvantGarde';

    font-size:14px;
}

/* FOOTER */

footer{
    background:#1c2fa3;

    color:white;

    text-align:center;

    padding:22px;

    font-size:18px;
}

@media (max-width: 600px){

    .navbar{
        height: 42px;
        padding: 0 12px;
    }

    .logo img{
        height: 34px;
    }

    .nav-links{
        gap: 28px;
    }

    .nav-links a{
        font-size: 6px;
    }

    .contact-btn{
        padding: 5px 9px;
        font-size: 6px;
        border-radius: 5px;
    }

    .hero{
        height: 105px;
        margin-top: 42px;
    }

    .hero h1{
        font-size: 24px;
        margin-bottom: 4px;
    }

    .hero p{
        font-size: 11px;
        margin-bottom: 6px;
    }

    .primary-btn,
    .secondary-btn{
        padding: 5px 12px;
        font-size: 6px;
    }

    .how-it-works{
        padding: 8px 20px 18px;
        background-size: cover;
        background-position: center;
    }

    .how-it-works h2{
        font-size: 13px;
        margin-bottom: 8px;
    }

    .carousel{
        max-width: 230px;
    }

    .slide-card{
        height: 118px;
        border-radius: 6px;
    }

    .slide-card img,
    .card-body,
    .arrow{
        display: none;
    }

    .features-section{
        padding: 12px 14px 8px;
    }

    .features-section h2{
        font-size: 12px;
        margin-bottom: 12px;
    }

    .features-container{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .feature-card{
        width: 100%;
    }

    .feature-image{
        width: 100%;
        height: 88px;
        border-radius: 5px;
        margin-bottom: 5px;
    }

    .feature-card h3{
        font-size: 10px;
        margin-bottom: 2px;
    }

    .feature-card p{
        font-size: 6px;
        line-height: 1.25;
    }

    .why-section{
        padding: 10px 8px;
    }

    .why-section h2{
        font-size: 14px;
        margin-bottom: 3px;
    }

    .why-section p{
        font-size: 7px;
    }

    .contact-section{
        padding: 22px 22px;
    }

    .contact-container{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        align-items: center;
    }

    .contact-left h2{
        font-size: 17px;
        margin-bottom: 4px;
    }

    .contact-left p{
        font-size: 6px;
        line-height: 1.25;
        margin-bottom: 42px;
    }

    .socials{
        font-size: 14px;
        gap: 8px;
    }

    .contact-right{
        width: 100%;
        gap: 6px;
    }

    .contact-right input,
    .contact-right textarea{
        padding: 6px;
        font-size: 6px;
        border-radius: 3px;
    }

    .contact-right textarea{
        height: 55px;
    }

    .contact-right button{
        padding: 6px;
        font-size: 6px;
    }

    footer{
        padding: 14px;
        font-size: 9px;
    }
}