/* =========================================================================
   ONEROCK – CAREERS CSS
   File    : assets/css/careers.css
   Used by : career.html          (PART 1 – Careers listing page)
             career-single.html   (PART 2 – Single job posting page)
   Load    : AFTER style.css  →  <link href="assets/css/careers.css" rel="stylesheet">

   Relies on the theme already defined in style.css:
     • Variables : --primary-color, --accentColor, --secondary-color,
                   --lightBlue, --textColor, --light, --Inter, --Jost, --Barlow
     • Reused    : .container, .themebtn, .outlineBtn, .smallTitle,
                   .innerBannerSec (+ .innerBannerContent / .innerBreadcrumb /
                   .innerBannerDescription), .formField, .onerockContactForm,
                   .contactSubmitBtn, .contactFormNotice
   Nothing in style.css is overridden – every class here is prefixed
   "careers…" or "job…" so it is safe to drop into the WordPress theme.

   Breakpoints follow the theme order: base > 1399 > 1199 > 991 > 767 > 575 > 480
   ========================================================================= */


/* =========================================================================
   SHARED – used on BOTH pages
   ========================================================================= */

/* ---- Section heading (matches .serviceHead / .whyHead) ---- */
.careersIntroText { margin-bottom: 30px;}
.jobList ul.jobSkills li::before { display: none; }
.jobApplyForm .formField { margin-bottom: 15px;}

.careersHead{
    margin-bottom:55px;
}
.careersHead h2{
    font-family:var(--Jost);
    font-size:66px;
    line-height:1.1;
    font-weight:700;
    color:var(--light);
    text-transform:uppercase;
}
.careersHead h2 span{
    color:var(--accentColor);
}

/* ---- Small pill tags (employment type, arrangement, skills) ---- */
.jobTag{
    display:inline-flex;
    align-items:center;
    padding:6px 12px;
    border:1px solid rgba(165,169,174,.3);
    color:var(--textColor);
    font-family:var(--Inter);
    font-size:12px;
    line-height:1;
    font-weight:600;
    letter-spacing:1.5px;
    text-transform:uppercase;
    white-space:nowrap;
}
/* Arrangement tag (Office / Hybrid / Remote) is highlighted in brand orange */
.jobTag.is-arrangement{
    color:var(--accentColor);
    border-color:rgba(241,90,50,.55);
    background:rgba(241,90,50,.08);
}

/* ---- Orange square bullet list (same bullet as footer .linkGroup li) ---- */
.jobList{
    list-style:none;
    padding:0;
    margin:0;
}
.jobList li{
    position:relative;
    padding-left:22px;
    margin-bottom:16px;
    font-family:var(--Inter);
    font-size:17px;
    line-height:1.7;
    color:var(--textColor);
}
.jobList li:last-child{
    margin-bottom:0;
}
.jobList li::before{
    content:"";
    position:absolute;
    left:0;
    top:.8em;
    width:6px;
    height:6px;
    background:var(--accentColor);
}


/* =========================================================================
   PART 1 – CAREERS LISTING PAGE  (career.html)
   Sections: 1.1 Intro + Why join  ·  1.2 Open positions (job cards)
             1.3 General application
   ========================================================================= */

/* ---------- 1.1  INTRO + WHY JOIN ---------- */
.careersIntroSec{
    background:var(--lightBlue);
    padding:95px 0;
}
.careersIntroText h2{
    font-family:var(--Jost);
    font-size:54px;
    line-height:1.1;
    font-weight:700;
    text-transform:uppercase;
    color:var(--light);
    margin-bottom:25px;
}
.careersIntroText h2 span{
    color:var(--accentColor);
}
.careersIntroText p{
    font-family:var(--Inter);
    font-size:18px;
    line-height:1.8;
    color:var(--textColor);
}

/* 2 × 2 grid of "why join" benefits */
.careersBenefits{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:25px;
}
.careersBenefit{
    background:var(--secondary-color);
    border:1px solid rgba(165,169,174,.12);
    padding:30px 28px 32px;
    transition:var(--transition);
}
.careersBenefit:hover{
    border-color:rgba(241,90,50,.55);
}
.careersBenefit img{
    width:48px;
    margin-bottom:20px;
}
.careersBenefit h3{
    font-family:var(--Barlow);
    font-size:22px;
    line-height:1.3;
    font-weight:600;
    text-transform:uppercase;
    color:var(--light);
    margin-bottom:8px;
}
.careersBenefit p{
    font-family:var(--Inter);
    font-size:16px;
    line-height:1.7;
    color:var(--textColor);
}

