/* =========================================================================
   JobPortal — Design System
   A career platform's job is to feel credible: this system leans on an
   ink-navy + brass palette (trust, permanence) with a serif display face
   for editorial weight, set against a warm paper background rather than
   a stark white SaaS canvas.
   ========================================================================= */

:root {
    /* Color */
    --navy-950: #0A1730;
    --navy-900: #0E2148;
    --navy-800: #163564;
    --navy-700: #204685;
    --brass-500: #C8862B;
    --brass-400: #DFA24C;
    --brass-100: #FBEED9;
    --paper: #F6F3EC;
    --paper-dim: #EFEAE0;
    --white: #FFFFFF;
    --ink: #182131;
    --ink-soft: #4A5262;
    --slate: #6B7383;
    --line: #E4DFD2;
    --line-on-navy: rgba(255, 255, 255, 0.14);
    --green-live: #1C7C4D;
    --green-live-bg: #E7F3EC;
    --red-soft: #B4402A;

    /* Type */
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shape & motion */
    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 22px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .18);
    --shadow-lift: 0 16px 40px -16px rgba(10, 23, 48, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy-950);
    margin: 0 0 .5em;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--brass-500);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    transition: transform .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}

.btn-primary {
    background: var(--brass-500);
    color: var(--navy-950);
}
.btn-primary:hover { background: var(--brass-400); }

.btn-outline {
    background: transparent;
    border-color: var(--navy-900);
    color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: var(--white); }

.btn-ghost {
    background: transparent;
    color: var(--navy-900);
    min-height: auto;
    padding: 0 6px;
}
.btn-ghost:hover { color: var(--brass-500); }

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }

/* On dark backgrounds, outline/ghost need light ink */
.site-header .btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.site-header .btn-ghost { color: var(--navy-900); }


/* =========================================================================
   Header / Nav
   ========================================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 600;
    color: var(--navy-950);
    flex-shrink: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--navy-950);
    color: var(--brass-400);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-weight: 500;
    font-size: .96rem;
    color: var(--ink);
}

.main-nav > a:hover { color: var(--brass-500); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--navy-950);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }


/* =========================================================================
   Hero
   ========================================================================= */

.hero {
    position: relative;
    background: radial-gradient(120% 160% at 15% -10%, var(--navy-700), var(--navy-950) 60%);
    color: var(--white);
    padding: 68px 0 96px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.09) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(to bottom right, black, transparent 65%);
            mask-image: linear-gradient(to bottom right, black, transparent 65%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--line-on-navy);
    font-size: .85rem;
    font-weight: 500;
    color: var(--brass-400);
    margin-bottom: 22px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    font-weight: 600;
    max-width: 14ch;
}

.hero h1 span { color: var(--brass-400); font-style: italic; }

.hero-sub {
    color: rgba(255,255,255,.72);
    font-size: 1.08rem;
    max-width: 46ch;
    margin-bottom: 32px;
}

.search-box {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius-m);
    padding: 8px;
    gap: 6px;
    box-shadow: var(--shadow-lift);
    max-width: 640px;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-right: 1px solid var(--line);
    min-width: 0;
}
.search-field:last-of-type { border-right: none; }

.search-field svg { width: 18px; height: 18px; color: var(--slate); flex-shrink: 0; }

.search-field input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: .94rem;
    width: 100%;
    color: var(--ink);
    background: transparent;
}
.search-field input::placeholder { color: var(--slate); }

.search-box .btn { flex-shrink: 0; }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-size: .88rem;
    color: rgba(255,255,255,.6);
}

.hero-tags .pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-on-navy);
    color: rgba(255,255,255,.88);
    transition: border-color .15s var(--ease), color .15s var(--ease);
}
.hero-tags .pill:hover { border-color: var(--brass-400); color: var(--brass-400); }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line-on-navy);
}

.hero-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brass-400);
    font-weight: 600;
}

.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.6); }

/* Badge card visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 380px;
}

.id-badge {
    position: relative;
    width: 260px;
    background: var(--white);
    border-radius: var(--radius-l);
    padding: 26px 24px 24px;
    box-shadow: var(--shadow-lift);
    transform: rotate(-4deg);
    animation: badge-settle .7s var(--ease) both;
}

@keyframes badge-settle {
    from { opacity: 0; transform: rotate(-4deg) translateY(18px); }
    to { opacity: 1; transform: rotate(-4deg) translateY(0); }
}

.id-badge::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 14px;
    background: var(--navy-800);
    border-radius: 4px;
}

.id-badge-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--brass-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 6px auto 14px;
}

.id-badge h4 {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.id-badge p {
    text-align: center;
    font-size: .82rem;
    color: var(--slate);
    margin-bottom: 16px;
}

.id-badge-verified {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--green-live);
    background: var(--green-live-bg);
    border-radius: 999px;
    padding: 6px 0;
    margin-bottom: 16px;
}
.id-badge-verified svg { width: 14px; height: 14px; }

.id-badge-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
}
.id-badge-bars span { flex: 1; background: var(--paper-dim); border-radius: 1px; }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border-radius: 999px;
    padding: 9px 16px 9px 9px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow-lift);
}

.float-card .dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .78rem;
}

.float-card.c1 { top: 8%; right: 2%; animation: badge-settle .7s .15s var(--ease) both; }
.float-card.c2 { bottom: 10%; left: -4%; animation: badge-settle .7s .3s var(--ease) both; }


/* =========================================================================
   Trust strip
   ========================================================================= */

