/* HumanConnect Services
   Design is fixed here; the words come from the admin.
   Red is reserved for calls to action and rare emphasis.
   Built mobile-first: the small-screen rules are the defaults, and wider
   layouts are added at breakpoints. */

:root{
  --ground:#FAF8F5;
  --ground-2:#F3EFE9;
  --ink:#22282E;
  --ink-soft:#4C555E;
  --ink-faint:#7A838C;
  --blue:#0077A8;
  --blue-dark:#005E86;
  --red:#C8202E;
  --red-dark:#A81826;
  --rule:#E2DCD3;
  --measure:34rem;
  --serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--ground);color:var(--ink);
  font-family:var(--sans);font-size:1.0625rem;line-height:1.65;font-weight:400;
  -webkit-font-smoothing:antialiased;overflow-wrap:break-word;
}

h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.15;letter-spacing:-0.01em;margin:0}
h1{font-size:clamp(1.95rem,6vw,3.4rem)}
h2{font-size:clamp(1.45rem,4.2vw,2.1rem)}
h3{font-size:1.15rem;font-family:var(--sans);font-weight:600;letter-spacing:0}
p{margin:0 0 1.1em}
a{color:var(--blue);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{color:var(--blue-dark)}
img{max-width:100%;height:auto}

.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;background:#fff;padding:.6rem 1rem;z-index:100;border-radius:3px}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

.wrap{max-width:64rem;margin:0 auto;padding:0 1.25rem}
@media(min-width:40rem){.wrap{padding:0 1.5rem}}
.measure{max-width:var(--measure)}

/* Header ---------------------------------------------------------------- */
/* On phones the brand sits on one row with a menu button; the links become a
   stacked panel that is hidden until opened. Previously the flex row squeezed
   the nav into a narrow column 273px tall, pushing all content below the fold. */
.site-head{padding:.9rem 0;border-bottom:1px solid var(--rule);background:var(--ground);position:relative}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;flex-shrink:1;min-width:0}
.brand img{display:block;height:34px;width:auto}

.nav-toggle{
  display:inline-flex;align-items:center;gap:.5rem;
  min-height:44px;padding:.5rem .75rem;margin-right:-.25rem;
  background:none;border:1.5px solid var(--rule);border-radius:3px;
  font:inherit;font-size:.9rem;font-weight:600;color:var(--ink-soft);cursor:pointer;
}
.nav-toggle:hover{border-color:var(--blue);color:var(--blue)}
.nav-toggle .bars{display:block;width:18px;height:2px;background:currentColor;position:relative}
.nav-toggle .bars::before,.nav-toggle .bars::after{
  content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor;
}
.nav-toggle .bars::before{top:-6px}
.nav-toggle .bars::after{top:6px}

.nav{display:flex;flex-direction:column;width:100%;padding:.5rem 0 .25rem}
.js .nav{display:none}
.js .nav.open{display:flex}
.nav-toggle{display:none}
.js .nav-toggle{display:inline-flex}
.nav a{
  font-size:1rem;color:var(--ink-soft);text-decoration:none;
  padding:.7rem .25rem;min-height:44px;display:flex;align-items:center;
  border-bottom:1px solid var(--rule);
}
.nav a:last-child{border-bottom:none}
.nav a:hover{color:var(--ink)}
.nav a[aria-current="page"]{color:var(--blue);font-weight:600}

@media(min-width:56rem){
  .site-head{padding:1.4rem 0}
  .brand img{height:44px}
  .nav-toggle,.js .nav-toggle{display:none}
  .nav,.js .nav{
    display:flex;flex-direction:row;width:auto;padding:0;
    gap:1.5rem;align-items:center;flex-wrap:wrap;
  }
  .nav a{
    font-size:.95rem;padding:0 0 2px;min-height:0;border-bottom:2px solid transparent;
  }
  .nav a[aria-current="page"]{color:var(--ink);font-weight:400;border-bottom-color:var(--blue)}
}

/* Sections -------------------------------------------------------------- */
section{padding:3rem 0}
@media(min-width:48rem){section{padding:4.5rem 0}}
section+section{border-top:1px solid var(--rule)}
.band{background:var(--ground-2);border-top:1px solid var(--rule)}
.band+section{border-top:1px solid var(--rule)}

