/**
 * Home launchpad — stats-adjacent quick actions + top destinations
 */

/* —— Shared zone background —— */
.home-launchpad {
    position: relative;
    padding: 28px 0 8px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(226, 184, 74, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #f4f7fb 0%, #ffffff 40%, #f8fafc 100%);
}

.home-launchpad::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(12, 30, 58, 0.04) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.5;
}

.home-launchpad-inner {
    position: relative;
    z-index: 1;
}

/* —— Quick action cards —— */
.home-launchpad-quick {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .home-launchpad-quick {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.home-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 22px 22px 20px;
    min-height: 100%;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(12, 30, 58, 0.08);
    box-shadow:
        0 4px 24px rgba(12, 30, 58, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease;
}

.home-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    opacity: 1;
    transition: height 0.28s ease;
}

.home-action-card--explore::before {
    background: linear-gradient(90deg, var(--navy-deep), var(--blue));
}

.home-action-card--consult::before {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.home-action-card--blog::before {
    background: linear-gradient(90deg, #0e7490, #22d3ee);
}

.home-action-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.06;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.home-action-card--explore::after { background: var(--navy); }
.home-action-card--consult::after { background: var(--gold); }
.home-action-card--blog::after { background: #0e7490; }

.home-action-card:hover {
    transform: translateY(-6px);
    border-color: rgba(226, 184, 74, 0.35);
    box-shadow:
        0 16px 48px rgba(12, 30, 58, 0.12),
        0 0 0 1px rgba(226, 184, 74, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.home-action-card:hover::after {
    transform: scale(1.4);
    opacity: 0.1;
}

.home-action-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(12, 30, 58, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.home-action-card--explore .home-action-card-icon {
    background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue) 100%);
    color: var(--gold-light);
}

.home-action-card--consult .home-action-card-icon {
    background: linear-gradient(145deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-deep);
}

.home-action-card--blog .home-action-card-icon {
    background: linear-gradient(145deg, #0e7490 0%, #22d3ee 100%);
    color: #fff;
}

.home-action-card-body {
    flex: 1;
    padding-right: 36px;
}

.home-action-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(226, 184, 74, 0.12);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.home-action-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 8px;
    line-height: 1.25;
}

.home-action-card p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
}

.home-action-card-go {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: var(--pearl);
    color: var(--navy);
    border: 1px solid rgba(12, 30, 58, 0.08);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-action-card:hover .home-action-card-go {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: #fff;
    border-color: transparent;
    transform: translateX(3px);
    box-shadow: 0 6px 16px rgba(12, 30, 58, 0.25);
}

.home-action-card--consult:hover .home-action-card-go {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-deep);
}

/* —— Destinations panel —— */
.home-launchpad-destinations {
    padding: 20px 0 36px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    margin-top: 0 !important;
}

.home-destinations-panel {
    padding: 28px 28px 24px !important;
    border-radius: 24px !important;
    background:
        linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(12, 30, 58, 0.08) !important;
    box-shadow:
        0 8px 40px rgba(12, 30, 58, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    position: relative;
    overflow: hidden;
}

.home-destinations-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-deep), var(--gold), var(--blue));
}

.home-destinations-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px !important;
}

.home-destinations-head-left {
    flex: 1;
    min-width: 200px;
}

.home-destinations-head .section-pill {
    margin-bottom: 10px;
}

.home-destinations-head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    text-align: left;
}

.home-destinations-sub {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

.home-destinations-all {
    flex-shrink: 0;
    white-space: nowrap;
}

/* —— Flag chips —— */
.home-destinations-flags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .home-destinations-flags {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .home-destinations-flags {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

.home-dest-flag-chip {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px 14px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(12, 30, 58, 0.07) !important;
    box-shadow: 0 2px 12px rgba(12, 30, 58, 0.05) !important;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.25s ease !important;
    text-decoration: none;
    gap: 8px;
}

.home-dest-flag-chip:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(226, 184, 74, 0.45) !important;
    box-shadow:
        0 12px 32px rgba(12, 30, 58, 0.1),
        0 0 0 1px rgba(226, 184, 74, 0.15) !important;
}

.home-dest-flag-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border: 2px solid rgba(226, 184, 74, 0.25);
    box-shadow: 0 4px 12px rgba(12, 30, 58, 0.08);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-dest-flag-chip:hover .home-dest-flag-ring {
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(226, 184, 74, 0.25);
}

.home-dest-flag-ring img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.home-dest-flag-chip strong {
    font-size: 0.9rem !important;
    color: var(--navy) !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

.home-dest-flag-chip em {
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.home-dest-flag-chip:hover em {
    color: var(--gold);
}

/* Mobile polish */
@media (max-width: 575px) {
    .home-launchpad {
        padding: 20px 0 4px;
    }

    .home-action-card {
        padding: 18px 18px 16px;
    }

    .home-destinations-panel {
        padding: 22px 18px 18px !important;
    }

    .home-destinations-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
