/*==========================
GLOBAL
==========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#ffffff;
    color:#222;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

section{
    padding:90px 8%;
}

a{
    text-decoration:none;
}

/*==========================
NAVBAR
==========================*/

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 90px;
    z-index:999;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
}

.logo{
    display:flex;
    flex-direction:column;
    line-height:1;
}

.logo h2{
    font-size:34px;
    font-weight:800;
    color:#163c8c;
}

.logo span{
    font-size:13px;
    letter-spacing:5px;
    font-weight:600;
    color:#163c8c;
}

nav ul{
    display:flex;
    list-style:none;
    gap:45px;
}

nav a{
    color:#222;
    font-weight:500;
    transition:.3s;
}

nav a:hover,
nav .active{
    color:#d4a22c;
}

/*==========================
HERO
==========================*/

.hero{

    margin-top:80px;

    height:65vh;

    background:linear-gradient(rgba(10,20,50,.15), rgba(10,20,50,.15)),
    url(../images/review-banner.jpg)
    center center/cover no-repeat;
    background-color:#0e1b3f;

    position:relative;

    display:flex;
    justify-content:center;
    align-items:center;

}

.overlay{

    position:absolute;
    inset:0;
    background:rgba(10,20,50,.55);

}

.hero-content{

    position:relative;
    z-index:2;

    text-align:center;
    color:#fff;
    max-width:850px;

}

.hero-content small{

    color:#d4a22c;
    letter-spacing:3px;
    font-weight:600;

}

.hero-content h1{

    font-size:60px;
    margin:20px 0;

}

.hero-content p{

    font-size:20px;
    line-height:1.8;
    color:#eef1f8;

}

/*==========================
FILTER
==========================*/

.review-filter h2{

    margin-bottom:35px;
    color:#163c8c;
    font-size:34px;

}

.brands{

    display:flex;
    flex-wrap:wrap;
    gap:18px;

}

.brands button{

    padding:14px 28px;

    border:2px solid transparent;

    border-radius:50px;

    background:#f4f4f4;

    cursor:pointer;

    transition:.35s;

    font-weight:500;
    font-family:'Poppins',sans-serif;
    font-size:15px;
    color:#333;

}

.brands button:hover{

    background:#163c8c;
    color:#fff;

}

.brands .active{

    background:#163c8c;
    color:#fff;

}

/*==========================
REVIEW GRID
==========================*/

.review-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(330px,1fr));

gap:35px;

}

.review-card{

background:#fff;

border-radius:18px;

overflow:hidden;

box-shadow:0 15px 35px rgba(0,0,0,.08);

transition:.4s;

}

.review-card:hover{

transform:translateY(-12px);
box-shadow:0 20px 45px rgba(0,0,0,.14);

}

.review-card img{

width:100%;
height:240px;
object-fit:cover;

}

.review-card h3{

text-align:center;

margin-top:20px;

font-size:24px;

color:#163c8c;

}

.stars{

text-align:center;

margin:15px 0;

color:#d4a22c;

font-size:18px;

}

.review-card p{

padding:0 25px 35px;

text-align:center;

line-height:1.9;

color:#666;

font-size:16px;

}

/*==========================
TESTIMONIALS
==========================*/

.testimonials{

    background:#f7f8fb;

}

.testimonials h2{

    text-align:center;
    color:#163c8c;
    font-size:34px;
    margin-bottom:50px;

}

.testimonial-container{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:35px;

}

.testimonial{

    background:#fff;
    border-radius:16px;
    padding:40px 32px;
    box-shadow:0 12px 30px rgba(0,0,0,.06);
    text-align:center;
    position:relative;
    transition:.35s;
    border-top:4px solid #d4a22c;

}

.testimonial:hover{

    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.1);

}

.testimonial h3{

    color:#163c8c;
    font-size:20px;
    margin-bottom:14px;

}

.testimonial .stars{

    letter-spacing:2px;
    font-size:20px;
    margin:0 0 16px;

}

.testimonial p{

    color:#666;
    line-height:1.8;
    font-size:15px;
    margin-bottom:20px;

}

.testimonial span{

    display:block;
    font-weight:600;
    color:#18163d;
    font-size:14px;

}

/*==========================
CTA
==========================*/

