/* =========================================================
   HIRENEST — MASTER DESIGN SYSTEM
   Version: v2.0 (Unified)
   Scope: ALL public pages
========================================================= */

/* -------------------- ROOT THEME -------------------- */
:root {
    --bg-main: #0b0f1a;
    --bg-elevated: #12182a;
    --bg-card: #161d33;

    --text-main: #f8fafc;
    --text-soft: #c7cbe0;
    --text-muted: #9aa1c7;

    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --accent-pink: #ec4899;

    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.65);

    --max-width: 1200px;
}

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

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top right, #1a1f3b, var(--bg-main));
    color: var(--text-main);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

/* -------------------- GLOBAL LAYOUT -------------------- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

/* -------------------- HEADER -------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom,
            rgba(11, 15, 26, 0.92),
            rgba(11, 15, 26, 0.75));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.nav-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO FIX — THIS STOPS THE HUGE LOGO */
.logo-mark img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* -------------------- NAV LINKS -------------------- */
.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    margin: 0 0.75rem;
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            var(--accent-purple),
            var(--accent-orange));
}

/* -------------------- HERO BACKGROUND FIX -------------------- */
canvas#bgParticles {
    position: fixed;
    inset: 0;
    z-index: -2;
}

.hero-logo-bg {
    position: absolute;
    right: -10%;
    top: 10%;
    max-width: 520px;
    opacity: 0.15;
    pointer-events: none;
}

/* -------------------- BUTTONS -------------------- */
.primary-btn,
.btn-secondary {
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(135deg,
            var(--accent-purple),
            var(--accent-orange));
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-strong);
}

/* -------------------- CARDS -------------------- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

/* -------------------- FORMS (FIX CLIPPING) -------------------- */
input,
select,
textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    color: var(--text-main);
}

select {
    overflow: visible;
}

/* -------------------- DROPDOWN FIX -------------------- */
select option {
    background: #11162a;
    color: white;
}

/* -------------------- FOOTER -------------------- */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    background: rgba(11, 15, 26, 0.9);
}

.site-footer .footer-inner {
    max-width: var(--max-width);
    margin: auto;
    padding: 2.5rem 1.5rem;
}

/* -------------------- ADMIN VISUAL SAFETY -------------------- */
body.admin {
    background: #0a0d17;
}

/* -------------------- UTILITIES -------------------- */
.hidden {
    display: none;
}

.center {
    text-align: center;
}

/* =========================================================
   END — SAFE BASE (EXTEND FREELY)
========================================================= */
/* =========================================================
   HireNest — Stabilization Layer (APPEND ONLY)
   Fixes broken layout, spacing, nav, hero, buttons
========================================================= */

/* ---------- ROOT OVERRIDES ---------- */
:root {
    --hn-bg-dark: #070b1a;
    --hn-bg-mid: #0b122b;
    --hn-accent-purple: #8b5cf6;
    --hn-accent-orange: #f97316;
    --hn-text-main: #f8fafc;
    --hn-text-soft: #cbd5f5;
    --hn-border-soft: rgba(255, 255, 255, 0.08);
    --hn-radius-lg: 18px;
}

/* ---------- GLOBAL RESET PATCH ---------- */
body {
    background: radial-gradient(circle at top left,
            rgba(139, 92, 246, 0.12),
            transparent 55%),
        linear-gradient(180deg, var(--hn-bg-dark), var(--hn-bg-mid));
    color: var(--hn-text-main);
    overflow-x: hidden;
}

/* ---------- HEADER / NAV FIX ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 26, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hn-border-soft);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links a {
    color: var(--hn-text-soft);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--hn-text-main);
    background: rgba(139, 92, 246, 0.12);
}

/* ---------- HERO FIX ---------- */
.hero,
.hero-section,
.page-hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 80px 24px;
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 18px;
}

.hero p,
.hero .lead {
    font-size: 1.05rem;
    color: var(--hn-text-soft);
    max-width: 620px;
}

/* ---------- BUTTON FIX ---------- */
.primary-btn,
.btn-primary {
    background: linear-gradient(135deg,
            var(--hn-accent-purple),
            var(--hn-accent-orange));
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.25);
}