.hero{padding:3.25rem 0 2.75rem}
@media(min-width:48rem){.hero{padding:6rem 0 4.5rem}}
.hero h1{max-width:18ch}
.hero .lede{
  font-family:var(--serif);font-size:clamp(1.1rem,3.4vw,1.4rem);
  line-height:1.55;color:var(--ink-soft);max-width:44ch;margin-top:1.3rem;
}
.hero .lede p:last-child{margin-bottom:0}
.hero .lede p:last-child:not(:only-child){color:var(--ink);font-weight:600}

.eyebrow{
  font-family:var(--sans);font-size:.75rem;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin:0 0 .9rem;
}
.standfirst{font-family:var(--serif);font-size:clamp(1.1rem,3.2vw,1.3rem);line-height:1.5;color:var(--ink-soft);max-width:46ch}

/* Evidence -------------------------------------------------------------- */
.proofs{display:grid;gap:2rem;margin-top:2.2rem}
@media(min-width:52rem){.proofs{grid-template-columns:repeat(3,1fr);gap:2.6rem}}
.proof{border-top:3px solid var(--blue);padding-top:1rem}
.proof:nth-child(2){border-top-color:var(--red)}
.proof h3{margin-bottom:.5rem}
.proof p{color:var(--ink-soft);margin-bottom:0;font-size:1rem}

/* Service cards --------------------------------------------------------- */
.cards{display:grid;gap:1.25rem;margin-top:2.2rem}
@media(min-width:46rem){.cards{grid-template-columns:repeat(3,1fr);gap:1.5rem}}
.card{
  background:#fff;border:1px solid var(--rule);border-radius:3px;
  padding:1.5rem 1.4rem;display:flex;flex-direction:column;
}
.card h3{font-family:var(--serif);font-size:1.22rem;font-weight:600;margin-bottom:.55rem;letter-spacing:-.01em}
.card>p{color:var(--ink-soft);font-size:1rem;margin-bottom:1rem}
.card ul{list-style:none;margin:0 0 1.2rem;padding:0}
.card li{
  font-size:.95rem;color:var(--ink-soft);padding-left:1.05rem;position:relative;margin-bottom:.4rem;
}
.card li::before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--blue)}
.card .more{margin-top:auto}

/* Group / businesses ---------------------------------------------------- */
.businesses{margin-top:2.2rem;display:grid;gap:1.6rem}
@media(min-width:46rem){.businesses{grid-template-columns:1fr 1fr;gap:2rem 3rem}}
.business{border-left:3px solid var(--rule);padding-left:1.2rem}
.business h3{margin-bottom:.35rem}
.business p{color:var(--ink-soft);margin-bottom:.5rem;font-size:1rem}

/* Areas (What we do) ---------------------------------------------------- */
.areas{margin-top:2.2rem;display:grid;gap:2.5rem}
.area{display:grid;gap:.5rem}
@media(min-width:52rem){.area{grid-template-columns:14rem 1fr;gap:2.5rem;align-items:start}}
.area h2{font-size:clamp(1.3rem,3.4vw,1.45rem)}
.area .body{max-width:var(--measure)}
.area .body p:last-child{margin-bottom:0}

/* Capability list (Events) ---------------------------------------------- */
.capabilities{display:grid;gap:1.5rem 2.5rem;margin-top:2.2rem}
@media(min-width:46rem){.capabilities{grid-template-columns:1fr 1fr}}
@media(min-width:64rem){.capabilities{grid-template-columns:repeat(3,1fr)}}
.capability{border-top:2px solid var(--rule);padding-top:.9rem}
.capability h3{font-size:1.02rem;margin-bottom:.3rem}
.capability p{font-size:.95rem;color:var(--ink-soft);margin:0}

/* Prose ----------------------------------------------------------------- */
.prose{max-width:var(--measure);margin-top:1.6rem}
.prose p{margin-bottom:1.3em}
.prose p:last-child{margin-bottom:0}
.prose h2{margin:2.2rem 0 .8rem}
.prose h3{margin:1.8rem 0 .5rem}
.prose ul{padding-left:1.1rem;margin:0 0 1.3em}
.prose li{margin-bottom:.45rem}

