/*============================ Fonts & Variables ============================*/
@font-face {
    font-family: OpenSans;
    src: url(fonts/Opensans/OpenSans-VariableFont_wdth\,wght.ttf);
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: LeagueSpartan;
    src: url(fonts/LeagueSpartan/LeagueSpartan-VariableFont_wght.ttf);
    font-weight: 500;
    font-display: swap;
}

:root {
    --font-title: LeagueSpartan, Arial, sans-serif;
    --font-text: OpenSans, Arial, sans-serif;
    --black-blue: #14376b;
    --celeste: #2e9bd1;
    --light-blue: #f4f8ff;
}

/*============================ Global Styles ============================*/
html {
    scroll-behavior: smooth;
    scroll-padding-top: 7cqi;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/*============================ Header Styles ============================*/
.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    position: sticky;
    top: -2.5cqi;
}

/* --- Brands Track --- */
.header__brands {
    width: 100%;
    height: 2.5cqi;
    background-color: var(--black-blue);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.brands-track {
    height: 100%;
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.brand-logo {
    height: 90%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin: 0 4cqi;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.header__brands:hover .brands-track {
    animation-play-state: paused;
}

/* --- Header Content --- */
.header__content {
    width: 100%;
    height: 5cqi;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1cqi 3cqi;
    background-color: #ffffff;
}

.header__logo {
    width: 11cqi;
    height: 6cqi;
}

.header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header__nav-list {
    display: flex;
    gap: 3cqi;
    list-style: none;
}

.header__nav-item {
    cursor: pointer;
    font-size: 2cqi;
    font-family: var(--font-title);
}

.header__nav-item a {
    text-decoration: none;
    color: var(--black-blue);
    transition: color 0.3s;
}

.header__nav-item a:hover {
    color: var(--celeste);
}

/*============================ Main Styles ============================*/
main {
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
}

/* --- Hero Section --- */
.main__hero {
    width: 100%;
    height: 35cqi;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.main__hero:not(.loaded) .carousel-slide.active .main__hero-content {
    opacity: 0 !important;
    transform: translateY(3cqi) !important;
}

.main__hero:not(.loaded) .carousel-slide.active .main__hero-decorative-image {
    opacity: 0 !important;
    transform: translateX(5cqi) scale(0.9) !important;
}

.carousel-slide::after {
    content: "";
    position: absolute;
    width: 45cqi;
    height: 45cqi;
    border-radius: 50%;
    background-color: #1574a3e1;
    z-index: -1;
    top: 0;
    right: 0;
    transform: translate(20%, 10%);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.main__hero-backgrounds {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.main__hero-backgrounds::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2e9bd1d2;
    z-index: 1;
}

.main__hero-backgrounds img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.main__hero-content {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2cqi;
    transform: translateY(3cqi);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
    z-index: 2;
    gap: 2cqi;
}

.carousel-slide.active .main__hero-content {
    transform: translateY(0);
    opacity: 1;
}

.main__hero-content h1 {
    white-space: pre-line;
    font-family: var(--font-title);
    color: #ffffff;
    font-size: 4cqi;
    word-spacing: 0.1cqi;
    line-height: 4.5cqi;
}

.main__hero-content p {
    font-family: var(--font-text);
    color: #ffffff;
    font-size: 1.5cqi;
    line-height: 2cqi;
    font-weight: 500;
}

.main__hero-button {
    background-color: #ffffffda;
    width: 21cqi;
    height: 3cqi;
    transition: width 0.5s ease;
    border-radius: 0.4cqi;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-decoration: none;
    position: relative;
    margin: 0 auto;
}

.main__hero-button p {
    display: block;
    width: min-content;
    white-space: nowrap;
    font-weight: 600;
    font-size: 1.5cqi;
    margin: 0;
    padding: 0;
    transition: 0.5s ease;
    color: #0077b5;
    font-family: var(--font-text);
    font-style: italic;
    text-align: center;
}

.main__hero-button img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1cqi;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: 0.5s;
    height: 2cqi;
    width: 2cqi;
    fill: #fff;
}

.main__hero-button:hover p {
    color: #fff;
}

.main__hero-button:hover img {
    opacity: 1;
}

.main__hero-button:hover {
    background-color: #0077b5;
    width: 25cqi;
}

.main__hero-decorative {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
    z-index: 2;
}

.main__hero-decorative-image {
    width: 35cqi;
    height: 35cqi;
    position: relative;
    transform: translateX(5cqi) scale(0.9);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s, opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.decorative-2 {
    height: 30cqi;
}

.decorative-3 {
    width: 40cqi;
    height: 35cqi;
}

.carousel-slide.active .main__hero-decorative-image {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.main__hero-decorative-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 2cqi;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.5cqi;
    z-index: 10;
}

.indicator {
    width: 1.6cqi;
    height: 1.6cqi;
    border-radius: 50%;
    background-color: #ffffff80;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: #fff;
    transform: scale(1.3);
}

/* --- Services Section --- */
.main__services {
    width: 100%;
    padding: 4cqi 3cqi;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2cqi;
}

.main__services-title {
    font-family: var(--font-title);
    font-size: 4cqi;
    color: var(--black-blue);
    font-weight: 600;
    word-spacing: 0.1cqi;
}

.main__services-separator {
    width: 100%;
    height: 0.3cqi;
    background-color: var(--black-blue);
    border-radius: 2cqi;
}

.main__services-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2cqi;
}

.service-card {
    width: 100%;
    background-color: var(--light-blue);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1cqi;
    border-radius: 0.5cqi;
    opacity: 0;
    transform: translateY(5cqi);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card__image {
    width: 100%;
    height: 15cqi;
    object-fit: cover;
}

.service-card__content {
    padding: 1cqi 2cqi;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1cqi;
    position: relative;
}

.service-card__icon {
    width: 6cqi;
    height: 6cqi;
    object-fit: contain;
}

.service-card__title {
    font-family: var(--font-title);
    font-size: 2cqi;
    color: #141414;
    font-weight: 500;
}

.service-card__description {
    margin-top: 0.5cqi;
    font-family: var(--font-text);
    font-size: 1.4cqi;
    color: #333333;
    line-height: 2cqi;
    font-weight: 400;
}

.service-card hr {
    width: 100%;
    border: none;
    border-radius: 1cqi;
    height: 0.3cqi;
    background-color: #8bcff1;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* --- Catalog Section --- */
.main__catalog {
    width: 100%;
    height: 38cqi;
    margin: 4cqi 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-inline: 1cqi;
}

.main__catalog.visible .carousel-catalog,
.main__catalog.visible .catalog__content {
    opacity: 1;
    transform: translateX(0);
}

.main__catalog.visible .catalog__content h3 { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.main__catalog.visible .catalog__content p { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.main__catalog.visible .catalog__content .catalog__button { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }

.catalog__content {
    width: 35%;
    height: 100%;
    background-color: var(--black-blue);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2cqi;
    text-align: center;
    border-bottom: none;
    border-top: none;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
    will-change: opacity, transform;
}

.catalog__content h3 {
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 0.1cqi;
    font-size: 4cqi;
}

.catalog__content p {
    font-family: var(--font-text);
    font-weight: 400;
    line-height: 2.5cqi;
    font-size: 1.5cqi;
    padding: 0.5cqi;
}

.catalog__content h3, 
.catalog__content p, 
.catalog__content .catalog__button {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.catalog__button {
    position: relative;
    width: 70%;
    height: 5cqi;
    border-radius: 0.4cqi;
    margin: 0 auto;
    padding: 1cqi;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1cqi;
    text-decoration: none;
    border: 0.3cqi solid #fff;
    overflow: hidden;
}

.catalog__button:hover {
    transition: all 0.3s ease !important;
    transform: scale(1.05) !important;
}

.catalog__button::after {
    content: '';
    height: 100%;
    width: 0.3cqi;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 75%;
    z-index: 100;
}

.catalog__button p {
    font-family: var(--font-text);
    font-size: 1.5cqi;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    background-color: var(--black-blue);
    flex-grow: 1;
    text-align: left;
}

.catalog__button img {
    width: 3.6cqi;
    height: 3.6cqi;
    object-fit: contain;
    filter: invert(1);
    transform: translateX(0);
    transition: transform 1s ease, opacity 1s ease;
    z-index: -1;
}

.catalog__button.animation img {
    animation: arrow 1s forwards;
}

@keyframes arrow {
    30% { transform: translateX(100%); opacity: 0; }
    50% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* --- Catalog Carousel --- */
.carousel-catalog {
    width: 65%;
    height: 100%;
    overflow: hidden;
    background-color: var(--light-blue);
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.carousel__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25.6cqi;
    height: 36.2cqi;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.carousel__item.active {
    transform: translate(-50%, -50%) scale(1) translateZ(50px);
    opacity: 1;
    z-index: 3;
}

.carousel__item.left {
    transform: translate(-150%, -50%) rotateY(25deg) scale(0.9);
    opacity: 0.8;
    z-index: 2;
}

.carousel__item.right {
    transform: translate(50%, -50%) rotateY(-25deg) scale(0.9);
    opacity: 0.8;
    z-index: 2;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(107, 107, 107, 0.651);
    border: none;
    color: #fff;
    font-size: 3cqi;
    padding: 1cqi 1.8cqi;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 100;
    border-radius: 50%;
}

.carousel__btn:hover {
    background: rgba(255,255,255,0.5);
    color: #5e5e5e;
}

.carousel__btn.prev { left: 10px; }
.carousel__btn.next { right: 10px; }

/* --- Location Section --- */
.main__location {
    width: 100%;
    height: 30cqi;
    padding: 2cqi 3cqi;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--light-blue);
    margin-block: 5cqi;
}

.main__location.visible .location-image,
.main__location.visible .location-text {
    opacity: 1;
    transform: translate(0);
}

.main__location.visible .location-image:hover {
    transform: scale(1.04);
    transition: transform 0.3s ease 0s;
}

.location-image {
    width: 35%;
    height: 100%;
    box-shadow: 0.8cqi 0.8cqi 0 var(--black-blue);
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    will-change: opacity, transform;
}

.location-image:hover {
    transform: scale(1.04);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-text {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2cqi;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
    will-change: opacity, transform;
}

.location-text hr {
    width: 100%;
    border: 0.2cqi solid var(--black-blue);
}

.location-text h3 {
    font-family: var(--font-title);
    font-size: 4cqi;
    color: var(--black-blue);
    font-weight: 600;
    word-spacing: 0.1cqi;
}

.location-text p {
    font-family: var(--font-text);
    font-size: 1.4cqi;
    color: #333333;
    line-height: 2.5cqi;
    font-weight: 400;
}

.title-location {
    display: flex;
    align-items: center;
    gap: 1cqi;
}

.title-location img {
    width: 2.8cqi;
    height: 2.8cqi;
    object-fit: contain;
}

/*============================ Footer Styles ============================*/
.site-footer {
    background-color: var(--black-blue);
    color: #ffffff;
    padding: 5cqi 0;
    text-align: center;
    position: relative;
    font-family: var(--font-text);
}

.footer-content {
    margin: auto;
}

.footer-cta h3 {
    font-size: 2cqi;
    margin-bottom: 1cqi;
    letter-spacing: 0.1cqi;
}

.footer-cta p {
    font-size: 1.3cqi;
    color: #ffffff;
    margin-bottom: 3cqi;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5cqi;
    list-style: none;
}

.social-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 2.2cqi;
    width: 5cqi;
    height: 5cqi;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff0d;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.social-links a:hover {
    transform: translateY(-5px);
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 5px 15px #ffffff4d;
}

.social-links a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.copyright {
    width: 50%;
    margin: auto;
    margin-top: 4cqi;
    font-size: 1.2cqi;
    color: #dbdbdb;
    border-top: 0.1cqi solid #cecece;
    padding-top: 2cqi;
}

/*============================ Responsive (Mobile/Tablet) ============================*/
@media screen and (max-width: 980px) {
    html {
        scroll-padding-top: 25cqi;
    }

    .header { top: -8cqi; }
    .header__brands { height: 8cqi; }
    .brand-logo { margin: 0 5cqi; }

    .header__content {
        height: auto;
        flex-direction: column;
        padding: 3cqi 5cqi;
        gap: 3cqi;
    }

    .header__logo { width: 32cqi; height: 12cqi; }

    .header__nav-list {
        gap: 6cqi;
        justify-content: center;
        width: 100%;
    }

    .header__nav-item { font-size: 5cqi; padding: 1cqi; }

    .main__hero { height: 130cqi; }
    .main__hero-content {
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 5cqi;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
        gap: 10cqi;
    }

    .main__hero-content h1 { font-size: 8.5cqi; line-height: 9cqi; }
    .main__hero-content p { font-size: 4.8cqi; line-height: 5.5cqi; }
    .main__hero-button { width: 50cqi; height: 10cqi; border-radius: 3cqi; }
    .main__hero-button:hover { width: 68cqi; }
    .main__hero-button img { height: 6cqi; width: 6cqi; }
    
    .main__hero-decorative { display: none; }
    
    .carousel-slide::after { width: 80cqi; height: 80cqi; top: auto; bottom: -20%; right: -20%; }
    .carousel-indicators { bottom: 5cqi; gap: 6cqi; }
    .indicator { width: 4cqi; height: 4cqi; }

    .main__services { padding: 10cqi 5cqi; gap: 5cqi; }
    .main__services-title { font-size: 9cqi; }
    .main__services-separator { height: 1cqi; width: 80%; }
    .main__services-cards { grid-template-columns: 1fr; gap: 6cqi; }

    .service-card { border-radius: 2cqi; padding-bottom: 2cqi; box-shadow: 0 1cqi 3cqi rgba(0,0,0,0.1); }
    .service-card__image { height: 45cqi; }
    .service-card__content { padding: 4cqi; gap: 2cqi; }
    .service-card__icon { width: 12cqi; height: 12cqi; }
    .service-card__title { font-size: 6cqi; }
    .service-card__description { font-size: 4cqi; line-height: 5.5cqi; margin-bottom: 2cqi; }
    .service-card hr { height: 0.8cqi; }

    .main__catalog { flex-direction: column; height: auto; margin: 20cqi 0; padding: 0; }
    .catalog__content { width: 100%; padding: 8cqi 5cqi; gap: 7cqi; }
    .catalog__content h3 { font-size: 9cqi; }
    .catalog__content p { font-size: 4.5cqi; line-height: 6cqi; }
    .catalog__button { width: 80%; height: 12cqi; border: 0.8cqi solid #fff; padding: 0 4cqi; }
    .catalog__button::after { width: 0.8cqi; }
    .catalog__button p { font-size: 4.8cqi; }
    .catalog__button img { width: 8cqi; height: 8cqi; }

    .carousel-catalog { width: 100%; height: 140cqi; background-color: var(--light-blue); margin-top: 0; }
    .carousel__item { width: 78cqi; height: 110cqi; }
    .carousel__btn { font-size: 8cqi; padding: 2cqi 3cqi; }

    .main__location { flex-direction: column; height: auto; padding: 8cqi 5cqi; gap: 20cqi; margin: 20cqi 0; }
    .location-image { width: 100%; height: 60cqi; box-shadow: 1.5cqi 1.5cqi 0 var(--black-blue); }
    .location-text { width: 100%; gap: 10cqi; text-align: center; align-items: center; }
    .title-location { justify-content: center; }
    .location-text h3 { font-size: 8cqi; }
    .title-location img { width: 7cqi; height: 7cqi; }
    .location-text p { font-size: 4cqi; line-height: 6cqi; }
    .location-text hr { border-width: 0.5cqi; }
    
    .site-footer { padding: 10cqi 5cqi; }
    .footer-cta h3 { font-size: 6cqi; }
    .footer-cta p { font-size: 4cqi; margin-bottom: 6cqi; }
    .social-links { gap: 5cqi; }
    .social-links a { width: 12cqi; height: 12cqi; font-size: 6cqi; }
    .copyright { width: 90%; font-size: 3.5cqi; margin-top: 8cqi; padding-top: 4cqi; }
}