/* ============================================
   TransHaul Logistics — Complete Stylesheet
   ============================================ */

:root {
    --color-ink:        #0a0f1a;
    --color-ink-soft:   #3a4258;
    --color-ink-muted:  #6b7394;
    --color-surface:    #ffffff;
    --color-surface-2:  #f4f5f9;
    --color-surface-3:  #e8eaf2;
    --color-border:     #dcdfe8;
    --color-primary:    #e85d26;
    --color-primary-hover: #d14e1a;
    --color-primary-light: #fef0ea;
    --color-success:    #16a34a;
    --color-success-bg: #ecfdf5;
    --color-error:      #dc2626;
    --color-error-bg:   #fef2f2;
    --color-dark:       #0e1322;
    --font-body:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:  'Space Mono', 'Courier New', monospace;
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --shadow-sm:  0 1px 3px rgba(10,15,26,.06);
    --shadow-md:  0 4px 16px rgba(10,15,26,.08);
    --shadow-lg:  0 12px 40px rgba(10,15,26,.12);
    --header-h:   76px;
    --container:   1200px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-ink);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    display: flex; align-items: center;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
    background: rgba(255,255,255,.96);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; color: var(--color-ink); }
.logo-icon { color: var(--color-primary); display: flex; }
.logo-text { font-size: 20px; font-weight: 400; letter-spacing: -.01em; }
.logo-text strong { font-weight: 800; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 8px 16px; font-size: 14px; font-weight: 500;
    color: var(--color-ink-soft); border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--color-ink); background: var(--color-surface-2); }
.nav-cta { margin-left: 16px; }

/* Mobile toggle */
.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    width: 28px; padding: 4px 0;
}
.mobile-toggle span {
    display: block; height: 2px; background: var(--color-ink);
    border-radius: 2px; transition: transform .3s, opacity .3s;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 22px; font-size: 14px; font-weight: 600;
    border-radius: var(--radius-md); transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,93,38,.3);
}
.btn-outline {
    border: 1.5px solid var(--color-border);
    color: var(--color-ink); background: var(--color-surface);
}
.btn-outline:hover { border-color: var(--color-ink-soft); background: var(--color-surface-2); }
.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

/* ========== HERO ========== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 60px) 0 80px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(232,93,38,.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(27,108,224,.06) 0%, transparent 50%),
        linear-gradient(180deg, #fff 0%, var(--color-surface-2) 100%);
}
.hero-grid-pattern {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 60px 60px; opacity: .35;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px 8px 12px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: 100px; font-size: 13px; font-weight: 600;
    color: var(--color-ink-soft); box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.pulse-dot {
    width: 8px; height: 8px; background: var(--color-success);
    border-radius: 50%; animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
    50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}
.hero-title {
    font-size: clamp(40px, 6vw, 68px); font-weight: 800;
    line-height: 1.08; letter-spacing: -.03em; margin-bottom: 24px;
}
.text-accent { color: var(--color-primary); }
.hero-subtitle {
    font-size: 18px; line-height: 1.7; color: var(--color-ink-soft);
    margin-bottom: 36px; max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; align-items: center; gap: 28px; }
.stat { text-align: left; }
.stat-number {
    font-family: var(--font-mono); font-size: 32px; font-weight: 700;
    color: var(--color-ink); line-height: 1;
}
.stat-plus { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--color-primary); }
.stat-label { display: block; font-size: 13px; color: var(--color-ink-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--color-border); }

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-alt { background: var(--color-surface-2); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
    display: inline-block; font-family: var(--font-mono);
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .15em; color: var(--color-primary);
    background: var(--color-primary-light); padding: 6px 16px;
    border-radius: 100px; margin-bottom: 20px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800;
    line-height: 1.15; letter-spacing: -.025em; margin-bottom: 18px;
}
.section-desc { font-size: 17px; color: var(--color-ink-soft); line-height: 1.7; }

/* ========== ABOUT ========== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.about-card {
    padding: 32px; border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    background: var(--color-surface);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.about-card-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-primary-light); color: var(--color-primary);
    border-radius: var(--radius-md); margin-bottom: 20px;
}
.about-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.about-card p { font-size: 14px; color: var(--color-ink-soft); line-height: 1.7; }

/* ========== BENEFITS ========== */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.benefit-item {
    padding: 32px; background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    transition: transform .25s, box-shadow .25s;
}
.benefit-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit-number {
    font-family: var(--font-mono); font-size: 13px; font-weight: 700;
    color: var(--color-primary); margin-bottom: 14px;
}
.benefit-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.benefit-item p { font-size: 14px; color: var(--color-ink-soft); line-height: 1.7; }

