/*--------------*\  #style.css  \*---------------*/


/*-----------*\ #CUSTOM PROPERTY  \*--------*/

:root {

    /**
     * COLOURS
     */

    --pale-purple-pantone: hsl(262, 63%, 92%);
    --medium-sea-green: hsl(152, 63%, 43%);
    --lavender-blush: hsl(336, 35%, 92%);
    --eerie-black: hsl(204, 91%, 53%);
    --columbia-blue: hsl(204, 92%, 90%);
    --alice-blue-1: hsl(216, 38%, 95%);
    --alice-blue-2: hsl(216, 75%, 97%);
    --alice-blue-3: hsl(216, 38%, 95%);
    --alice-blue-4: hsl(217, 33%, 92%);
    --independence: hsl(219, 21%, 39%);
    --deep-cerise: hsl(329, 63%, 52%);
    --eerie-black: hsl(210, 11%, 15%);
    --space-cadet: hsl(240, 22%, 25%);
    --blue-jeans: hsl(204, 80%, 63%);
    --slate-blue: hsl(262, 60%, 57%);
    --beau-blue: hsl(208, 86%, 92%);
    --honey-dew: hsl(152, 48%, 89%);
    --mimi-pink: hsl(329, 63%, 90%);
    --red-salsa: hsl(0, 79%, 63%);
    --sapphire: hsl(211, 100%, 35%);
    --manatee: hsl(219, 14%, 60%);
    --white: hsl(0, 0%, 100%);

    --gradient: linear-gradient(to top, var(--alice-blue-2), var(--alice-blue-3));

    /**
     * TYPOGRAPHY
     */

    --ff-nunito: 'Nunito', sans-serif;
    --ff-open-sans: 'Open Sans', sans-serif;

    --fs-1: 2.125rem;
    --fs-2: 1.875rem;
    --fs-3: 1.5rem;
    --fs-4: 1.375rem;
    --fs-5: 1.125rem;
    --fs-6: 0.875rem;
    --fs-7: 0.625rem;

    --fw-400: 400;
    --fw-600: 600;

    /**
     * TRANSITION
     */

    --transition: 0.5s ease;

    /**
     * SPACING
     */

    --section-padding: 50px;

    /**
     * RADIUS
     */

    --radius-10: 10px;
    --radius-14: 14px;
    --radius-18: 18px;

    /**
     * SHADOW
     */

    --shadow-1: 3px 3px 9px hsla(240, 14%, 69%, 0.2);
    --shadow-2: 3px 3px 9px hsla(204, 92%, 59%, 0.3);

}

/*------------*\    #RESET   \*--------------*/

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

li {
    list-style: none;
}

a {
    text-decoration: none;
}

a,
img,
span,
label,
input,
button,
ion-icon {
    display: block;
}

button,
input {
    background: none;
    border: none;
    font: inherit;
}

button {
    cursor: pointer;
}

input {
    width: 100%;
}

ion-icon {
    pointer-events: none;
}

html {
    font-family: var(--ff-open-sans);
    color: var(--eerie-black);
    font-size: 1rem;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    background: whitesmoke;
}

::-webkit-scrollbar {
    width: 15px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--white);
}

::-webkit-scrollbar-thumb {
    background: hsla(219, 14%, 60%, 0.3);
    border: 2px solid var(--white);
}

::-webkit-scrollbar-thumb:hover {
    background: hsla(219, 14%, 60%, 0.5);
}





/*--------------*\   #REUSED STYLE  \*------------------*/

.container {
    padding-inline: 15px;
}

button,
a {
    transition: var(--transition);
}

.btn {
    position: relative;
    background: var(--background, var(--eerie-black));
    color: var(--color, var(--white));
    min-width: var(--width, 40px);
    min-height: var(--height, 40px);
    padding: 5px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-14);
    font-family: var(--ff-nunito);
    font-size: var(--fs-6);
    font-weight: var(--fw-600);
    overflow: hidden;
}

