/* www.stability-hr.com, rebuilt from the old Astra 4.9 + Spectra 2.20 + WPForms Lite home page.
   Values come from the live page's computed styles and the CSS rules that matched them
   (tests/dump.py, 28 widths 320-1920 + iPhone 13, 2026-11-13). Breakpoints are the old ones:
     <= 976   Spectra tablet: hero 600px tall and centred, cards 70px apart, contact heading 30px
     <= 921   Astra tablet: html font-size 91.2%, phone header (burger), footer stacks, button 16/32
     <= 767   Spectra mobile: hero 500px, cards one per row, contact columns stack
     <= 600   WPForms: fields full width
     <= 544   Astra mobile: header without margins, button 15/28, footer paddings
   Colours (Astra globals): purple #6528F7 / hover #5511F8, ink #0F172A, text #454F5E, border #989898,
   field background #FAFAFA. Fonts: DM Sans 400 and Lexend 300/500/600 only, as on the old site
   (bold is synthesised from them, as it was there). */

:root {
  --purple: #6528F7; --purple-dark: #5511F8; --ink: #0F172A; --text: #454F5E; --line: #989898; --field: #FAFAFA;
}
html { box-sizing: border-box; font-size: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0; background: #fff; color: var(--text); overflow-x: hidden;
  font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 1rem; line-height: 1.7em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2 { font-family: 'Lexend', sans-serif; color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: var(--text); text-decoration: none; }
a:hover, a:focus { color: var(--purple); }
a:focus-visible { outline: thin dotted; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 6px; top: 7px; z-index: 100000; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden;
  background: #f1f1f1; color: #21759b; font-size: 14px; font-weight: 700; line-height: normal; padding: 15px 23px 14px; }
.skip-link:focus { clip: auto; width: auto; height: auto; }

/* ---- Header: over the hero (Astra's transparent header) --------------------------------- */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 99; }
.site-head__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1240px; min-height: 80px; margin: 10px auto; padding: 0 20px;
}
/* The logo sits in a line box (line-height 1, 1em padding), as Astra's site-branding does: that
   is what makes the bar 111px tall on computers and 105px on tablets. */
