@import './property.css';
@import './global.css';

/*==================== Hero ============================*/

.hero {
    position: relative;
    animation: fadeIn 1s;
}

.hero .swiper-slide {
    position: relative;
}

.hero .swiper-slide img {
    height: 35rem;
    width: 100%;
    object-fit: cover;
}

.hero__block {
    position: absolute;
    inset: 0;
    background-color: rgb(0, 0, 0, .5);
    display: grid;
    align-items: center;
}

.hero h1 {
    font-family: var(--ff-2);
    font-size: var(--fs-3);
    font-weight: 400;
    line-height: 1.3;
    color: var(--white);
    text-transform: capitalize;
    margin-bottom: 1rem;
    max-width: 35rem;
}

.hero .swiper-slide-active h1 {
    animation: fadeInUp 1s;
}

.hero .swiper-slide-active .btn {
    animation: fadeInRight 1s;
}

.hero .swiper-footer {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 999;
}

/* .hero {
    min-height: 40rem;
    width: 100%;
    background: url('../images/Banner.webp');
    background-color: rgb(0, 0, 0, .5);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    display: grid;
    align-items: center;
    color: var(--white);
    text-align: center;
    text-transform: capitalize;
    animation: fadeIn 1s;
}

.hero h1 {
    font-family: var(--ff-2);
    font-size: var(--fs-4);
    font-weight: 400;
    line-height: 1.3;
}

.hero__text {
    max-height: 6.5rem;
    margin: var(--s-1) auto;
}

.hero h2 {
    font-weight: 500;
}

.hero :is(h1, img, h2, .btn) {
    animation: fadeInUp 1s;
} */

.sub-hero {
    animation: fadeIn 1s;
    position: relative;
}

.sub-hero>img {
    height: 20rem;
    width: 100%;
    object-fit: cover;
}

.sub-hero>video {
    height: 20rem;
    width: 100%;
    object-fit: cover;
    display: block;
}

.sub-hero__block {
    position: absolute;
    inset: 0;
    background-color: rgb(0, 0, 0, .5);
    display: grid;
    align-items: center;
}

.sub-hero__block h1 {
    font-family: var(--ff-2);
    font-size: var(--fs-3);
    font-weight: 400;
    text-align: center;
    animation: fadeInUp 1s;
    color: var(--white);
    text-transform: capitalize;
}

/*==================== Others ============================*/

.border {
    border: 1px solid greenyellow;
}

.text-center {
    text-align: center;
}

:is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    font-weight: 600;
}

p,
li {
    margin-block: .75rem;
}

p,
ul,
ol {
    color: rgb(48, 48, 48);
}

.swiper-footer {
    padding-block: .75rem;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.swiper-footer>span {
    display: grid;
    place-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--white);
    line-height: 1;
    font-size: 1.25rem;
    color: var(--primary);
    cursor: pointer;
    outline: none;
}

.swiper-footer .swiper-pagination-bullet {
    height: .5rem;
    width: .5rem;
    border-radius: 1rem;
    background-color: var(--white);
    transition: .5s;
}

.swiper-footer.primary .swiper-pagination-bullet {
    background-color: var(--primary);
}

.swiper-footer.primary .swiper-pagination-bullet {
    background-color: var(--primary);
}

.swiper-footer .swiper-pagination-bullet-active {
    width: 2rem;
}

.btn {
    outline: none;
    color: var(--white);
    background-color: var(--primary);
    display: inline-grid;
    padding: .6rem 1.5rem;
    text-transform: capitalize;
    transition: .5s;
    border-radius: .35rem;
    box-shadow: var(--sd-1);
    font-weight: 500;
}

.btn:has(i) {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn:hover {
    opacity: .75;
}

.title {
    font-size: var(--fs-4);
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 1rem;
}

.title span {
    display: block;
    font-size: var(--fs-2);
    font-weight: 400;
    text-transform: uppercase;
}

.title::after {
    content: '';
    display: block;
    height: .25rem;
    width: 6rem;
    background-color: var(--accent);
    margin-inline: auto;
}

.title.start,
.title.start::after {
    text-align: start;
    margin-inline: unset;
}

.second-sec {
    padding-block: var(--s-2);
    background: var(--gd-2), url('../images/Bring_you_best.webp');
    background-size: cover;
    background-position: bottom;
    min-height: 30rem;
}

.second-sec h1 {
    font-size: var(--fs-3);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--primary);
}

.products-card {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--sd-2);
    margin: 1rem .5rem;
    transition: .5s;
}

.products-card:hover {
    translate: 0 -.5rem;
}

.products-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 1rem;
    height: 15rem;
}

.products-card__box {
    padding: 1rem;
    text-align: center;
    background-color: var(--white);
}

.products-card h3 {
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .5rem;
}