/* ---------- SECTION SPACING ---------- */
section {
    padding: 96px 24px;
}

.section-eyebrow {
    color: var(--hn-accent-purple);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

/* ---------- CARD GRID FIX ---------- */
.card,
.split-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hn-border-soft);
    border-radius: var(--hn-radius-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

/* ---------- FOOTER FIX ---------- */
.site-footer {
    background: #050814;
    border-top: 1px solid var(--hn-border-soft);
}

.site-footer a {
    color: var(--hn-text-soft);
}

.site-footer a:hover {
    color: var(--hn-text-main);
}

/* ---------- MOBILE PATCH ---------- */
@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
    }

    .nav-links {
        display: none;
    }
}
/* =========================================================
   HireNest — CSS PHASE 2 (VISUAL & UX FIXES)
   Append-only extension layer
========================================================= */

/* ---------- MODE SYSTEM (FUTURE READY) ---------- */
html[data-theme="dark"] {
    --bg-main: #070b1a;
    --bg-surface: #0c1329;
    --bg-card: #10183a;
    --text-main: #f8fafc;
    --text-muted: #b6bfd4;
    --border-soft: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] {
    --bg-main: #ffffff;
    --bg-surface: #f5f7fb;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-soft: rgba(15, 23, 42, 0.08);
}

html[data-contrast="high"] {
    --text-main: #ffffff;
    --text-muted: #e5e7eb;
    --border-soft: rgba(255, 255, 255, 0.25);
}

/* ---------- GLOBAL SURFACE FIX ---------- */
main,
.page-wrapper,
.page-container {
    background: transparent;
}

/* ---------- LOGO SIZE FIX ---------- */
.logo img,
.logo-mark img {
    width: 38px;
    height: 38px;
    max-width: 38px;
    object-fit: contain;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-title {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
}

/* ---------- REMOVE FLOATING GRAY BOX ---------- */
section::before,
section::after {
    content: none !important;
}

/* ---------- FORMS (CONTACT / ADMIN) ---------- */
form {
    max-width: 640px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--hn-text-main);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* ---------- SELECT FIX (BLUE DROPDOWN BUG) ---------- */
select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--hn-accent-purple) 50%),
        linear-gradient(135deg, var(--hn-accent-purple) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(1em + 2px),
        calc(100% - 13px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

select option {
    color: #0f172a;
}

/* ---------- PRICING PAGE FIX ---------- */
.pricing-grid,
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 14px 0;
}

.pricing-card ul {
    flex-grow: 1;
}

/* ---------- REMOVE WHITE PAGE FLASH ---------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--hn-bg-dark);
    z-index: -1;
}

/* ---------- FAQ FIX ---------- */
.faq-item {
    border-bottom: 1px solid var(--border-soft);
    padding: 18px 0;
}

.faq-question {
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    color: var(--text-muted);
    margin-top: 10px;
}

/* ---------- FOOTER LEGAL FIX ---------- */
.site-footer {
    padding: 40px 24px;
}

.site-footer p,
.site-footer a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- SCROLL FIX ---------- */
html,
body {
    scroll-behavior: smooth;
}

/* ---------- SAFETY: NOTHING FLOATS ---------- */
* {
    box-sizing: border-box;
}
/* =========================================================
   HIRENEST — MASTER DESIGN SYSTEM
   Version: v2.0 (Unified)
   Scope: ALL public pages
========================================================= */

/* -------------------- ROOT THEME -------------------- */
:root {
    --bg-main: #0b0f1a;
    --bg-elevated: #12182a;
    --bg-card: #161d33;

    --text-main: #f8fafc;
    --text-soft: #c7cbe0;
    --text-muted: #9aa1c7;

    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --accent-pink: #ec4899;

    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.65);

    --max-width: 1200px;
}

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

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top right, #1a1f3b, var(--bg-main));
    color: var(--text-main);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

/* -------------------- GLOBAL LAYOUT -------------------- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

/* -------------------- HEADER -------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom,
            rgba(11, 15, 26, 0.92),
            rgba(11, 15, 26, 0.75));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.nav-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO FIX — THIS STOPS THE HUGE LOGO */
