/* ============================================================
   Gilas Healthcare Services Inc. — Home (app/Views/site/home.php)
   Plain CSS. Colours come from the logo: blue #2881aa, green #75b237.
   Fonts (both from this site): Manrope for headings, Inter for text.
   Softly rounded cards and pictures (--radius), thin lines: a clean corporate look.
   ============================================================ */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
    --blue: #2881aa;
    --blue-dark: #1c6489;
    --navy: #0a2a3f;
    --navy-2: #0f3a56;
    --green: #75b237;
    --green-text: #4a8416;
    --ink: #1a3446;
    --muted: #546b7a;
    --line: #d5e0e7;
    --mist: #f2f6f9;
    --white: #fff;
    --head: "Manrope", "Segoe UI", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --logo-pad: 14px; /* the same space above and below the logo */
    --band: 86px;  /* the band with the headline under the picture (a fixed height, so the picture can take the rest) */
    --header: 100px;
    --gap: clamp(20px, 2.2vw, 32px);
    --col-gap: clamp(28px, 4vw, 72px); /* the space between two columns, the same in every section */
    --radius: 12px; /* the same rounded corners on every card and picture */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, table { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* one width and one side space for the bar, the header and every section, so their edges line up */
.wrap { width: min(1480px, 100% - clamp(40px, 9vw, 200px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 18px; background: var(--navy); color: var(--white); text-decoration: none; transition: top .2s; }
.skip:focus { top: 0; }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; padding: 15px 32px; border: 2px solid var(--blue); border-radius: 3px; background: var(--blue); color: var(--white); font: 700 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn--block { width: 100%; }
.btn--light { background: transparent; border-color: rgba(255, 255, 255, .75); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

/* ---------- the bar above the header ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .86); font-size: .78rem; }
.topbar__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 36px; padding-block: 8px; }
.topbar p, .topbar__where { display: flex; align-items: center; gap: 10px; }
.topbar address { font-style: normal; }
.topbar a { text-decoration: none; transition: color .2s; }
.topbar a:hover { color: #a9d874; }
.topbar svg { width: 16px; height: 16px; fill: none; stroke: #a9d874; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar__values { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.topbar__values i { width: 5px; height: 5px; background: var(--green); transform: rotate(45deg); }
.topbar__hiring { display: flex; align-items: center; gap: 12px; }
.topbar__hiring span { padding: 3px 9px; background: var(--green); color: var(--navy); font-weight: 800; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.topbar__hiring:hover { color: #a9d874; }
.topbar__reach { display: none; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 4px solid transparent; border-image: linear-gradient(90deg, var(--blue) 0 62%, var(--green) 62% 100%) 1; }
.header__bar { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 44px); padding-block: var(--logo-pad); }
.brand { display: block; flex: none; }
.brand img { width: 165px; }
.tagline { display: flex; flex-direction: column; gap: 2px; padding-left: clamp(20px, 2.4vw, 44px); border-left: 2px solid var(--line); line-height: 1.35; }
.tagline strong { font: 800 .95rem/1.2 var(--head); letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.tagline span { font-size: .84rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 48px); margin-left: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 40px); }
.nav li a { position: relative; display: block; padding: 10px 0; font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); text-decoration: none; }
.nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav li a:hover, .nav li a[aria-current] { color: var(--blue-dark); }
.nav li a:hover::after, .nav li a[aria-current]::after { transform: scaleX(1); }

/* the menu button on a phone: a hidden checkbox + its label (assets/gilas/js/menu.js only closes it again) */
.menu-check { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-btn span { width: 32px; height: 4px; border-radius: 2px; background: var(--navy); transition: transform .25s, opacity .2s; }
.menu-check:focus-visible + .menu-btn { outline: 3px solid var(--blue); outline-offset: 3px; }
.menu-check:checked + .menu-btn span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-check:checked + .menu-btn span:nth-child(2) { opacity: 0; }
.menu-check:checked + .menu-btn span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- hero ---------- */
/* The photo is shown on its own (nothing is laid over it, so every face stays visible); the words sit in a slim band under it.
   On a computer screen the photo and the band together fill what is left under the bar and the header, so nothing is cut off. */
.hero { display: flex; flex-direction: column; background: var(--navy); color: var(--white); }
.hero__photo { position: relative; display: block; flex: 1 1 auto; min-height: 320px; max-height: 56vw; overflow: hidden; background: var(--navy-2); }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
/* On a computer screen the picture and the band together fill everything under the top bar and the header, so no white shows under the band
   and nothing is cut off; the picture never gets taller than the photo can fill, nor shorter than the faces need. */
@media (min-width: 961px) {
    .hero__photo { flex: none; min-height: 0; max-height: none; height: clamp(36vw, calc(100vh - 221px), 56vw); height: clamp(36vw, calc(100svh - 221px), 56vw); }
    .hero__photo img { object-position: 50% 44%; }
}
.hero__band { flex: none; display: flex; align-items: center; height: var(--band); } /* the line is inside the band's height, so the picture keeps its size */
.hero__wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 14px clamp(32px, 6vw, 110px); padding-block: 6px; }
.eyebrow { margin-bottom: 14px; font: 700 .74rem/1.2 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--green-text); }
.hero .eyebrow { margin-bottom: 5px; font-size: .67rem; letter-spacing: .18em; color: #a9d874; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; color: var(--navy); letter-spacing: -.02em; }
h1 { font-size: clamp(1.15rem, 1.45vw, 1.6rem); color: var(--white); text-wrap: balance; }
.hero__side { padding-left: 4vw; } /* the buttons a little to the right, to balance the headline */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn { padding: 10px 22px; font-size: .72rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(44px, 5vw, 72px); }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); text-wrap: balance; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--gap) var(--col-gap); margin-bottom: clamp(28px, 3.4vw, 48px); padding-bottom: 0; }
.head__text { color: var(--muted); font-size: 1.05rem; }

/* a narrower computer window: the two buttons stay on one line inside the band */
@media (min-width: 961px) and (max-width: 1240px) {
    .hero__wrap { grid-template-columns: minmax(0, 1fr) auto; }
    .hero__side { padding-left: 0; }
    .actions { flex-wrap: nowrap; }
    .hero .btn { padding: 10px 14px; font-size: .68rem; letter-spacing: .08em; }
}

/* about */
.section--about { background: var(--white); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
.about__lead .eyebrow { display: flex; align-items: center; gap: 12px; }
.about__lead .eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--green); }
.about__lead h2 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); }
.about__text { margin-top: 16px; font-size: 1rem; color: var(--muted); max-width: 650px; text-wrap: pretty; }
.about__line { max-width: 650px; margin-top: 18px; font: 600 .98rem/1.6 var(--body); color: var(--navy); text-wrap: pretty; }
.about__line strong { color: var(--blue-dark); }
.about__more { margin-top: 30px; gap: 10px; }
.about__aims { display: grid; gap: var(--gap); }
.aim { border-radius: var(--radius); padding: clamp(20px, 2vw, 28px) clamp(22px, 2.4vw, 34px); background: var(--mist); border-left: 6px solid var(--blue); }
.aim--green { border-left-color: var(--green); }
.aim h3 { margin-bottom: 6px; font-size: 1.3rem; }
.aim p { font-size: .98rem; color: var(--muted); }

