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

:root {
    --green-dark:   #1B5E20;
    --green-mid:    #2E7D32;
    --green-light:  #4CAF50;
    --green-pale:   #F1F8F2;
    --green-tint:   #E8F5E9;
    --text-primary:   #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted:     #718096;
    --white:    #ffffff;
    --bg-light:   #f8f9f7;
    --bg-section: #f3f5f2;
    --border:     #dde4d9;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.07);
    --shadow-md:  0 4px 14px rgba(0,0,0,0.09);
    --shadow-lg:  0 8px 28px rgba(0,0,0,0.12);
    --radius:     10px;
    --radius-sm:  6px;
    --radius-lg:  16px;
    --t:          0.22s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────── */
.header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 72px;
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--t);
}

.header.scrolled {
    box-shadow: 0 2px 18px rgba(0,0,0,0.09);
    border-bottom-color: transparent;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--t);
}

.logo:hover { opacity: 0.8; }

.logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: block;
    transition: color var(--t), background var(--t);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--green-dark);
    background: var(--green-pale);
}

/* ─── CONTAINER ───────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── HERO ───────────────────────────────────── */
.hero {
    background: var(--green-dark);
    color: var(--white);
    padding: 7rem 0 4.5rem;
    text-align: center;
    margin-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    opacity: 0.8;
    max-width: 520px;
    margin: 0 auto;
}

/* ─── SECTION SHARED ─────────────────────────── */
.section-title {
    text-align: center;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: var(--green-dark);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1.4rem;
    margin-bottom: 3rem;
    font-size: 0.975rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── STATS ──────────────────────────────────── */
.stats-section {
    background: var(--white);
    padding: 72px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--t);
}

.stat-card:hover {
    border-color: var(--green-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-icon { margin-bottom: 0.9rem; }

.stat-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--green-dark);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.3rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ─── JOBS ───────────────────────────────────── */
.jobs-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.jobs-filter {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.55rem 1.25rem;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    font-family: 'Outfit', sans-serif;
    transition: all var(--t);
    min-height: 38px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--green-dark);
    color: var(--white);
    border-color: var(--green-dark);
}

.jobs-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--green-dark);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 1rem;
}

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

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--green-dark);
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity var(--t);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.job-card:hover::before { opacity: 1; }

.job-card.urgent  { border-left: 3px solid #e53e3e; }
.job-card.featured { border-left: 3px solid var(--green-dark); }

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.job-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.job-company {
    color: var(--green-dark);
    font-weight: 500;
    font-size: 0.875rem;
}

.job-badge {
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-badge.urgent  { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }
.job-badge.featured { background: var(--green-pale); color: var(--green-dark); border: 1px solid rgba(27,94,32,0.2); }

.job-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.job-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.job-tag.salary   { background: var(--green-pale); color: var(--green-dark); border-color: rgba(27,94,32,0.2); }
.job-tag.type     { background: #f0f4ff; color: #3c52b2; border-color: #c5cae9; }
.job-tag.experience { background: #fff8e1; color: #e65100; border-color: #ffcc80; }
.job-tag svg { width: 12px; height: 12px; }

.job-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.job-requirements,
.job-benefits {
    margin-bottom: 1.1rem;
}

.job-requirements h4,
.job-benefits h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.job-requirements ul,
.job-benefits ul {
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.job-requirements li,
.job-benefits li { margin-bottom: 0.2rem; }

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.job-info { display: flex; flex-direction: column; gap: 0.2rem; }
.job-date { color: var(--text-muted); font-size: 0.82rem; }
.job-deadline { color: #c53030; font-size: 0.82rem; font-weight: 500; }

.apply-btn {
    background: var(--green-dark);
    color: var(--white);
    border: none;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    min-height: 40px;
}

.apply-btn:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27,94,32,0.3);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon { margin-bottom: 1rem; opacity: 0.5; }
.empty-state-icon svg { width: 56px; height: 56px; stroke: var(--text-muted); }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--text-primary); }

/* ─── BENEFITS ───────────────────────────────── */
.benefits-section {
    background: var(--white);
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--t);
    text-align: center;
}

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

.benefit-icon {
    width: 54px;
    height: 54px;
    background: var(--green-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    transition: background var(--t);
}

.benefit-card:hover .benefit-icon { background: var(--green-dark); }

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--green-dark);
    transition: stroke var(--t);
}

.benefit-card:hover .benefit-icon svg { stroke: var(--white); }

.benefit-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ─── CONTACT ────────────────────────────────── */
.contact-section {
    background: var(--bg-section);
    padding: 80px 0;
}

.contact-info-card {
    max-width: 600px;
    margin: 0 auto 2rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-info-item svg { width: 17px; height: 17px; stroke: var(--green-dark); flex-shrink: 0; }

.contact-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: all var(--t);
}

.form-control:focus {
    outline: none;
    border-color: var(--green-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}

.form-control::placeholder { color: var(--text-muted); }

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

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

.file-upload { position: relative; display: inline-block; width: 100%; }

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.875rem;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--t);
}

.file-upload-label:hover {
    background: var(--green-pale);
    border-color: var(--green-dark);
    color: var(--green-dark);
}

.file-upload-label svg { width: 16px; height: 16px; }

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--green-dark);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-row a { color: var(--green-dark); text-decoration: underline; }

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all var(--t);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
}

.btn-primary {
    background: var(--green-dark);
    color: var(--white);
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27,94,32,0.3);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.9s linear infinite;
}

/* ─── MODAL ──────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.show { display: flex; }

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 600px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.28s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(12px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    background: var(--green-dark);
    color: var(--white);
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title { font-size: 1.2rem; font-weight: 600; margin: 0; }

.btn-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t);
    font-size: 1.2rem;
}

.btn-close:hover { background: rgba(255,255,255,0.15); }

.modal-body { padding: 2rem; }

/* ─── ALERT ──────────────────────────────────── */
.alert {
    position: fixed;
    top: 86px;
    right: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 3000;
    min-width: 300px;
    max-width: 380px;
    animation: slideInRight 0.3s ease;
    border: 1px solid;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.alert-success { color: var(--green-dark); border-color: rgba(27,94,32,0.3); }
.alert-error   { color: #c53030; border-color: #feb2b2; }
.alert-info    { color: #2b6cb0; border-color: #90cdf4; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ─── FOOTER ─────────────────────────────────── */
.footer-bottom {
    background: #18201a;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
}

.footer-links-container { background: none; padding: 0; border: none; box-shadow: none; }

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    transition: color var(--t);
}

.footer-links a:hover { color: rgba(255,255,255,0.82); }

.accent-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    vertical-align: middle;
}

.copyright-container { background: none; padding: 0; border: none; box-shadow: none; }

.copyright { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero { padding: 5.5rem 0 3.5rem; }
    .hero h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .jobs-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .job-footer { flex-direction: column; gap: 0.75rem; }
    .apply-btn { width: 100%; justify-content: center; }
    .nav-container { padding: 0 1.25rem; }
    .contact-form-wrap { padding: 1.5rem; }
    .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .container { padding: 0 1.25rem; }
    .alert { left: 1rem; right: 1rem; min-width: 0; }
}