/* ---------- 1.2  OPEN POSITIONS ---------- */
.careersListSec{
    background:var(--secondary-color);
    padding:105px 0;
}

/* Two cards per row; CMS loops one .jobCard per posting */
.jobGrid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:35px;
}
.jobCard{
    display:flex;
    flex-direction:column;
    background:var(--lightBlue);
    border:1px solid rgba(165,169,174,.12);
    padding:34px 32px 30px;
    transition:var(--transition);
}
.jobCard:hover{
    border-color:var(--accentColor);
    transform:translateY(-4px);
}
.jobCardTop{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    margin-bottom:22px;
}
.jobCard h3{
    font-family:var(--Barlow);
    font-size:30px;
    line-height:1.2;
    font-weight:600;
    text-transform:uppercase;
    color:var(--light);
    margin-bottom:14px;
}
.jobCard h3 a{
    color:inherit;
}
.jobCard:hover h3 a{
    color:var(--accentColor);
}
.jobCardSummary{
    font-family:var(--Inter);
    font-size:16px;
    line-height:1.7;
    color:var(--textColor);
    margin-bottom:24px;
}
/* Location / Arrangement meta rows */
.jobMeta{
    list-style:none;
    padding:22px 0 0;
    margin:auto 0 0;
    border-top:1px solid rgba(165,169,174,.15);
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px 20px;
}
.jobMeta li{
    padding:0;
    margin:0;
    font-family:var(--Inter);
    font-size:16px;
    line-height:1.4;
    color:var(--light);
}
.jobMeta li span{
    display:block;
    margin-bottom:5px;
    font-size:11px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--accentColor);
}
/* "View role ➔" link */
.jobLink{
    align-self:flex-start;
    display:inline-flex;
    align-items:center;
    gap:9px;
    margin-top:26px;
    font-family:var(--Inter);
    font-size:16px;
    font-style:italic;
    color:var(--accentColor);
}
.jobLink i{
    font-style:normal;
    transition:var(--transition);
}
.jobLink:hover{
    color:var(--light);
}
.jobLink:hover i{
    transform:translateX(5px);
}
/* Shown by the CMS when there are no open postings */
.jobEmpty{
    padding:50px 30px;
    text-align:center;
    border:1px dashed rgba(165,169,174,.3);
    color:var(--textColor);
    font-size:17px;
}

/* ---------- 1.3  GENERAL APPLICATION ---------- */
.careersGeneralSec{
    background:var(--lightBlue);
    padding:85px 0;
}
.careersGeneral{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
    padding:50px 55px;
    background:var(--secondary-color);
    border:1px solid rgba(165,169,174,.12);
    border-left:4px solid var(--accentColor);
}
.careersGeneral h2{
    font-family:var(--Jost);
    font-size:42px;
    line-height:1.15;
    font-weight:700;
    text-transform:uppercase;
    color:var(--light);
    margin-bottom:14px;
}
.careersGeneral h2 span{
    color:var(--accentColor);
}
.careersGeneral p{
    font-family:var(--Inter);
    font-size:17px;
    line-height:1.7;
    color:var(--textColor);
}
.careersGeneral p a{
    color:var(--accentColor);
}
.careersGeneral p a:hover{
    color:var(--light);
}
.careersGeneral .themebtn{
    flex:0 0 auto;
}


/* =========================================================================
   PART 2 – SINGLE JOB POSTING PAGE  (career-single.html)
   Sections: 2.1 Job detail (content + sticky overview)  ·  2.2 Apply form
   ========================================================================= */

/* ---------- 2.1  JOB DETAIL ---------- */
.jobDetailSec{
    background:var(--secondary-color);
    padding:95px 0;
}
.jobBack{
    display:inline-flex;
    align-items:center;
    gap:9px;
    margin-bottom:38px;
    font-family:var(--Inter);
    font-size:15px;
    font-style:italic;
    color:var(--accentColor);
}
.jobBack:hover{
    color:var(--light);
}

