/* =====================================================================
   ShiftMint — home page (legacy hero layout).
   Two-column hero: copy + CTAs on the left, hero image + floating card
   on the right. Adapted from web-application/views/home/hero.php.
   ===================================================================== */

/* ---- Hero section ----------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: clamp(3.5rem, 7vw, 7.5rem) 0 clamp(4rem, 8vw, 8rem);
    background: linear-gradient(135deg, #fff0f5 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem 4rem;
    }
}

/* ---- Copy column ------------------------------------------------------------ */
.hero-content {
    min-width: 0;
}

.hero-badge {
    display: inline-block;
    padding: .4rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--brand);
    background: rgba(255, 86, 141, 0.12);
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3rem);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.hero-title span { color: var(--brand); }

.hero-section .hero-tagline {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.65;
    margin: 0 0 1.75rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

/* ---- Visual column ---------------------------------------------------------- */
.hero-visual {
    position: relative;
    max-width: 100%;
    margin-left: auto;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.hero-floating-card {
    position: absolute;
    left: 12%;
    bottom: -30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.hero-floating-card__label {
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-section {
        padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5rem);
        text-align: center;
    }

    .hero-copy {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin: 1.5rem auto 0;
        max-width: 520px;
    }

    /* Hidden on tablet/mobile — overlaps hero image when layout stacks */
    .hero-floating-card {
        display: none;
    }
}

@media (max-width: 560px) {
    .hero-actions .btn {
        width: 100%;
    }
}

/* =====================================================================
   Shared home helpers
   ===================================================================== */
.home-icon,
.home-icon--inline { display: inline-flex; }
.home-icon--inline svg { width: 1.05em; height: 1.05em; }

/* Feature icon badge (About cards + Why cards) */
.home-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: none;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
}
.home-feature__icon svg { width: 1.5rem; height: 1.5rem; }
.home-feature__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0 0 .35rem; }
.home-feature__text { font-size: .96rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* =====================================================================
   About / Who are we
   ===================================================================== */
.home-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 992px) {
    .home-about__grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
}
.home-about .section-head__title { margin-bottom: 1rem; }
.home-about__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 1.75rem;
    max-width: 48ch;
}
.home-about__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 1.75rem;
}
.home-about__stat { display: flex; flex-direction: column; }
.home-about__stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -.02em;
}
.home-about__stat-label {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .35rem;
    max-width: 12ch;
}

.home-about__cards { display: flex; flex-direction: column; gap: 1rem; }
.home-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.35rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.home-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9dee6; }

/* =====================================================================
   Why choose ShiftMint
   ===================================================================== */
.home-why__grid { margin-bottom: 2rem; }
.home-why__card {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.home-why__card .home-feature__icon { margin-bottom: .25rem; }

.home-why__promos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .home-why__promos { grid-template-columns: repeat(2, 1fr); }
}
.home-promo {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius);
    color: #fff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.home-promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-promo--worker { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }
.home-promo--employer { background: linear-gradient(135deg, #1f2937 0%, #374151 100%); }
.home-promo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    flex: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.home-promo__icon svg { width: 1.4rem; height: 1.4rem; }
.home-promo__body { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.home-promo__title { font-weight: 700; font-size: 1.08rem; }
.home-promo__text { font-size: .9rem; opacity: .9; line-height: 1.4; }
.home-promo__arrow {
    display: inline-flex;
    flex: none;
    color: #fff;
    transition: transform .15s ease;
}
.home-promo__arrow svg { width: 1.25rem; height: 1.25rem; }
.home-promo:hover .home-promo__arrow { transform: translateX(4px); }

/* =====================================================================
   Find jobs / solutions
   ===================================================================== */
.home-solutions__grid { align-items: stretch; }

.home-solution {
    --accent: var(--brand);
    --accent-light: var(--brand-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-solution::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.home-solution:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.home-solution:hover::before { transform: scaleX(1); }
.home-solution--workers { --accent: #6366f1; --accent-light: #8b5cf6; }
.home-solution--parties { --accent: #f59e0b; --accent-light: #fbbf24; }

.home-solution__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
}
.home-solution__icon svg { width: 1.5rem; height: 1.5rem; }
.home-solution__title {
    margin: 0 0 .65rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}
.home-solution__text {
    margin: 0 0 1.25rem;
    flex: 1;
    font-size: .96rem;
    line-height: 1.6;
    color: var(--ink-soft);
}
.home-solution__link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .92rem;
    font-weight: 700;
    color: var(--accent);
}
.home-solution:hover .home-solution__link .home-icon { transform: translateX(3px); }
.home-solution__link .home-icon { transition: transform .15s ease; }

/* =====================================================================
   Clients / scrolling logos
   ===================================================================== */
.home-clients .section-head { margin-bottom: 2rem; }

.home-clients__marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-clients__track {
    display: flex;
    width: max-content;
    animation: home-clients-scroll 40s linear infinite;
}
.home-clients__track:hover { animation-play-state: paused; }

.home-clients__logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0 0.625rem;
}

.home-clients__logo {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    height: 4.5rem;
    padding: 0 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.home-clients__logo img {
    display: block;
    max-width: 8.5rem;
    max-height: 2.75rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes home-clients-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .home-clients__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 1rem;
        padding: 0 1.5rem;
    }
    .home-clients__marquee { mask-image: none; -webkit-mask-image: none; }
    .home-clients__logos:last-child { display: none; }
}

/* =====================================================================
   Blog teaser
   ===================================================================== */
.home-blog__actions { margin-top: 2.5rem; text-align: center; }
