/* ============================================
   Home landing — Chalkwell Recruitment
   ============================================ */

.hm-page {
    --hm-ink: var(--navy);
    --hm-accent: var(--primary-blue);
    --hm-soft: var(--light-blue);
    --hm-muted: var(--text-muted);
    --hm-line: rgba(10, 17, 40, 0.08);
    background: #f7f9fc;
    color: var(--hm-ink);
}

/* Hero */
.hm-hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: flex-end;
    padding: 96px 0 72px;
    overflow: hidden;
    color: #fff;
}

.hm-hero-media,
.hm-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hm-hero-media img {
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.04);
    animation: hmKen 18s ease-out forwards;
}

@keyframes hmKen {
    from { transform: scale(1.08); }
    to { transform: scale(1.02); }
}

.hm-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(5, 12, 32, 0.92) 0%, rgba(8, 18, 48, 0.78) 42%, rgba(10, 17, 40, 0.45) 100%),
        linear-gradient(0deg, rgba(5, 12, 32, 0.55) 0%, transparent 45%);
}

.hm-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    animation: hmRise 0.7s ease both;
}

@keyframes hmRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hm-brand {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
}

.hm-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.hm-hero-lead {
    margin: 0 0 28px;
    max-width: 520px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 767px) {
    .hm-hero-lead {
        font-size: 0.88rem;
        line-height: 1.5;
        max-width: 34rem;
        margin-bottom: 22px;
        color: rgba(255, 255, 255, 0.82);
    }
}

.hm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hm-btn:hover {
    transform: translateY(-1px);
}

.hm-btn-primary {
    background: var(--hm-accent);
    color: #fff;
}

.hm-btn-primary:hover {
    background: var(--primary-blue-hover);
    color: #fff;
}

.hm-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hm-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* Hero CTAs — oversized and high-contrast */
.hm-hero .hm-btn-hero {
    min-width: min(240px, 100%);
    padding: 18px 34px;
    border-radius: 16px;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    gap: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.hm-hero .hm-btn-hero i {
    font-size: 1.25em;
    line-height: 1;
}

.hm-hero .hm-btn-primary.hm-btn-hero {
    background: linear-gradient(135deg, #0056D2 0%, #1D7AE8 55%, #38BDF8 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 16px 40px rgba(0, 86, 210, 0.55),
        0 0 0 4px rgba(0, 86, 210, 0.22);
    animation: hmBtnPulse 2.4s ease-in-out infinite;
}

.hm-hero .hm-btn-primary.hm-btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #0047B0 0%, #0066E6 55%, #0EA5E9 100%);
    box-shadow:
        0 20px 48px rgba(0, 86, 210, 0.65),
        0 0 0 5px rgba(56, 189, 248, 0.28);
    color: #fff;
    animation: none;
}

.hm-hero .hm-btn-ghost.hm-btn-hero {
    background: #fff;
    border-color: #fff;
    color: #0A1128;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 0 4px rgba(255, 255, 255, 0.18);
}

.hm-hero .hm-btn-ghost.hm-btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    background: #F8FAFC;
    color: #0056D2;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.4),
        0 0 0 5px rgba(255, 255, 255, 0.28);
}

@keyframes hmBtnPulse {
    0%, 100% {
        box-shadow:
            0 16px 40px rgba(0, 86, 210, 0.55),
            0 0 0 4px rgba(0, 86, 210, 0.22);
    }
    50% {
        box-shadow:
            0 18px 46px rgba(0, 86, 210, 0.7),
            0 0 0 8px rgba(56, 189, 248, 0.2);
    }
}

.hm-btn-outline {
    background: #fff;
    border-color: var(--hm-line);
    color: var(--hm-ink);
}

.hm-btn-outline:hover {
    border-color: rgba(0, 86, 210, 0.35);
    color: var(--hm-accent);
}

/* Paths */
.hm-paths {
    padding: 72px 0 40px;
    background: #fff;
}

.hm-section-intro {
    max-width: 560px;
    margin-bottom: 28px;
}

.hm-section-intro-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hm-section-intro h2,
.hm-jobs-head h2,
.hm-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hm-ink);
}

