/* ═══════════════════════════════════════════════════════════
   City of Minneola – Employment Portal
   Colors & fonts aligned with COM_Intranet design system
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Primary palette — from COM_Intranet */
    --navy:         #1a3a5c;
    --navy-dark:    #0f2440;
    --navy-light:   #2a5580;
    --blue:         #2563eb;
    --green:        #8cc63f;
    --green-dark:   #6fa030;
    --green-light:  #a8d86a;

    /* Neutrals */
    --white:        #ffffff;
    --gray-50:      #f8fafc;
    --gray-100:     #f1f5f9;
    --gray-200:     #e2e8f0;
    --gray-300:     #cbd5e1;
    --gray-400:     #94a3b8;
    --gray-500:     #64748b;
    --gray-600:     #475569;
    --gray-700:     #334155;
    --gray-800:     #1e293b;
    --gray-900:     #0f172a;

    /* Accents */
    --red:          #dc2626;
    --amber:        #f59e0b;
    --teal:         #0f766e;

    /* Shadows */
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:    0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:    0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl:    0 16px 50px rgba(0,0,0,0.18);

    /* Radius */
    --radius-sm:    4px;
    --radius-md:    8px;
    --radius-lg:    12px;
    --radius-xl:    20px;
}

/* ── RESET & BASE ─────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HEADER ───────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy-dark);
    border-bottom: 3px solid var(--green);
    box-shadow: var(--shadow-lg);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark svg { width: 40px; height: 40px; }

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

.logo-city {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-sub {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav-login {
    border-right: 1px solid rgba(255,255,255,0.15);
    margin-right: 8px;
    padding-right: 24px;
}

.nav-btn {
    background: var(--green);
    color: var(--navy-dark) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.nav-btn:hover {
    background: var(--green-light);
    color: var(--navy-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(140,198,63,0.3);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
    border-radius: 1px;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: 
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    overflow: hidden;
}

/* Decorative background elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140,198,63,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><path d="M0 30 L30 0 L60 30 L30 60Z" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title br + * { color: var(--green); }

.hero-subtitle {
    font-size: 19px;
    font-weight: 300;
    color: var(--gray-300);
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
}

.stat-icon { font-size: 20px; }

/* ── BUTTONS ──────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--green);
    color: var(--navy-dark);
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(140,198,63,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-lg { padding: 14px 36px; font-size: 16px; }

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-navy:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--white);
}

/* ── SECTIONS ─────────────────────────────────────────── */

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--navy);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-title.light { color: var(--white); }

.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
    color: var(--gray-500);
    font-size: 17px;
    line-height: 1.7;
}

.section-intro.light { color: var(--gray-300); }

/* ── WHY WORK HERE ────────────────────────────────────── */

.section-why {
    padding: 90px 24px;
    background: var(--gray-50);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

.benefit-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ── DEPARTMENTS ──────────────────────────────────────── */

.section-departments {
    padding: 90px 24px;
    background: var(--navy);
    position: relative;
}

.section-departments::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect width="40" height="40" fill="none"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    pointer-events: none;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}

.dept-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    transition: all 0.25s;
    cursor: default;
}

.dept-card:hover {
    background: rgba(140,198,63,0.1);
    border-color: rgba(140,198,63,0.25);
    transform: translateX(4px);
}

.dept-icon { font-size: 22px; }

.dept-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--gray-200);
    letter-spacing: 0.3px;
}

/* ── HOW TO APPLY ─────────────────────────────────────── */

.section-how {
    padding: 90px 24px;
    background: var(--white);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 0 16px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: var(--green);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(26,58,92,0.2);
}

.step h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.step-arrow {
    color: var(--green);
    font-size: 28px;
    margin-top: 14px;
    flex-shrink: 0;
}

.steps-cta { text-align: center; }

/* ── FOOTER ───────────────────────────────────────────── */

.site-footer {
    background: var(--gray-900);
    padding: 48px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand { text-align: center; }

.footer-city {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-address {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

.footer-legal {
    text-align: center;
    border-top: 1px solid var(--gray-700);
    padding-top: 24px;
    max-width: 700px;
}

.footer-legal p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer-copy {
    margin-top: 12px;
    color: var(--gray-600) !important;
}

/* ── FORM STYLES (shared across pages) ────────────────── */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-label .required { color: var(--red); }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: var(--gray-800);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-help {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.form-error {
    font-size: 13px;
    color: var(--red);
    margin-top: 4px;
}

/* Alert messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--navy);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-submitted { background: #dbeafe; color: #1e40af; }
.badge-review    { background: #fef3c7; color: #92400e; }
.badge-interview { background: #e0e7ff; color: #3730a3; }
.badge-offer     { background: #d1fae5; color: #065f46; }
.badge-hired     { background: var(--green); color: var(--navy-dark); }
.badge-rejected  { background: #fecaca; color: #991b1b; }
.badge-withdrawn { background: var(--gray-200); color: var(--gray-600); }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-uploaded  { background: #dbeafe; color: #1e40af; }
.badge-approved  { background: #d1fae5; color: #065f46; }

/* Page wrapper for interior pages */
.page-wrapper {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-content-narrow {
    flex: 1;
    padding: 40px 24px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--gray-500);
}

/* ── LOADING SPINNER ──────────────────────────────────── */

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .dept-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: var(--shadow-xl);
    }

    .main-nav.open { display: flex; }

    .nav-login {
        border-right: none;
        margin-right: 0;
        padding-right: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 12px;
        margin-bottom: 8px;
    }

    .nav-btn { text-align: center; }

    .hero { min-height: 500px; padding: 100px 20px 60px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { flex-direction: column; gap: 12px; align-items: center; }

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

    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }

    .section-title { font-size: 28px; }

    .footer-links { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .dept-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 30px; }
    .hero-actions { flex-direction: column; }
    .btn-lg { width: 100%; }
}