/* Left column – sections: Summary, Core skills, Responsibilities, Requirements, Nice-to-have */
.jobBlock{
    margin-bottom:52px;
}
.jobBlock:last-child{
    margin-bottom:0;
}
.jobBlock h2{
    font-family:var(--Barlow);
    font-size:34px;
    line-height:1.15;
    font-weight:600;
    text-transform:uppercase;
    color:var(--light);
    margin-bottom:22px;
    padding-left:18px;
    border-left:4px solid var(--accentColor);
}
.jobBlock p{
    font-family:var(--Inter);
    font-size:18px;
    line-height:1.8;
    color:var(--textColor);
}
.jobBlock.is-lead p{
    font-size:20px;
    color:rgba(255,255,255,.85);
}
/* Core skills chips */
.jobSkills{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0;
    padding:0;
    list-style:none;
}
.jobSkills li{
    margin:0;
    padding:10px 16px;
    background:var(--lightBlue);
    border:1px solid rgba(165,169,174,.18);
    font-family:var(--Inter);
    font-size:15px;
    line-height:1;
    color:var(--light);
}

/* Right column – sticky "Job overview" card */
.jobSidebar{
    position:sticky;
    top:120px;
    background:var(--lightBlue);
    border:1px solid rgba(165,169,174,.12);
    border-top:4px solid var(--accentColor);
    padding:36px 32px 34px;
}
.jobSidebar h3{
    font-family:var(--Barlow);
    font-size:26px;
    line-height:1.2;
    font-weight:600;
    text-transform:uppercase;
    color:var(--light);
    margin-bottom:24px;
}
.jobOverview{
    margin:0 0 28px;
    padding:0;
}
.jobOverview div{
    padding:15px 0;
    border-bottom:1px solid rgba(165,169,174,.15);
}
.jobOverview div:first-child{
    padding-top:0;
}
.jobOverview dt{
    margin-bottom:5px;
    font-family:var(--Inter);
    font-size:11px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--accentColor);
}
.jobOverview dd{
    margin:0;
    font-family:var(--Inter);
    font-size:16px;
    line-height:1.5;
    color:var(--light);
}
.jobSidebar .themebtn{
    width:100%;
}
.jobSidebarMail{
    display:block;
    margin-top:18px;
    text-align:center;
    font-family:var(--Inter);
    font-size:14px;
    font-style:italic;
    color:var(--textColor);
}
.jobSidebarMail:hover{
    color:var(--accentColor);
}

/* ---------- 2.2  APPLY SECTION (form + mailto fallback) ---------- */
.jobApplySec{
    background:var(--lightBlue);
    padding:95px 0;
    scroll-margin-top:80px;
}
.jobApplyInfo h2{
    font-family:var(--Jost);
    font-size:54px;
    line-height:1.1;
    font-weight:700;
    text-transform:uppercase;
    color:var(--light);
    margin-bottom:22px;
}
.jobApplyInfo h2 span{
    color:var(--accentColor);
}
.jobApplyInfo p{
    font-family:var(--Inter);
    font-size:17px;
    line-height:1.8;
    color:var(--textColor);
    margin-bottom:22px;
}
/* mailto fallback box */
.jobApplyAlt{
    margin-top:30px;
    padding:24px 26px;
    background:var(--secondary-color);
    border:1px solid rgba(165,169,174,.12);
    border-left:4px solid var(--accentColor);
}
.jobApplyAlt strong{
    display:block;
    margin-bottom:6px;
    font-family:var(--Barlow);
    font-size:20px;
    font-weight:600;
    text-transform:uppercase;
    color:var(--light);
}
.jobApplyAlt p{
    font-size:15px;
    line-height:1.7;
    margin-bottom:0;
}
.jobApplyAlt a{
    color:var(--accentColor);
    font-style:italic;
}
.jobApplyAlt a:hover{
    color:var(--light);
}

/* Form card – field styles come from style.css (.formField etc.) */
.jobApplyForm{
    background:var(--secondary-color);
    border:1px solid rgba(255,255,255,.08);
    padding:40px;
}
.jobApplyForm .formField label small{
    color:var(--textColor);
    font-weight:400;
}
/* File upload input */
.jobApplyForm .formField input[type="file"]{
    height:auto;
    padding:10px 12px;
    cursor:pointer;
    color:var(--textColor);
}
.jobApplyForm .formField input[type="file"]::file-selector-button{
    margin-right:14px;
    padding:10px 18px;
    border:0;
    background:var(--primary-color);
    color:var(--light);
    font-family:var(--Inter);
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:var(--transition);
}
.jobApplyForm .formField input[type="file"]::file-selector-button:hover{
    background:var(--light);
    color:var(--primary-color);
}
.jobFormHint{
    font-size:13px;
    line-height:1.5;
    color:var(--textColor);
}
/* Honeypot field (spam trap) – must stay invisible */
.jobHoneypot{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}


