/* =========================================================
   Indivation — public site styles
   When the final design lands, this is the only file that changes.
   ========================================================= */

:root {
    --bg:        #0a0a0c;
    --bg-alt:    #111114;
    --surface:   #16161a;
    --border:    #26262c;
    --text:      #f2f2f4;
    --muted:     #9a9aa4;
    --accent:    #ff5a1f;
    --accent-dk: #e04a12;
    --radius:    14px;
    --max:       1140px;
    --font:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted  { color: var(--muted); }
.small  { font-size: .85rem; }
.center { text-align: center; }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 .5em; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    color: var(--accent);
    margin: 0 0 .8em;
}
.lead { font-size: 1.05rem; color: var(--muted); max-width: 60ch; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,10,12,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.01em; }
.logo-mark { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav-link { font-size: .9rem; color: var(--muted); transition: color .15s; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active { position: relative; }
.nav-link.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--accent); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.3rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border: 1px solid transparent; border-radius: 999px;
    font-size: .92rem; font-weight: 600; cursor: pointer; transition: .15s;
    font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); }
.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 8px 16px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.site-main { min-height: 60vh; }
.hero { padding: 110px 0 90px; text-align: center; background: radial-gradient(60% 60% at 50% 0%, #1a1015 0%, var(--bg) 70%); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.hero .lead { margin: 0 auto; }
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.page-head { padding: 64px 0 28px; border-bottom: 1px solid var(--border); }
.page-head .job-meta { margin-top: 16px; }
.back-link { color: var(--muted); font-size: .88rem; display: inline-block; margin-bottom: 14px; }
.back-link:hover { color: var(--accent); }

/* ---------- Cards / tags ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tag {
    font-size: .76rem; padding: 4px 11px; border-radius: 999px;
    background: #1e1e24; border: 1px solid var(--border); color: var(--muted);
}

/* ---------- Careers ---------- */
/* Filters stay pinned under the fixed nav while the job list scrolls. */
.filters {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px;
    position: sticky; top: 76px; z-index: 40;
    background: var(--bg);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.filters input, .filters select {
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    padding: 10px 14px; border-radius: 10px; font-family: inherit; font-size: .9rem; min-width: 170px;
}
.result-count { margin: 0 0 14px; }
.job-list { display: grid; gap: 14px; }
.job-card { display: flex; justify-content: space-between; gap: 28px; align-items: center; transition: border-color .15s; }
.job-card:hover { border-color: var(--accent); }
.job-card h3 { margin-bottom: 10px; font-size: 1.22rem; }
.job-card h3 a:hover { color: var(--accent); }
.job-card__side { display: flex; align-items: center; gap: 20px; white-space: nowrap; }

/* Icon meta row (location / department / experience / type / date) */
.job-meta {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
}
.job-meta li { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--muted); }
.job-meta .icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--accent); }

.text-link { font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.text-link:hover { color: var(--accent); }
.empty { text-align: center; padding: 60px 20px; }

.job-detail { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.job-detail__body h2 { margin-top: 32px; font-size: 1.25rem; }
.job-detail__body h2:first-child { margin-top: 0; }
/* Formatted description coming from the HR editor */
.rich-text { color: var(--muted); }
.rich-text p { margin: 0 0 1em; }
.rich-text h3 { color: var(--text); font-size: 1.05rem; margin: 1.6em 0 .5em; }
.rich-text h4 { color: var(--text); font-size: .96rem; margin: 1.3em 0 .4em; }
.rich-text ul, .rich-text ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.rich-text li { margin-bottom: .45em; }
.rich-text ul { list-style: none; padding-left: 0; }
.rich-text ul li { position: relative; padding-left: 20px; }
.rich-text ul li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.rich-text strong { color: var(--text); }
.rich-text a { color: var(--accent); text-decoration: underline; }
.rich-text blockquote {
    margin: 0 0 1.1em; padding: 2px 0 2px 16px;
    border-left: 3px solid var(--accent); color: var(--muted);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: .86rem; color: var(--muted); }
.form input, .form textarea, .form select {
    background: #101013; border: 1px solid var(--border); color: var(--text);
    padding: 11px 14px; border-radius: 10px; font-family: inherit; font-size: .95rem; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus {
    outline: none; border-color: var(--accent);
}
.form textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.careers-teaser { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Alerts ---------- */
.alert {
    max-width: var(--max); margin: 16px auto; padding: 13px 18px;
    border-radius: 10px; font-size: .92rem; border: 1px solid;
}
.alert--success { background: #10241a; border-color: #1f6f45; color: #8ff0bb; }
.alert--error   { background: #2a1315; border-color: #7a2a2f; color: #ffb3b8; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; top: 96px; right: 24px; z-index: 1200;
    display: flex; align-items: center; gap: 14px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 13px 16px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-size: .92rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
    animation: toastIn .3s cubic-bezier(.16, 1, .3, 1) both;
}
.toast--warn { border-color: var(--accent); }
.toast.is-hiding { animation: toastOut .3s ease forwards; }
.toast__close {
    background: none; border: 0; color: var(--muted); cursor: pointer;
    font-size: 1.2rem; line-height: 1; padding: 0 2px; margin-left: auto;
    font-family: inherit;
}
.toast__close:hover { color: var(--text); }

@keyframes toastIn  { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
    .toast, .toast.is-hiding { animation: none; }
}

@media (max-width: 760px) {
    .toast { top: 84px; right: 16px; left: 16px; max-width: none; }
}

/* ---------- Footer ----------
   Lives in assets/css/footer.css — shared by every public page. */

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .job-detail, .contact-grid { grid-template-columns: 1fr; }
    .filters { top: 68px; }   /* nav is shorter on mobile */
}
@media (max-width: 760px) {
    .nav {
        display: none; position: absolute; top: 66px; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 10px 20px 18px;
        background: var(--bg-alt); border-bottom: 1px solid var(--border);
    }
    .nav.is-open { display: flex; }
    .nav-link { padding: 11px 0; border-bottom: 1px solid var(--border); }
    .nav-link.is-active::after { display: none; }
    .nav-toggle { display: block; }
    .job-card { flex-direction: column; align-items: flex-start; }
    .job-card__side { width: 100%; justify-content: space-between; }
    .job-meta { gap: 8px 16px; }
}
