/* ── Brand Variables ── */
:root {
    --primary-color: #E85A2A;
    --secondary-color: #FFFFFF;
    --tertiary-color: #1A1A1A;
    --fourth-color: #666666;
    --heading-font: 'Quicksand', sans-serif;
    --paragraph-font: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--paragraph-font);
    line-height: 1.6;
    color: var(--tertiary-color);
    background: var(--secondary-color);
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

p {
    font-family: var(--paragraph-font);
}

/* ── Header / Navbar ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--tertiary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 2rem;
    background-color: var(--tertiary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--tertiary-color);
}

.logo-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-btn:hover {
    transform: scale(1.05);
}

.logo {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    cursor: default;
}

.nav-dropdown > .nav-link::after {
    content: ' \25BE';
    font-size: 0.7em;
    margin-left: 2px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tertiary-color);
    min-width: 220px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 2000;
    list-style: none;
}

@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover > .nav-dropdown-menu {
        display: block;
    }
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--primary-color);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.order-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ── Hero ── */
.careers-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.careers-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.careers-hero-inner {
    position: relative;
    z-index: 1;
    padding: 80px 20px 70px;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
}
.careers-hero-title {
    font-family: var(--heading-font);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}
.careers-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.03em;
}

/* ── Content ── */
.careers-content {
    padding: 64px 20px 80px;
}
.careers-container {
    max-width: 780px;
    margin: 0 auto;
}
.careers-body h2 {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tertiary-color);
    margin-bottom: 18px;
    line-height: 1.25;
}
.careers-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 18px;
}
.careers-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 48px 0;
}
.careers-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.careers-list li {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #444;
    padding: 6px 0 6px 28px;
    position: relative;
}
.careers-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* ── Form ── */
.careers-form {
    margin-top: 32px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group--full {
    margin-bottom: 20px;
}
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}
.required { color: var(--primary-color); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: var(--paragraph-font);
    font-size: 0.95rem;
    color: var(--tertiary-color);
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* File upload */
.file-upload-area {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}
.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: #fff5f0;
}
.file-upload-area.has-file {
    border-color: #4caf50;
    background: #f0fff4;
}
.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    color: var(--fourth-color);
}
.file-upload-label svg { color: var(--primary-color); }
#file-label-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}
.file-hint {
    font-size: 0.8rem;
    color: #999;
}

/* Error & success */
.form-error {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #c0392b;
    margin-bottom: 16px;
}
.careers-success {
    text-align: center;
    padding: 48px 24px;
}
.careers-success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.careers-success h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--tertiary-color);
}
.careers-success p {
    font-size: 1rem;
    color: #555;
    max-width: 480px;
    line-height: 1.7;
}

/* Submit button */
.careers-submit-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}
.careers-submit-btn:hover { background: #c94d1e; }
.careers-submit-btn:active { transform: scale(0.98); }
.careers-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ── Footer ── */
footer {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--tertiary-color) 70%, var(--primary-color) 100%);
    color: var(--secondary-color);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-order-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    width: 75%;
    align-self: center;
}

.footer-order-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.social-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        padding-top: 0.75rem;
    }

    .hamburger-btn {
        display: flex;
    }

    .logo-btn {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0.5rem;
    }

    .logo-btn:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--tertiary-color);
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-dropdown > .nav-link {
        display: block;
        cursor: pointer;
    }

    .nav-dropdown > .nav-link::after {
        content: ' \25BE';
        font-size: 0.7em;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .nav-dropdown.open > .nav-link::after {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        min-width: 0;
    }

    .nav-dropdown.open > .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover > .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open:hover > .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu li a {
        padding: 0.4rem 1rem;
        font-size: 1rem;
        color: rgba(255,255,255,0.7);
    }

    .nav-dropdown-menu li a:hover {
        color: var(--primary-color);
        background: transparent;
    }

    .order-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .logo {
        height: 60px;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    .footer-logo-img {
        height: 100px;
    }
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .careers-hero { min-height: 420px; }
    .careers-hero-inner { padding: 60px 20px 50px; }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
    }
    .logo {
        height: 50px;
    }
    .order-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .footer-logo-img {
        height: 80px;
    }
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    .footer-links a,
    .social-link {
        font-size: 0.9rem;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }
}