.logo-mark img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* -------------------- NAV LINKS -------------------- */
.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    margin: 0 0.75rem;
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            var(--accent-purple),
            var(--accent-orange));
}

/* -------------------- HERO BACKGROUND FIX -------------------- */
canvas#bgParticles {
    position: fixed;
    inset: 0;
    z-index: -2;
}

.hero-logo-bg {
    position: absolute;
    right: -10%;
    top: 10%;
    max-width: 520px;
    opacity: 0.15;
    pointer-events: none;
}

/* -------------------- BUTTONS -------------------- */
.primary-btn,
.btn-secondary {
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(135deg,
            var(--accent-purple),
            var(--accent-orange));
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-strong);
}

/* -------------------- CARDS -------------------- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
}

/* -------------------- FORMS (FIX CLIPPING) -------------------- */
input,
select,
textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    color: var(--text-main);
}

select {
    overflow: visible;
}

/* -------------------- DROPDOWN FIX -------------------- */
select option {
    background: #11162a;
    color: white;
}

/* -------------------- FOOTER -------------------- */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    background: rgba(11, 15, 26, 0.9);
}

.site-footer .footer-inner {
    max-width: var(--max-width);
    margin: auto;
    padding: 2.5rem 1.5rem;
}

/* -------------------- ADMIN VISUAL SAFETY -------------------- */
body.admin {
    background: #0a0d17;
}

/* -------------------- UTILITIES -------------------- */
.hidden {
    display: none;
}

.center {
    text-align: center;
}

/* =========================================================
   END — SAFE BASE (EXTEND FREELY)
========================================================= */
/* =========================================================
   HireNest — Stabilization Layer (APPEND ONLY)
   Fixes broken layout, spacing, nav, hero, buttons
========================================================= */

/* ---------- ROOT OVERRIDES ---------- */
:root {
    --hn-bg-dark: #070b1a;
    --hn-bg-mid: #0b122b;
    --hn-accent-purple: #8b5cf6;
    --hn-accent-orange: #f97316;
    --hn-text-main: #f8fafc;
    --hn-text-soft: #cbd5f5;
    --hn-border-soft: rgba(255, 255, 255, 0.08);
    --hn-radius-lg: 18px;
}

/* ---------- GLOBAL RESET PATCH ---------- */
body {
    background: radial-gradient(circle at top left,
            rgba(139, 92, 246, 0.12),
            transparent 55%),
        linear-gradient(180deg, var(--hn-bg-dark), var(--hn-bg-mid));
    color: var(--hn-text-main);
    overflow-x: hidden;
}

/* ---------- HEADER / NAV FIX ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 26, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hn-border-soft);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links a {
    color: var(--hn-text-soft);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--hn-text-main);
    background: rgba(139, 92, 246, 0.12);
}

/* ---------- HERO FIX ---------- */
.hero,
.hero-section,
.page-hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 80px 24px;
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 18px;
}

.hero p,
.hero .lead {
    font-size: 1.05rem;
    color: var(--hn-text-soft);
    max-width: 620px;
}

/* ---------- BUTTON FIX ---------- */
.primary-btn,
.btn-primary {
    background: linear-gradient(135deg,
            var(--hn-accent-purple),
            var(--hn-accent-orange));
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.25);
}

/* ---------- SECTION SPACING ---------- */
section {
    padding: 96px 24px;
}

.section-eyebrow {
    color: var(--hn-accent-purple);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

/* ---------- CARD GRID FIX ---------- */
.card,
.split-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hn-border-soft);
    border-radius: var(--hn-radius-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

/* ---------- FOOTER FIX ---------- */
.site-footer {
    background: #050814;
    border-top: 1px solid var(--hn-border-soft);
}

.site-footer a {
    color: var(--hn-text-soft);
}

.site-footer a:hover {
    color: var(--hn-text-main);
}

/* ---------- MOBILE PATCH ---------- */
@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
    }

    .nav-links {
        display: none;
    }
}

/* =========================================================
   HireNest — CSS PHASE 2 (VISUAL & UX FIXES)
   Append-only extension layer
========================================================= */