.products-card__price {
    display: block;
    padding-bottom: .5rem;
    font-weight: 500;
}

.products-card__link {
    display: inline-block;
    padding: .5rem 1rem;
    text-transform: capitalize;
    border: 1px solid var(--primary);
    border-radius: 4rem;
    color: var(--primary);
    font-weight: 500;
    box-shadow: var(--sd-2);
    cursor: pointer;
    transition: .5s;
    font-size: .85rem;
}

.products-card__link:hover {
    color: var(--white);
    background-color: var(--primary);
}

@media (max-width: 767px) {
    .products-card__img {
        height: 7.5rem;
    }

    .products-card h3 {
        font-size: 1rem;
    }
}

.home-products-sec {
    padding-block: var(--s-2);
    background: var(--gd-1), url('../images/Product-Categories_background.webp');
    background-size: cover;
}

.home-specification-sec {
    padding-block: var(--s-2);
    background: url('../images/Specifications_bg.webp');
    background-size: cover;
}

.home-specification-sec .title {
    color: var(--white);
}

.spec-round {
    display: grid;
    justify-items: center;
    gap: .5rem;
    color: var(--white);
    text-align: center;
    font-size: var(--fs-2);
    text-transform: capitalize;
    margin: .5rem;
    transition: .5s;
}

.spec-round:hover {
    translate: 0 -.5rem;
}

.spec-round span {
    display: grid;
    place-content: center;
    height: calc(3vw + 5rem);
    width: calc(3vw + 5rem);
    border: .25rem solid var(--white);
    border-radius: 50%;
    background-color: var(--accent);
}

.spec-round span img {
    max-height: 3rem;
}

.box-1 {
    padding: 1.5rem;
    font-weight: 500;
    font-size: var(--fs-2);
    text-transform: capitalize;
    text-align: center;
}

.testimonials-block {
    text-align: center;
}

.testimonials-block h2 {
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: var(--fs-2);
}

.cat-box {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    display: block;
    box-shadow: var(--sd-2);
    aspect-ratio: 1;
}

.cat-box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: .5s;
}

.cat-box:hover img {
    scale: 1.1;
}

.cat-box span {
    display: block;
    background-color: rgb(184, 84, 60, .9);
    color: var(--white);
    padding: .75rem .25rem;
    text-align: center;
    position: absolute;
    inset: 50% 0 auto 0;
    translate: 0 -50%;
    font-weight: 500;
    text-transform: capitalize;
}

.cat-box.head span {
    inset: 0;
    translate: unset;
    display: grid;
    gap: .5rem;
    align-content: center;
    background-color: var(--primary);
    color: #cdcd08;
}

.cat-box.head span::before {
    content: '\F589';
    font-family: var(--ff-bi);
    font-size: var(--fs-3);
}

.eqp-box {
    border: 1px solid var(--primary);
    position: relative;
    aspect-ratio: 1.5;
    display: block;
    box-shadow: var(--sd-2);
    transition: .5s;
    overflow: hidden;
    border-radius: .35rem;
}

.eqp-box:hover {
    translate: .5rem 0;
}

.eqp-box img {
    margin: auto;
}

.eqp-box__block {
    background-color: rgb(184, 84, 60, .75);
    backdrop-filter: blur(.5rem);
    position: absolute;
    inset: 0;
    padding: 1rem;
    display: grid;
    align-items: center;
    text-align: center;
    font-size: var(--fs-2);
    color: var(--white);
    scale: 1 0;
    opacity: 0;
    transition: .35s;
    text-transform: capitalize;
}

.eqp-box:hover .eqp-box__block {
    scale: 1;
    opacity: 1;
}

.bc-nav {
    padding-block: .5rem;
    animation: fadeInLeft 1s;
}