/* Buttons --------------------------------------------------------------- */
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.8rem}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:.75rem 1.4rem;border-radius:2px;
  font-family:var(--sans);font-size:.98rem;font-weight:600;
  text-decoration:none;border:1.5px solid transparent;cursor:pointer;
}
.btn-primary{background:var(--red);color:#fff;border-color:var(--red)}
.btn-primary:hover{background:var(--red-dark);border-color:var(--red-dark);color:#fff}
.btn-quiet{background:transparent;color:var(--blue);border-color:var(--rule)}
.btn-quiet:hover{border-color:var(--blue);color:var(--blue-dark)}

.arrow-link{font-weight:500;text-decoration:none;border-bottom:1px solid var(--rule);display:inline-block;padding:.2rem 0}
.arrow-link:hover{border-bottom-color:var(--blue)}
.arrow-link::after{content:" \2192"}

/* Form ------------------------------------------------------------------ */
.form{max-width:36rem;margin-top:1.8rem}
.field{margin-bottom:1.4rem}
.field label{display:block;font-weight:600;font-size:.95rem;margin-bottom:.4rem}
.field .hint{display:block;font-weight:400;color:var(--ink-faint);font-size:.88rem;margin-top:.15rem}
.field input,.field textarea{
  width:100%;padding:.8rem .85rem;font:inherit;font-size:1rem;min-height:44px;
  color:var(--ink);background:#fff;border:1.5px solid var(--rule);border-radius:2px;
}
.field input:focus,.field textarea:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px rgba(0,119,168,.12)}
.field textarea{min-height:9rem;resize:vertical}
.field .err{color:var(--red);font-size:.9rem;margin-top:.35rem}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"]{border-color:var(--red)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.notice{border-left:3px solid var(--blue);background:#fff;padding:1.2rem 1.3rem;margin-top:1.4rem;max-width:36rem}
.notice h2{font-size:1.25rem;margin-bottom:.4rem}
.notice p:last-child{margin-bottom:0}

.contact-details{margin-top:2.2rem;padding-top:1.4rem;border-top:1px solid var(--rule);max-width:36rem}
.contact-details dt{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-faint);font-weight:600}
.contact-details dd{margin:.2rem 0 1rem;font-size:1.05rem}

/* Legal pages ----------------------------------------------------------- */
.draft-banner{
  border-left:3px solid var(--red);background:#FDEDEE;
  padding:1rem 1.2rem;margin-bottom:2rem;max-width:var(--measure);
}
.draft-banner p{margin:0;font-size:.95rem}
.legal{max-width:var(--measure)}
.legal h2{font-size:1.3rem;margin:2.4rem 0 .7rem}
.legal h3{margin:1.6rem 0 .4rem}
.legal p,.legal li{font-size:1rem}
.legal .updated{color:var(--ink-faint);font-size:.9rem}

/* Footer ---------------------------------------------------------------- */
.site-foot{border-top:1px solid var(--rule);padding:2.5rem 0 2.75rem;background:var(--ground-2)}
.site-foot .cols{display:grid;gap:2rem}
@media(min-width:46rem){.site-foot .cols{grid-template-columns:2fr 1fr 1fr 1.2fr}}
.site-foot h2{font-family:var(--sans);font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-faint);font-weight:600;margin-bottom:.75rem}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li{margin-bottom:.15rem}
.site-foot a{color:var(--ink-soft);text-decoration:none;font-size:.95rem;display:inline-flex;align-items:center;min-height:36px}
.site-foot a:hover{color:var(--blue)}
.site-foot .tagline{font-family:var(--serif);font-size:1.02rem;color:var(--ink-soft);max-width:26ch;margin:.8rem 0 0}
.site-foot img{height:36px;width:auto;display:block}
.colophon{
  margin-top:2.2rem;padding-top:1.2rem;border-top:1px solid var(--rule);
  font-size:.85rem;color:var(--ink-faint);display:flex;justify-content:space-between;gap:.5rem 1rem;flex-wrap:wrap;
}
.colophon .entity{max-width:44ch;line-height:1.5}

@media print{.site-head,.site-foot,.actions,.nav-toggle{display:none}body{background:#fff}}
