/* =====================================================================
   CSA Vietnam — Clients page (/clients/)
   Reuses the .hm- design system (home.css) for tokens, buttons, reveal,
   stats and CTA. This file adds the client showcase grid + industries.
   ===================================================================== */

/* ---- sub-page hero (centered) ---- */
.cl-hero {
    min-height: auto;
    padding: 9.5rem 0 4.5rem;
    text-align: center;
}
.cl-hero__inner {
    max-width: 820px;
    margin: 0 auto;
}
.cl-hero .hm-hero__sub {
    margin-inline: auto;
}
.cl-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.2rem;
}

/* ---- section wrappers ---- */
.cl-section {
    padding: 6rem 0;
}
.cl-section--light {
    background: var(--hm-light);
}
.cl-section--wash {
    background: radial-gradient(120% 60% at 50% 0%, #eef4ff 0%, #f7faff 45%, #fff 100%);
}
.cl-section--white {
    background: #fff;
}

/* strip that hosts the marquee just under the hero */
.cl-strip {
    padding: 2.5rem 0 1rem;
    background: #fff;
    border-bottom: 1px solid var(--hm-line);
}
.cl-strip__label {
    text-align: center;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hm-muted);
    margin-bottom: 0.5rem;
}

/* =====================================================================
   Showcase grid
   ===================================================================== */
.cl-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
}
.cl-card {
    position: relative;
    flex: 1 1 250px;
    max-width: 290px;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    padding: 2rem 1.6rem 1.8rem;
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s var(--hm-ease), box-shadow 0.4s var(--hm-ease),
        border-color 0.4s var(--hm-ease);
}
/* gradient top accent that grows on hover */
.cl-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--hm-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--hm-ease);
    z-index: 2;
}
/* diagonal shine sweep on hover */
.cl-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 102, 255, 0.12),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.75s var(--hm-ease);
    z-index: 1;
    pointer-events: none;
}
.cl-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hm-shadow);
    border-color: transparent;
}
.cl-card:hover::before {
    transform: scaleX(1);
}
.cl-card:hover::after {
    left: 150%;
}

.cl-card__logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 92px;
    margin-bottom: 1.1rem;
}
.cl-card__logo img {
    max-height: 92px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.45s var(--hm-ease);
}
.cl-card:hover .cl-card__logo img {
    transform: scale(1.08);
}
.cl-card__tag {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--hm-primary-dark);
    background: rgba(0, 102, 255, 0.08);
    border-radius: 100px;
    padding: 0.28rem 0.8rem;
    margin-bottom: 0.8rem;
}
.cl-card h3 {
    position: relative;
    z-index: 2;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--hm-navy);
    margin: 0 0 0.45rem;
    letter-spacing: 0.01em;
}
.cl-card p {
    position: relative;
    z-index: 2;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--hm-muted);
    margin: 0;
}

/* =====================================================================
   Industries served
   ===================================================================== */
.cl-industries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.cl-ind {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    padding: 1.5rem 1.6rem;
    transition: transform 0.35s var(--hm-ease), box-shadow 0.35s var(--hm-ease),
        border-color 0.35s var(--hm-ease);
}
.cl-ind:hover {
    transform: translateY(-6px);
    box-shadow: var(--hm-shadow);
    border-color: transparent;
}
.cl-ind__ico {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    background: var(--hm-grad);
    box-shadow: 0 10px 22px rgba(0, 82, 204, 0.28);
    transition: transform 0.4s var(--hm-ease);
}
.cl-ind:hover .cl-ind__ico {
    transform: scale(1.08) rotate(-5deg);
}
.cl-ind h3 {
    font-size: 1.05rem;
    color: var(--hm-navy);
    margin: 0 0 0.2rem;
}
.cl-ind p {
    font-size: 0.85rem;
    color: var(--hm-muted);
    margin: 0;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 992px) {
    .cl-industries {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .cl-hero {
        padding: 8rem 0 3.5rem;
    }
    .cl-card {
        flex: 1 1 100%;
        max-width: 340px;
    }
    .cl-industries {
        grid-template-columns: 1fr;
    }
    .cl-hero__cta {
        flex-direction: column;
    }
}