/* ========== JOBS ========== */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.job-card {
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    padding: 32px; display: flex; flex-direction: column;
    background: var(--color-surface);
    transition: transform .25s, box-shadow .25s;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.job-card.featured {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-surface) 40%);
}
.job-card-header { display: flex; gap: 8px; margin-bottom: 16px; }
.job-type, .job-urgency {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; padding: 4px 12px; border-radius: 100px;
}
.job-type { background: var(--color-surface-2); color: var(--color-ink-soft); }
.job-urgency { background: #fef3c7; color: #92400e; }
.job-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.job-desc { font-size: 14px; color: var(--color-ink-soft); line-height: 1.7; margin-bottom: 20px; }
.job-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; flex: 1; }
.job-details li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-ink-soft); }
.job-dot { width: 6px; height: 6px; background: var(--color-primary); border-radius: 50%; flex-shrink: 0; }


/* ============================================
   APPLICATION FORM  — THE KEY SECTION
   ============================================ */
.form-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

/* Alert banner */
.form-alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-alert[hidden] { display: none; }
.form-alert.alert-success {
    background: var(--color-success-bg);
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.form-alert.alert-error {
    background: var(--color-error-bg);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Form sections (fieldsets) */
.form-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 36px 36px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

/* Legend (section titles) */
.form-section-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 24px;
    padding: 0;
    float: none;
    width: auto;
}
.legend-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group-full {
    grid-column: 1 / -1;
}

/* Labels */
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-ink);
}
.required { color: var(--color-error); }

/* Inputs */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232,93,38,.12);
}
.form-input.invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-input::placeholder {
    color: var(--color-ink-muted);
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236b7394' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

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

/* Error messages */
.form-error {
    display: block;
    font-size: 12px;
    color: var(--color-error);
    margin-top: 4px;
    min-height: 0;
}
.form-error:empty { display: none; }
.form-error:not(:empty) { min-height: 18px; }

/* Upload info text */
.upload-info {
    font-size: 13px;
    color: var(--color-ink-muted);
    margin-bottom: 20px;
    padding: 10px 16px;
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

/* Upload grid */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Upload zone */
.upload-item {
    /* wrapper for zone + error */
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 28px 16px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
    position: relative;
    min-height: 160px;
}
.upload-zone:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    transform: translateY(-2px);
}
.upload-zone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    transform: scale(1.02);
}
.upload-zone.has-file {
    border-color: var(--color-success);
    border-style: solid;
    background: var(--color-success-bg);
}
.upload-zone.has-file:hover {
    background: var(--color-success-bg);
    border-color: var(--color-success);
}

/* Hide the actual file input */
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-icon {
    color: var(--color-ink-muted);
    transition: color .2s;
}
.upload-zone:hover .upload-icon { color: var(--color-primary); }
.upload-zone.has-file .upload-icon { color: var(--color-success); }

.upload-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink);
    pointer-events: none;
}
.upload-hint {
    font-size: 12px;
    color: var(--color-ink-muted);
    pointer-events: none;
}
.upload-filename {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-success);
    pointer-events: none;
    word-break: break-all;
}
.upload-zone.has-file .upload-hint { display: none; }
.upload-zone.has-file .upload-icon { display: none; }
.upload-zone.has-file .upload-filename { display: block; }

/* Consent checkbox */
.form-consent {
    margin-bottom: 24px;
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-ink-soft);
    line-height: 1.6;
    cursor: pointer;
}
.consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}
.btn-text { display: inline-flex; align-items: center; gap: 8px; }
.btn-loader { display: inline-flex; align-items: center; gap: 8px; }
.btn-text[hidden], .btn-loader[hidden] { display: none; }
.btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.contact-card {
    padding: 32px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-primary-light); color: var(--color-primary);
    border-radius: var(--radius-md); margin: 0 auto 16px;
}
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--color-ink-soft); line-height: 1.6; }

/* ========== FOOTER ========== */
.site-footer {
    background: var(--color-dark); color: rgba(255,255,255,.7);
    padding: 60px 0 0;
}
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 48px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-icon { color: var(--color-primary); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-links h4 {
    font-size: 13px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 13px; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeUp .6s ease both;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .upload-grid { grid-template-columns: 1fr; }
    .jobs-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .mobile-toggle { display: flex; }

    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: 20px 24px;
        flex-direction: column; align-items: stretch; gap: 8px;
        transform: translateY(-120%); opacity: 0;
        transition: transform .3s, opacity .3s;
        box-shadow: var(--shadow-lg); z-index: 999;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; }
    .nav-list { flex-direction: column; gap: 4px; }
    .nav-link { padding: 12px 16px; font-size: 15px; }
    .nav-cta { margin-left: 0; margin-top: 8px; width: 100%; text-align: center; }

    .hero-title { font-size: clamp(34px, 8vw, 48px); }
    .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
    .stat-divider { width: 40px; height: 1px; }

    .section { padding: 72px 0; }
    .section-header { margin-bottom: 40px; }

    .form-section { padding: 24px 20px 20px; border-radius: var(--radius-lg); }
    .form-section-legend { font-size: 16px; }
    .legend-number { width: 28px; height: 28px; font-size: 13px; }

    .upload-grid { grid-template-columns: 1fr; }
    .upload-zone { min-height: 120px; padding: 20px 16px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
}
