/* ===================================================================
   TK Construction — CSS TRANG CHỦ (chỉ Default.aspx nạp)
   Markup: Default.aspx.cs. Sửa xong nhớ tăng ?v=N ở Default.aspx.
   =================================================================== */

/* ---------------------------------------------- 1. Hero ---------- */
.home-hero {
    position: relative;
    background: var(--c-bg-soft);
}

.hero-swiper {
    width: 100%;
}

.hero-slide {
    display: block;
}

    .hero-slide img {
        width: 100%;
        height: auto;
        aspect-ratio: 1366 / 573;
        object-fit: cover;
    }

.hero-swiper .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    margin: 0;
    z-index: 2;
}

/* ---------------------------------------------- 2. Giới thiệu ---- */
.home-about {
    padding: clamp(40px, 5vw, 64px) 0;
    background: var(--c-bg-soft) url(../images/tk/bg-gioithieu.jpg) center / cover no-repeat;
    overflow: hidden;
}

.about-head {
    padding-left: 12px;
    border-left: 3px solid var(--c-primary);
    margin-bottom: 6px;
}

.about-kicker {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
    font-weight: 300;
    text-transform: uppercase;
    color: var(--c-ink);
    line-height: 1.2;
}

.about-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.0625rem);
    font-weight: 700;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: var(--c-primary);
    line-height: 1.2;
    background: linear-gradient(180deg, #0065A2 0%, #002B53 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-slogan {
    margin: 4px 0 18px 15px;
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    font-weight: 500;
    color: var(--c-accent);
    background: linear-gradient(180deg, #F8AF3B 0%, #E6470E 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-base);
}

.about-desc {
    margin-left: 15px;
    color: var(--c-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-family: var(--font-display);
}

    .about-desc p {
        margin-bottom: 1.4em;
    }

.about-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 64px;
    margin: 30px 0 0 15px;
}

.about-media {
    position: relative;
    padding-right: 14px;
}

    .about-media img {
        width: 100%;
        height: auto;
    }
    /* Hai vạch dọc xanh + cam bên phải ảnh như bản thiết kế */
    .about-media::before,
    .about-media::after {
        content: "";
        position: absolute;
        right: 0;
        width: 4px;
    }

    .about-media::before {
        top: 0;
        height: 52%;
        background: var(--c-primary);
    }

    .about-media::after {
        top: 55%;
        height: 24%;
        background: var(--c-accent);
    }

/* ---------------------------------------------- 3. Thiết kế ------ */
.home-designs {
    padding-bottom: 140px;
}

    .home-designs .section-title {
        font-size: clamp(1.875rem, 3.4vw, 2.5rem);
        font-weight: 600;
        font-family: var(--font-base);
        color: #fff;
        background: none;
        -webkit-text-fill-color: inherit;
    }

    .home-designs .section-desc {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .home-designs .section-head {
        margin-bottom: 20px;
    }

    .home-designs .product-grid {
        --bs-gutter-x: 16px;
        --bs-gutter-y: 16px;
    }

.home-designs-more {
    margin-top: 36px;
}

.tab-pane-x {
    animation: paneIn .35s var(--ease);
}

@keyframes paneIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------- 4. Cam kết ------- */
.home-design-wrap {
    position: relative;
    background: var(--c-bg-soft);
}

.home-commit {
    position: relative;
    z-index: 2;
    margin-top: -108px;
}

.commit-box {
    padding: 40px 10px;
    background: var(--c-accent) url(../images/tk/bg-camket.jpg) center / cover no-repeat;
    box-shadow: var(--shadow);
}

.commit-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.commit-item {
    text-align: center;
    color: var(--c-white);
}

    .commit-item .item-icon {
        width: 82px;
        height: 82px;
        margin-bottom: 14px;
        background: none;
        border-radius: 0;
        color: var(--c-white);
        font-size: 3rem;
    }

        .commit-item .item-icon img {
            width: auto;
            height: 82px;
            max-width: 110px;
        }

.commit-title,
.commit-desc {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--c-white);
    font-family: var(--font-base);
}

/* ---------------------------------------------- Nền bản vẽ ------- */
.home-blueprint {
    background: var(--c-bg-soft) url(../images/tk/bg-congtrinh.jpg) center top / 100% auto repeat-y;
}

/* ---------------------------------------------- 5. Công trình ---- */
.home-projects {
    padding-top: 40px;
    padding-bottom: 20px;
}

    .home-projects .kicker:hover {
        color: var(--c-accent-dark);
    }

.project-slider {
    position: relative;
}

.project-swiper {
    overflow: hidden;
    padding: 0;
}

    .project-swiper .swiper-slide {
        transform: scale(.68);
        transition: transform .5s var(--ease), filter .5s var(--ease);
        filter: saturate(.85);
        z-index: 1;
    }
    /* Slide hai bên co về phía slide giữa để nằm "sau" nó */
    .project-swiper .swiper-slide-prev {
        transform-origin: right center;
    }

    .project-swiper .swiper-slide-next {
        transform-origin: left center;
    }

    .project-swiper .swiper-slide-active {
        transform: none;
        filter: none;
        z-index: 3;
    }

.project-slide {
    display: block;
    aspect-ratio: 690 / 450;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-primary-mist);
}

