/* ==================== Kits Page ==================== */

/* Nav overrides: white background by default (non-home pages) */
body.kits-layout .nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.kits-layout .nav-logo {
    color: #1a1a1a;
}

body.kits-layout .nav-links a {
    color: #1a1a1a;
}

body.kits-layout .nav-links a::after {
    background-color: #274B92;
}

body.kits-layout .nav-links a:hover {
    color: #274B92;
}

body.kits-layout .nav.scrolled .nav-logo {
    color: #1a1a1a;
}

body.kits-layout .nav-lang {
    color: #1a1a1a;
}

body.kits-layout .nav-lang:hover {
    color: #274B92;
}

body.kits-layout .nav-links::before {
    background: rgba(39, 75, 146, 0.15);
}

/* Hero */
.kits-hero {
    position: relative;
    overflow: hidden;
    height: 620px;
}

.kits-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.kits-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22,35,60,0.82) 0%, rgba(22,35,60,0.55) 50%, rgba(22,35,60,0.35) 100%);
}

.kits-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kits-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.kits-hero-overlay .container {
    max-width: 640px;
    pointer-events: auto;
}

.kits-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fac10c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kits-hero-kicker::before {
    content: '';
    width: 32px;
    height: 1px;
    background: rgba(250, 193, 12, 0.8);
}

.kits-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
}

.kits-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 520px;
}

.kits-hero-stats {
    display: flex;
    gap: 48px;
}

.kits-hero-stat {
    display: flex;
    flex-direction: column;
}

.kits-hero-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.kits-hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
}

/* Tabs */
.kits-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.kits-tab {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    background: #fff;
    border: 1px solid #e3e9f3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kits-tab:hover {
    border-color: #274B92;
    color: #274B92;
}

.kits-tab.active {
    background: #274B92;
    color: #fff;
    border-color: #274B92;
}

/* Grid */
.kits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kit-card {
    display: block;
    background: #fff;
    border: 1px solid #eaf0f8;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}

.kit-card:hover {
    border-color: #d0dce8;
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.06);
    transform: translateY(-4px);
}

.kit-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f6fb;
}

.kit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kit-card:hover .kit-image img {
    transform: scale(1.03);
}

.kit-content {
    padding: 16px;
}

.kit-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.kit-groups span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #274B92;
    background: rgba(39, 75, 146, 0.08);
    padding: 3px 8px;
}

.kit-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.45;
    height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kit-desc {
    font-size: 0.85rem;
    color: #65738e;
    line-height: 1.6;
}

/* CTA override */
body.kits-layout .cta {
    padding: 88px 0;
    background: #274b92;
    color: #fff;
}

body.kits-layout .cta-title {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

body.kits-layout .cta-subtitle {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.9;
}

body.kits-layout .cta .btn-primary {
    background: #FAC10C;
    border-color: #FAC10C;
    color: #1A1A1A;
}

body.kits-layout .cta .btn-primary:hover {
    background: #e0ab00;
    border-color: #e0ab00;
    color: #1A1A1A;
}

body.kits-layout .detail-footer .btn-outline-primary {
    border: 1.5px solid #274B92;
    color: #274B92;
    background: transparent;
    border-radius: 0;
}

body.kits-layout .detail-footer .btn-outline-primary:hover {
    background: #274B92;
    color: #fff;
}

body.kits-layout .cta .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Detail page: centered header */
body.kits-layout .detail-header {
    text-align: center;
}

body.kits-layout .detail-meta {
    justify-content: center;
}

@media (max-width: 1024px) {
    .kits-hero {
        height: 540px;
    }

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

@media (max-width: 768px) {
    .kits-hero {
        height: 480px;
    }

    .kits-hero-title {
        font-size: 2rem;
    }

    .kits-hero-stats {
        gap: 32px;
    }

    .kits-grid {
        grid-template-columns: 1fr;
    }

    body.kits-layout .cta {
        padding: 64px 0;
    }

    body.kits-layout .cta-title {
        font-size: 1.6rem;
    }
}