.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
}

.trust-strip p {
    text-align: center;
    font-size: .82rem;
    color: var(--slate);
    margin-bottom: 16px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--navy-800);
    opacity: .55;
}


/* =========================================================================
   Section shell / headings
   ========================================================================= */

.section { padding: 84px 0; }

.section-head {
    max-width: 620px;
    margin: 0 0 42px;
}

.eyebrow {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--brass-500);
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
}


/* =========================================================================
   Categories
   ========================================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}

.category-card:hover {
    border-color: var(--brass-400);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-s);
    background: var(--brass-100);
    color: var(--brass-500);
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-icon svg { width: 22px; height: 22px; }

.category-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.category-card p { font-size: .85rem; color: var(--slate); margin: 0; }


/* =========================================================================
   Chips
   ========================================================================= */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: border-color .15s var(--ease), color .15s var(--ease);
}
.chip:hover { border-color: var(--navy-900); color: var(--navy-950); }


/* =========================================================================
   Steps (genuinely sequential — numbered by design)
   ========================================================================= */

.steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 54px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--line);
    z-index: 0;
}

.step-card { position: relative; z-index: 1; }

.step-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--navy-950);
    width: fit-content;
    margin-bottom: 14px;
}

.step-card h3 { font-size: 1.08rem; }
.step-card p { font-size: .93rem; margin: 0; }


/* =========================================================================
   Job listings — dense rows, not a card grid
   ========================================================================= */

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.job-row:hover { border-color: var(--navy-800); box-shadow: var(--shadow-card); }

.job-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-s);
    background: var(--navy-950);
    color: var(--brass-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.job-main { flex: 1; min-width: 0; }

.job-title {
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--navy-950);
    margin-bottom: 3px;
}

.job-company {
    font-size: .9rem;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    color: var(--slate);
}
.job-meta svg { width: 15px; height: 15px; flex-shrink: 0; }

.job-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

.job-salary {
    font-weight: 600;
    color: var(--navy-950);
    font-size: .96rem;
}

.job-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--green-live);
}
.job-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-live);
}


/* =========================================================================
   CTA banner
   ========================================================================= */

.cta-banner {
    background: var(--navy-950);
    border-radius: var(--radius-l);
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid var(--line-on-navy);
}

.cta-banner h2 { color: var(--white); max-width: 16ch; position: relative; }
.cta-banner p { color: rgba(255,255,255,.68); max-width: 40ch; margin: 0; position: relative; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--navy-950); }


/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
    background: var(--navy-950);
    color: rgba(255,255,255,.62);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-on-navy);
}

.footer-brand .logo { color: var(--white); }
.footer-brand .logo-mark { background: var(--brass-400); color: var(--navy-950); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; margin: 14px 0 18px; max-width: 30ch; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.75);
    transition: background-color .15s var(--ease);
}
.footer-social a:hover { background: var(--brass-500); color: var(--navy-950); }
.footer-social svg { width: 16px; height: 16px; }

.site-footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.site-footer ul li { margin-bottom: 11px; }
.site-footer ul a { font-size: .88rem; color: rgba(255,255,255,.6); }
.site-footer ul a:hover { color: var(--brass-400); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 0;
    font-size: .82rem;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--brass-400); }


/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { min-height: 260px; order: -1; }
    .id-badge { transform: rotate(-2deg) scale(.9); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        inset: 74px 0 0 0;
        background: var(--paper);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        transform: translateX(100%);
        transition: transform .25s var(--ease);
        overflow-y: auto;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav > a {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }
    .nav-actions {
        margin: 20px 0 0;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-actions .btn { width: 100%; }

    .steps-grid { grid-template-columns: 1fr; gap: 30px; }
    .steps-grid::before { display: none; }

    .job-row { flex-wrap: wrap; }
    .job-side { flex-direction: row; align-items: center; margin-left: auto; }
}

@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .hero { padding: 44px 0 64px; }
    .search-box { flex-direction: column; padding: 10px; }
    .search-field { border-right: none; border-bottom: 1px solid var(--line); padding: 12px 6px; }
    .search-field:last-of-type { border-bottom: none; }
    .search-box .btn { margin-top: 4px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .category-card { padding: 18px; }
    .cta-banner { padding: 36px 24px; text-align: left; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .hero h1 { max-width: none; }
    .category-grid { grid-template-columns: 1fr; }
    .job-row { padding: 18px; }
}
