/* =========================================================
   ARCSONS — CAREERS PAGE
   ========================================================= */


/* =========================================================
   CAREERS HERO — ALIGNMENT
========================================================= */

.careers-hero {
    position: relative;
    min-height: 620px;
    background: var(--ink);
    color: #ffffff;
    overflow: hidden;

    display: flex;
    align-items: stretch;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.careers-hero-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: var(--max-width);

    margin-left: auto;
    margin-right: auto;

    min-height: 620px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    /*
       Keep the same horizontal alignment
       as the rest of the website.
    */
    padding-left: 0;
    padding-right: 180px;

    padding-top: 90px;
    padding-bottom: 90px;
}


/* =========================================================
   HERO CONTENT WIDTH
========================================================= */

.careers-hero-inner > * {
    max-width: 820px;
}


/* =========================================================
   EYEBROW
========================================================= */

.careers-hero .eyebrow {
    margin-bottom: 24px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.72);
}

.careers-hero .eyebrow span {
    width: 34px;
    height: 1px;

    flex: 0 0 auto;

    background: var(--orange);
}


/* =========================================================
   KICKER
========================================================= */

.careers-hero-kicker {
    margin: 0 0 16px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--orange);
}


/* =========================================================
   HEADING
========================================================= */

.careers-hero h1 {
    margin: 0;

    font-size: clamp(54px, 6vw, 86px);
    line-height: 0.98;

    font-weight: 500;
    letter-spacing: -0.045em;

    color: #ffffff;
}

.careers-hero h1 em {
    font-family: var(--serif);

    font-weight: 400;
    font-style: italic;

    color: #ffffff;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.careers-hero-description {
    max-width: 610px !important;

    margin: 30px 0 0;

    font-size: 16px;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.68);
}


/* =========================================================
   BUTTON
========================================================= */

.careers-hero .button {
    width: fit-content;

    margin-top: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    min-height: 52px;

    padding: 0 24px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   RIGHT SIDE RAIL
========================================================= */

.careers-hero-side {
    position: absolute;

    top: 0;
    right: 0;

    width: 150px;
    height: 100%;

    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 46px;

    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.careers-hero-side span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.22em;

    color: rgba(255, 255, 255, 0.42);
}


/* =========================================================
   DECORATIVE CIRCLE
========================================================= */

.careers-hero::after {
    content: "";

    position: absolute;

    right: 150px;
    bottom: -180px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(244, 119, 33, 0.12);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .careers-hero-inner {
        padding-left: 0;
        padding-right: 140px;
    }

    .careers-hero-side {
        width: 110px;
    }

    .careers-hero::after {
        right: 110px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .careers-hero {
        min-height: auto;
    }

    .careers-hero-inner {
        width: 100%;

        min-height: 600px;

        padding-left: 20px;
        padding-right: 20px;

        padding-top: 80px;
        padding-bottom: 90px;
    }

    .careers-hero-inner > * {
        max-width: 100%;
    }

    .careers-hero h1 {
        font-size: clamp(46px, 13vw, 68px);
        line-height: 1;
    }

    .careers-hero-description {
        max-width: 100% !important;

        margin-top: 24px;

        font-size: 15px;
        line-height: 1.7;
    }

    .careers-hero .button {
        margin-top: 28px;
    }

    .careers-hero-side {
        display: none;
    }

    .careers-hero::after {
        right: -180px;
        bottom: -220px;

        width: 420px;
        height: 420px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .careers-hero-inner {
        min-height: 560px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .careers-hero h1 {
        font-size: 44px;
    }

    .careers-hero-description {
        font-size: 14px;
    }

}


/* =========================================================
   INTRO
   ========================================================= */

.careers-intro {
    background: var(--paper);
}

.careers-intro-heading {
    align-items: end;
}

.careers-intro-heading > p {
    max-width: 480px;
}

.careers-intro-heading h2 {
    max-width: 700px;
}


/* =========================================================
   CAREER VALUES
   ========================================================= */

.career-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 75px;
    border-top: 1px solid var(--line);
}

.career-value {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 25px;
    padding: 38px 40px 38px 0;
    border-bottom: 1px solid var(--line);
}

.career-value:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 50px;
}

.career-value:nth-child(even) {
    padding-left: 50px;
}

.career-value-number {
    font-family: Manrope, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--orange);
}

.career-value h3 {
    margin: 0 0 12px;
    font-family: Manrope, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.career-value p {
    max-width: 450px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   OPENINGS
   ========================================================= */

.career-openings {
    padding: 110px 0;
    background: var(--paper-soft);
}

.careers-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;
    margin-bottom: 55px;
}

.careers-section-heading h2 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.careers-section-heading h2 em {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--orange);
}

.careers-section-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.career-message {
    padding: 25px 30px;
    margin-bottom: 25px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    font-size: 14px;
}

.career-openings-list {
    display: grid;
    gap: 18px;
}


/* =========================================================
   OPENING CARD
   ========================================================= */

.career-opening-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 35px;
    align-items: center;
    padding: 32px 35px;
    background: var(--paper);
    border: 1px solid var(--line);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.career-opening-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 119, 33, 0.45);
    box-shadow: 0 15px 40px rgba(16, 24, 32, 0.07);
}

.career-opening-main h3 {
    margin: 0 0 14px;
    font-family: Manrope, sans-serif;
    font-size: 22px;
    line-height: 1.3;
    color: var(--ink);
}