/* ---------- MODE SYSTEM (FUTURE READY) ---------- */
html[data-theme="dark"] {
    --bg-main: #070b1a;
    --bg-surface: #0c1329;
    --bg-card: #10183a;
    --text-main: #f8fafc;
    --text-muted: #b6bfd4;
    --border-soft: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] {
    --bg-main: #ffffff;
    --bg-surface: #f5f7fb;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-soft: rgba(15, 23, 42, 0.08);
}

html[data-contrast="high"] {
    --text-main: #ffffff;
    --text-muted: #e5e7eb;
    --border-soft: rgba(255, 255, 255, 0.25);
}

/* ---------- GLOBAL SURFACE FIX ---------- */
main,
.page-wrapper,
.page-container {
    background: transparent;
}

/* ---------- LOGO SIZE FIX ---------- */
.logo img,
.logo-mark img {
    width: 38px;
    height: 38px;
    max-width: 38px;
    object-fit: contain;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-title {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
}

/* ---------- REMOVE FLOATING GRAY BOX ---------- */
section::before,
section::after {
    content: none !important;
}

/* ---------- FORMS (CONTACT / ADMIN) ---------- */
form {
    max-width: 640px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--hn-text-main);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* ---------- SELECT FIX (BLUE DROPDOWN BUG) ---------- */
select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--hn-accent-purple) 50%),
        linear-gradient(135deg, var(--hn-accent-purple) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(1em + 2px),
        calc(100% - 13px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

select option {
    color: #0f172a;
}

/* ---------- PRICING PAGE FIX ---------- */
.pricing-grid,
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 14px 0;
}

.pricing-card ul {
    flex-grow: 1;
}

/* ---------- REMOVE WHITE PAGE FLASH ---------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--hn-bg-dark);
    z-index: -1;
}

/* ---------- FAQ FIX ---------- */
.faq-item {
    border-bottom: 1px solid var(--border-soft);
    padding: 18px 0;
}

.faq-question {
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    color: var(--text-muted);
    margin-top: 10px;
}

/* ---------- FOOTER LEGAL FIX ---------- */
.site-footer {
    padding: 40px 24px;
}

.site-footer p,
.site-footer a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- SCROLL FIX ---------- */
html,
body {
    scroll-behavior: smooth;
}

/* ---------- SAFETY: NOTHING FLOATS ---------- */
* {
    box-sizing: border-box;
}
/* =========================================================
   HireNest — CSS PHASE 3
   HARD VISUAL CORRECTION & STABILITY LAYER
   (Fixes broken alignment, spacing, centering, overflow)
========================================================= */

/* ---------- GLOBAL WIDTH ENFORCEMENT ---------- */
main,
.page-main,
.page-container,
section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Prevent left-stuck content */
body>* {
    box-sizing: border-box;
}

/* ---------- HERO HARD FIX ---------- */
.hero,
.hero-section,
.page-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 96px);
    padding: 6rem 1.5rem;
}

/* FORCE hero text to stay readable */
.hero-content {
    max-width: 720px;
    z-index: 2;
}

/* Kill invisible overlays that steal space */
.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after {
    content: none !important;
}

/* ---------- TYPOGRAPHY BALANCE ---------- */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

h1 {
    margin-bottom: 1.25rem;
}

p {
    max-width: 640px;
}

/* ---------- NAV BAR FIX (OVERFLOW / SPACING) ---------- */
.site-header {
    height: auto;
}

