/* ══════════════════════════════════════════════════════
   LANGUAGE SELECT PAGE
══════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.lang-hero {
    background: var(--bg-linear-gradient-primary);
    padding: 2% 0 4%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* decorative circles */
.lang-hero::before,
.lang-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.lang-hero::before {
    width: 500px; height: 500px;
    right: -120px; top: -160px;
    background: rgba(255,255,255,.04);
}
.lang-hero::after {
    width: 280px; height: 280px;
    left: -60px; bottom: -80px;
    background: rgba(255,255,255,.03);
}

.lang-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .4rem 1.1rem;
    margin-bottom: 1.4rem;
    animation: fadeDown .5s ease both;
}

.lang-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .85rem;
    animation: fadeDown .55s ease .08s both;
}

.lang-hero p {
    color: rgba(255,255,255,.65);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeDown .6s ease .15s both;
}

/* Wave divider */
.lang-wave {
    position: relative;
    margin-top: -1px;
    line-height: 0;
}
.lang-wave svg { display: block; width: 100%; }

/* ── Cards section ────────────────────────────────────── */
.lang-cards-section {
    background: var(--color-tint-bg);
    padding: 0 0 6%;
    margin-top: 20px;
    /* cards overlap the wave, pulled up */
}

.lang-cards-row {
    margin-top: -72px; /* pull up over the wave */
}

/* ── Individual language card ─────────────────────────── */
.lang-card-wrap {
    animation: cardIn .55s ease both;
}
.lang-card-wrap:nth-child(2) { animation-delay: .1s; }
.lang-card-wrap:nth-child(3) { animation-delay: .2s; }

.lang-card {
    background: #fff;
    border: 1.5px solid var(--sg-tint-border);
    border-radius: var(--sg-radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,58,89,.08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lang-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,58,89,.15);
    /*border-color: var(--color-primary);*/
}

/* Active/selected state */
.lang-card.active {
    border-color: var(--sg-brand-orange);
    box-shadow: 0 8px 32px rgba(186,104,39,.2);
}

.lang-card.active .lang-card-cta {
    background: var(--sg-brand-orange);
    color: #fff;
    border-color: var(--sg-brand-orange);
}

/* Flag area */
.lang-flag-area {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sg-tint-bg);
}

.lang-flag-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .5s ease;
    filter: brightness(0.95);
}

.lang-card:hover .lang-flag-area img {
    transform: scale(1.04);
}

/* Gradient overlay on flag */
.lang-flag-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0,58,89,.55) 100%
    );
    pointer-events: none;
}

/* Language badge floating on flag */
.lang-flag-badge {
    position: absolute;
    bottom: .9rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.lang-native-pill {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: .28rem .75rem;
    border-radius: var(--sg-radius-pill);
    letter-spacing: .03em;
}

.lang-count-pill {
    background: var(--sg-brand-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: .28rem .75rem;
    border-radius: var(--sg-radius-pill);
    letter-spacing: .03em;
    white-space: nowrap;
}

/* Card body */
.lang-card-body {
    padding: 1.6rem 1.75rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lang-card-lang-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: .2rem;
    line-height: 1.2;
}

.lang-card-native-name {
    font-size: 1.4rem;
    color: var(--sg-color-muted);
    font-weight: 500;
    margin-bottom: 1.1rem;
}

/* Divider */
.lang-card-divider {
    height: 1px;
    background: var(--sg-tint-border);
    margin-bottom: 1.1rem;
}

/* Feature list */
.lang-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.lang-features li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 13.5px;
    color: var(--sg-color-body);
    padding: .35rem 0;
    border-bottom: 1px solid var(--sg-tint-bg);
    font-weight: 500;
}

.lang-features li:last-child { border-bottom: none; }
.lang-features li i { color: var(--color-primary); font-size: 14px; flex-shrink: 0; }

/* CTA */
.lang-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: all .25s ease;
}


.lang-card-cta .cta-arrow {
    transition: transform .25s ease;
}

.lang-card:hover .lang-card-cta .cta-arrow {
    transform: translateX(4px);
}

/* ── Trust strip ──────────────────────────────────────── */
.lang-trust-strip {
    background: #fff;
    border-top: 1px solid var(--sg-tint-border);
    border-bottom: 1px solid var(--sg-tint-border);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    justify-content: center;
}

.trust-item i {
    font-size: 1.3rem;
    color: var(--sg-brand-orange);
}

.trust-item .trust-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-primary);
}

.trust-sep {
    color: var(--sg-tint-border);
    font-size: 1.2rem;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeDown {
    from { opacity:0; transform: translateY(-14px); }
    to   { opacity:1; transform: translateY(0); }
}

@keyframes cardIn {
    from { opacity:0; transform: translateY(24px); }
    to   { opacity:1; transform: translateY(0); }
}
/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991px) {
    .lang-cards-row { margin-top: -40px; }
}

@media (max-width: 767px) {
    .lang-hero { padding: 8% 0 10%; }
    .lang-cards-row { margin-top: -28px; }
    .trust-sep { display: none; }
}