/* =========================================================================
   RESPONSIVE  (applies to both parts)
   ========================================================================= */

/* ---------- 1399px ---------- */
@media only screen and (max-width:1399px){
    .careersHead h2{font-size:56px;}
    .careersIntroText h2,
    .jobApplyInfo h2{font-size:46px;}
    .careersGeneral h2{font-size:36px;}
    .jobCard h3{font-size:26px;}
    .jobBlock h2{font-size:30px;}
    .jobBlock p{font-size:17px;}
    .jobBlock.is-lead p{font-size:19px;}
    .jobTag{font-size:11px;}
}

/* ---------- 1199px ---------- */
@media only screen and (max-width:1199px){
    .careersIntroSec,
    .careersListSec,
    .jobDetailSec,
    .jobApplySec{padding:80px 0;}
    .careersHead h2{font-size:48px;}
    .careersIntroText{margin-bottom:45px;}
    .jobGrid{gap:25px;}
    .jobCard{padding:30px 26px 26px;}
    .jobCard h3{font-size:24px;}
    .careersGeneral{padding:42px 40px;gap:35px;}
    .jobApplyInfo{margin-bottom:45px;}
    .jobSidebar{padding:30px 26px;}
}

/* ---------- 991px ---------- */
@media only screen and (max-width:991px){
    .careersIntroSec,
    .careersListSec,
    .jobDetailSec,
    .jobApplySec{padding:65px 0;}
    .careersGeneralSec{padding:60px 0;}
    .careersHead{margin-bottom:40px;}
    .careersHead h2{font-size:42px;}
    .careersIntroText h2,
    .jobApplyInfo h2{font-size:40px;}
    .jobGrid{grid-template-columns:1fr;}
    .careersGeneral{flex-direction:column;align-items:flex-start;}
    .careersGeneral h2{font-size:32px;}
    /* sidebar drops below the content and stops being sticky */
    .jobSidebar{position:static;margin-top:45px;}
    .jobBlock{margin-bottom:42px;}
    .jobBlock h2{font-size:28px;}
    .careersBenefit p, .careersGeneral p, .jobMeta li, .jobLink, .jobApplyInfo p { font-size: 15px;}
}

/* ---------- 767px ---------- */
@media only screen and (max-width:767px){
    .careersIntroSec,
    .careersListSec,
    .jobDetailSec,
    .jobApplySec{padding:55px 0;}
    .careersGeneralSec{padding:50px 0;}
    .careersHead h2{font-size:36px;}
    .careersIntroText h2,
    .jobApplyInfo h2{font-size:34px;}
    .careersBenefits{grid-template-columns:1fr;gap:18px;}
    .careersBenefit{padding:26px 22px;}
    .jobCard h3{font-size:23px;}
    .jobCardSummary{font-size:14px;}
    .careersGeneral{padding:34px 26px;}
    .careersGeneral h2{font-size:28px;}
    .careersGeneral .themebtn{width:100%;}
    .jobApplyForm{padding:28px 24px;}
    .jobBlock p,
    .jobBlock.is-lead p,
    .jobList li, .jobOverview dd, .jobApplyInfo p {font-size:14px;}
}

/* ---------- 575px ---------- */
@media only screen and (max-width:575px){
    .jobMeta{grid-template-columns:1fr;gap:14px;}
    .jobCard{padding:26px 22px 24px;}
    .jobBlock h2{font-size:25px;}
    .jobSkills li{padding:9px 13px;font-size:14px;}
    .jobApplyAlt{padding:20px 20px;}
}

/* ---------- 480px ---------- */
@media only screen and (max-width:480px){
    .careersHead h2{font-size:31px;}
    .careersIntroText h2,
    .jobApplyInfo h2{font-size:30px;}
    .jobCard h3{font-size:21px;}
    .careersGeneral h2{font-size:25px;}
    .jobApplyForm{padding:24px 18px;}
    .jobSidebar h3{font-size:23px;}
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
    .jobCard,
    .jobCard:hover,
    .jobLink i{transition:none;transform:none;}
}
