/* home.css — Universal Trade Link public homepage */

/* ── Section Tag (pill label above headings) ─────────── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--utl-red);
    background: rgba(192, 57, 43, .08);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 10px;
}

.section-head-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-head-flex h2 {
    margin: 0;
}

.section-head-flex p {
    margin: 0;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
    background: #1a3a5c;
    background-size: cover;
    background-position: center;
    min-height: 560px;
     display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 18px;
    margin-top: 14px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    color: #f7d8d5;
}

.hero h1 span {
    color: #f1c4bf;
}

.hero .lede {
    font-size: 1.05rem;
    color: #c8d8eb;
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

/* Stats strip below CTA buttons */
.hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-stat {
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
}

.hero-stat span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 2px;
}

/* Hero card */
.hero-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(6px);
}

.hero-card h3 {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.hero-card p {
    margin: 0 0 10px;
    color: #c8d8eb;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-card p i {
    color: var(--utl-red);
    width: 14px;
}

/* ── INTRO / COMPANY PROFILE ──────────────────────────── */
.intro {
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.intro-img-wrap {
    position: relative;
}

.intro-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.intro-img-placeholder {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e8f0f8 0%, #d0e4f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 3rem;
}

.intro-img-badge {
    position: absolute;
    bottom: -18px;
    right: -18px;
    background: var(--utl-red);
    color: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: .82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(192, 57, 43, .35);
}

.intro-copy h2 {
    margin: 0 0 14px;
    font-size: 1.9rem;
    color: var(--utl-navy);
}

.intro-copy p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 22px;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--utl-text);
    font-weight: 500;
}

.intro-feature i {
    width: 20px;
    height: 20px;
    background: rgba(192, 57, 43, .1);
    color: var(--utl-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    flex-shrink: 0;
}

/* ── CATEGORIES CAROUSEL ──────────────────────────────── */
.cat-carousel-wrap {
    overflow: hidden;
    position: relative;
}

.cat-carousel {
    display: flex;
    gap: 18px;
    transition: transform .45s cubic-bezier(.25, .46, .45, .94);
    will-change: transform;
}

.cat-card {
    flex: 0 0 calc((100% - 54px) / 4);
    /* 4 per row: (total - 3 gaps) / 4 */
    border: 1px solid var(--utl-line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: box-shadow .22s, transform .22s;
}

.cat-card:hover {
    box-shadow: 0 12px 32px rgba(15, 37, 64, .1);
    transform: translateY(-4px);
}

.cat-thumb {
    height: 150px;
    background: linear-gradient(135deg, #edf2f7, #e2eaf3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    overflow: hidden;
}

.cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cat-body h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--utl-navy);
}

.cat-children {
    color: var(--utl-muted);
    font-size: .78rem;
    margin: 0 0 12px;
    line-height: 1.5;
}

.cat-link {
    margin-top: auto;
    font-size: .8rem;
    font-weight: 600;
    color: var(--utl-red);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Carousel dots */
.cat-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0dbe8;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .2s;
}

.cat-dot.active {
    background: var(--utl-red);
    width: 24px;
    border-radius: 4px;
}

/* ── PRODUCTS GRID ────────────────────────────────────── */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.prod-card {
    border: 1px solid var(--utl-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .22s, transform .22s;
}

.prod-card:hover {
    box-shadow: 0 10px 28px rgba(15, 37, 64, .08);
    transform: translateY(-2px);
}

.prod-thumb {
    height: 160px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    overflow: hidden;
}

.prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prod-body h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--utl-navy);
}

/* 2-line description clamp */
.prod-desc {
    color: var(--utl-muted);
    font-size: .82rem;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}

.prod-meta {
    font-size: .7rem;
    color: var(--utl-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.prod-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.prod-actions .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: .8rem;
}

.btn-ghost {
    background: #fff;
    color: var(--utl-primary);
    border: 1px solid var(--utl-line);
}

/* ── CTA BAND ─────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(120deg, var(--utl-navy) 0%, var(--utl-primary) 100%);
    color: #fff;
    border-radius: 20px;
    padding: 44px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-band h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.6rem;
}

.cta-band p {
    margin: 0;
    color: #c5d4e4;
}

.empty-note {
    color: var(--utl-muted);
    grid-column: 1 / -1;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {

    .hero-inner,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .cta-band {
        text-align: left;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 56px 0 64px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .intro-img-badge {
        right: 12px;
        bottom: -12px;
    }

    .cat-card {
        flex: 0 0 calc((100% - 18px) / 2);
    }

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

    .section-head-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-card {
        display: none;
    }

    .hero-stats {
        gap: 16px;
    }

    .cat-card {
        flex: 0 0 calc(100% - 0px);
    }

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

    .intro-img,
    .intro-img-placeholder {
        height: 260px;
    }

    .intro-features {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 28px 24px;
    }
}