/* ============================================================
   BRILLIANT STAFF SOLUTIONS - THEME
   Dark, editorial staffing-agency theme. Include this file on
   any page (plus theme.js if you use the nav) for consistent
   styling. Built mobile-first; breakpoints at 640px and 1024px.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color */
    --bg-primary:    #121213;
    --bg-secondary:  #000000;
    --bg-surface:    #1b1b1d;
    --bg-surface-2:  #232326;
    --text-primary:  #f4f4f3;
    --text-muted:    #9a9a9e;
    --text-faint:    #6e6e72;
    --border-soft:   rgba(255,255,255,0.10);
    --accent:        #d4a941;
    --accent-hover:  #e6bd57;
    --accent-soft:   rgba(212,169,65,0.14);
    --danger:        #d9534f;
    --success:       #4caf7d;

    /* Type */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1180px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-round: 999px;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.35);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--text-primary);
}
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 72px 0;
}
.section-alt {
    background: var(--bg-secondary);
}
.section-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 36px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* ---------- Buttons / forms ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent {
    background: var(--accent);
    color: #1a1408;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-soft);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 14px;
    font-size: 13px;
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

input, select, textarea {
    width: 100%;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}
label { display: block; margin-bottom: 14px; color: var(--text-muted); font-size: 14px; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text-muted);
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.topbar a { color: var(--text-muted); transition: color 0.2s; }
.topbar a:hover { color: var(--accent); }
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-socials svg { width: 15px; height: 15px; fill: var(--text-muted); transition: fill 0.2s; }
.topbar-socials a:hover svg { fill: var(--accent); }
.topbar .btn-ghost { border: 1px solid var(--border-soft); border-radius: var(--radius-round); padding: 5px 14px; }

/* ---------- Main nav ---------- */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    position: relative;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-menu a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    padding: 6px 0;
    position: relative;
}
.nav-menu a:hover { color: var(--accent); }
.nav-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
}
.nav-logo span { color: var(--accent); }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    min-width: 200px;
    padding: 8px;
    box-shadow: var(--shadow-card);
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown { display: block; }
.nav-dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
}
.nav-dropdown a:hover { background: var(--accent-soft); color: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .nav-menu-left, .nav-menu-right { display: none; }
    .nav-toggle { display: block; }
    .navbar .container { justify-content: space-between; }
    .nav-logo { position: static; }
    .nav-mobile-panel {
        display: none;
        flex-direction: column;
        gap: 2px;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-soft);
        padding: 10px 20px 16px;
    }
    .nav-mobile-panel.open { display: flex; }
    .nav-mobile-panel a {
        padding: 12px 4px;
        border-bottom: 1px solid var(--border-soft);
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 15px;
    }
    .nav-mobile-panel .nav-dropdown {
        display: block;
        position: static;
        border: none;
        background: none;
        margin: 0 0 0 12px;
        padding: 0;
        box-shadow: none;
    }
    .topbar-left .btn-ghost, .topbar-contact span.hide-mobile { display: none; }
}
@media (min-width: 1024px) {
    .nav-mobile-panel { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 38vw;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10,10,11,0.1) 20%, rgba(10,10,11,0.01) 75%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 90px 20px;
}
.hero-content h1 {
    font-size: clamp(28px, 5vw, 48px);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.25;
}
.hero-content .accent-word { color: var(--accent); }

/* ---------- Service cards (circular hover images) ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 56px 40px;
    max-width: 980px;
    margin: 0 auto;
}
.service-card { text-align: center; }
.service-card h3 {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 22px;
}
.service-photo {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    margin: 0 auto 24px;
    overflow: hidden;
    border: 2px solid var(--border-soft);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.service-card:hover .service-photo {
    border-color: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-soft);
}
.service-card:hover .service-photo img {
    transform: scale(1.12);
}
.service-list {
    display: inline-block;
    text-align: left;
}
.service-list li {
    position: relative;
    padding-left: 16px;
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 8px;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- Subscribe bar ---------- */
.subscribe-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 26px 0;
}
.subscribe-bar .container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.subscribe-bar h3 {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 22px;
    margin: 0;
    flex-shrink: 0;
}
.subscribe-form {
    display: flex;
    flex: 1;
    min-width: 260px;
    gap: 12px;
}
.subscribe-form input { flex: 1; }

/* ---------- Contact ---------- */
.contact-form { max-width: 620px; margin: 0 auto; }
.contact-info { text-align: center; margin-top: 56px; }
.contact-info h4 { font-weight: 400; color: var(--text-muted); font-size: 20px; }
.contact-info .company-name {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 15px;
    margin-top: 18px;
}
.map-placeholder {
    background: var(--bg-surface);
    border: 1px dashed var(--border-soft);
    color: var(--text-faint);
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-top: 36px;
    font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-secondary);
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-faint);
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.footer-legal { text-align: center; width: 100%; margin-top: 10px; }

/* ---------- App shell nav (candidate/employer/admin dashboards) ---------- */
.app-navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-navbar .container {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.app-navbar .nav-logo { font-size: 18px; margin-right: 6px; }
.app-primary-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}
.app-primary-links a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-muted);
}
.app-primary-links a:hover, .app-primary-links a.active { color: var(--text-primary); }
.app-account {
    display: flex;
    align-items: center;
    gap: 14px;
}
.app-account-name { font-size: 13px; color: var(--text-muted); }
.app-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
}
@media (max-width: 900px) {
    .app-primary-links, .app-account-name { display: none; }
    .app-toggle { display: block; }
}
.app-mobile-panel {
    display: none;
    flex-direction: column;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-soft);
    padding: 10px 20px 16px;
}
.app-mobile-panel.open { display: flex; }
.app-mobile-panel a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-primary);
}
@media (min-width: 901px) { .app-mobile-panel { display: none !important; } }

/* Generic page wrapper so dashboard content isn't flush against the nav/edges */
.page-wrap { padding: 36px 20px; max-width: 1100px; margin: 0 auto; }
.page-wrap h1 { font-size: 26px; margin-bottom: 20px; }
.page-wrap table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.page-wrap table, .page-wrap td, .page-wrap th {
    border: 1px solid var(--border-soft);
}
.page-wrap th, .page-wrap td { padding: 10px 12px; text-align: left; font-size: 14px; }
.page-wrap th { background: var(--bg-surface); color: var(--text-muted); font-weight: 600; }
.page-wrap tr:hover td { background: rgba(255,255,255,0.02); }
.page-wrap fieldset {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 18px;
}
.page-wrap legend { padding: 0 8px; color: var(--text-muted); font-family: var(--font-display); font-weight: 600; }
.page-wrap a { color: var(--accent); }
.page-wrap a:hover { color: var(--accent-hover); }

@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .subscribe-bar .container { flex-direction: column; align-items: stretch; }
    .subscribe-form { flex-direction: column; }
    .page-wrap table { display: block; overflow-x: auto; white-space: nowrap; }
}