.swiper-slide-active .project-slide {
    box-shadow: var(--shadow-lg);
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide:not(.swiper-slide-active) .project-slide {
    cursor: pointer;
}

.project-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-primary);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.project-prev {
    left: 12px;
}

.project-next {
    right: 12px;
}

.project-slider:hover .project-nav,
.project-nav:focus-visible {
    opacity: 1;
}

.project-nav:hover {
    background: var(--c-accent);
    color: var(--c-white);
}

.project-caption {
    margin-top: 24px;
    text-align: center;
    min-height: 64px;
}

.project-caption-title {
    font-family: var(--font-base);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--c-accent);
    font-weight: 600;
}

    .project-caption-title:hover {
        color: var(--c-accent-dark);
    }

.project-caption-location {
    margin: 4px 0 0;
    color: var(--c-body);
}

    .project-caption-location i {
        color: var(--c-primary);
        margin-right: 4px;
    }

/* ---------------------------------------------- 6. Dịch vụ ------- */
.home-services {
    padding-top: 20px;
    padding-bottom: 10px;
}

    .home-services .section-head {
        margin-bottom: 24px;
    }

    .home-services .kicker:hover {
        color: var(--c-accent-dark);
    }

    .home-services .service-card {
        min-height: 0;
        aspect-ratio: 381 / 410;
    }

/* ---------------------------------------------- 7. Tin tức ------- */
.home-news {
    padding-top: 30px;
}

/* ---------------------------------------------- Responsive ------- */
@media (max-width: 991.98px) {
    .home-designs {
        padding-bottom: 110px;
    }

    .home-commit {
        margin-top: -80px;
    }

    .commit-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .about-media {
        max-width: 560px;
        margin: 0 auto;
    }

    .project-nav {
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .hero-slide img {
        aspect-ratio: 16 / 9;
        object-position: 30% center;
    }

    .about-actions {
        gap: 16px 28px;
    }

    .project-swiper .swiper-slide {
        transform: scale(.86);
    }

    .project-nav {
        width: 38px;
        height: 38px;
        margin-top: -19px;
    }

    .home-services .service-card {
        aspect-ratio: 4 / 3.4;
    }
}

@media (max-width: 575.98px) {
    .commit-box {
        padding: 28px 12px;
    }

    .commit-item .item-icon {
        width: 60px;
        height: 60px;
    }

        .commit-item .item-icon img {
            height: 60px;
        }

    .about-desc, .about-slogan, .about-actions {
        margin-left: 0;
    }
}