.nav-container {
    min-height: 72px;
    flex-wrap: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stop nav items from pushing layout */
.nav-links a {
    white-space: nowrap;
}

/* ---------- CTA BUTTON FIX ---------- */
.primary-btn,
.btn-primary {
    align-self: flex-start;
    margin-top: 1.5rem;
}

/* ---------- GRID NORMALIZATION ---------- */
.grid,
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Stack cleanly on mobile */
@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ---------- PRICING PAGE FIX ---------- */
.pricing-card {
    text-align: left;
    position: relative;
}

.pricing-card .price {
    line-height: 1.1;
}

.pricing-card ul {
    padding-left: 1.2rem;
}

.pricing-card li {
    margin-bottom: 0.6rem;
}

/* ---------- FAQ FIX ---------- */
.faq-item {
    max-width: 720px;
}

.faq-answer {
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ---------- CONTACT PAGE FIX ---------- */
form {
    margin-top: 2rem;
}

form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 700px) {
    form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- REMOVE HORIZONTAL SCROLL ---------- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- FOOTER CLEANUP ---------- */
.site-footer {
    margin-top: 6rem;
}

.site-footer .footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

/* ---------- SAFETY: NOTHING ABSOLUTE FLOATS ---------- */
section *,
.hero *,
.page-hero * {
    position: relative;
}

/* =========================================================
   END — PHASE 3 STABILIZATION
========================================================= */
/* =========================================================
   HireNest — Core Design System (Phase 2)
   Purpose:
   - Fix broken layouts
   - Normalize spacing
   - Correct logo sizing
   - Improve contrast
   - Prepare for future themes
========================================================= */

/* =========================
   ROOT VARIABLES
========================= */

:root {
    /* COLORS */
    --bg-main: #0b0e14;
    --bg-soft: #111827;
    --bg-card: #0f172a;

    --text-main: #f8fafc;
    --text-soft: #cbd5f5;
    --text-muted: #94a3b8;

    --accent-primary: #f97316;
    /* orange */
    --accent-secondary: #8b5cf6;
    /* purple */

    --border-subtle: rgba(148, 163, 184, 0.22);

    /* EFFECTS */
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.35);
    --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.25);

    /* SIZES */
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --nav-height: 72px;
}

/* =========================
   RESET
========================= */

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(180deg, #0b0e14, #0e1320);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

/* =========================
   GLOBAL ELEMENTS
========================= */

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

ul {
    padding-left: 1.1rem;
}

li {
    margin-bottom: 0.4rem;
}

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

/* =========================
   PAGE WRAPPER
========================= */

.page-wrapper {
    position: relative;
    min-height: 100vh;
}

/* =========================
   HEADER / NAV
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-height);
    background: rgba(11, 14, 20, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO FIX */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo-img {
    width: 34px;
    /* FIXED */
    height: 34px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-title {
    font-weight: 800;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
}

.logo-subtitle {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 1.2rem;
}

.nav-links a {
    font-size: 0.85rem;
    opacity: 0.8;
}

.nav-links a.active,
.nav-links a:hover {
    opacity: 1;
}

/* CTA */
.nav-cta .primary-btn {
    padding: 0.55rem 0.95rem;
    background: var(--accent-primary);
    color: #000;
    border-radius: 999px;
    font-weight: 600;
}

/* MOBILE */
.nav-toggle {
    display: none;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    display: none;
}

/* =========================
   MAIN LAYOUT
========================= */

main {
    padding-top: 2.2rem;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* =========================
   HERO
========================= */

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    padding: 3.5rem 0 4rem;
}

.hero-content h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent-primary);
}

.hero .lead {
    max-width: 560px;
    opacity: 0.9;
}

.hero-points,
.hero ul {
    margin-top: 1rem;
}

.hero-side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
}

/* =========================
   BUTTONS
========================= */

.btn-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
}

.btn-secondary {
    border: 1px solid var(--border-subtle);
    opacity: 0.9;
}

/* =========================
   SECTIONS
========================= */

.section-flow {
    padding: 3.5rem 0;
}

.section-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

/* =========================
   CARDS
========================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* =========================
   SPLIT LAYOUT
========================= */

.split-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.split-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
}

/* =========================
   HIGHLIGHT BAND
========================= */

.highlight-band {
    text-align: center;
    background: linear-gradient(135deg,
            rgba(249, 115, 22, 0.12),
            rgba(139, 92, 246, 0.12));
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.6);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* =========================
   SCROLL TO TOP
========================= */

.scroll-top-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    border: none;
    background: var(--accent-secondary);
    color: #fff;
    display: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}
/* ================================
   SERVICES + GRID FIX
================================ */

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 24px;
    margin-top: 40px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(6px);
}

.card h3 {
    margin-bottom: 12px;
}

.card ul {
    margin-top: 12px;
    padding-left: 18px;
}

.card li {
    margin-bottom: 6px;
    opacity: 0.9;
}

/* CTA */
.cta {
    text-align: center;
    padding: 100px 20px;
}

/* ================================
   MOBILE FIX
================================ */

@media (max-width: 900px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 16px;
    }
}