/* Import CSS */
@import url("reset.css");
@import url("base.css");
@import url("color.css");
@import url("typography.css");
@import url("component.css");

/* Variable */
:root {
    --header-height: 20rem;
    --header-radius: calc(var(--global-radius) - 4px);
}

@media (width < 1200px) {
    :root {
        --header-height: 16rem;
    }
}

@media (width < 992px) {
    :root {
        --header-height: 10rem;
    }
}


::-webkit-scrollbar {
    width: 5px;
    background: var(--body-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0;
}

::-webkit-scrollbar-track {
    box-shadow: none;
}
/* Header */
header {
    display: flex;
    height: var(--header-height);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999;
    transition: var(--transition);
}

    header .container {
        display: flex;
    }

        header .container > * {
            flex: 1 0 0%;
        }

    header .logo {
        display: inline-flex;
        align-items: center;
        margin-right: auto;
        position: relative;
        z-index: 999;
    }

        header .logo img {
            display: block;
            max-height: 5rem;
            width: 100%;
            transition: var(--transition);
        }

            header .logo img:last-child {
                padding: 1rem;
            }

.header-content {
    padding: var(--gutter) var(--gutter);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    gap: 0 calc(var(--gutter) * 2);
}

    nav a {
        font-family: var(--secondary-font);
        font-size: var(--btn-font-size);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        white-space: nowrap;
        height: var(--btn-height);
        line-height: 1;
        transition: var(--transition);
        position: relative;
    }

@media (width < 1200px) {
    header .logo img {
        max-height: 4rem;
    }
}

@media (width > 991px) {
    nav a:not(.btn)::after {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 0;
        height: 0.3rem;
        background-color: white;
        content: "";
        transition: var(--transition);
    }

    nav a:not(.btn):hover::after {
        width: 100%;
    }
}

@media (width < 992px) {

    .header-content {
        padding: var(--gutter-half);
        display: flex;
        align-items: center;
    }

    nav {
        gap: var(--gutter);
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: center;
        background-color: black;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
    }

        nav.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
}

header.header-scroll {
    height: 10rem;
}

    header.header-scroll .header-content {
        background-color: black;
        border-radius: 0 0 var(--header-radius) var(--header-radius);
    }

    header.header-scroll .logo img {
        max-width: 20rem;
    }

/* Section */
.section {
    padding: var(--xl) 0;
}

@media (width < 1400px) {
    .section {
        padding: var(--lg) 0;
    }
}

@media (width < 1200px) {
    .section {
        padding: var(--md) 0;
    }
}

@media (width < 992px) {
    .section {
        padding: var(--sm) 0;
    }
}

/* Section Header */
.section-header:not(:last-child) {
    margin-bottom: var(--xl);
}

@media (width < 1400px) {
    .section-header:not(:last-child) {
        margin-bottom: var(--lg);
    }
}

@media (width < 1200px) {
    .section-header:not(:last-child) {
        margin-bottom: var(--md);
    }
}

@media (width < 992px) {
    .section-header:not(:last-child) {
        margin-bottom: var(--sm);
    }
}

.section-header h4 {
    font-family: var(--secondary-font);
}

    .section-header h4:not(:last-child) {
        margin-bottom: var(--sm);
    }

.bg-primary .section-header h4,
.bg-primary .section-header h2 {
    color: white;
}

.section-header h4 {
    color: var(--primary);
}

.section-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gutter);
}

