/*
 * refresh.css — a light 2026 pass over the 2019 theme.
 *
 * Loaded AFTER style.css and deliberately additive: it changes type rhythm,
 * focus states, transitions and form/button polish, and touches no layout,
 * colour palette, image or piece of copy. Deleting the one <link> in
 * LegacyLayout.astro restores the original design exactly.
 *
 * Palette is the theme's own: brand blue #27a4d2, body grey #666, field grey #f6f6f6.
 */

:root {
  --hrc-blue: #27a4d2;
  --hrc-blue-dark: #1d87ae;
  --hrc-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Type rhythm ------------------------------------------------------- */
/* The theme sets 1.2rem/2.4rem — a 2.0 ratio that reads loose and dated at
   paragraph length. 1.7 is comfortable without changing the type size. */
body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p {
  line-height: 1.75;
}

/* Long paragraphs in the copy sections ran the full container width. */
.banner-botm-area p,
.find-work-section p,
.benefit-area p,
.job_description p {
  max-width: 72ch;
}

.banner-botm-area p,
.find-work-section > .container > h2,
.find-work-section > .container > p,
.benefit-area p {
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, h4 {
  letter-spacing: -0.01em;
}

h1 {
  line-height: 1.15;
}

h2, h3 {
  line-height: 1.25;
}

/* ---- Focus states ------------------------------------------------------ */
/* The 2019 theme removed outlines and put nothing back, so keyboard users had
   no visible position anywhere on the site. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.x-menu:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--hrc-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn,
.wpcf7-submit,
input[type="submit"] {
  border-radius: 4px;
  transition:
    background-color 0.2s var(--hrc-ease),
    color 0.2s var(--hrc-ease),
    transform 0.15s var(--hrc-ease),
    box-shadow 0.2s var(--hrc-ease);
}

.btn:hover,
.wpcf7-submit:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.btn:active,
.wpcf7-submit:active,
input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

.wpcf7-submit:hover,
input[type="submit"]:hover {
  background-color: var(--hrc-blue-dark) !important;
}

/* ---- Form fields ------------------------------------------------------- */
.uploadcv input,
.uploadcv select,
.uploadcv textarea,
.custom-file-label,
.modal-body .form-control {
  border-radius: 4px;
  font-size: 17px;
  transition:
    background-color 0.2s var(--hrc-ease),
    box-shadow 0.2s var(--hrc-ease);
}

.uploadcv input:focus,
.uploadcv select:focus,
.uploadcv textarea:focus,
.modal-body .form-control:focus {
  background-color: #fff;
  box-shadow: 0 0 0 2px var(--hrc-blue) inset;
}

.uploadcv ::placeholder,
.modal-body ::placeholder {
  color: #8d8d8d;
  opacity: 1;
}

/* ---- Job cards --------------------------------------------------------- */
/* The theme rendered each role as a flat text row divided by a 3px rule, with
   the location and job type as inline labels. Cards in a responsive grid, with
   the meta as chips, scan far better and collapse to one column cleanly. */
ul.job_listings.job-list {
  display: grid;
  /* Explicit width is required, not tidiness: as a grid container this <ul>
     shrink-wraps to a content-derived 609px inside its 1170px column and lays
     out a single track. With width:100% it resolves to three. */
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin: 0 0 30px;
  padding: 0;
}

ul.job_listings.job-list li.job-card {
  margin: 0;
}

ul.job_listings.job-list li.job-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 22px 20px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.2s var(--hrc-ease),
    box-shadow 0.2s var(--hrc-ease),
    transform 0.2s var(--hrc-ease);
}

ul.job_listings.job-list li.job-card > a:hover {
  transform: translateY(-3px);
  border-color: var(--hrc-blue);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

/* 'montextralight' maps U+002F "/" to a blank glyph rather than omitting it, so
   the browser considers it covered and never falls back — "Content Creator /
   Video Editor" rendered as a tofu box. Re-declaring the same file under its own
   family with the slash carved out of unicode-range is the only way to make the
   fallback apply to that one character. */
@font-face {
  font-family: "montextralight-fixed";
  src:
    url("/theme/fonts/mont-extralight.woff2") format("woff2"),
    url("/theme/fonts/mont-extralight.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0-2E, U+30-10FFFF;
}

ul.job_listings.job-list li.job-card h4 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
  text-decoration: none;
  font-family: "montextralight-fixed", "Poppins", sans-serif;
}

ul.job_listings.job-list li.job-card > a:hover h4 {
  text-decoration: underline;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.job-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
}

.job-chip-location {
  background: #eef6fa;
  color: #1d6c8c;
}

.job-chip-type {
  background: #f2f2f2;
  color: #4a4a4a;
}

/* .but was floated right against the row; in a card it anchors to the bottom. */
ul.job_listings.job-list li.job-card .but {
  float: none;
  margin-top: auto;
  align-self: flex-start;
  border-radius: 4px;
  padding: 9px 22px;
  font-size: 15px;
}

/* ---- Pagination -------------------------------------------------------- */
.page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  margin: 0 3px;
  text-align: center;
  border-radius: 4px;
  transition: background-color 0.2s var(--hrc-ease), color 0.2s var(--hrc-ease);
}

a.page-numbers:hover {
  background-color: #f1f1f1;
}

.page-numbers.current {
  background-color: var(--hrc-blue);
  color: #fff;
}

/* ---- Specialty tiles / market cards ------------------------------------ */
.techno li a {
  transition: transform 0.25s var(--hrc-ease), box-shadow 0.25s var(--hrc-ease);
}

.techno li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* ---- Off-canvas menu --------------------------------------------------- */
.full-menu a {
  transition: opacity 0.2s var(--hrc-ease), transform 0.2s var(--hrc-ease);
}

.full-menu a:hover {
  opacity: 0.75;
}

/* ---- Images ------------------------------------------------------------ */
img {
  max-width: 100%;
  height: auto;
}

/* ---- Motion preference ------------------------------------------------- */
/* The theme animates most sections in on scroll with no opt-out. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .animated {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ---- Small screens ----------------------------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 1.05rem;
  }

  .page-title {
    line-height: 1.2;
  }
}


/* ======================================================================== */
/* Mobile                                                                   */
/* ======================================================================== */
/* The 2019 theme is responsive in the Bootstrap sense — nothing overflows —
   but it was never designed for a phone: banner titles sit unreadably on
   bright photos, body copy is centred at full width, and tap targets are
   well under the 44px minimum. Most candidates arrive on a phone. */

@media (max-width: 767px) {
  /* -- Banner legibility ------------------------------------------------ */
  /* Page titles are white over whatever the photo happens to be. A scrim
     under the text guarantees contrast without dimming the whole image. */
  .page-heading {
    position: relative;
    display: flex;
    /* Not `center`: the header logo is fixed over the top of the banner, and a
       centred white title lands right behind it. Sit the title low instead,
       which is also where the theme put it. */
    align-items: flex-end;
    min-height: 320px;
    padding-bottom: 34px;
  }

  .page-heading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
  }

  .page-heading .cont,
  .page-heading .container {
    position: relative;
    z-index: 1;
  }

  .page-heading .page-title,
  .page-heading h1 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  }

  /* -- Home hero -------------------------------------------------------- */
  .home-banner {
    height: auto;
    min-height: 82vh;
    display: flex;
    align-items: center;
    padding: 90px 0 50px;
  }

  .home-banner h1 {
    margin-bottom: 26px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  }

  /* The search input and its button sat side by side and squeezed. */
  .home-banner form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home-banner form input[type="text"],
  .home-banner form .submit,
  .find-work-section form input[type="text"],
  .top-banner-botm-area form input[type="text"],
  .top-banner-botm-area form .submit {
    width: 100%;
    float: none;
    margin: 0;
  }

  /* -- Reading ---------------------------------------------------------- */
  /* Centred text is fine for a heading and hard work for a paragraph. */
  .banner-botm-area p,
  .find-work-section p,
  .benefit-area p,
  .job_description p,
  .overlap-content p {
    text-align: left;
    max-width: none;
  }

  /* -- Tap targets ------------------------------------------------------ */
  /* 44px is the accessibility floor; several of these were nearer 30. */
  /* Setting `display` here would resurrect elements the theme hides on mobile —
     the header's Upload CV button among them, which then lands on top of the
     logo. Height comes from min-height and padding instead. */
  .btn,
  .but,
  .page-numbers,
  input[type="submit"] {
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .page-numbers {
    min-width: 44px;
    margin: 3px;
  }

  .job-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* -- Forms ------------------------------------------------------------ */
  /* Under 16px, iOS zooms the whole page in on focus and never zooms back. */
  .uploadcv input,
  .uploadcv select,
  .uploadcv textarea,
  .custom-file-label,
  .modal-body .form-control,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px;
  }

  .uploadcv .row > [class^="col-"] {
    margin-bottom: 14px;
  }

  /* -- Menu button ------------------------------------------------------ */
  /* It is position:fixed and floats over whatever scrolls beneath it. */
  .x-menu {
    right: 1.25rem;
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
  }

  .x-menu.scroll {
    background-color: rgba(0, 0, 0, 0.6);
  }

  /* -- Job cards -------------------------------------------------------- */
  ul.job_listings.job-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  ul.job_listings.job-list li.job-card > a {
    padding: 18px;
  }

  ul.job_listings.job-list li.job-card .but {
    align-self: stretch;
    width: 100%;
  }

  /* -- Modal ------------------------------------------------------------ */
  .modal-dialog {
    margin: 12px;
  }

  .modal-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }
}

