/* ============================================================
   Achol HR - Public Main Stylesheet
   ============================================================
   
   Brand Colors:
   - Primary Blue: #1B4EE8 (bright blue for CTAs)
   - Deep Navy:    #0A1F44 (dark accents)
   - Gold:         #C9A227 (badges + accents)
   - Cream:        #FFF8E7 (featured section)
   - Soft Blue:    #EFF5FF (hero background)
   
   @author  Magar
   @version 3.0
   ============================================================ */


/* ============================================================
   1. RESET AND BASE
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0D1B2A;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1B4EE8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1642C5;
}

ul, ol {
    list-style: none;
}


/* ============================================================
   2. COLOR VARIABLES
   ============================================================ */

:root {
    --primary: #1B4EE8;
    --primary-dark: #1642C5;
    --primary-light: #EFF5FF;
    --navy: #0A1F44;
    --navy-dark: #061334;
    --gold: #C9A227;
    --gold-dark: #a8871f;
    --cream: #FFF8E7;
    --cream-dark: #FDF2C6;
    --white: #FFFFFF;
    --grey-lightest: #F8FAFC;
    --grey-light: #F1F5F9;
    --grey-medium: #E2E8F0;
    --grey-dark: #94A3B8;
    --text-primary: #0D1B2A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.25s ease;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.25rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.text-primary { color: var(--primary); }
.text-navy    { color: var(--navy); }
.text-gold    { color: var(--gold); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium  { font-weight: 500; }
.font-regular { font-weight: 400; }


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 50px 0;
}

.section-lg {
    padding: 120px 0;
}

.divider-gold {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    border: none;
    margin: 24px auto;
    border-radius: 2px;
}


/* ============================================================
   5. NAVIGATION BAR
   ============================================================ */

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--grey-medium);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.navbar-logo img,
.navbar-logo svg {
    height: 36px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-menu a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-menu a:hover {
    color: var(--primary);
}

.navbar-menu a.active {
    color: var(--primary);
    font-weight: 600;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 1px;
}


/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 78, 232, 0.35);
}

.btn-navy {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-navy:hover {
    background-color: var(--navy-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--grey-medium);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-dark-pill {
    background-color: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
    padding: 10px 22px;
    font-size: 14px;
}

.btn-dark-pill:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}


/* ============================================================
   7. CARDS
   ============================================================ */

.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--grey-medium);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-featured {
    border: 2px solid var(--gold);
    position: relative;
}


/* ============================================================
   8. JOB CARDS (Public)
   ============================================================ */

.job-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    border: 1px solid var(--grey-medium);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.job-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.job-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.35;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.job-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    background-color: var(--primary-light);
    color: var(--primary);
    text-transform: capitalize;
}

.job-tag-urgent {
    background-color: #fef2f2;
    color: var(--error);
}

.job-tag-gold {
    background-color: #fdf6e3;
    color: var(--gold-dark);
}

.job-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.job-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    flex: 1;
    line-height: 1.6;
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--grey-light);
}

.job-card-salary {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}


/* ============================================================
   9. FORMS
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--error);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    background-color: var(--white);
    border: 1px solid var(--grey-medium);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 78, 232, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
}

.form-help {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}


/* ============================================================
   10. ALERTS
   ============================================================ */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: var(--success);
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: var(--error);
}

.alert-info {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: var(--warning);
}


/* ============================================================
   11. GRID SYSTEM
   ============================================================ */

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }


/* ============================================================
   12. FOOTER
   ============================================================ */

.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.footer-logo img,
.footer-logo svg {
    height: 38px;
    width: auto;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 320px;
    line-height: 1.6;
}

.footer h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer ul li a:hover {
    color: var(--white);
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-designed {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 12px;
}


/* ============================================================
   13. RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 992px) {

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }

    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 60px 0;
    }
}


@media (max-width: 768px) {

    .navbar-menu,
    .navbar-actions {
        display: none;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--grey-medium);
        align-items: flex-start;
    }

    .navbar-actions.active {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 24px 24px;
        background-color: var(--white);
        border-top: none;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-6 {
        grid-template-columns: 1fr;
    }

    .section { padding: 50px 0; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }
}


@media (max-width: 480px) {

    h1 { font-size: 1.75rem; }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }
}


/* ============================================================
   14. HELPER UTILITIES
   ============================================================ */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.d-flex   { display: flex; }
.d-block  { display: block; }
.d-none   { display: none; }

.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center    { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }


/* ============================================================
   END OF PUBLIC STYLESHEET
   ============================================================ */