@media (width < 992px) {
    .section-header h4:not(:last-child) {
        margin-bottom: var(--gutter);
    }

    .section-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Hero Section */
.hero-section {
    padding: var(--gutter) 0;
    min-height: 100dvh;
    display: flex;
}

    .hero-section .container {
        max-width: 100%;
        display: flex;
    }

        .hero-section .container > * {
            flex: 1 0 0%;
        }

.hero-content {
    border-radius: var(--global-radius);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg-1 {
    background-image: url("../images/hero-img.jpg");
}

.hero-bg-2 {
    background-image: url("../images/page-banner-2.jpg");
}

.hero-bg-3 {
    background-image: url("../images/page-banner-3.jpg");
}

.hero-bg-4 {
    background-image: url("../images/page-banner-4.jpg");
}

.hero-content {
    display: flex;
    align-items: flex-end;
}

    .hero-content::before,
    .hero-content::after {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        content: "";
        pointer-events: none;
        z-index: -1;
    }

    .hero-content::before {
        background: linear-gradient(to bottom, #000000, rgba(84, 84, 84, 58%));
        opacity: 48%;
    }

    .hero-content::after {
        height: 75%;
        background: linear-gradient( to top, rgba(0, 0, 0, 1) 0%, rgba(19, 19, 19, 0.77) 62%, rgba(84, 84, 84, 0) 100% );
        opacity: 68%;
    }

.hero-content-block {
    padding: var(--gutter);
    width: calc(var(--container-width) + (var(--gutter) * 2));
    margin-inline: auto;
}

    .hero-content-block h1,
    .hero-content-block h2 {
        font-family: var(--secondary-font);
        line-height: 1;
        color: white;
    }

@media (width < 992px) {

    .hero-content-block {
        padding: var(--gutter-half);
    }

    .hero-content {
        border-radius: 0 0 var(--global-radius) var(--global-radius);
    }

    .hero-section {
        padding: 0 0 var(--gutter-half) 0;
    }
}

/* Intro Section */
.intro-section h2 {
    max-width: 80%;
}

@media (width < 992px) {
    .intro-section h2 {
        max-width: 100%;
    }
}

/* Product Slider */
.product-slider .swiper-slide {
    width: auto;
}

.product-slide {
    width: 43rem;
}

    .product-slide > * {
        border-radius: 0.8rem;
        border: 0.1rem solid white;
    }

    .product-slide figure {
        aspect-ratio: 1 / 1.06;
        overflow: hidden;
    }

        .product-slide figure img {
            object-fit: cover;
            width: 100%;
            height: 100%;
            border-radius: inherit;
        }

    .product-slide a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        text-align: center;
        font-size: var(--h4);
        font-family: var(--secondary-font);
        height: 10rem;
        color: white;
    }

@media (width < 1400px) {
    .product-slide {
        width: 36rem;
    }

        .product-slide a {
            height: 8rem;
        }
}

@media (width < 1200px) {
    .product-slide {
        width: 30rem;
    }

        .product-slide a {
            height: 6rem;
        }
}

@media (width < 992px) {
    .product-slide {
        width: 26rem;
    }

        .product-slide a {
            height: 5rem;
        }
}

/* Service Section */
.service-list li:not(:last-child) {
    margin-bottom: var(--global-radius);
}

.service-list li a {
    min-height: 10rem;
    border-radius: 1rem;
    border: 0.1rem solid #707070;
    background-color: white;
    padding: 1rem var(--sm);
    font-family: var(--secondary-font);
    font-size: var(--h4);
    color: var(--primary);
    display: flex;
    align-items: center;
}

    .service-list li a:hover {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }

@media (width < 992px) {
    .service-list li:not(:last-child) {
        margin-bottom: 1rem;
    }

    .service-list li a {
        min-height: 8rem;
        padding: 1rem var(--gutter);
    }
}

@media (width < 768px) {
    .service-list li a {
        min-height: 7rem;
        padding: 1rem var(--gutter-half);
    }
}

/* Page Banner Section */
.page-banner-section {
    min-height: 70rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.page-banner-1 {
    background-image: url("../images/page-banner-1.jpg");
}

@media (width < 1200px) {
    .page-banner-section {
        min-height: 60rem;
    }
}

@media (width < 992px) {
    .page-banner-section {
        min-height: 50rem;
    }
}

@media (width < 768px) {
    .page-banner-section {
        min-height: 40rem;
    }
}

@media (width < 576px) {
    .page-banner-section {
        min-height: 30rem;
    }
}

/* Partner Logo Section */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sm) 0;
}

    .partner-logos > * {
        width: 25%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--gutter);
    }

        .partner-logos > * img {
            max-width: 100%;
        }