.btn ion-icon {
    font-size: 22px;
    --ionicon-stroke-width: 40px;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, hsla(0, 0%, 100%, 0.4), transparent);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.btn:is(:hover, :focus) {
    box-shadow: var(--shadow-2);
}

.btn:is(:hover, :focus)::before {
    opacity: 1;
}

.section {
    padding-block: var(--section-padding);
}

.h1,
.h2,
.h3 {
    color: var(--space-cadet);
    font-family: var(--ff-nunito);
    line-height: 1.4;
}

.h1 {
    font-size: var(--fs-1);
    text-transform: uppercase;
}

.h2,
.h3 {
    font-weight: var(--fw-400);
}

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

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

.w-100 {
    width: 100%;
}



/*-----------------------------------*\      #HEADER  \*-----------------------------------*/

.logo img {
    width: 200px;
    height: auto;
  }
  
  .header-contact {
    display: none;
}

.header {
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: var(--transition);
    z-index: 4;
    padding: 25px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header.active {
    box-shadow: var(--shadow-1);
}

.header .container {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .btn span {
    display: none;
}

.user-btn {
    --color: var(--independence);
    --background: var(--white);
    --shadow-2: var(--shadow-1);
    box-shadow: var(--shadow-1);
}

.nav-toggle-btn span {
    background: var(--independence);
    width: 22px;
    height: 2px;
    border-radius: 2px;
    margin-block: 8px;
    transform-origin: right;
    transition: var(--transition);
}

.nav-toggle-btn span.two {
    transform: scaleX(0.7);
}

.nav-toggle-btn span.three {
    transform: scaleX(0.4);
}

.nav-toggle-btn:is(:hover, :focus) span {
    background: var(--eerie-black);
}

.nav-toggle-btn.active span {
    transform: scaleX(1);
    background: var(--eerie-black);
}

.navbar {
    background: white;
    position: fixed;
    top: 70px;
    bottom: 0;
    right: -260px;
    max-width: 260px;
    width: 100%;
    padding: 20px 25px;
    border: 1px solid var(--white);
    box-shadow: var(--shadow-1);
    visibility: hidden;
    transition: 0.25s cubic-bezier(0.51, 0.03, 0.64, 0.28);
}

.navbar.active {
    visibility: visible;
    transform: translateX(-100%);
    transition: 0.5s cubic-bezier(0.33, 0.85, 0.56, 1.02);
}

.navbar-link {
    color: var(--independence);
    font-family: var(--ff-nunito);
    font-size: var(--fs-6);
    padding-block: 5px;
    margin-bottom: 15px;
}

.navbar-link:is(:hover, :focus) {
    color: var(--eerie-black);
}

.overlay {
    position: fixed;
    top: 70px;
    background: hsl(216, 38%, 95%);
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.overlay.active {
    opacity: 0.7;
    pointer-events: all;
}

/*-------------------*\  #HERO  \*--------------------*/

.hero {
    /* padding-top: 120px; */
    margin: 120px 30px 0 30px;
    border-radius: 8px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

.hero-title {
    max-width: 25ch;
    margin-bottom: 15px;
}

.hero-text {
    color: var(--independence);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-banner {
    display: inline-flex;
    background: white;
    border: 1px solid var(--white);
    border-radius: var(--radius-10);
    /* padding: 10px; */
    /* box-shadow: var(--shadow-1); */

}
.hero-banner img{
    /* width: 1px; */
    height:100%;
    object-fit: cover;
    border-radius: 14px;
    margin: auto;
    box-shadow: 13px 13px 19px hsla(240, 14%, 69%, 0.2);
}

/*---------------*\  #FEATURED CAR  \*--------------*/
body {
    background-color: white;
  }
  
.featured-car .title-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 15px;
    margin-bottom: 30px;
}

.featured-car-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--independence);
    font-size: var(--fs-6);
}

.featured-car-link span {
    transition: var(--transition);
}

.featured-car-link:is(:hover, :focus) span {
    color: var(--space-cadet);
}

.featured-car-link ion-icon {
    margin-top: 3px;
    transition: var(--transition);
}

.featured-car-link:is(:hover, :focus) ion-icon {
    color: var(--eerie-black);
}

.featured-car-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

.featured-car-card {
    background: white;
    border: 1px solid var(--white);
    border-radius: var(--radius-18);
    padding: 10px;
    box-shadow: var(--shadow-1);
}

.featured-car-card .card-banner {
    background: hsla(0, 0%, 0%, 0.2);
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-18);
    overflow: hidden;
}

.featured-car-card .card-banner>img {
    height: 100%;
    object-fit: cover;
}

.featured-car-card .card-content {
    padding: 20px 10px 10px;
}

.featured-car-card .card-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.featured-car-card .card-title {
    width: calc(100% - 60px);
}

.featured-car-card .card-title>a {
    color: inherit;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-car-card .card-title>a:is(:hover, :focus) {
    color: var(--eerie-black);
}

.featured-car-card .year {
    font-family: var(--ff-nunito);
    font-size: var(--fs-6);
    font-weight: var(--fw-600);
    padding: 3px 12px;
    border: 2px dashed hsla(204, 91%, 53%, 0.4);
    border-radius: var(--radius-14);
}

.featured-car-card .card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
    margin-bottom: 15px;
}

.featured-car-card .card-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-car-card .card-list-item ion-icon {
    font-size: 20px;
    color: var(--eerie-black);
    --ionicon-stroke-width: 38px;
}

.featured-car-card .card-item-text {
    color: var(--independence);
    font-size: var(--fs-6);
}

.featured-car-card .card-price-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.featured-car-card .card-price {
    font-family: var(--ff-nunito);
    font-size: var(--fs-6);
    color: var(--space-cadet);
}

.featured-car-card .card-price strong {
    font-size: var(--fs-3);
    font-weight: var(--fw-400);
}

.featured-car-card .btn:last-child {
    --height: 36px;
    min-width: 100%;
}

.featured-car-card .fav-btn {
    background: var(--eerie-black);
    /* --color: var(--eerie-black); */
    --height: 36px;
    --width: 36px;
    --shadow-2: none;
}

.featured-car-card .fav-btn ion-icon {
    font-size: 18px;
}

.featured-car-card .fav-btn:is(:hover, :focus) {
    --background: var(--lavender-blush);
    --color: var(--red-salsa);
}
/* REVIEWS */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap');
.reviews{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* font-family: 'Barlow Semi Condensed', sans-serif; */
    font-family: var(--ff-nunito);
}
.reviews .contain h2{
    font-family: var(--ff-nunito);
    color: #32324e;
    font-size: 30px;
    display:block;
    text-align: justify;
    margin-block-start: 0.83em;
    margin-inline-start: 120px;
    margin-inline-end: 120px;
}
.outerdiv
{
	width: 100%;
    margin-top:-30px fixed;
    margin-bottom:-20px fixed;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.innerdiv
{
	transform: scale(0.9);
	margin: 1rem;
	display: grid;
	grid-gap: 1.5rem;
	grid-template-rows: repeat(2,22rem);
	grid-template-columns: repeat(4,17rem);
}
.eachdiv
{
	padding: 1rem 1rem;
    border-radius: 0.8rem;
    box-shadow: 5px 5px 20px #6d6b6b6b;
    color: white;
}
.div1
{
	background: #18202d;
    grid-column: 1/3;
    grid-row: 1/2;
    background-image: url(https://raw.githubusercontent.com/RahulSahOfficial/testimonials_grid_section/5532c958b7d3c9b910a216b198fdd21c73112d84/images/bg-pattern-quotation.svg);
    background-repeat: no-repeat;
    background-position-x: 25rem;
}
.div2
{
	background:#49556B;
    grid-column: 3/4;
    grid-row: 1/2;
}
.div3
{
	background: white;
    grid-column: 4/5;
    grid-row: 1/3;
    color: black;
}
.div4
{
	background: white;
	grid-column: 1/2;
    grid-row: 2/3;
    color: black;
}
.div5
{
	background: #18202D;
	grid-column: 2/4;
    grid-row: 2/3;
}
.userdetails
{
	display: flex;
}
.imgbox
{
	margin-right: 1rem;
}
.imgbox img
{
	border-radius: 50%;
	width: 2rem;
	border: 2px solid #cec5c5;
}
.detbox
{
	display: flex;
    flex-direction: column;
    justify-content: center;
}
.detbox p
{
	margin: 0;
}
.detbox .name
{
	color: hsl(0, 0%, 81%);
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    font-weight: 600;
}
.detbox .name.dark
{
	color: #49505A;
}
.detbox .designation
{
	color: hsl(0, 0%, 81%);
    opacity: 50%;
    font-size: 0.8rem;
}
.detbox .designation.dark
{
	color: #49505A;
}
.review h4
{
	font-size: 1.4rem;
	color: #F3DEFF;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}
.review.dark h4{
	color:#4B5258;
}
.review p
{
	font-size: 0.95rem;
    color: #F3DEFF;
    font-weight: 500;
    opacity: 50%;
    line-height: 1.5;
}
.review.dark p{
	color: #0e0e0e;
}
.attribution
{
	font-size: 1rem;
    line-height: 1.5;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    text-align: right;
}
.attribution a
{
	text-decoration: none;
}

@media only screen and (max-width: 1000px)
{
	.innerdiv
	{
		transform: scale(0.7);
	}
}
@media only screen and (max-width: 800px)
{
	.innerdiv
	{
		transform: scale(0.6);
	}
}
@media only screen and (max-width: 600px)
{
	.div1 {
		background-position-x: 10rem;
	}
	.innerdiv
	{
		display: flex; 
		flex-direction: column;
		transform: scale(1);
		margin: 2rem;
		margin-bottom: 5rem;
	}
	.attribution
	{
		position: relative;
	}
}
/*---------------*\  #FOOTER \*----------------*/

.footer {
    background-color:var(--eerie-black);
	max-width: 100%;
	margin: 1rem auto;
    margin-bottom: 0;
	overflow: auto;
    padding:20px 0 20px 100px;
}

.footer,
.footer a {
	color: white;
	font-size: 0.9rem;
}

.footer p {
	margin-bottom: 1.5rem;

}

.footer .footer-cols {
    margin-right: 20px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 2rem;
}

.footer li {
	line-height: 1.9;
}

/*---------------*\  #MEDIA QUERIES  \*----------------*/

/**
 * responsive for large than 350px screen
 */

@media (min-width: 350px) {

    /**
   * FEATURED CAR
   */

    .featured-car-card .card-list {
        grid-template-columns: 1fr 1fr;
    }

    .featured-car-card .card-price {
        margin-right: auto;
    }

    .featured-car-card .btn:last-child {
        min-width: max-content;
        padding-inline: 15px;
    }

}
/**
 * responsive for large than 580px screen
 */

@media (min-width: 580px) {

    /* REUSED STYLE */

    .container {
        max-width: 540px;
        margin-inline: auto;
    }



    /* HEADER */

    .header-actions .btn span {
        display: block;
        font-weight: var(--fw-400);
        padding-inline: 15px;
    }

    .header-actions .btn:first-of-type ion-icon {
        display: none;
    }

}

/* responsive for large than 768px screen */

@media (min-width: 768px) {

    /* CUSTOM PROPERTY */

    :root {

    /* typography */

        --fs-1: 2.625rem;

    }
    /* REUSED STYLE*/

    .container {
        max-width: 720px;
    }
    /* HEADER */

    .header-actions {
        gap: 30px;
    }

    .header-contact {
        display: block;
        text-align: center;
    }

    .header-contact .contact-link {
        color: var(--space-cadet);
        font-family: var(--ff-nunito);
        font-size: var(--fs-5);
        line-height: 1.3;
    }

    .header-contact .contact-link:is(:hover, :focus) {
        color: var(--eerie-black);
    }

    .header-contact .contact-time {
        color: var(--independence);
        font-size: var(--fs-7);
    }
    /* HERO */

    .hero {
        position: relative;
        min-height: 85vh;
        display: flex;
        align-items: center;
        z-index: 1;
    }

    .hero-form {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 0.8fr;
    }
/* 
    .input-wrapper {
        margin-right: 15px;
    } */
    .input-wrapper input {
        width: 250px;
        padding: 15px 20px;
        border-radius: 10px;
        border: 1px solid black;
    
    }

    /* .input-wrapper:not(:last-of-type) {
        /* border-right: 1px solid hsla(0, 0%, 0%, 0.08); 
    } */

    .input-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-banner {
        display: block;
        /* background: url("../images/hero-banner.jpg") no-repeat; */
        /* background-size: cover; */
        /* background-position: left; */
        position: absolute;
        top: 50px;
        bottom: 50px;
        left: 61%;
        width: 500px;
        border-radius: 30px;
        /* z-index: -1; */
    }

    /* FEATURED CAR */

    .featured-car-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /*** FOOTER ***/

    .footer-brand {
        width: 100%;
    }

    .footer-text {
        max-width: 400px;
    }

    .footer-bottom {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        padding-block: 30px;
        box-shadow: var(--shadow-1);
    }

    .social-list {
        margin-bottom: 0;
    }

}

/* responsive for large than 992px screen */

@media (min-width: 992px) {

    /**
   * REUSED STYLE
   */

    .container {
        max-width: 960px;
    }
    /*** HERO ***/

    .hero .container {
        width: 100%;
    }
     /*** BLOG ***/

    .blog .has-scrollbar {
        padding-bottom: 50px;
    }

    .blog .has-scrollbar>li {
        max-width: 450px;
    }

    /*** FOOTER ***/

    .footer-list:not(:last-of-type) {
        width: 25%;
    }

    .footer-list:last-of-type {
        width: 50%;
    }

}
/*** responsive for large than 1200px screen ***/

@media (min-width: 1200px) {

    /**
   * CUSTOM PROPERTY
   */

    :root {

    /*** typography ***/

        --fs-1: 2.875rem;
        --fs-2: 2rem;

    }

    /*** REUSED STYLE ***/

    .container {
        max-width: 1170px;
    }

    /*** HEADER ***/

    .overlay,
    .nav-toggle-btn {
        display: none;
    }

    .navbar,
    .navbar.active {
        all: unset;
    }

    .navbar-link {
        margin-bottom: 0;
        font-weight: var(--fw-600);
    }

    .navbar-list {
        display: flex;
        gap: 50px;
    }

    /*** HERO ***/

    .hero {
        min-height: 70vh;
        
    }

    /* .hero-banner {
        left: auto;
        right: 50px;
        width: 630px;
    } */

    /* .hero-form {
        /* max-width: 900px;
    } */

    /* .hero-form .btn {
        --width: calc(100% - 40px);
        --height: 50px;
        margin: 25px 20px;
        padding: 15px 20px;
        text-transform: uppercase;
    } */

    /*** FEATURED CAR ***/

    .featured-car-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /*** FOOTER ***/

    .footer-brand {
        width: 33.33%;
    }

    .footer-text {
        max-width: 35ch;
    }

    .footer-list:not(:last-of-type) {
        width: 16.66%;
    }

    .footer-list:last-of-type {
        width: 33.33%;
    }

}