/* ============================================================
   careers.css — Altaz
   Careers section styles (listings + individual JD pages).
   Requires shared.css to be loaded first.
   ============================================================ */

/* ── Typography ──────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }

section { padding: 6rem 2rem; }

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Page Hero ───────────────────────────────────────────── */
.careers-hero {
    background: linear-gradient(135deg, var(--accent-lavender-light) 0%, var(--accent-mint) 50%, var(--accent-peach-mid) 100%);
    padding: 9rem 2rem 5rem;
    text-align: center;
}

.careers-hero h1 {
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.careers-hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--neutral-700);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.careers-hero .hero-meta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255,255,255,0.7);
    color: var(--primary-dark);
    border: 1.5px solid rgba(107,123,158,0.3);
}

/* ── Job Listings Section ────────────────────────────────── */
.listings {
    background: var(--neutral-100);
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.listings-header {
    text-align: center;
    margin-bottom: 3rem;
}

.listings-header h2 {
    color: var(--primary-dark);
}

.listings-header p {
    color: var(--neutral-700);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* ── Job Card ────────────────────────────────────────────── */
.job-card {
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.job-card:hover {
    border-color: var(--accent-lavender);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(196, 169, 216, 0.2);
}

.job-card-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: linear-gradient(135deg, var(--accent-lavender-light), var(--accent-mint));
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.job-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.job-card .job-summary {
    color: var(--neutral-700);
    font-size: 0.98rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.75rem;
}

.job-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.job-meta span {
    font-size: 0.82rem;
    color: var(--neutral-700);
    background: var(--background-light);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-weight: 500;
}

.job-card .apply-link {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--primary-blue);
    color: var(--neutral-900);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.job-card .apply-link:hover {
    background: var(--accent-lavender);
    border-color: var(--accent-lavender);
}

/* ── Why Altaz Section ───────────────────────────────────── */
.why-altaz {
    background: white;
    padding: 5rem 2rem;
}

.why-altaz h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.why-card {
    background: linear-gradient(135deg, var(--accent-peach-light) 0%, var(--background-light) 100%);
    border-left: 5px solid var(--accent-peach);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-left-color: var(--accent-lavender);
}

.why-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   INDIVIDUAL JD PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── JD Hero ─────────────────────────────────────────────── */
.jd-hero {
    background: linear-gradient(135deg, var(--accent-lavender-light) 0%, var(--accent-mint) 50%, var(--accent-peach-mid) 100%);
    padding: 9rem 2rem 4rem;
}

.jd-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.back-link:hover { opacity: 1; }

.jd-hero h1 {
    color: var(--neutral-900);
    margin-bottom: 1.25rem;
}

.jd-hero-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.jd-hero-meta .badge {
    background: rgba(255,255,255,0.8);
}

/* ── JD Body Layout ──────────────────────────────────────── */
.jd-body {
    background: var(--neutral-100);
    padding: 4rem 2rem 6rem;
}

.jd-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* ── JD Main content ─────────────────────────────────────── */
.jd-main section {
    padding: 0;
    margin-bottom: 3rem;
}

.jd-main h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-lavender);
}

.jd-main p {
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.jd-main ul {
    list-style: none;
    padding: 0;
}

.jd-main ul li {
    padding: 0.6rem 0 0.6rem 1.75rem;
    position: relative;
    color: var(--neutral-700);
    line-height: 1.65;
    border-bottom: 1px solid var(--neutral-200);
}

.jd-main ul li:last-child { border-bottom: none; }

.jd-main ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-lavender);
    font-weight: bold;
}

.jd-main ul li strong {
    color: var(--neutral-900);
}

/* ── JD Sidebar ──────────────────────────────────────────── */
.jd-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-200);
    gap: 0.2rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--neutral-900);
    font-weight: 500;
}

.apply-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary-blue);
    color: var(--neutral-900);
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    font-family: 'Work Sans', sans-serif;
}

.apply-btn:hover {
    background: var(--accent-lavender);
    border-color: var(--accent-lavender);
    transform: translateY(-2px);
}

/* ── Closing quote strip ─────────────────────────────────── */
.jd-quote {
    background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--primary-blue) 100%);
    padding: 3.5rem 2rem;
    text-align: center;
}

.jd-quote blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic;
    color: var(--neutral-900);
    line-height: 1.8;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .jd-layout {
        grid-template-columns: 1fr;
    }
    .jd-sidebar {
        position: static;
        order: -1;
    }
    .sidebar-card:first-child { margin-bottom: 0; }
}

@media (max-width: 640px) {
    section { padding: 4rem 1.5rem; }
    .careers-hero, .jd-hero { padding-top: 7rem; }
    .jd-body { padding: 3rem 1.5rem 5rem; }
}

/* ── Apply Form (sidebar) ────────────────────────────────── */
.apply-form-card h3 {
    margin-bottom: 1.25rem;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apply-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.apply-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apply-field input,
.apply-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid rgba(168, 197, 230, 0.5);
    background: rgba(255, 255, 255, 0.8);
    color: var(--neutral-900);
    border-radius: 10px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.apply-field input:focus,
.apply-field textarea:focus {
    outline: none;
    border-color: var(--accent-lavender);
    background: white;
}

.apply-field input::placeholder,
.apply-field textarea::placeholder {
    color: #b0b8c9;
}

.apply-form .apply-btn {
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
}

/* ── Closed Job Card ─────────────────────────────────────── */
.job-card--closed {
    position: relative;
    opacity: 0.6;
    cursor: default;
    filter: grayscale(40%);
    overflow: hidden;
}

.job-card--closed:hover {
    border-color: var(--neutral-200);
    transform: none;
    box-shadow: none;
    background: white;
}

.closed-banner {
    position: absolute;
    top: 18px;
    right: -30px;
    background: var(--neutral-700);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 2.5rem;
    transform: rotate(35deg);
    transform-origin: center;
    pointer-events: none;
    z-index: 1;
}

.apply-link--closed {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--neutral-200);
    color: var(--neutral-700);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: default;
    border: 2px solid var(--neutral-200);
    pointer-events: none;
    user-select: none;
}
