/* Careers page template (page-careers.php)
   Theme colours: #1B1463 navy, #EF3400 orange, #0E0941 / #060517 dark */

.careers {
	--c-navy: #1B1463;
	--c-accent: #EF3400;
	--c-dark: #0E0941;
	--c-light: #F4F4F8;
}

.careers h2 {font-size: clamp(1.9rem, 3vw, 3rem); color: var(--c-navy); line-height: 1.05; margin-bottom: 1.25rem;}
.careers-eyebrow {font-family: "Titillium Web", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-accent); font-size: 1rem; margin-bottom: .5rem;}

/* ---------- Hero ----------
   Grid stack: image, shade and text share cell 1;
   the location panel overlays bottom-right on desktop and drops below on mobile. */
.careers-hero {display: grid; grid-template-columns: 1fr; position: relative; background-color: var(--c-dark);}
.careers-hero > * {grid-area: 1 / 1;}
.careers-hero > picture {display: block; min-height: 460px;}
.careers-hero-img {display: block; width: 100%; height: 100%; min-height: 460px; object-fit: cover;}
.careers-hero::after {content: ""; grid-area: 1 / 1; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(6,5,23,.75) 0%, rgba(6,5,23,.2) 55%, rgba(6,5,23,0) 100%), linear-gradient(0deg, rgba(6,5,23,.7) 0%, rgba(6,5,23,0) 45%);}

.careers-hero-text {align-self: end; z-index: 3; padding: 2.5rem 5%; max-width: 900px;}
.careers-hero h1 {font-size: clamp(2.6rem, 6vw, 6rem); color: #FFF; line-height: 1; margin-bottom: 1rem; text-shadow: 0 3px 12px rgba(0,0,0,.4);}
.careers-hero .lead {color: #FFF; font-size: clamp(1.1rem, 1.6vw, 1.6rem); max-width: 30em; text-shadow: 0 2px 8px rgba(0,0,0,.4);}


/* Location panel */
.careers-location {align-self: end; justify-self: end; z-index: 3; width: min(420px, 90%); margin: 0 5% 2.5rem 0; padding: 2rem 2.25rem; background: rgba(14,9,65,.92); color: #FFF;}
.careers .careers-location-title {font-size: 1.3rem; color: #FFF; text-transform: uppercase; margin-bottom: 1.5rem; padding-bottom: 1rem; position: relative;}
.careers-location-title::after {content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: var(--c-accent);}
.careers-location li {gap: 1rem; font-size: .95rem; margin-bottom: 1rem;}
.careers-location li:last-child {margin-bottom: 0;}
.careers-icon {width: 28px; height: 28px; flex-shrink: 0;}

/* ---------- Split text/image sections ---------- */
.careers-split {background: #FFF;}
.careers-split-text {padding: 3rem 5% 3rem 8%; max-width: 760px; margin-left: auto;}
.careers-split-img {display: block; width: 100%; height: 100%; min-height: 320px; max-height: 640px; object-fit: cover;}

/* Tick list */
.careers-checklist ul {list-style: none; padding: 0; margin: 1.25rem 0 1.75rem;}
.careers-checklist li {position: relative; padding-left: 2.1rem; margin-bottom: .55rem;}
.careers-checklist li::before {content: ""; position: absolute; left: 0; top: .15em; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;}

/* ---------- Benefits strip ---------- */
.careers-benefit + .careers-benefit {border-left: 1px solid rgba(255,255,255,.2);}
.careers-benefit-icon {width: 56px; height: 56px; color: var(--c-accent); margin-bottom: 1rem; object-fit: contain;}
.careers-benefits h3 {color: #FFF; font-size: 1.35rem; margin-bottom: .5rem;}
.careers-benefits p {font-size: .95rem; opacity: .85;}

/* ---------- Project cards ---------- */
.careers-cards {background: var(--c-light);}
.careers-card-img {display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.25rem;}
.careers-card h3 {color: var(--c-navy); font-size: 1.5rem; margin-bottom: .5rem;}
.careers-card p {font-size: 1rem; margin-bottom: .75rem;}
.careers-card-link {font-weight: 700; color: var(--c-accent); text-decoration: none;}
.careers-card-link::after {content: " \2192"; transition: margin .2s;}
.careers-card-link:hover, .careers-card-link:focus {color: var(--c-navy);}
.careers-card-link:hover::after {margin-left: .3rem;}

/* ---------- CTA ---------- */
.careers-cta {overflow: hidden;}
.careers-cta-img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center;}
.careers-cta::before {content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,9,65,.95) 0%, rgba(14,9,65,.8) 45%, rgba(14,9,65,.1) 100%);}
.careers-cta .container {z-index: 2;}
.careers .careers-cta h2 {color: #FFF; font-size: clamp(2rem, 4vw, 3.8rem); padding-bottom: 1.25rem; position: relative;}
.careers-cta h2::after {content: ""; position: absolute; left: 0; bottom: 0; width: 70px; height: 4px; background: var(--c-accent);}
.careers-cta p {color: #FFF;}

/* ---------- Responsive ---------- */
@media (min-width: 2000px) {
	.careers-split-text {max-width: 1000px;}
	.careers-location li {font-size: 1.2rem;}
}

@media (max-width: 991.98px) {
	.careers-location {grid-area: 2 / 1; justify-self: stretch; width: auto; margin: 0; padding: 2rem 6%; background: var(--c-dark);}
	.careers-hero-text {padding: 2rem 6%;}
	.careers-hero > picture {min-height: 0;}
	.careers-hero-picture .careers-hero-img {width: 100%; height: auto; min-height: 0; object-fit: contain;}
	.careers-split-text {max-width: none; padding: 2.5rem 6%;}
	.careers-benefit:nth-child(odd) {border-left: 0;}
	.careers-benefit:nth-child(n+3) {border-top: 1px solid rgba(255,255,255,.2);}
}

@media (max-width: 767.98px) {
	.careers-hero-img {min-height: 360px;}
	.careers-hero::after {display: none;}
	.careers-hero-text {grid-area: 2 / 1; align-self: stretch; max-width: none; background: var(--c-dark);}
	.careers-hero h1, .careers-hero .lead {text-shadow: none;}
	.careers-location {grid-area: 3 / 1;}
	.careers-benefits h3 {font-size: 1.1rem;}
	.careers-benefits p {font-size: .85rem;}
	.careers-cta::before {background: rgba(14,9,65,.85);}
}
