/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#070707;
    color:#fff;
    overflow-x:hidden;
    line-height:1.5;
}

/* =========================
   NAVBAR
========================= */

.navbar{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:130px;

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

    background:rgba(0,0,0,0.72);

    backdrop-filter:blur(10px);

    z-index:999;
}

/* =========================
   LOGO
========================= */

.logo{

    position:absolute;

    left:50%;
    top:-55px;

    transform:translateX(-50%);
}

.logo img{
    width:270px;
}

/* =========================
   HERO
========================= */

.hero{

    position:relative;

    width:100%;
    height:85vh;

    background-image:url("https://i.postimg.cc/L5HSNcgZ/catalogue5.png");

    background-size:cover;
    background-position:center;

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

    overflow:hidden;
}

.hero::before{

    content:"";

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to bottom,
        rgba(0,0,0,0.82),
        rgba(15,0,0,0.35),
        rgba(0,0,0,0.88)
    );
}

.hero::after{

    content:"";

    position:absolute;

    bottom:0;
    left:0;

    width:100%;
    height:3px;

    background:#e7a506;
}

/* =========================
   HERO CONTENT
========================= */

.hero-content{

    position:relative;

    z-index:2;

    width:100%;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;

    padding:120px 20px 0;
}

.hero-content h1{

    font-size:clamp(40px,5vw,72px);

    font-weight:900;

    color:#e7a506;

    margin-bottom:20px;
}

.hero-content p{

    font-size:clamp(16px,1.1vw,25px);

    max-width:950px;

    line-height:1.5;
}

/* =========================
   STATS
========================= */

.stat-box{

    margin-top:70px;

    text-align:center;
}

.stat-box h2{

    font-size:clamp(55px,6vw,100px);

    color:#e7a506;

    font-weight:900;

    line-height:1;
}

.stat-box span{

    display:block;

    margin-top:8px;

    font-size:clamp(18px,1.6vw,28px);

    font-weight:700;

    letter-spacing:3px;
}

/* =========================
   CONTAINER
========================= */

#cars-container{

    width:100%;

    max-width:1600px;

    margin:auto;

    padding:70px 40px;

    display:grid;

    grid-template-columns:
    repeat(4,minmax(320px,1fr));

    gap:22px;
}

/* =========================
   CARD
========================= */

.car-card{

    position:relative;

    background:#0a0a0a;

    border:1px solid rgba(255,255,255,0.16);

    border-radius:28px;

    padding:24px;

    min-height:560px;

    overflow:hidden;

    display:flex;
    flex-direction:column;

    transition:0.3s;
}

.car-card:hover{

    transform:translateY(-6px);

    border-color:#e7a506;

    box-shadow:
    0 18px 40px rgba(231,165,6,0.15);
}

/* =========================
   BADGE
========================= */

.perf-badge{

    position:absolute;

    top:18px;
    right:18px;

    display:flex;
    align-items:center;
    gap:6px;

    padding:9px 15px;

    border-radius:14px;

    border:1px solid #e7a506;

    background:rgba(15,15,15,0.95);

    color:#e7a506;

    font-size:13px;
    font-weight:800;

    z-index:2;
}

/* =========================
   IMAGE
========================= */

.car-image{

    width:100%;

    height:240px;

    display:flex;

    justify-content:center;
    align-items:center;

    margin-top:20px;
}

.car-image img{

    width:100%;

    height:100%;

    object-fit:contain;
}

/* =========================
   CONTENT
========================= */

.card-content{

    display:flex;
    flex-direction:column;

    flex:1;
}

/* =========================
   TITLE
========================= */

.car-title{

    margin-top:22px;
    margin-bottom:20px;

    font-size:clamp(20px,1.4vw,28px);

    font-weight:500;

    line-height:1.1;
}

/* =========================
   SPECS
========================= */

.car-specs{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:10px;

    margin-bottom:28px;
}

.spec{

    flex:1;

    display:flex;
    flex-direction:column;

    align-items:center;

    text-align:center;

    color:#d6d6d6;

    font-size:14px;

    font-weight:600;

    line-height:1.35;
}

.spec i{

    margin-bottom:6px;

    color:#fff;
}

/* =========================
   PRICE
========================= */

.car-price{

    margin-top:auto;

    padding-top:22px;

    border-top:1px solid rgba(255,255,255,0.05);

    display:flex;

    justify-content:center;
    align-items:center;

    gap:14px;
}

.old-price{

    color:#7c7c7c;

    font-size:20px;

    text-decoration:line-through;
}

.new-price{

    color:#e7a506;

    font-size:22px;

    font-weight:800;

    white-space:nowrap;
}

/* =========================
   BUTTON
========================= */

.car-actions{

    margin-top:24px;
}

.reserve-btn{

    width:100%;
    height:58px;

    border:none;

    border-radius:16px;

    background:#e7a506;

    color:#fff;

    font-size:23px;
    font-weight:700;

    cursor:pointer;

    transition:0.25s;
}

.reserve-btn:hover{

    transform:translateY(-2px);

    background:#f0b000;
}

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

.footer{

    width:100%;

    margin-top:50px;

    padding:28px 20px;

    border-top:
    1px solid rgba(255,255,255,0.08);

    background:#0a0a0a;

    text-align:center;
}

.footer p{

    color:#8a8a8a;

    font-size:14px;

    letter-spacing:1px;
}

/* =========================
   RESPONSIVE
========================= */

@media screen and (max-width:1450px){

    #cars-container{

        grid-template-columns:
        repeat(3,minmax(320px,1fr));
    }
}

@media screen and (max-width:1100px){

    #cars-container{

        grid-template-columns:
        repeat(2,minmax(320px,1fr));
    }
}

@media screen and (max-width:700px){

    .navbar{
        height:110px;
    }

    .logo{
        top:-40px;
    }

    .logo img{
        width:200px;
    }

    .hero{
        height:auto;
        padding-bottom:90px;
    }

    .hero-content{
        padding-top:160px;
    }

    #cars-container{

        grid-template-columns:1fr;

        padding:50px 18px;
    }

    .car-card{
        min-height:auto;
    }
}
