/* =============================================================
   JobCall Australia — style.css
   Clean Australian professional utility-site styling.
   Mobile-first, plain CSS, no frameworks, no web fonts.
   ============================================================= */

:root {
    --navy:      #0F2742;
    --navy-700:  #163356;
    --slate:     #334155;
    --slate-500: #475569;
    --slate-400: #64748B;
    --grey-50:   #F8FAFC;
    --grey-100:  #F1F5F9;
    --border:    #E2E8F0;
    --blue:      #2563EB;
    --blue-700:  #1D4ED8;
    --green:     #0F766E;
    --green-700: #0B5C56;
    --white:     #FFFFFF;
    --ink:       #1E293B;

    --radius:    8px;
    --radius-sm: 6px;
    --shadow:    0 1px 2px rgba(15, 39, 66, 0.06), 0 1px 3px rgba(15, 39, 66, 0.08);
    --container: 1080px;
    --gap:       1.25rem;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
            "Helvetica Neue", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
}
h1 { font-size: 1.85rem; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.muted { color: var(--slate-400); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.1rem;
}
.container--narrow { max-width: 760px; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.95rem; }

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

.btn--green { background: var(--green); color: #fff; border-color: var(--green); }
.btn--green:hover { background: var(--green-700); border-color: var(--green-700); }

.btn--ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { background: var(--grey-50); }

.btn--subtle { background: var(--grey-100); color: var(--slate); border-color: var(--border); }
.btn--subtle:hover { background: var(--border); }

/* ---------- Header / nav ---------- */
.site-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand__logo {
    display: block;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 8px;
}
.brand__name { color: #fff; }
.brand__tld { color: #9DB4CE; font-weight: 600; }

.nav-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle__bar { width: 22px; height: 2px; background: #fff; display: block; }

.primary-nav { display: none; }
.primary-nav.is-open { display: block; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.9rem;
}
.primary-nav li { margin: 0; }
.primary-nav a {
    display: block;
    color: #E8EEF6;
    padding: 0.65rem 0.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.primary-nav a:hover { color: #fff; text-decoration: none; }
.primary-nav a[aria-current="page"] { color: #fff; font-weight: 700; }

@media (min-width: 800px) {
    .nav-toggle { display: none; }
    .primary-nav { display: block; }
    .primary-nav ul { display: flex; gap: 0.4rem; padding: 0; }
    .primary-nav a { border: 0; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm); }
    .primary-nav a:hover { background: var(--navy-700); }
    .primary-nav a[aria-current="page"] { background: var(--navy-700); }
}
@media (max-width: 799px) {
    .primary-nav {
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: var(--navy);
        padding: 0 1.1rem;
        box-shadow: var(--shadow);
    }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
    color: #fff;
    padding: 3rem 0 3.25rem;
}
.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9DB4CE;
    margin-bottom: 0.6rem;
}
.hero__title { color: #fff; font-size: 2rem; max-width: 18ch; }
.hero__lead { color: #D7E0EC; font-size: 1.08rem; max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 1.25rem; }
.hero__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    color: #C4D2E2;
    font-size: 0.95rem;
}
.hero__points li { position: relative; padding-left: 1.3rem; }
.hero__points li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ADE80;
}

/* Split layout: text first, mockup below on mobile; side-by-side on desktop. */
.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.hero__copy { min-width: 0; }
.hero__visual { width: 100%; }

@media (min-width: 700px) {
    .hero { padding: 4rem 0 4.25rem; }
    .hero__title { font-size: 2.6rem; }
}
@media (min-width: 860px) {
    .hero__inner {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }
    .hero__copy { flex: 1 1 54%; }
    .hero__visual { flex: 1 1 46%; display: flex; justify-content: flex-end; }
    .hero__title { max-width: 16ch; }
}

/* ---------- Hero mockup card (pure CSS, no images) ---------- */
.mock-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(8, 22, 40, 0.28);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
    color: var(--slate);
}
.mock-card__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--grey-50);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 0.9rem;
}
.mock-card__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--green);
    flex: none;
}
.mock-card__title { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.mock-card__body { padding: 1rem 1.1rem 1.2rem; }

.mock-field { display: block; margin-bottom: 0.7rem; }
.mock-field--row { display: flex; gap: 0.6rem; margin-bottom: 0.7rem; }
.mock-field--row .mock-field { flex: 1; margin-bottom: 0; }
.mock-field__label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--slate-400); margin-bottom: 0.25rem; }
.mock-field__control {
    display: block;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    color: var(--ink);
}
.mock-output {
    margin-top: 0.9rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: 8px;
    background: var(--grey-50);
    padding: 0.8rem 0.9rem 0.95rem;
}
.mock-output__label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green); margin-bottom: 0.4rem; }
.mock-output__text { font-size: 0.86rem; line-height: 1.55; color: var(--slate); margin: 0 0 0.75rem; }
.mock-btn {
    display: inline-block;
    background: var(--grey-100);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate);
}

