/* Helix Recruitment site styles (mobile-first). */

:root {
  --red: #b01e3e;
  --red-tint: #c23251;
  --black: #010b17;
  --charcoal: #394245;
  --blue-grey: #97a4a8;
  --border: #e5e7eb;
  --cta-bg: #fbfbfb;
  --cta-border: #e6e6e6;
  --footer-bg: #2a3e45;
  --footer-text: #acb0b2;
  --footer-link: #cdd2d4;
  --input-border: #c9cfd2;
  --error: #c0132f;

  --font: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --font-caption: "PT Sans Caption", var(--font);
  --font-serif: "PT Serif", Georgia, serif;

  --container: 1116px;
  --gutter: 1rem;
  --radius: 4px;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font: 1rem/1.5 var(--font);
  color: #000;
  background: #fff repeating-linear-gradient(90deg, #fff, #fff 5px, var(--cta-bg) 5px, var(--cta-bg) 10px);
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

p,
ul {
  margin-bottom: 1.5rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(176, 30, 62, 0.4);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 900px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
  z-index: 10;
  padding: 0.5rem 1rem;
  background: #fff;
}

/* ------------------------------------------------------------------ header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.brand img {
  width: 140px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .site-header {
    justify-content: space-between;
    margin-bottom: 2rem;
  }

  .brand {
    margin-left: 1.25rem;
  }

  .brand img {
    width: 160px;
  }

  .site-nav a {
    padding: 0.5rem 1.5rem;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  margin-bottom: 1.5rem;
  background: var(--black);
  color: #fff;
  overflow: hidden;
}

/* On narrow screens, crop the banner from the left so the boy stays in view. */
.hero img {
  width: auto;
  max-width: none;
  height: 220px;
  margin-left: -60px;
}

.hero h1 {
  padding: 1.25rem 1.5rem 1.5rem;
  font: 400 1.125rem/1.55 var(--font-caption);
}

.hero h1 strong {
  font-weight: 700;
}

@media (min-width: 640px) {
  /* Natural size (985px wide) on wider screens; the black background fills any space. */
  .hero img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    position: absolute;
    top: 50%;
    right: 8%;
    width: 410px;
    padding: 0;
    transform: translateY(-50%);
  }
}

/* ------------------------------------------------------------------ panels */

.panel {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
}

.panel__header h1,
.panel__header h2 {
  padding: 0.25rem 0 0.75rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--blue-grey);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

.section-title {
  margin: 1.5rem 0;
  font: 400 1.5rem/1.35 var(--font-serif);
  color: var(--red);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .panel--grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: start;
  }

  .panel--grid > * {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .panel--page {
    padding: 3rem;
  }
}

/* ------------------------------------------------------------------ employers */

.cta {
  margin: 2.5rem 0 1rem;
  padding: 1rem;
  text-align: center;
  font-size: 1.125rem;
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  scroll-margin-top: 1rem;
}

.cta strong {
  color: #000;
}

.services {
  margin-top: 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.service {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Icons keep their natural sizes (40–64px), centred in a fixed column. */
.service__icon {
  flex: none;
  width: 64px;
}

.service__icon img {
  margin: 0 auto;
}

.service h4 {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .service {
    gap: 1.25rem;
  }

  .service__icon {
    width: 74px;
  }
}

@media (min-width: 1024px) {
  .panel--grid .employers {
    grid-column: span 6;
  }

  .panel--grid .services {
    grid-column: span 6;
    margin-top: 1.5rem;
  }
}

/* ------------------------------------------------------------------ job seekers */

.bullets {
  list-style: none;
  padding: 0;
}

.bullets li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.bullets li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  font-weight: 700;
  color: var(--red);
}

.resources {
  text-align: center;
}

.resources img {
  width: 220px;
  margin: 1rem auto 2rem;
}

@media (min-width: 1024px) {
  .panel--grid .jobseekers {
    grid-column: span 7;
  }

  .panel--grid .resources {
    grid-column: span 5;
  }

  .resources img {
    width: 260px;
    margin-top: 0;
    margin-bottom: 2.5rem;
  }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-block;
  padding: 0.5rem 2rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--red-tint);
  color: #fff;
  font: 700 1rem/1.5 var(--font);
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

/* ------------------------------------------------------------------ forms */

.form {
  margin-top: 2rem;
}

.form__grid {
  display: grid;
  gap: 0 1.5rem;
}

@media (min-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .form {
    margin-top: 3rem;
    padding-right: 5rem;
  }
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--charcoal);
}

.required {
  color: var(--red);
}

.hint {
  margin: -0.15rem 0 0.5rem;
  font-size: 0.875rem;
  color: #6b777b;
}

.field input:not([type="file"]),
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: inherit;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  outline: 3px solid rgba(176, 30, 62, 0.2);
  outline-offset: 0;
}

.field input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed var(--input-border);
  border-radius: var(--radius);
  background: var(--cta-bg);
  font: inherit;
  font-size: 0.9rem;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* Netlify inserts the reCAPTCHA here when a form asks for one. */
[data-netlify-recaptcha] {
  margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  flex-shrink: 0;
  margin-top: 4rem;
  padding: 2.5rem 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.site-footer p {
  margin: 0;
}

.site-footer h2 {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.site-footer a {
  color: var(--footer-link);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.site-footer__brand img {
  width: 53px;
  margin: 0 auto 1rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .site-footer__contact {
    text-align: left;
  }

  .site-footer__legal {
    text-align: right;
  }
}

/* ------------------------------------------------------------------ print */

@media print {
  body {
    background: none;
  }

  .site-nav,
  .site-footer__brand img,
  .resources,
  .form {
    display: none;
  }

  .panel {
    border: 0;
    padding: 0;
  }
}