@media (width < 992px) {
    .partner-logos {
        gap: 0;
    }
}

@media (width < 768px) {
    .partner-logos > * {
        width: 50%;
        padding: var(--gutter-half);
    }
}

/* Footer */
footer {
    min-height: 100dvh;
    padding: var(--gutter) 0;
    display: flex;
}

    footer .container {
        max-width: 100%;
        flex: 1 0 0%;
        display: flex;
    }

.footer-content {
    background-color: var(--primary);
    flex: 1 0 0%;
    border-radius: var(--global-radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sm);
    padding: var(--md) var(--gutter);
}

    .footer-content > * {
        width: 100%;
        max-width: calc(var(--container-width) + (var(--gutter) * 2));
        margin-inline: auto;
    }

.big-logo {
    width: 100%
}

footer h2 {
    color: white;
    max-width: 95.6rem;
}

    footer h2:not(:last-child) {
        margin-bottom: var(--sm);
    }

.footer-block {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: var(--gutter);
    width: 100%;
}

    .footer-block p,
    .footer-block p a {
        color: white;
    }

        .footer-block p a:hover {
            color: white;
            text-decoration: underline;
        }

.footer-logo {
    display: flex;
}

    .footer-logo img {
        display: block;
    }

@media (width < 1200px) {
    footer {
        min-height: auto;
    }

    .footer-block {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width < 576px) {
    .footer-block {
        grid-template-columns: 1fr;
    }

    .footer-logo img {
        display: block;
        max-width: 8rem;
    }
}

.page-hero-section {
    min-height: 50rem !important;
    height: 100dvh;
    max-height: 75dvh !important;
}

/* Products */
.product-list > :not(:last-child) {
    margin-bottom: var(--lg);
}

.product {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

    .product figure,
    .product-content {
        border-radius: 0.7rem;
    }

        .product figure img {
            object-fit: cover;
            width: 100%;
            height: 100%;
            border-radius: inherit;
        }

.product-content {
    padding: var(--md) var(--gutter) var(--md) var(--xl);
    background-color: white;
}

    .product-content > :not(:last-child),
    .product-content-block > :not(:last-child) {
        margin-bottom: var(--gutter);
    }

    .product-content h2,
    .product-content h4 {
        font-family: var(--secondary-font);
        color: var(--primary);
    }

.product-content-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem var(--md);
}

    .product-content-list li {
        position: relative;
        padding-left: 1.5rem;
        position: relative;
    }

        .product-content-list li::after {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0.5rem;
            aspect-ratio: 1;
            content: "";
            background-color: black;
        }

        .product-content-list li p {
            line-height: 1.2;
        }

@media (width < 1200px) {
    .product-list > :not(:last-child) {
        margin-bottom: var(--md);
    }

    .product-content {
        padding: var(--gutter);
    }

    .product {
        grid-template-columns: auto 1fr;
    }

        .product figure {
            width: 40rem;
        }

    .product-content-list {
        gap: 1rem var(--gutter-half);
    }
}

@media (width < 992px) {
    .product-list > :not(:last-child) {
        margin-bottom: var(--sm);
    }

    .product figure {
        width: 100%;
        height: auto;
    }

    .product {
        grid-template-columns: 1fr;
    }

    .product-content > :not(:last-child),
    .product-content-block > :not(:last-child) {
        margin-bottom: var(--gutter-half);
    }
}

/* Contact */
.contact-list > :not(:last-child) {
    margin-bottom: 2rem;
}

.contact-list > * {
    min-height: 14.5rem;
    border: .1rem solid var(--primary);
    border-radius: 1rem;
    padding: var(--gutter-half) var(--sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gutter-half);
}

.contact-list h2 {
    font-family: var(--secondary-font);
    color: var(--primary);
}

@media (width < 1200px) {
    .contact-list > * {
        min-height: 10rem;
        padding: var(--gutter-half);
    }
}

@media (width < 992px) {
    .contact-list > * {
        min-height: 8rem;
    }
}
