/* ==========================================================================
   FACTORY LIST PAGE (list_factory.html)
   depends on: style.css (tokens, header, footer), partner.css (page-hero, contact)
   Content column 1520px centered. Breakpoints: 1520 / 1200 / 992 / 768 / 576
   ========================================================================== */

/* ---------- hero (design: 492px incl. 76px header -> 416px visible) ---------- */
.fac-hero { height: 416px; }
.fac-hero .page-breadcrumb { font-size: var(--fs-small); }

/* ---------- factory tabs ---------- */
.fac-tabs {
    background: #f4f4f4;
    border-bottom: 1px solid #eef0f2;
}
.fac-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 45px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.fac-tab {
    display: inline-block;
    padding: 19px 0;
    font-size: var(--fs-body);
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}
.fac-tab:hover { color: var(--red); }
.fac-tab.is-active {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ---------- factory block ---------- */
.fac-block { padding: 70px 0 70px; }

/* banner: 1520x400, dark gradient from the left, text vertically centered */
.fac-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--dark);
}
.fac-banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fac-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 14, 18, .78) 0%, rgba(10, 14, 18, .45) 45%, rgba(10, 14, 18, 0) 75%);
    pointer-events: none;
}
.fac-banner-text {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
}
.fac-banner-text h2 {
    margin: 0;
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
}
.fac-banner-text p {
    margin: 12px 0 0;
    font-size: var(--fs-small);
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

/* cards grid: 2 columns, 120px column gap, 60px row gap (design values) */
.fac-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 80px;
}
.fac-card-img {
    display: block;
    aspect-ratio: 700 / 380;
    overflow: hidden;
    background: #e9ebee;
}
.fac-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.fac-card:hover .fac-card-img img { transform: scale(1.04); }
.fac-card h3 {
    margin: 30px 0 0;
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}
.fac-card h3 a { color: inherit; transition: color .25s ease; }
.fac-card h3 a:hover { color: var(--red); }
.fac-card p {
    margin: 20px 0 0;
    font-size: var(--fs-h4);
    line-height: 28px;
    color: #6b6b6c;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .fac-grid { gap: 50px 60px; }
}

@media (max-width: 991px) {
    .fac-hero { height: 340px; }
    .fac-tabs .container { padding-left: 0; padding-right: 0; }
    .fac-tab-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0 30px;
        padding: 0 15px;
        scrollbar-width: none; /* firefox */
    }
    .fac-tab-list::-webkit-scrollbar { display: none; }
    .fac-tab { white-space: nowrap; }
    .fac-block { padding: 56px 0 64px; }
    .fac-banner { height: 320px; }
    .fac-banner-text h2 { font-size: 32px; }
}

@media (max-width: 767px) {
    .fac-hero { height: 280px; }
    .fac-block { padding: 48px 0 56px; }
    .fac-banner { height: 260px; }
    .fac-banner-text { left: 20px; right: 20px; }
    .fac-banner-text h2 { font-size: 26px; }
    .fac-banner-text p { font-size: 14px; }
    .fac-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 32px;
    }
    .fac-card h3 { margin-top: 20px; font-size: 20px; }
}
