@media only screen and (max-width:1439px) and (min-width:1366px){
    .container{
        max-width: calc(100% - 50px);
        margin: 0 auto;
    }
}
@media only screen and (max-width:1440px){
	.hero-banner{
		    min-height: 632px;
	}
}

@media only screen and (max-width:1366px) {
    :root {
        --container-width: 1200px;
    }

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 50px;
    }

    h3 {
        font-size: 40px;
    }



    .how-it-works__step:not(:last-child)::after {
        width: calc(100% + 10px - 60px);
        top: 27px;
        left: 50px;
    }


    .how-it-works__step-text {
        max-width: 100%;
    }

    .how-it-works__number {
        padding: 10.5px 19px;
    }

    .how-it-works__step {
        padding-right: 20px;
    }

    .cta__banner {
        padding: 150px 0;
    }

    .stats {
        padding-block: 40px;
    }



    .testimonials__card {
        padding: 25px;
    }

    .testimonials__quote {
        margin-bottom: 10px;
    }

    .testimonials__stars {
        margin-bottom: 12px;
    }

    .testimonials__text {
        margin-bottom: 15px;
    }

    .collections__grid {
        row-gap: 35px;
    }

    .service-area__content {
        padding-block: 70px;
    }

    .showroom__content {
        padding-block: 100px !important;
    }
    .policy__header .policy__effective-date {
        margin: 8px 0 30px 0;
    }

    .policy_block .policy_divider {
        margin: 24px 0;
    }

    .policy_block .policy_content_title {
        margin-bottom: 12px;
    }

    .policy_text_space {
        margin-top: 20px;
    }

    .policy_container {
        padding-top: 150px;
        padding-bottom: 80px;
    }
	
.error-404 .page-content {
    padding-block: 150px 120px;
	}
}