.site-head__brand { line-height: 1; padding: 1em 0; }
.site-head__logo img { display: inline; width: 100px; max-width: 100px; height: auto; vertical-align: middle; }
.site-head__right { display: flex; align-items: center; align-self: stretch; }
.site-head__nav { display: flex; padding-right: 10px; }
.site-head__link {
  display: flex; align-items: center; padding: 0 1em; line-height: 80px;
  color: #000; background-color: rgba(255, 255, 255, 0); text-transform: uppercase;
}
.site-head__link:hover, .site-head__link:focus { color: #2C541D; }
.site-head__phone { margin-left: 10px; font-size: .9375rem; }
/* The old phone number had an inline style: 12pt, black. */
.site-head__phone a { font-size: 1rem; color: #000; }
.site-head__toggle { display: none; }
.site-head__menu { display: none; }

/* ---- Hero ----------------------------------------------------------------------------- */
.hero {
  position: relative; display: flex; min-height: 100vh; padding: 18% 0 0;
  background: url(img/hero-bg.jpg) 86% 80% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: #FFFFFF75; opacity: .6; pointer-events: none; }
.hero__inner {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  width: 100%; max-width: min(100%, 1140px); margin: 0 auto;
}
.hero h1 { width: 100%; margin: 0 0 20px; font-size: 42px; font-weight: 600; line-height: 1.3em; text-align: center; text-transform: uppercase; }

/* ---- Three boxes (Spectra info boxes) ----------------------------------------------------- */
.cards { margin: 80px 0; }
.cards__inner {
  display: grid; grid-template-columns: repeat(3, minmax(1px, 34%)); grid-template-rows: minmax(1px, 1fr);
  column-gap: 0; place-items: stretch center; place-content: center;
  width: 100%; max-width: min(100%, 1140px); margin: 0 auto;
}
.card { position: relative; width: 100%; padding: 20px; text-align: left; overflow-wrap: break-word; }
/* Spectra's info box content is an inline-block: on phones its line box adds ~1px under the text.
   Used by the three boxes and the contact heading box. */
.card__body { display: inline-block; width: 100%; }
.card img { display: block; width: 100%; height: auto; padding-bottom: 20px; line-height: 0; }
.card h2 { margin: 10px 0; font-size: 24px; font-weight: 600; line-height: 1.2em; }
.card p { margin: 0 20px 0 0; font-size: 17px; }

/* ---- Contact (Spectra container + WPForms) -------------------------------------------- */
.contact {
  position: relative; display: flex; min-height: 40vh; margin: 80px 0 100px;
  background: linear-gradient(90deg, rgba(7, 197, 227, .17) 0%, rgba(8, 100, 41, .27) 100%);
}
#ContactUs { position: absolute; top: 0; }   /* the old menu's anchor, kept for saved links */
.contact__inner { display: flex; align-items: center; justify-content: center; width: 100%; max-width: min(100%, 1200px); margin: 0 auto; }
.contact__left, .contact__right { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.contact__left { max-width: 25%; }
.contact__right { max-width: 75%; }
.contact__box { width: 100%; padding: 20px 80px 20px 20px; text-align: left; overflow-wrap: break-word; }
.contact__box h2 { margin: 0 0 20px; font-size: 36px; font-weight: 500; line-height: 1.3em; }
.contact__box a { color: inherit; }

.cf { width: 100%; margin-bottom: 26px; }
.cf__field { position: relative; padding: 10px 0; }
.cf__label { display: block; font-weight: 700; overflow-wrap: break-word; }
.cf__label .req { color: #f00; font-weight: 400; }
.cf__input {
  display: block; width: 100%; margin: 0; padding: .75em; appearance: none;
  font: inherit; font-size: 1rem; line-height: 1.7em; color: #666;
  background: var(--field); border: 1px solid var(--line); border-radius: 2px; box-shadow: none;
}
.cf__input--medium { max-width: 60%; }
.cf__textarea { height: 120px; resize: vertical; }
.cf__input:focus { color: #111; background: #fff; border: thin dotted var(--text); }
.cf__input.is-invalid { border-color: #c00; }
.cf__error { display: block; color: #900; font-size: .9em; cursor: default; }
.cf__submit { padding-top: 10px; }
.cf__submit button {
  font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1em; letter-spacing: 3px;
  color: #fff; background: var(--purple); border: 0 solid var(--purple); border-radius: 0; padding: 15px 40px; cursor: pointer;
}
.cf__submit button:hover, .cf__submit button:focus { background: var(--purple-dark); }
.cf__submit button:disabled { opacity: .5; cursor: progress; }
.cf__status { color: #900; font-weight: 700; padding: 10px 0 8px; }
.cf__status--invalid { display: none; }
.cf__status--sent { color: inherit; font-weight: 400; padding: 0; }

/* ---- Footer (Astra footer builder: 3 equal columns) ----------------------------------- */
.site-foot { padding: 35px 0; }
.site-foot__inner { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 50px; align-items: center; max-width: 1200px; margin: 0 auto; overflow-wrap: anywhere; }
.site-foot__col { display: flex; align-items: center; justify-content: center; }
.site-foot__text { width: 100%; text-align: center; }
.site-foot__text a { color: inherit; }
.site-foot__copy p { width: 100%; margin: 0 40px 0 0; font-size: .9375rem; color: #000; text-align: center; }

/* ---- Breakpoints ---------------------------------------------------------------------- */
@media (max-width: 976px) {
  .hero { min-height: 600px; padding: 18px 0 0; }
  .hero__inner { max-width: min(100%, 1024px); justify-content: center; }
  .cards { margin: 70px 0; }
  .cards__inner { max-width: min(100%, 1024px); gap: 20px 0; grid-template-columns: repeat(3, minmax(1px, 1fr)); place-items: stretch; place-content: stretch; }
  .card p { margin: 0; }
  .contact { min-height: 0; }
  .contact__inner { max-width: min(100%, 1024px); }
  .contact__box { padding: 0 20px; }
  .contact__box h2 { font-size: 30px; }
}
@media (max-width: 921px) {
  html { font-size: 91.2%; }
  .site-head__bar { max-width: none; margin: 10px 0; padding: 0 20px; }
  .site-head__logo img { width: 96px; max-width: 96px; }
  .site-head__nav, .site-head__phone { display: none; }
  .site-head__toggle {
    display: flex; align-items: center; margin: 5px 15px 0 0; padding: .5em;
    font-family: inherit; font-size: 1.5em; line-height: 1.85714; letter-spacing: 3px;
    color: #fff; background: var(--ink); border: 0; border-radius: 0; cursor: pointer;
  }
  .site-head__toggle:focus-visible { outline: thin dotted; }
  .site-head__icon { width: 20px; height: 20px; fill: #fff; }
  .site-head__icon--close, .site-head__toggle[aria-expanded="true"] .site-head__icon--open { display: none; }
  .site-head__toggle[aria-expanded="true"] .site-head__icon--close { display: block; }
  .site-head__menu:not([hidden]) { display: block; background: #fff; }
  .site-head__link--menu { display: block; padding: 0 20px; line-height: 3em; background: #fff; border-bottom: 1px solid var(--line); }
  .site-head__link--menu:hover, .site-head__link--menu:focus { color: var(--purple); }
  .cf__submit button { padding: 16px 32px; }
  .site-foot { padding: 50px 20px 30px; }
  /* Still a grid, one column: grid items keep their own margins (nothing collapses), as on the old site. */
  .site-foot__inner { grid-template-columns: 1fr; }
  .site-foot__col { display: block; margin-bottom: 10px; }
  .site-foot__text { margin: 30px 0 29px; }
  .site-foot__copy p { margin: 0; }
}
@media (max-width: 767px) {
  .hero { min-height: 500px; padding: 10px; }
  .hero__inner { max-width: min(100%, 1035px); flex-wrap: wrap; }
  .cards { margin: 40px 0; }
  .cards__inner { max-width: min(100%, 767px); gap: 0; grid-template-columns: minmax(1px, 1fr); }
  .card h2 { font-size: 22px; }
  .card p { font-size: 14px; }
  .contact { padding: 0 10px; margin: 50px 0; }
  .contact__inner { max-width: min(100%, 767px); flex-wrap: wrap; }
  .contact__left, .contact__right { max-width: 100%; }
  .contact__box { padding: 20px 10px 10px; }
  .contact__box h2 { letter-spacing: 3px; }
  .contact__box p { font-size: 14px; }
}
@media (max-width: 600px) {
  .cf__field { padding: 10px 1px; overflow-x: hidden; }
  .cf__input--medium { max-width: 100%; }
}
@media (max-width: 544px) {
  .site-head__bar { margin: 0; padding: 0; }
  .site-head__brand { margin: 5px 0 0 20px; }
  .site-head__toggle { margin: 5px 20px 0 0; }
  .cf__submit button { padding: 15px 28px; font-size: .9375rem; }
  .site-foot { padding: 35px 0; }
  .site-foot__text { margin: 15px 0 25px; }
}