.review-cta{

    text-align:center;
    background:linear-gradient(135deg,#163c8c,#0e2a68);
    color:#fff;
    border-radius:24px;
    margin:0 8%;
    padding:70px 8%;

}

.review-cta h2{

    font-size:32px;
    margin-bottom:16px;

}

.review-cta p{

    color:#dbe3f5;
    font-size:16px;
    margin-bottom:32px;

}

.review-cta .btn{

    display:inline-block;
    background:linear-gradient(135deg,#e8bb4c,#d4a22c);
    color:#18163d;
    font-weight:700;
    font-size:15px;
    padding:16px 38px;
    border-radius:50px;
    box-shadow:0 10px 25px rgba(212,162,44,.35);
    transition:.3s;
    border:none;
    cursor:pointer;

}

.review-cta .btn:hover{

    transform:translateY(-3px);
    box-shadow:0 14px 30px rgba(212,162,44,.45);

}

/*==========================
FOOTER
==========================*/

footer{

    background:#10163a;
    color:#c7cbdd;
    padding:70px 8% 0;

}

.footer{

    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:50px;
    padding-bottom:50px;
    border-bottom:1px solid rgba(255,255,255,.08);

}

.footer h2{

    color:#fff;
    font-size:22px;
    margin-bottom:16px;
    letter-spacing:1px;

}

.footer h3{

    color:#fff;
    font-size:16px;
    margin-bottom:18px;

}

.footer > div > p{

    line-height:1.8;
    font-size:14px;
    color:#a8adc4;

}

.footer > div a{

    display:block;
    color:#a8adc4;
    font-size:14px;
    margin-bottom:12px;
    transition:.25s;

}

.footer > div a:hover{

    color:#d4a22c;

}

.copyright{

    text-align:center;
    padding:24px 0;
    font-size:13px;
    color:#8087a3;

}

/*==========================
WRITE A REVIEW MODAL
==========================*/

.modal-overlay{

    position:fixed;
    inset:0;
    background:rgba(10,15,30,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:1000;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;

}

.modal-overlay.active{

    opacity:1;
    visibility:visible;

}

.modal-box{

    background:#fff;
    width:100%;
    max-width:480px;
    max-height:88vh;
    overflow-y:auto;
    border-radius:16px;
    padding:36px 32px;
    position:relative;
    transform:translateY(24px) scale(.98);
    transition:transform .25s ease;
    box-shadow:0 20px 50px rgba(0,0,0,.25);

}

.modal-overlay.active .modal-box{

    transform:translateY(0) scale(1);

}

.modal-close{

    position:absolute;
    top:14px;
    right:14px;
    width:34px;
    height:34px;
    border:none;
    background:#f2f3f5;
    color:#555;
    font-size:22px;
    line-height:1;
    border-radius:50%;
    cursor:pointer;
    transition:background .2s ease, color .2s ease;

}

.modal-close:hover{

    background:#163c8c;
    color:#fff;

}

.modal-box h2{

    color:#163c8c;
    font-size:24px;
    margin-bottom:8px;

}

.modal-subtitle{

    color:#777;
    font-size:14px;
    margin-bottom:26px;

}

.review-form{

    display:flex;
    flex-direction:column;
    gap:18px;

}

.review-form label{

    display:flex;
    flex-direction:column;
    gap:8px;
    font-size:13px;
    font-weight:600;
    color:#444;

}

.review-form input,
.review-form textarea{

    font-family:'Poppins',sans-serif;
    font-size:16px;
    padding:12px 14px;
    border:1.5px solid #e2e2e2;
    border-radius:10px;
    color:#222;
    resize:vertical;
    transition:border-color .2s ease;

}

.review-form input:focus,
.review-form textarea:focus{

    outline:none;
    border-color:#163c8c;

}

.send-btn{

    margin-top:6px;
    background:linear-gradient(135deg,#e8bb4c,#d4a22c);
    color:#18163d;
    font-weight:700;
    font-size:15px;
    border:none;
    padding:15px 0;
    border-radius:50px;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(212,162,44,.3);
    transition:.3s;

}

.send-btn:hover{

    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(212,162,44,.42);

}

/*==========================
RESPONSIVE
==========================*/

@media (max-width:900px){

    header{

        padding:0 24px;

    }

    nav ul{

        gap:20px;

    }

    .hero-content h1{

        font-size:38px;

    }

    .hero-content p{

        font-size:16px;

    }

    section{

        padding:60px 6%;

    }

    .review-cta{

        margin:0 6%;

    }

}

@media (max-width:600px){

    header{

        padding:0 16px;

    }

    .logo{

        flex-shrink:0;

    }

    .logo h2{

        font-size:20px;

    }

    .logo span{

        font-size:9px;
        letter-spacing:2px;

    }

    nav{

        flex:1;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
        margin-left:12px;

    }

    nav::-webkit-scrollbar{

        display:none;

    }

    nav ul{

        gap:16px;
        flex-wrap:nowrap;
        width:max-content;

    }

    nav ul li{

        flex-shrink:0;

    }

    nav ul li a{

        font-size:13px;
        white-space:nowrap;

    }

    .hero{

        height:55vh;

    }

    .hero-content h1{

        font-size:28px;

    }

    .footer{

        grid-template-columns:1fr;

    }

    .modal-overlay{

        padding:0;
        align-items:flex-end;

    }

    .modal-box{

        max-width:100%;
        width:100%;
        max-height:92vh;
        border-radius:20px 20px 0 0;
        padding:28px 22px;

    }

}