@media (min-width: 1199px) and (max-width: 1270px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media only screen and (max-width:1199px) {
    :root {
        --container-width: 100%;
    }

    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    h1 {
        font-size: 45px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 38px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 19px;
    }

    .body-2 {
        font-size: 13px;
    }

    .btn-primary {
        padding: 14px 20px;
    }


    .brands__track {
        gap: 90px;
    }

    .brands__item {
        height: 80px;
    }

    .brands__item img {
        max-width: 180px;
    }

    /* .header-contact {
        gap: 8px;
    } */

    .service-area__wrapper {
        /* grid-template-columns: minmax(280px, 420px) 1fr; */
        gap: 40px;
    }



    .how-it-works__step {
        padding-right: 15px;
    }

    .cta__banner {
        padding: 120px 0;
    }

    /* .stats {
        padding-block: 30px;
    } */

    .stats__item:not(:last-child)::after {
        height: 70%;
    }



    .hero-banner {
        min-height: 868px;
    }

    .benefits__card {
        padding: 28px;
    }

    .testimonials__card {
        padding: 20px;
    }

    .collections__grid {
        row-gap: 30px;
    }

    .service-area__content {
        padding-block: 50px;
    }
    .policy_container {
        padding-top: 130px;
        padding-bottom: 80px;
    }
	    .hero-banner {
        min-height: 700px;
    }
	img:is([sizes=auto i],[sizes^="auto," i]) {
    contain-intrinsic-size: 400px 1500px !important;
}
	    .error-404 .page-content {
        padding-block: 150px 110px;
    }
    
}

/* @media (min-width: 1025px) and (max-width: 1100px) {
    .header-wrapper {
        padding: 15px 0;
    }
} */


@media only screen and (max-width:1170px) {
    /* Mobile Menu Styles */
    .menu-toggle {
        display: flex;
        order: 3;
    }

    .links-contact-wrap {
        order: 2;
    }

    .header-wrapper {
        justify-content: flex-end;
        gap: 20px;
    }

    .header-logo {
        margin-right: auto;
    }

    /* Animate Hamburger to 'X' */
    body.menu-open .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.menu-open .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media only screen and (min-width: 613px) and (max-width: 1170px) {
    .header-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--color-bg-dark);
        display: flex;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.4s ease-in-out;
    }

    body.menu-open .header-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media only screen and (max-width:612px) {
    .links-contact-wrap {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--color-bg-dark);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 40px !important;
        z-index: 1000;

        /* Hide by default (slide up) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.4s ease-in-out;
    }

    body.menu-open .links-contact-wrap {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

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

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 35px;
    }

    h3 {
        font-size: 30px;
    }

    h4 {
        font-size: 19px;
    }

    h5 {
        font-size: 18px;
    }

    .sub-head {
        font-size: 12px;
    }

    .body-1 {
        font-size: 15px;
        word-spacing: normal;
    }

    .btn-primary {
        padding: 10px 15px;
        text-align: center;
    }

    .btn-outline-btm {
        padding: 10px 8px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }



    .faq__list {
        max-width: 60%;
    }

    .how-it-works__number {
        margin-bottom: 25px;
    }

    .cta__banner {
        padding: 100px 0;
    }

    .stats__item {
        padding: 20px 25px;
    }

/*     .why-replace .why-replace-content {
        padding-bottom: 70px;
    } */

    .collections_intro {
        width: 70%;
    }

    .collection-content {
        width: 68%;
    }

/*     .hero-banner {
        min-height: 620px;
    } */

    .scroll-line {
        height: 30px;
    }

    .heading-text {
        font-size: 18px;
        line-height: normal;
    }

    .collections__grid {
        row-gap: 25px;
    }

    .showroom__info-col {
        row-gap: 20px;
    }

    .service-area__content {
        padding-block: 30px;
    }

    .showroom__content {
        padding-block: 70px !important;
    }
    .policy_container {
        padding-top: 150px;
        padding-bottom: 80px;
    }
	    .error-404 .page-content {
        padding-block: 150px 80px;
    }


}

@media only screen and (max-width:991px) {
    .faq__wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .faq__list,
    .faq__intro {
        max-width: 100%;
    }

    .faq__question {
        padding-block: 17px;
    }

    .faq__item.is-active .faq__answer p {
        padding-bottom: 17px;
    }

    .faq__intro {
        position: static;
    }

    .faq__text {
        max-width: 100%;
    }

    .brands__header {
        margin-bottom: 36px;
    }

    .brands__track {
        gap: 64px;
    }

    .brands__item {
        height: 64px;
    }

    .brands__item img {
        max-width: 150px;
    }

    .service-area__wrapper {
        /* grid-template-columns: 1fr; */
        gap: 32px;
    }

    .service-area__map {
        max-width: 480px;
        margin-inline: auto;
    }
    .how-it-works__number {
        padding: 10px 19px;
    }
    .how-it-works__step{
            display: flex;
    /* justify-content: center; */
    align-items: flex-start;
    gap: 20px;
    }
    .how-it-works__step:not(:last-child)::after{
        width: 1px !important;
    height: 66%;
    top: 49px;
        left: 25px;
    }
	 .how-it-works__step:first-child::after {
    width: 1px !important;
    height: 75% !important;
    top: 24px;
    left: 25px;
  }



    .how-it-works__steps {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    /* .how-it-works__step:not(:last-child)::after {
        display: none;
    } */

    .how-it-works__step-title,
    .how-it-works__step-text {
        max-width: 100%;
    }



    .story__image2 {
        margin-top: 0 !important;
    }

    .benefits__card {
        padding: 20px;
    }

    .benefits__icon {
        width: 58px;
        height: 58px;
    }

    .benefits__card {
        gap: 16px;
    }

    .portfolio__item:nth-child(1) {
        --w: 28.744%;
    }

    .portfolio__item:nth-child(3) {
        --l: 70.958%;
        --w: 27.893%;
    }

    .portfolio__item:nth-child(4) {
        --w: 28.744%;
        --h: 31.718%;
        --t: 34.028%;
    }

    .portfolio__item:nth-child(5) {
        --w: 29.19%;
    }

    .portfolio__item:nth-child(6) {
        --t: 38.163%;
        --h: 27.583%;
    }

    .portfolio__item:nth-child(8) {
        --w: 29.744%;
    }

    .portfolio__item:nth-child(7) {
        --w: 37.077%;
    }
/* 	.hero-banner {
        min-height: 575px !important;
	} */
}

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

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 25px;
    }

    .hero-banner::before{
            background: linear-gradient(90deg, rgba(5, 10, 22, 0.85) 0%, rgba(5, 10, 22, 0.60) 45%, rgba(5, 10, 22, 0.45) 80%, rgba(5, 10, 22, 0.35) 100%);
    }

    .service-area__wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .service-area__map,
    .service-area__content {
        max-width: 100%;
    }



    .how-it-works__steps {
        grid-template-columns: 1fr;
    }

    .how-it-works__step:not(:last-child)::after {
                top: 43px;
        left: 24px;
    }

    .how-it-works__number {
        margin-bottom: 16px;
    }

    .how-it-works__number {
        font-size: 18px;
    }

    .how-it-works__footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .how-it-works__footer-row .btn {
        width: auto;
        text-align: center;
        justify-content: center;
    }

    .testimonials__slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .testimonials__dash {
        width: 40px;
    }

    .cta__actions {
        flex-direction: column;
        gap: 10px;
    }

    .cta__text {
        max-width: 69%;
    }

    .cta__banner {
        padding: 80px 0;
    }

    .stats__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__item:nth-child(2)::after {
        display: none;
    }

    .stats__item:nth-child(2n)::after {
        display: none;
    }

    .stats__item:nth-child(-n+2)::after {
        display: none;
    }

    .stats__item:not(:nth-child(2n))::after {
        display: block;
    }

    .stats__item {
        padding: 15px 25px;
    }
	.portfolio__item .portfolio__overlay {
        opacity: 0 !important;
        visibility: visible !important;
        pointer-events: none;
        transition: opacity 0.4s ease !important;
    }

    .portfolio__item.is-active .portfolio__overlay {
        opacity: 1 !important;
        pointer-events: auto;
    }

	.portfolio__item:hover img {
        transform: none;
    }

    .portfolio__item img {
        transition: transform 0.3s ease;
    }

    .portfolio__item.is-active img {
        transform: scale(1.05); /* match whatever scale value your desktop hover uses */
    }



/*     .why-replace .why-replace-content {
        padding-bottom: 30PX;
    } */

    .why-replace .container {
        gap: 25px;
    }

    .collections_intro {
        width: 100%;
    }

    .collection-content {
        width: 100%;
    }

    .collections_header {
        gap: 20px;
    }

    .collections__grid,
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits__card+.benefits__card {
        border-left: 1px solid #E8E4DC4D;
    }

    .hero-banner {
        min-height: 575px;
        padding-block: 100px;
    }

    .collections__grid {
        row-gap: 20px;
    }

    .portfolio__grid {
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start !important;
        gap: 10px;
    }

    .service-area__wrapper {
        grid-template-columns: 1fr;
    }

    .service-area__map {
        min-height: 480px !important;
        gap: 30px;
    }

    /* .showroom__content {
        padding: 0 !important;
    } */

    .showroom__info .btn {
        margin-top: 20px;
        width: auto;
    }

    .service-area__content {
        padding-block: 20px;
    }

    .showroom__content {
        padding-block: 0 !important;
    }
    
    .policy__header .policy__effective-date {
        margin: 8px 0 24px 0;
    }

    .policy_block .policy_divider {
        margin: 20px 0;
    }

    .policy_container {
        padding-top: 130px;
        padding-bottom: 50px;
    }
    .policy-title{
    padding-bottom: 30px;
}
	.error-404 h2 {
    margin-bottom: 30px;
}

}

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


    .why-replace .why-replace-content {
        width: 100%;
    }

    .why-replace .container {
        flex-direction: column;
        /* padding-block: 50px; */
    }

    .why-replace .why-replace-media {
        width: 100%;
        margin-right: unset;
    }