/* ---------- Sections ---------- */
.section { padding: 2.75rem 0; }
.section--alt { background: var(--grey-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { margin-bottom: 1.6rem; }
.section__head h2 { margin-bottom: 0.3rem; }
.section__head p { color: var(--slate-400); margin: 0; }
.section__cta { margin-top: 1.6rem; }

.page-head {
    background: var(--grey-50);
    border-bottom: 1px solid var(--border);
    padding: 2.25rem 0;
}
.page-head h1 { margin-bottom: 0.5rem; }
.page-head__lead { max-width: 65ch; color: var(--slate); margin: 0; }

.crumbs { font-size: 0.85rem; color: var(--slate-400); margin-bottom: 0.6rem; }
.crumbs a { color: var(--slate-500); }
.crumbs span { color: var(--slate-400); }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: 1fr;
}
@media (min-width: 620px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .card-grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1.35rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.card__title { font-size: 1.08rem; margin-bottom: 0.45rem; }
.card__title a { color: var(--navy); }
.card__text { color: var(--slate-500); font-size: 0.97rem; flex: 1; }
.card__link { font-weight: 600; font-size: 0.95rem; margin-top: 0.6rem; }
.card--guide { border-left: 3px solid var(--green); }

/* ---------- List items (tools/guides landing) ---------- */
.list-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .list-grid { grid-template-columns: 1fr 1fr; } }

.list-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
}
.list-item__title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.list-item__title a { color: var(--navy); }
.list-item__text { color: var(--slate-500); margin-bottom: 0.5rem; }
.list-item__use { font-size: 0.92rem; color: var(--slate-400); margin-bottom: 0.9rem; }

/* ---------- Steps ---------- */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--gap);
    grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
}
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.step__title { font-size: 1.05rem; }

/* ---------- Trust block ---------- */
.trust { max-width: 70ch; }
.trust__note {
    font-size: 0.92rem;
    color: var(--slate-400);
    border-left: 3px solid var(--border);
    padding-left: 1rem;
    margin-top: 1.1rem;
}

/* ---------- Forms (used by tool pages) ---------- */
.tool-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
    font-size: 0.97rem;
}
.field__hint { font-weight: 400; color: var(--slate-400); font-size: 0.85rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field textarea { min-height: 90px; resize: vertical; }

.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

/* ---------- Output box ---------- */
.output {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow);
    margin-top: 1.4rem;
}
.output__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}
.output__title { margin: 0; font-size: 1.05rem; }
.output__text {
    background: var(--grey-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    color: var(--ink);
    line-height: 1.65;
    white-space: normal;
}
.output__meta { font-size: 0.85rem; color: var(--slate-400); margin: 0.7rem 0 0; }
.output__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}
.copy-status {
    font-size: 0.9rem;
    color: var(--green);
    align-self: center;
    font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
    cursor: pointer;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
    position: relative;
    padding-right: 1.8rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "+";
    position: absolute;
    right: 0.2rem;
    top: 0.9rem;
    font-size: 1.3rem;
    color: var(--slate-400);
    line-height: 1;
}
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__a { padding: 0 0 1rem; color: var(--slate-500); }
.faq__a p { margin: 0; }

/* ---------- Example templates ---------- */
.examples { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .examples { grid-template-columns: 1fr 1fr; } }
.example {
    background: var(--grey-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.example__tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--green);
    margin-bottom: 0.4rem;
}
.example__text { font-size: 0.95rem; color: var(--slate); white-space: pre-line; margin: 0; }

/* ---------- Related links ---------- */
.related { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .related { grid-template-columns: 1fr 1fr; } }
.related__col h3 { font-size: 1.05rem; }
.related__col ul { list-style: none; padding: 0; margin: 0; }
.related__col li { margin-bottom: 0.5rem; }

/* ---------- Disclaimer block ---------- */
.disclaimer-box {
    background: var(--grey-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    font-size: 0.9rem;
    color: var(--slate-400);
    margin-top: 1.5rem;
}

/* ---------- Article / guide content ---------- */
.article { max-width: 760px; }
.article p, .article li { color: var(--slate); }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.5rem; }
.article blockquote {
    margin: 1.2rem 0;
    padding: 0.8rem 1.1rem;
    background: var(--grey-50);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-sm);
    color: var(--slate);
}

/* ---------- Ads ---------- */
/* Visually separated from content and tool output: muted panel, solid light
   grey border, small uppercase "Advertisement" label. Never styled like a
   button or a generated-answer box. */
.ad {
    display: block;
    margin: 2rem auto;
    padding: 0.65rem 0.65rem 0.75rem;
    background: var(--grey-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    max-width: 100%;
}
.ad__label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 0.45rem;
}
.ad__placeholder {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 0.85rem;
    background: var(--grey-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.ad__unit { min-height: 90px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C4D2E2; margin-top: 2.5rem; }
.site-footer__inner {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    padding: 2.5rem 1.1rem 1.75rem;
}
@media (min-width: 640px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-footer__brand { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.55rem; }
.site-footer__brand .brand__logo { width: 32px; height: 32px; }
.site-footer__tag { font-size: 0.92rem; color: #9DB4CE; max-width: 34ch; }
.site-footer__heading {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.7rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #C4D2E2; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }

.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; }
.site-footer__small { font-size: 0.82rem; color: #8FA6BE; margin: 0 0 0.5rem; max-width: 95ch; }
.site-footer__small a { color: #B9C9DA; }

/* ---------- Utilities ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