.career-opening-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.career-opening-meta span {
    padding: 7px 11px;
    background: var(--paper-soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.career-opening-description {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.career-opening-action {
    flex-shrink: 0;
}

.career-apply-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid var(--orange);
    background: var(--orange);
    color: #ffffff;
    font-family: Manrope, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.career-apply-button:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-1px);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.career-empty {
    padding: 55px 35px;
    text-align: center;
    border: 1px solid var(--line);
    background: var(--paper);
}

.career-empty h3 {
    margin: 0 0 10px;
    font-family: Manrope, sans-serif;
    font-size: 22px;
    color: var(--ink);
}

.career-empty p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   GENERAL APPLICATION CTA
   ========================================================= */

.career-general {
    padding: 100px 0;
    background: var(--ink);
    color: #ffffff;
}

.career-general-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.career-general h2 {
    margin: 15px 0 20px;
    font-family: Manrope, sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.career-general h2 em {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--orange);
}

.career-general p {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.8;
}

.button-white {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 15px 23px;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button-white:hover {
    background: var(--orange);
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .careers-hero {
        min-height: 560px;
    }

    .careers-hero-side {
        display: none;
    }

    .careers-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 25px;
    }

    .career-values {
        grid-template-columns: 1fr;
    }

    .career-value:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }

    .career-value:nth-child(even) {
        padding-left: 0;
    }

    .career-opening-card {
        grid-template-columns: 1fr;
    }

    .career-opening-action {
        margin-top: 5px;
    }

    .career-general-inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 640px) {

    .careers-hero {
        min-height: 540px;
    }

    .careers-hero-inner {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .careers-hero h1 {
        font-size: clamp(46px, 14vw, 66px);
    }

    .careers-hero-description {
        font-size: 15px;
        line-height: 1.7;
    }

    .career-values {
        margin-top: 50px;
    }

    .career-value {
        grid-template-columns: 45px 1fr;
        gap: 15px;
        padding: 30px 0;
    }

    .career-value h3 {
        font-size: 18px;
    }

    .career-opening-card {
        padding: 25px;
    }

    .career-opening-main h3 {
        font-size: 19px;
    }

    .career-opening-meta {
        gap: 6px;
    }

    .career-opening-meta span {
        font-size: 10px;
    }

    .career-openings {
        padding: 80px 0;
    }

    .career-general {
        padding: 80px 0;
    }

    .career-general h2 {
        font-size: 42px;
    }

    .career-apply-button {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================================
   APPLICATION MODAL
   ========================================================= */

.career-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.career-modal.show {
    opacity: 1;
    visibility: visible;
}

.career-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 32, 0.78);
    backdrop-filter: blur(5px);
}

.career-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 45px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(25px);
    transition: transform 0.25s ease;
}

.career-modal.show .career-modal-dialog {
    transform: translateY(0);
}

.career-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.career-modal-close:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #ffffff;
}

.career-modal-header {
    padding-right: 45px;
    margin-bottom: 35px;
}

.career-modal-header h2 {
    margin: 14px 0 12px;
    font-family: Manrope, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--ink);
}

.career-modal-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   APPLICATION FORM
   ========================================================= */

.career-application-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.career-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.career-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.career-form-field label {
    font-family: Manrope, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.career-form-field label span {
    color: var(--muted);
    font-weight: 400;
}

.career-form-field input,
.career-form-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    outline: none;
    background: #ffffff;
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.career-form-field input {
    min-height: 48px;
    padding: 0 14px;
}

.career-form-field textarea {
    min-height: 130px;
    padding: 14px;
    resize: vertical;
}

.career-form-field input:focus,
.career-form-field textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.10);
}

.career-form-field input::placeholder,
.career-form-field textarea::placeholder {
    color: #9aa1a6;
}

.career-form-field input[type="file"] {
    padding: 11px;
    cursor: pointer;
}

.career-form-field small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   FORM MESSAGE
   ========================================================= */

.career-form-message {
    display: none;
    padding: 13px 15px;
    border: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.5;
}

.career-form-message.loading {
    display: block;
    background: #f5f6f6;
    color: var(--muted);
}

.career-form-message.success {
    display: block;
    border-color: #b7d8c1;
    background: #f0f8f2;
    color: #246b36;
}

.career-form-message.error {
    display: block;
    border-color: #e5b7b7;
    background: #fff4f4;
    color: #a52d2d;
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.career-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.career-form-cancel,
.career-form-submit {
    min-height: 46px;
    padding: 0 20px;
    font-family: Manrope, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.career-form-cancel {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
}

.career-form-cancel:hover {
    border-color: var(--ink);
}

.career-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--orange);
    background: var(--orange);
    color: #ffffff;
}

.career-form-submit:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.career-form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}


/* =========================================================
   MODAL SCROLL LOCK
   ========================================================= */

body.career-modal-open {
    overflow: hidden;
}


/* =========================================================
   MODAL RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {

    .career-modal {
        padding: 15px;
        align-items: flex-end;
    }

    .career-modal-dialog {
        max-height: 94vh;
        padding: 30px 22px;
    }

    .career-modal-header {
        padding-right: 35px;
        margin-bottom: 28px;
    }

    .career-modal-header h2 {
        font-size: 28px;
    }

    .career-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .career-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .career-form-cancel,
    .career-form-submit {
        width: 100%;
    }

}