/*     .why-replace .why-replace-content {
        padding-bottom: 0;
    } */

    .collections_header {
        flex-direction: column;
    }

    .collections__grid {
        margin-top: 15px;
    }

    .collections__grid,
    .benefits__grid {
        grid-template-columns: 1fr;
    }

    .portfolio__grid {
        padding-top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .portfolio__item {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
/*         aspect-ratio: 4 / 3.4; */
    }

    .portfolio__item:nth-child(1) {
        margin-top: 0;
    }

    .portfolio__item:nth-child(3) {
        margin-top: 0;
    }

    .portfolio__grid {
        margin-bottom: 0;
    }
	
}
@media only screen and (max-width:612px){
	.head-email{
		display:block;
	}
	.head-email a{
	display:flex;
	align-items:center;
	gap:7px;
}
.head-email a span {
	display:flex;
	align-items:center;
}
}
@media only screen and (max-width:575px) {
    .faq__question {
        padding-block: 18px;
        gap: 16px;
    }

    .faq__answer p {
        padding-right: 0;
    }

    .faq__item.is-active .faq__answer p {
        padding-bottom: 18px;
    }

    .brands__header {
        margin-bottom: 28px;
    }

    .brands__track {
        gap: 44px;
    }

    .brands__item {
        height: 48px;
    }

    .brands__item img {
        max-width: 120px;
    }

    .service-area__tags {
        gap: 8px;
    }

    .service-area__tag {
        padding: 8px 14px;
        font-size: 12px;
    }
    .hero-banner p{
        opacity: 1;
    }



    .how-it-works__footer-text {
        font-size: 18px;
    }

    .cta__content {
        padding: 0;
    }

    .cta__actions .btn {
/*         width: 100%; */
        text-align: center;
        justify-content: center;
    }

    .cta__text {
        max-width: 100%;
    }



    .heading-text {
        font-size: 17px;
    }

    .testimonials__quote {
        margin-bottom: 5px;
    }

    .testimonials__card {
        padding: 15px;
    }

    .story__details_wrapper,
    .story__details_wrapper2 {
        gap: 20px;
    }

    .portfolio__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .showroom__info-col {
        grid-template-columns: 1fr;
    }

    .policy_container {
        padding-bottom: 40px;
    }
	.hero-banner {
		height:100%;
        min-height: 600px;
	}
    
}



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



    .stats__wrapper {
        grid-template-columns: 1fr;
    }
        .stats__item {
        padding: 15px 0px;
    }

    .stats__item:not(:last-child)::after {
        display: none;
    }

    .stats__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .stats__item:last-child {
        border-bottom: none;
    }

    .hero-banner .hero-wrapper h1 br {
        display: none;
    }
}

@media only screen and (max-width:374px) {
        .footer-logo-badge {
        flex-direction: column;
        gap: 20px;
        justify-content: space-between;
        width: 100%;
    }
    .btn-primary{
        font-size: 11px;
        padding: 10px 10px;
    }
    .collection__list{
        flex-direction: column;
        width: 100%;
    }
    .collection .collection__list ul{
        max-width: 100%;
    }
	    .how-it-works__step:not(:last-child)::after {
        height: 75%;
    }
	 .how-it-works__step:first-child::after{
        height: 80% !important;
	}
}