.hm-section-intro p,
.hm-jobs-head p {
    margin: 0;
    color: var(--hm-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.hm-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hm-path {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 14px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--hm-line);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hm-path:hover {
    border-color: rgba(0, 86, 210, 0.28);
    box-shadow: 0 14px 36px rgba(10, 17, 40, 0.08);
    transform: translateY(-2px);
    color: inherit;
}

.hm-path-employer {
    background: linear-gradient(180deg, #fff 0%, #f4f8f5 100%);
}

.hm-path-icon {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--hm-soft);
    color: var(--hm-accent);
    font-size: 1.35rem;
}

.hm-path-employer .hm-path-icon {
    background: #e8f5ee;
    color: #0f766e;
}

.hm-path-copy h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hm-path-copy p {
    margin: 0;
    color: var(--hm-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hm-path-cta {
    grid-column: 2;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--hm-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hm-path-employer .hm-path-cta {
    color: #0f766e;
}

/* Featured jobs */
.hm-jobs {
    background:
        linear-gradient(180deg, #c5d4eb 0%, #b4c6e4 55%, #a8bddc 100%);
    border-block: 1px solid rgba(10, 17, 40, 0.08);
}

.hm-jobs-head h2,
.hm-jobs-head p {
    color: var(--hm-ink);
}

.hm-jobs .hm-text-link {
    color: #003d99;
}

.hm-jobs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hm-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--hm-accent);
    text-decoration: none;
    white-space: nowrap;
}

.hm-jobs .featured-jobs-tabs {
    margin-bottom: 20px;
}

.hm-jobs .featured-jobs-more {
    margin-top: 24px;
    text-align: center;
}

.hm-jobs .job-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--hm-line);
    box-shadow: 0 8px 24px rgba(10, 17, 40, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-jobs .job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(10, 17, 40, 0.1);
}

/* Trust */
.hm-trust {
    padding: 72px 0;
    background: #fff;
}

.hm-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.hm-trust-item {
    padding: 8px 4px;
}

.hm-trust-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--hm-soft);
    color: var(--hm-accent);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.hm-trust-item h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hm-trust-item p {
    margin: 0;
    color: var(--hm-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hm-trust-metrics {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--hm-line);
    justify-content: center;
}

.hm-trust-metrics strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--hm-ink);
    line-height: 1.1;
}

.hm-trust-metrics span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hm-muted);
}

/* CTA */
.hm-cta {
    padding: 28px 0 80px;
    background: #fff;
}

.hm-cta-inner {
    border-radius: 24px;
    padding: 56px 32px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(74, 144, 226, 0.22), transparent 36%),
        radial-gradient(circle at 85% 0%, rgba(0, 86, 210, 0.28), transparent 34%),
        linear-gradient(145deg, #050f2c 0%, #0a1128 48%, #12356d 100%);
    color: #fff;
    box-shadow: 0 20px 48px rgba(10, 17, 40, 0.18);
}

.hm-cta-inner h2 {
    color: #fff;
    margin-bottom: 12px;
}

.hm-cta-inner p {
    margin: 0 auto 26px;
    max-width: 480px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.02rem;
    line-height: 1.6;
}

.hm-cta .hm-hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

/* Signup choice modal */
.hm-signup-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hm-signup-modal[hidden] {
    display: none !important;
}

.hm-signup-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 44, 0.55);
    backdrop-filter: blur(4px);
}

.hm-signup-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    border-radius: 22px;
    background: #fff;
    padding: 32px 28px 28px;
    box-shadow: 0 28px 64px rgba(10, 17, 40, 0.28);
    animation: hmSignupModalIn 0.22s ease;
}

@keyframes hmSignupModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hm-signup-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.hm-signup-modal-close:hover {
    background: #E2E8F0;
    color: #0A1128;
}

.hm-signup-modal-header {
    text-align: center;
    margin-bottom: 22px;
    padding-right: 20px;
}

.hm-signup-modal-eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0056D2;
}

.hm-signup-modal-header h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0A1128;
}

.hm-signup-modal-header p {
    margin: 0 auto;
    max-width: 360px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #64748B;
}

.hm-signup-modal-options {
    display: grid;
    gap: 12px;
}

.hm-signup-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.hm-signup-option:hover {
    border-color: #93C5FD;
    background: #F8FBFF;
    box-shadow: 0 10px 24px rgba(0, 86, 210, 0.08);
    transform: translateY(-1px);
    color: inherit;
}

.hm-signup-option.employer:hover {
    border-color: #86EFAC;
    background: #F7FDF9;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.08);
}

.hm-signup-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hm-signup-option-icon.seeker {
    background: #E8F1FC;
    color: #0056D2;
}

.hm-signup-option-icon.employer {
    background: #E8F5E9;
    color: #15803D;
}

.hm-signup-option-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hm-signup-option-copy strong {
    font-size: 1rem;
    font-weight: 800;
    color: #0A1128;
}

.hm-signup-option-copy span {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #64748B;
}

.hm-signup-option-arrow {
    color: #94A3B8;
    font-size: 1rem;
}

.hm-signup-option:hover .hm-signup-option-arrow {
    color: #0056D2;
}

.hm-signup-option.employer:hover .hm-signup-option-arrow {
    color: #15803D;
}

body.hm-signup-modal-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .hm-hero {
        min-height: auto;
        padding: 72px 0 56px;
        align-items: center;
    }

    .hm-path-grid,
    .hm-trust-grid {
        grid-template-columns: 1fr;
    }

    .hm-path {
        grid-template-columns: auto 1fr;
    }
}

@media (max-width: 767px) {
    .hm-hero {
        padding: 56px 0 48px;
    }

    .hm-hero-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hm-hero-lead {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .hm-hero-actions {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }

    .hm-hero .hm-btn-hero {
        width: 100%;
        min-width: 0;
        padding: 16px 24px;
        font-size: 1.08rem;
    }

    .hm-paths,
    .hm-trust {
        padding: 56px 0;
    }

    .hm-cta-inner {
        padding: 40px 20px;
        border-radius: 18px;
    }

    .hm-signup-modal-dialog {
        padding: 28px 18px 20px;
        border-radius: 18px;
    }

    .hm-signup-option {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .hm-signup-option-arrow {
        display: none;
    }


    .hm-path-icon {
        grid-row: auto;
    }

    .hm-path {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
    }

    .hm-path-cta {
        grid-column: 1 / -1;
    }
}
