/* ============================================
   Trades Workforce Guide — Independent Portal
   Professional, neutral, information-first
   ============================================ */

:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --accent: #b45309;
    --accent-dark: #92400e;
    --accent-soft: #fef3c7;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 20px 40px -16px rgba(15, 23, 42, 0.18);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --max: 1180px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -8px rgba(15,23,42,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand-icon { font-size: 1.4rem; }
.brand-name { font-size: 1.05rem; color: var(--ink); }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
    color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500;
    padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.header-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; text-decoration: none;
    font-size: .85rem; font-weight: 600; padding: 10px 20px; border-radius: 999px;
    transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-dark); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero-subhead { font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: .92rem; padding: 13px 26px; border-radius: 999px;
    text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(180,83,9,.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.hero-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats strong { display: block; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
.hero-stats span { font-size: .78rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.hero-badge {
    position: absolute; bottom: -16px; left: 24px;
    background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600;
    padding: 10px 18px; border-radius: 999px; letter-spacing: .02em;
    box-shadow: 0 8px 20px -8px rgba(15,23,42,.4);
}

/* ---------- Disclaimer strip ---------- */
.disclaimer-strip { background: var(--accent-soft); border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a; padding: 16px 0; }
.disclaimer-strip p { font-size: .84rem; color: #78350f; line-height: 1.6; text-align: center; }
.disclaimer-strip strong { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px; }
.section-lede { font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- Trend cards ---------- */
.trend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.trend-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.trend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #cbd5e1; }
.trend-icon { font-size: 1.6rem; margin-bottom: 12px; }
.trend-card h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.trend-card p { font-size: .92rem; color: var(--ink-soft); }

.insight-callout {
    margin-top: 32px; background: var(--ink); color: #fff; border-radius: var(--radius);
    padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
}
.insight-callout h3 { font-size: 1.1rem; color: #fbbf24; }
.insight-callout p { font-size: .94rem; color: #cbd5e1; }

/* ---------- Staffing layout ---------- */
.staffing-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: start; }
.staffing-steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-number {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .82rem; letter-spacing: .02em;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { font-size: .91rem; color: var(--ink-soft); }

.staffing-aside {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; position: sticky; top: calc(var(--header-h) + 24px);
}
.staffing-aside h3 { font-size: 1.05rem; margin-bottom: 16px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { font-size: .9rem; color: var(--ink-soft); padding-left: 24px; position: relative; }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: #15803d; font-weight: 800; font-size: .85rem;
}
.aside-note { font-size: .78rem; color: var(--muted); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.5; }

/* ---------- Employee Connect ---------- */
.connect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.connect-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; transition: transform .25s, box-shadow .25s;
}
.connect-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.connect-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.connect-card p { font-size: .91rem; color: var(--ink-soft); }
.connect-note {
    margin-top: 28px; border-left: 3px solid var(--accent); background: var(--surface);
    padding: 18px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .9rem; color: var(--ink-soft);
}

/* ---------- Safety ---------- */
.safety-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.safety-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.safety-copy p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 16px; }
.checklist-dark li { color: var(--ink-soft); }
.safety-visual img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Pathway ---------- */
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pathway-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; transition: transform .25s, box-shadow .25s;
}
.pathway-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pathway-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.pathway-card p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: #cbd5e1; }
.faq-item summary {
    cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: .95rem;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--accent);
    transition: transform .25s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { font-size: .91rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-section { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.contact-copy p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 14px; }
.contact-email a { font-size: 1.1rem; font-weight: 700; color: var(--accent-dark); }
.contact-disclaimer { font-size: .8rem; color: var(--muted); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.contact-form {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow);
}
.contact-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.contact-form input, .contact-form textarea {
    width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; font-family: inherit; font-size: .9rem; color: var(--ink);
    background: var(--surface-alt); margin-bottom: 18px; transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { width: 100%; }
.form-note { font-size: .75rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 36px; padding-bottom: 40px; }
.footer-brand .brand-name { color: #fff; font-weight: 800; }
.footer-brand p { font-size: .85rem; color: #94a3b8; margin-top: 12px; line-height: 1.6; max-width: 34ch; }
.footer-links h4, .footer-disclaimer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fbbf24; margin-bottom: 14px; }
.footer-links a { display: block; color: #cbd5e1; text-decoration: none; font-size: .88rem; margin-bottom: 9px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer p { font-size: .78rem; color: #94a3b8; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid #1e293b; padding: 20px 24px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
    font-size: .78rem; color: #64748b;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.2,.65,.3,1), transform .65s cubic-bezier(.2,.65,.3,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid, .staffing-layout, .safety-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .staffing-aside { position: static; }
    .trend-grid, .connect-grid { grid-template-columns: 1fr; }
    .pathway-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
}

@media (max-width: 640px) {
    .header-inner { gap: 12px; }
    .header-cta { display: none; }
    .hero { padding: 48px 0 56px; }
    .hero-stats { grid-template-columns: 1fr; gap: 12px; }
    .section { padding: 56px 0; }
    .insight-callout { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-form { padding: 22px; }
    .hero-badge { left: 12px; bottom: -12px; font-size: .7rem; padding: 8px 14px; }
}