/* apply: the cards */
.section--apply { background: var(--mist); }
/* open positions: (no job in the table: a short notice) */
.positions__none { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--white); text-align: center; color: var(--muted); }
/* open positions: a row for each job (the chosen one is lifted), and beside them the per diem of the chosen job; both columns are the same height */
.positions { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: stretch; }
.positions__list { display: flex; flex-direction: column; gap: 14px; }
.position { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(14px, 2vw, 26px); padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; transition: box-shadow .25s, border-color .25s, background .25s; }
.position.is-active { border-color: var(--blue); background: linear-gradient(90deg, #eaf4f9, var(--white) 55%); box-shadow: 0 20px 36px -24px rgba(10, 42, 63, .5); }
.position.is-active .position__icon { background: var(--blue); }
.position__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); transition: background .25s; }
.position__icon svg { width: 26px; height: 26px; fill: none; stroke: #a9d874; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.position.is-active .position__icon svg { stroke: var(--white); }
.position h3 { font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.position__name p { margin-top: 4px; font-size: .88rem; color: var(--muted); }
.position__rate { display: grid; justify-items: end; gap: 4px; text-align: right; }
.position__rate strong { font: 800 clamp(1.5rem, 2.2vw, 2rem)/1 var(--head); letter-spacing: -.03em; color: var(--navy); }
.position__rate span { margin-right: 2px; font-size: .62em; color: var(--green-text); }
.position__rate small { font: 700 .66rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* the allowances sit on top of each other in one place, so the column is as tall as the tallest; the chosen one shows */
.allowances { display: grid; }
.position__hint, .position__allowance { display: none; }
.allowance { grid-area: 1 / 1; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius); box-shadow: 0 30px 50px -30px rgba(10, 42, 63, .6); background: radial-gradient(ellipse at 0 0, rgba(40, 129, 170, .45), transparent 62%), linear-gradient(135deg, #0c3149, var(--navy) 65%, #082235); color: rgba(255, 255, 255, .86); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.allowance.is-active { opacity: 1; visibility: visible; }
.allowance__eyebrow { font: 700 .68rem/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #a9d874; }
.allowance h3 { margin-top: 10px; font-size: clamp(1.3rem, 1.8vw, 1.6rem); color: var(--white); }
.allowance__text { margin-top: 10px; font-size: .94rem; color: rgba(255, 255, 255, .72); }
.allowance__group { margin: 24px 0 0; padding: 0; }
.allowance__group dt { margin-bottom: 8px; font: 700 .7rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #a9d874; }
.allowance__group dd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; padding: 10px 14px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: .95rem; }
.allowance strong { font: 800 1.2rem/1 var(--head); color: var(--white); }
.allowance small { font: 400 .78rem var(--body); color: rgba(255, 255, 255, .62); }
.allowance__mileage { display: flex; justify-content: space-between; align-items: center; margin: auto 0 0; padding: 14px 18px; border-radius: 8px; background: rgba(255, 255, 255, .09); font-size: .94rem; }
.allowance__group:last-of-type { margin-bottom: 20px; }
.allowance__mileage strong { color: #a9d874; }

/* services: a dark panel with an editorial list, one hairline row per service */
.section--services { background: var(--navy); background-image: radial-gradient(ellipse at 85% 0, rgba(40, 129, 170, .28), transparent 55%); color: rgba(255, 255, 255, .78); }
.section--services .head h2 { color: var(--white); }
.section--services .eyebrow { color: #a9d874; }
.section--services .head__text { color: rgba(255, 255, 255, .72); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); list-style: none; }
.tile { position: relative; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding: clamp(22px, 2.4vw, 34px) 0; transition: padding .3s; }
.tile__no { order: 1; flex: none; width: 2.2ch; font: 300 1rem var(--head); letter-spacing: .12em; color: #a9d874; }
.tile__text { order: 2; flex: 1; min-width: 0; transition: transform .3s; }
.tile h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; color: var(--white); }
.tile__text p { margin-top: 6px; font-size: .93rem; line-height: 1.5; color: rgba(255, 255, 255, .66); }
.tile__icon { order: 3; flex: none; width: 46px; height: 46px; padding: 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: background .3s, stroke .3s, border-color .3s; }
.tile:hover .tile__text { transform: translateX(8px); }
.tile:hover .tile__icon { background: var(--green); border-color: var(--green); stroke: var(--navy); }

/* ---------- footer ---------- */
/* clients: four tall pictures in a row, each with its name over a dark fade */
.section--clients { background: var(--white); }
.regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.region { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--navy-2); }
.region img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.region:first-child img { object-position: 22% 50%; }
.region::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 42, 63, 0) 40%, rgba(10, 42, 63, .88)); }
.region__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 1.8vw, 26px); border-bottom: 4px solid var(--green); }
.region__no { display: block; margin-bottom: 8px; font: 700 .72rem/1 var(--body); letter-spacing: .2em; color: #a9d874; }
.region h3 { color: var(--white); font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.25; }
.region:hover img { transform: scale(1.06); }

/* apply now: the window of a job (a <dialog> opened by the Apply now button of its card) with the job and the application form */
.job { width: min(1380px, 100% - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--white); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); }
.job::backdrop { background: rgba(0, 0, 0, .55); }
.job[open] { animation: job-in .35s cubic-bezier(.2, .8, .2, 1); }
.job[open]::backdrop { animation: job-fade .35s ease; }
.job.is-closing { animation: job-out .25s ease forwards; }
.job.is-closing::backdrop { animation: job-fade .25s ease reverse forwards; }
@keyframes job-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes job-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes job-fade { from { opacity: 0; } to { opacity: 1; } }
body:has(.job[open]) { overflow: hidden; }
.job__panel { position: relative; }
/* a fine blue line a little inside the edge: the window looks framed */
.job__close { position: absolute; top: 18px; right: 18px; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: 0 6px 16px rgba(0, 0, 0, .28); cursor: pointer; transition: background .2s, color .2s; }
.job__close:hover { background: var(--white); color: var(--navy); }
.job__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* the body is one grid: the head across the top, the job on the left, the form on the right (it stays in view while the job is read); the only scrollbar */
.job__body { --pad: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); column-gap: clamp(22px, 3.2vw, 56px); row-gap: 0; align-content: start; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 0 0 clamp(26px, 3vw, 40px); background: var(--mist); }
.job__body::before { content: ""; grid-column: 1 / -1; grid-row: 1 / 3; background: radial-gradient(ellipse at 0 0, rgba(40, 129, 170, .5), transparent 62%), linear-gradient(135deg, #0c3149, var(--navy) 65%, #082235); }
.job__body > h2, .job__body > .job__meta { grid-column: 1 / -1; position: relative; z-index: 1; margin: 0; padding-inline: var(--pad); color: var(--white); }
.job__body > h2 { grid-row: 1; }
.job__body > .job__meta { grid-row: 2; }
.job__body > h2 { padding-top: clamp(26px, 3vw, 38px); padding-right: calc(var(--pad) + 44px); font-size: clamp(1.4rem, 2.6vw, 2.05rem); }
.job__body > h2::before { content: "Now hiring"; display: block; margin-bottom: 12px; font: 700 .7rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: #a9d874; }
.job__body > .job__meta { padding-top: 14px; padding-bottom: clamp(22px, 2.6vw, 30px); font-size: 1.05rem; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.job__meta::first-line { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #a9d874; }

.job__body > h3, .job__body > p, .job__body > ul { grid-column: 1; margin-left: var(--pad); }
.job__body > h3 { display: flex; align-items: center; gap: 12px; margin-top: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; font-size: 1.1rem; }
.job__body > p:not(.job__note):not(.job__meta) { position: relative; margin-top: 0; margin-bottom: 8px; padding-left: 22px; font-size: .96rem; line-height: 1.55; color: var(--muted); }
.job__body > p:not(.job__note):not(.job__meta)::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.job__body > .job__note { margin-top: clamp(24px, 2.6vw, 32px); }
.job__note { margin-top: 0; margin-bottom: 14px; color: var(--muted); font-size: .95rem; }
.job__note strong { color: var(--navy); }
.job__list { display: grid; gap: 10px; }
.job__list li { position: relative; padding-left: 32px; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.job__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); }
.job__list li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 7px; height: 3px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg); }

/* per diem: the mileage as a navy strip, the shifts as small cards */
.job__list--box { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
.job__list--box li { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 72px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: .88rem; font-weight: 400; line-height: 1.35; color: var(--muted); }
.job__list--box li strong { font: 800 1.25rem/1 var(--head); color: var(--navy); }
.job__list--box li small { font: 400 .8rem var(--body); color: var(--muted); }
.job__list--box li::before, .job__list--box li::after { content: none; }
.job .job__list--box .job__mileage { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; padding: 14px 18px; border-color: transparent; background: var(--navy); color: rgba(255, 255, 255, .85); }
.job .job__list--box .job__sub + .job__mileage { background: var(--white); border-color: var(--line); color: var(--muted); }
.job .job__list--box .job__sub + .job__mileage strong { color: var(--blue-dark); }
.job .job__list--box .job__sub + .job__mileage small { color: var(--muted); }
.job .job__list--box .job__mileage strong { font-size: 1.1rem; color: #a9d874; }
.job .job__list--box .job__mileage small { color: rgba(255, 255, 255, .65); }
.job .job__list--box .job__sub { grid-column: 1 / -1; min-height: 0; padding: 4px 2px 0; border: 0; background: transparent; font: 700 .72rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--green-text); }

/* the form: a white card with the blue edge */
.job__form { grid-column: 2; grid-row: 3 / span 40; align-self: start; position: sticky; top: 24px; margin: clamp(24px, 2.6vw, 32px) var(--pad) 0 0; padding: 4px 0 0 clamp(24px, 3.2vw, 56px); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.job__form h3 { display: block; margin: 0 0 8px; font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.job__form .job__note { margin-top: 14px; margin-bottom: 0; }
.job__form .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin: 26px 0 26px; }
.job__form .fields input, .job__form .fields textarea { padding: 16px 17px; background: #f5f9fb; font-size: 1.02rem; }
.job__form .fields textarea { min-height: 140px; }
.job__form .btn { width: 100%; padding: 19px 32px; font-size: .9rem; }
.job__for { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 18px; padding: 10px 16px; border-radius: 8px; background: #e8f2f8; }
.job__for span { font: 700 .66rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--green-text); }
.job__for strong { font: 800 1rem/1.3 var(--head); color: var(--navy); }
.job__hint { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
/* a form being sent: the button and the fields are disabled and look it; a small spinner turns in the button */
.btn:disabled { cursor: not-allowed; opacity: .75; }
.is-sending input:disabled, .is-sending textarea:disabled { opacity: .6; cursor: not-allowed; }
.is-sending .btn:disabled::before { content: ""; width: 14px; height: 14px; margin-right: 12px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: var(--white); border-radius: 50%; animation: form-spin .7s linear infinite; }
@keyframes form-spin { to { transform: rotate(360deg); } }
.job__privacy { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.job__after { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.job__help { margin: 0; padding: 14px 18px; border: 1px dashed var(--border, #bccdd8); border-radius: 8px; background: var(--white); font-size: .88rem; color: var(--muted); }
.job__help a { font-weight: 700; color: var(--blue-dark); text-decoration: none; }
.job__help a:hover { color: var(--navy); text-decoration: underline; }
.job .fields input[type="file"] { padding: 8px; border-style: dashed; background: var(--white); cursor: pointer; }
.job .fields input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 4px; background: var(--navy); font: 700 .68rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--white); cursor: pointer; transition: background .2s; }
.job .fields input[type="file"]:hover::file-selector-button { background: var(--blue); }
@media (max-width: 980px) {
    .job__body { grid-template-columns: 1fr; }
    .job__form { grid-column: 1; grid-row: auto; position: static; margin: 28px var(--pad) 0; padding-left: 0; border-left: 0; }
    .job__body > h3, .job__body > p, .job__body > ul { margin-right: var(--pad); }
}
@media (max-width: 520px) {
    .job__form .fields { grid-template-columns: 1fr; }
    .job__list--box { grid-template-columns: 1fr; }
    .job__body > h2 { padding-right: calc(var(--pad) + 36px); }
}
.job { transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.job.is-done { width: min(600px, 100% - 32px); }
.job.is-done .job__body { display: none; }
.job__thanks { display: none; padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(32px, 4vw, 44px); text-align: center; outline: none; }
.job.is-done .job__thanks { display: block; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.job.is-done .job__thanks > *, .contact__thanks.is-done > * { animation: job-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.job.is-done .job__thanks > :nth-child(2), .contact__thanks.is-done > :nth-child(2) { animation-delay: .15s; }
.job.is-done .job__thanks > :nth-child(3), .contact__thanks.is-done > :nth-child(3) { animation-delay: .2s; }
.job.is-done .job__thanks > :nth-child(4), .contact__thanks.is-done > :nth-child(4) { animation-delay: .25s; }
.job.is-done .job__thanks > :nth-child(5), .contact__thanks.is-done > :nth-child(5) { animation-delay: .32s; }
.job.is-done .job__thanks > :nth-child(6), .contact__thanks.is-done > :nth-child(6) { animation-delay: .4s; }
.job.is-done .job__thanks > :nth-child(7), .contact__thanks.is-done > :nth-child(7) { animation-delay: .48s; }
.job__seal { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #8ac24a, var(--green-text)); box-shadow: 0 0 0 8px rgba(117, 178, 55, .16), 0 18px 30px -12px rgba(74, 132, 22, .7); }
.job__seal svg { width: 52px; height: 52px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.job__seal-ring { stroke-opacity: .35; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.job__seal-tick { stroke-dasharray: 40; stroke-dashoffset: 40; }
.job.is-done .job__seal-ring, .contact__thanks.is-done .job__seal-ring { animation: job-draw .7s .1s ease forwards; }
.job.is-done .job__seal-tick, .contact__thanks.is-done .job__seal-tick { animation: job-draw .45s .55s ease forwards; }
.job__thanks .eyebrow, .contact__thanks .eyebrow { margin-bottom: 10px; }
.job__thanks h3, .contact__thanks h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.job__thanks-text, .contact__thanks-text { max-width: 420px; margin: 12px auto 0; color: var(--muted); }
.job__ref-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; margin: 28px 0 0; padding: 16px 18px 16px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); text-align: left; }
.job__ref-label { grid-column: 1; font: 700 .68rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.job__ref { grid-column: 1; font: 800 1.15rem/1.4 var(--head); letter-spacing: .06em; color: var(--navy); overflow-wrap: anywhere; }
.job__copy { grid-column: 2; grid-row: 1 / 3; padding: 9px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font: 700 .7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.job__copy:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.job__next { display: grid; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: next; text-align: left; }
.job__next li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 52px; counter-increment: next; }
.job__next li:last-child { padding-bottom: 0; }
.job__next li::before { content: counter(next); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); font: 800 .85rem/1 var(--head); color: var(--white); }
.job__next li::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 6px; width: 2px; background: var(--line); }
.job__next li:last-child::after { content: none; }
.job__next strong { font: 800 .98rem/1.3 var(--head); color: var(--navy); }
.job__next span { font-size: .92rem; color: var(--muted); }
.job__thanks .btn, .contact__thanks .btn { margin-top: 32px; min-width: 180px; }
.contact__side { display: flex; flex-direction: column; justify-content: center; background: var(--mist); }
.contact__thanks { padding: clamp(28px, 3.4vw, 52px); text-align: center; outline: none; }
.contact__thanks[hidden] { display: none; }
@media (min-width: 981px) and (max-height: 860px) {
    /* a laptop screen is short: a slimmer head and a tighter form, so the whole form is in view */
    .job__body > h2 { padding-top: 18px; font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
    .job__body > h2::before { margin-bottom: 8px; }
    .job__body > .job__meta { padding-top: 6px; padding-bottom: 16px; font-size: .98rem; }
    .job__form { margin-top: 18px; }
    .job__form .job__note { margin-top: 10px; }
    .job__form h3::after { margin-top: 8px; }
    .job__form .fields { gap: 12px 16px; margin: 14px 0 16px; }
    .job__form .fields input, .job__form .fields textarea { padding: 11px 14px; }
    .job__form .fields textarea { min-height: 64px; }
    .job__form .btn { padding: 15px 28px; }
}
@keyframes job-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes job-draw { to { stroke-dashoffset: 0; } }

/* instagram: a heading with the profile button, then a row of six rounded square pictures; each opens its post */
.section--social { background: var(--mist); }
.head__side { display: grid; justify-items: start; gap: 18px; }
.head__side .head__text { margin: 0; }
.btn__icon { width: 16px; height: 16px; margin-right: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.insta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.insta__tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--navy-2); }
.insta__tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.insta__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-dark), var(--navy) 70%); }
.insta__ph img { width: 44px; height: 44px; padding: 8px; border-radius: 50%; background: var(--white); }
.insta__over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 42, 63, .55); opacity: 0; transition: opacity .3s; }
.insta__over svg { width: 34px; height: 34px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.insta__tile:hover > img { transform: scale(1.06); }
.insta__tile:hover .insta__over, .insta__tile:focus-visible .insta__over { opacity: 1; }

/* contact: the same look as the Apply now window: a navy panel with the ways to reach us, the form beside it on the light background */
.section--contact { background: var(--white); padding-bottom: clamp(40px, 4.5vw, 64px); }
.contact { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; border-radius: 14px; background: var(--mist); }
.contact__info { padding: clamp(30px, 3.6vw, 56px); background: radial-gradient(ellipse at 0 0, rgba(40, 129, 170, .5), transparent 62%), linear-gradient(135deg, #0c3149, var(--navy) 65%, #082235); color: rgba(255, 255, 255, .82); }
.contact__info .eyebrow { color: #a9d874; }
.contact__info h3 { color: var(--white); font-size: clamp(1.5rem, 2.2vw, 2rem); }
.contact__lead { margin-top: 16px; max-width: 360px; }
.contact__list { margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.contact__list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.contact__list svg { flex: none; width: 42px; height: 42px; padding: 11px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .06); fill: none; stroke: #a9d874; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__list span { display: grid; gap: 3px; min-width: 0; }
.contact__list small { font: 700 .66rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #a9d874; }
.contact__list a { font-weight: 600; color: var(--white); text-decoration: none; transition: color .2s; }
.contact__list a:hover { color: #a9d874; }
.contact__list address { font-style: normal; font-weight: 600; color: var(--white); }
.contact__form { padding: clamp(30px, 3.6vw, 56px); background: transparent; }
.contact__form h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.contact__intro { margin: 16px 0 clamp(20px, 2.4vw, 30px); color: var(--muted); }
.contact__form .fields { gap: 22px 20px; margin-bottom: 26px; }
.contact__form .fields input, .contact__form .fields textarea { padding: 16px 17px; background: var(--white); font-size: 1.02rem; }
.contact__form .fields textarea { min-height: 150px; }
.contact__form .btn { width: 100%; padding: 19px 32px; font-size: .9rem; }
.form__privacy { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-bottom: 24px; }
.fields label { display: grid; gap: 8px; font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.fields__wide { grid-column: 1 / -1; }
.fields input, .fields textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--mist); font: 400 1rem/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.fields textarea { resize: vertical; min-height: 120px; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(40, 129, 170, .18); }
.form__error { min-height: 0; font: 400 .8rem/1.3 var(--body); letter-spacing: 0; text-transform: none; color: #b3261e; }
.fields .has-error input, .fields .has-error textarea,
.fields .has-error input:focus, .fields .has-error textarea:focus { border-color: #b3261e; background: #fdf4f2; box-shadow: none; }
.form__status { margin-bottom: 14px; font-size: .92rem; color: var(--muted); }
.form__status.is-error { color: #b3261e; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { background: var(--navy); color: rgba(255, 255, 255, .72); border-top: 6px solid var(--green); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(20px, 2.4vw, 40px); padding-block: 18px; font-size: .8rem; }
.footer__bar p { margin: 0; }
.footer nav { margin-left: auto; } /* the menu sits on the right, next to the icons; the copyright stays on the left */
.footer nav ul { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 1.8vw, 28px); margin: 0; padding: 0; list-style: none; }
.footer nav a { font: 700 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--white); text-decoration: none; transition: color .2s; }
.footer nav a:hover { color: #a9d874; }
.footer__end { display: flex; align-items: center; gap: 16px; }
.footer__end a { color: var(--white); font-weight: 700; text-decoration: none; transition: color .2s; }
.footer__end p a:hover { color: #a9d874; }
.footer__social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer__social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: var(--white); transition: background .2s, border-color .2s, color .2s; }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.footer__social svg.is-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__social a:hover { background: var(--green); border-color: var(--green); color: var(--navy); }

/* ---------- smaller screens ---------- */
@media (max-width: 1500px) {
    .tagline span { display: none; }
}

@media (max-width: 1700px) {
    .topbar .topbar__values { display: none; }
}

@media (max-width: 1400px) {
    .topbar .topbar__hiring { display: none; }
    .topbar__bar { justify-content: flex-start; }
}

@media (max-width: 1200px) {
    .tagline { display: none; }
    .topbar .topbar__hiring { display: none; }
    .topbar__bar { justify-content: flex-start; }
    .positions { grid-template-columns: 1fr; }
    .allowances { display: none; }
    .position { cursor: pointer; }
    /* on a phone the per diem opens inside the row that was touched, not at the bottom of the page */
    .position__hint { display: inline-flex; align-items: center; gap: 8px; grid-column: 1 / -1; grid-row: 3; font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dark); }
    .position__hint::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
    .position.is-active .position__hint::after { transform: rotate(-135deg) translate(-2px, 0); }
    .position__allowance { display: grid; grid-column: 1 / -1; grid-row: 4; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
    .position__allowance > .allowance { min-height: 0; overflow: hidden; padding-block: 0; opacity: 1; visibility: visible; transform: none; transition: padding .35s ease; }
    .position.is-active .position__allowance { grid-template-rows: 1fr; }
    .position.is-active .position__allowance > .allowance { padding-block: 24px; }
    .nav { gap: 28px; }
    .brand img { width: 150px; }
}

@media (max-width: 960px) {
    .insta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact { grid-template-columns: 1fr; }
    .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :root { --logo-pad: 14px; --header: 92px; }
    /* a phone or tablet: the bar shows the two ways to reach us (nothing wider than the screen), the menu button is just three thick lines, and the line under the header is thicker */
    .topbar__where { display: none; }
    .topbar__reach { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; width: 100%; font-weight: 600; }
    .topbar__reach a { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
    .topbar__bar { padding-block: 9px; }
    .header { border-bottom-width: 6px; }
    .header__bar { justify-content: space-between; }
    .brand img { width: 136px; }
    .menu-btn { display: flex; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 18px; padding: 8px clamp(16px, 4vw, 40px) 26px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 26px 30px -22px rgba(10, 42, 63, .5); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
    .menu-check:checked ~ .nav { visibility: visible; opacity: 1; transform: none; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav li a { padding: 17px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
    .nav li a::after { display: none; }
    .head, .about { grid-template-columns: 1fr; }
    /* the whole photo, then the band: nobody is cropped or covered */
    .hero { display: block; height: auto; }
    .hero__photo { position: static; flex: none; min-height: 0; max-height: none; aspect-ratio: 3 / 2; }
    .hero__photo img { position: static; }
    .hero__wrap { grid-template-columns: 1fr; padding-block: 28px 34px; }
    .hero__side { padding-left: 0; }
    .hero__band { height: auto; }
    .actions { margin-top: 20px; }
    .hero .btn { padding: 14px 28px; font-size: .78rem; }
    h1 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
}

@media (max-width: 640px) {
    .insta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fields { grid-template-columns: 1fr; }
    :root { --logo-pad: 14px; --header: 84px; }
    .topbar { font-size: .72rem; }
    .brand img { width: 116px; }
    .actions .btn { flex: 1 1 100%; }
    .tiles { grid-template-columns: 1fr; }
    .position { grid-template-columns: auto minmax(0, 1fr); }
    .position__rate { grid-column: 1 / -1; grid-row: 2; justify-items: start; text-align: left; grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 10px; }
    .position .btn { grid-column: 1 / -1; grid-row: 5; width: 100%; }

    .regions { grid-template-columns: 1fr; }
    .region { aspect-ratio: 4 / 3; }
    .tile__icon { width: 40px; height: 40px; padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .job[open], .job[open]::backdrop { animation: none; }
    .job__seal-ring, .job__seal-tick { stroke-dashoffset: 0 !important; }
    .is-sending .btn:disabled::before { animation: none; }
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