.bc-nav .container {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.bc-nav__link {
    text-transform: capitalize;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bc-nav__link:last-child {
    color: var(--primary);
}

/* contact */

.contact h3 {
    font-weight: 500;
    margin-top: 1rem;
    border-bottom: 1px solid var(--primary);
    max-width: 15rem;
    color: var(--primary);
    display: flex;
    gap: .5rem;
}

.contact a {
    display: block;
    padding-block: .5rem;
    transition: .5s;
}

.contact a:hover {
    opacity: .8;
}

::placeholder {
    font-size: var(--fs-1);
}

.contact input,
.contact textarea {
    border: 1px solid var(--primary);
    padding: 1rem;
    outline: none;
    background: none;
    font-size: var(--fs-1);
    width: 100%;
    border-radius: .5rem;
    font-family: var(--ff-1);
}

.contact button {
    outline: none;
    border: none;
    font-family: var(--ff-1);
    text-transform: uppercase;
}

.contact error {
    display: block;
    color: var(--red);
    margin-top: .35rem;
}

.contact success {
    display: block;
    text-align: center;
    color: #026002;
    text-transform: capitalize;
}

.contact__map {
    border: none;
    width: 100%;
    height: 25rem;
    display: block;
}

/* products page */

.products-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
}

.products-wrapper .sidebar {
    padding: .75rem;
    background-color: var(--primary);
    display: grid;
    align-content: start;
    gap: .75rem;
}

.products-wrapper .sidebar a {
    color: var(--white);
    text-align: center;
    border-radius: .5rem;
    transition: .5s;
    font-size: .75rem;
}

.products-wrapper .sidebar a:hover {
    scale: 1.1;
}

.products-wrapper .sidebar a img {
    height: clamp(2rem, 5vw, 4rem);
    width: clamp(2rem, 5vw, 4rem);
    object-fit: cover;
    border-radius: 50%;
    margin-inline: auto;
}

.products-wrapper .panel {
    overflow: auto;
}

.products-wrapper .panel::-webkit-scrollbar {
    display: none;
}

.blog-card {
    display: block;
    transition: .5s;
    margin: .5rem;
}

.blog-card:hover {
    translate: 0 -.5rem;
}

.blog-card>img {
    height: 15rem;
    width: 100%;
    object-fit: cover;
    margin-bottom: .5rem;
    border-radius: 1rem;
    box-shadow: var(--sd-2);
}

.blog-card h2 {
    text-transform: capitalize;
}

.blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card>span {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--primary);
    text-transform: capitalize;
    font-style: italic;
    white-space: nowrap;
}

.blog-card>span::after {
    content: '';
    height: 1px;
    width: 100%;
    background-color: var(--primary);
}

.services-wrapper {
    padding-block: var(--s-2);
}

.services-wrapper h1 {
    color: var(--primary);
    border-bottom: 1px solid var(--smoke);
    padding-block: .25rem;
    margin: 1.5rem 0 .5rem 0;
    text-transform: uppercase;
}

.services-wrapper h3 {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.services-wrapper h3::before {
    content: '';
    height: .75rem;
    width: .75rem;
    background-color: var(--primary);
    border-radius: 50%;
}

.services-contact {
    padding-block: var(--s-2);
    background-color: var(--primary);
}

.services-contact :is(h1, p) {
    color: var(--white);
    text-align: center;
}

.services-contact a {
    background-color: var(--white);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: .5rem;
    color: var(--accent);
    font-size: 2rem;
    border-radius: 4rem;
    transition: .5s;
    box-shadow: var(--sd-2);
}

.services-contact a:hover {
    background-color: var(--accent);
    color: var(--white);
}

.services-contact a i {
    color: var(--primary);
    height: 3.25rem;
    width: 3.25rem;
    border-radius: 50%;
    font-size: 1.5rem;
    border: 1px solid var(--primary);
    display: grid;
    place-content: center;
}

/* cart */

.cart {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1rem;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(25rem, 100%);
    background-color: var(--white);
    z-index: 999;
    box-shadow: var(--sd-2);
    transition: .5s;
    scale: 0 1;
    opacity: 0;
    transform-origin: right top;
}

.cart__exp {
    scale: 1;
    opacity: 1;
}

.cart__close {
    color: var(--primary);
    font-size: 1.5rem;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
}

.cart__close i {
    cursor: pointer;
}

.cart__item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: .5rem;
    box-shadow: var(--sd-2);
    background-color: var(--secondary);
}

.cart__item img {
    height: 5rem;
}

.cart__info h4 {
    color: var(--primary);
    text-transform: uppercase;
}

.cart__item .quantity {
    display: flex;
    border-radius: .5rem;
    overflow: hidden;
}

.cart__item .quantity div {
    padding: .5rem 1rem;
    color: var(--white);
    background-color: var(--primary);
    cursor: pointer;
}

.cart__item .quantity input {
    background-color: var(--secondary);
    border: none;
    padding: .5rem;
    text-align: center;
    outline: none;
    width: 100%;
}

/* products inner */

.img-slider span {
    display: grid;
    place-content: center;
    box-shadow: var(--sd-2);
    margin: .5rem;
    background-color: var(--secondary);
}

.img-slider span img  {
    max-height: 20rem;
}

/* accordion */

.accordion {
    overflow: hidden;
}

.accordion-item {
    background-color: var(--secondary);
    border-bottom: 1px solid var(--primary);
}

.accordion-header {
    
}

.accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
    padding: 1rem;
}

.accordion-button::after {
    content: '\F282';
    font-family: var(--ff-bi);
    color: var(--primary);
    transition: .5s;
}

.accordion-button.active {
    background: var(--primary);
    color: var(--white);
}

.accordion-button.active::after {
    color: var(--white);
    rotate: 180deg;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body {
    padding: 1rem;
}

.accordion-body li::marker {
    color: var(--primary);
}