/* Between phone and desktop the job grid wants two columns at most. */
@media (min-width: 768px) and (max-width: 991px) {
  ul.job_listings.job-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Job search -------------------------------------------------------- */
/* The theme's search was a bare input and button floated to the right of the
   listing, colliding with it. It is now a proper search bar spanning the
   content, with a result count that is always visible. */
.job-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 0 0 14px;
  width: 100%;
}

.job-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.job-search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}

.job-search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #9a9a9a;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.job-search .job-search-field input[type="search"] {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 46px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  color: #333;
  transition:
    border-color 0.2s var(--hrc-ease),
    box-shadow 0.2s var(--hrc-ease);
}

.job-search .job-search-field input[type="search"]:focus {
  outline: none;
  border-color: var(--hrc-blue);
  box-shadow: 0 0 0 3px rgba(39, 164, 210, 0.18);
}

/* The native clear affordance differs per browser and is tiny; this replaces it. */
.job-search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.job-search-clear {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ececec;
  color: #555;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--hrc-ease);
}

.job-search-clear:hover {
  background: #ddd;
}

.job-search .submit {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 6px;
  background-color: var(--hrc-blue);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s var(--hrc-ease);
}

.job-search .submit:hover {
  background-color: var(--hrc-blue-dark);
}

.job-search-summary {
  margin: 0 0 22px;
  font-size: 15px;
  color: #777;
}

.job-search-summary[data-state="empty"] {
  color: #b3261e;
}

@media (max-width: 767px) {
  .job-search {
    flex-direction: column;
  }

  .job-search .submit {
    width: 100%;
  }
}

/* The role title on a job page is an <h1> for the document outline, but the
   theme only ever styled an <h2> there. Inherit that styling exactly. */
.job-content .row.top h1.job-title {
  margin: 0;
  color: #27a4d2;
  font-family: "montextralight-fixed", "Poppins", sans-serif;
  font-weight: 100;
  font-size: 2.5rem;
  line-height: 3.4rem;
}

@media (max-width: 767px) {
  .job-content .row.top h1.job-title {
    font-size: 1.6rem;
    line-height: 2.3rem;
  }
}
