/* Zubs Staffing Solutions, school-facing site.
   Layout idea: a night-teal frame (header, hero, footer) around light working sections.
   The coral diagonal from the Z in the logo is the one bold gesture; everything else stays quiet. */
:root {
  --ink: #0A2E35;
  --ink-soft: #3C5A60;
  --teal: #0B5560;
  --night: #073B43;
  --coral: #FF6F59;
  --coral-deep: #B83A26;   /* coral for text on light backgrounds (5.4:1 on paper) */
  --paper: #F7FAFA;
  --mist: #E4EFF0;
  --line: #C7DADD;
  --on-night: #CFE3E5;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--coral-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--coral); color: var(--night); padding: 0.6rem 1rem; z-index: 20; font-weight: 600; }
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-head { background: var(--night); color: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; padding-block: 18px; }
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 38px; width: auto; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--coral); color: #fff; }

.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; padding: 0.9rem 1.5rem; border-radius: 6px; border: 2px solid var(--coral); background: var(--coral); color: var(--night); cursor: pointer; }
.btn:hover { background: #fff; border-color: #fff; color: var(--night); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn.ghost:hover { background: #fff; color: var(--night); border-color: #fff; }
.nav a.btn { color: var(--night); border: 2px solid var(--coral); padding: 0.6rem 1.1rem; }
.nav a.btn:hover { background: #fff; border-color: #fff; color: var(--night); }

/* ---------- hero ---------- */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(52px, 8vw, 112px) clamp(60px, 9vw, 128px); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1; letter-spacing: -0.035em; margin: 0 0 1.5rem; max-width: 12.5ch; text-wrap: balance; }
.hero .lede { font-size: clamp(1.125rem, 1.7vw, 1.3rem); max-width: 34rem; color: var(--on-night); margin: 0 0 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .area { margin: 1.75rem 0 0; color: var(--on-night); font-size: 0.95rem; }
.hero.short .wrap { padding-block: clamp(44px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero.short h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; margin-bottom: 1rem; }
.hero.short .lede { margin-bottom: 0; }

.slash { position: absolute; top: -12%; bottom: -12%; transform: skewX(-27deg); z-index: 0; }
.slash.s1 { right: 24%; width: clamp(80px, 15vw, 220px); background: var(--teal); }
.slash.s2 { right: 17%; width: clamp(18px, 3vw, 44px); background: var(--coral); }
.slash.s3 { right: 11%; width: clamp(6px, 1vw, 14px); background: var(--teal); }
.hero.short .slash.s1 { right: 12%; width: clamp(60px, 9vw, 130px); }
.hero.short .slash.s2 { right: 7%; width: clamp(12px, 2vw, 28px); }
.hero.short .slash.s3 { display: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(52px, 7.5vw, 100px); }
.section.tint { background: var(--mist); }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance; max-width: 20ch; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
.intro { max-width: 38rem; color: var(--ink-soft); margin: 0 0 2.5rem; }
p { margin: 0 0 1rem; }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.col { border-top: 3px solid var(--teal); padding-top: 1.1rem; min-width: 0; }
.col p { margin: 0; color: var(--ink-soft); }
.col a.more { display: inline-block; margin-top: 0.9rem; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.step { border-left: 3px solid var(--coral); padding-left: 1.25rem; min-width: 0; }
.step:nth-child(2) { margin-top: 3rem; }
.step:nth-child(3) { margin-top: 6rem; }
.step .n { display: block; font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -0.04em; color: var(--coral-deep); margin-bottom: 0.5rem; }
.step p { margin: 0; color: var(--ink-soft); }

.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.why > div { border-top: 1px solid var(--line); padding-top: 1rem; min-width: 0; }
.why p { margin: 0; color: var(--ink-soft); }

.screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.5rem 4rem; align-items: start; }
.screen h2 { margin-bottom: 0; }
.screen p { color: var(--ink-soft); }

.cta-wrap { background: var(--mist); }
.cta-wrap.on-paper { background: var(--paper); }
.cta { background: var(--night); color: #fff; clip-path: polygon(0 clamp(28px, 5vw, 72px), 100% 0, 100% 100%, 0 100%); padding-block: clamp(88px, 11vw, 152px) clamp(52px, 7vw, 92px); }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: var(--on-night); max-width: 34rem; margin: 0 0 1.75rem; }
.cta a:not(.btn) { color: #fff; }

/* ---------- services ---------- */
.role { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem 3rem; padding-block: 2.25rem; border-top: 1px solid var(--line); }
.role:first-of-type { border-top: 3px solid var(--teal); }
.role h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: none; margin: 0; }
.role p { color: var(--ink-soft); }
.role ul { margin: 0.25rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.role li { margin-bottom: 0.3rem; }
.role .label { font-weight: 600; color: var(--ink); margin: 0.75rem 0 0.15rem; }

details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-family: var(--display); font-weight: 700; font-size: 1.15rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; color: var(--coral-deep); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0.75rem 0 0; color: var(--ink-soft); max-width: 40rem; }

/* ---------- about ---------- */
.prose { max-width: 40rem; }
.prose p { color: var(--ink-soft); }
.commit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; margin-top: 1rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
label { font-weight: 600; font-size: 0.95rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9DB8BC; border-radius: 6px; padding: 0.8rem 0.9rem; width: 100%; min-height: 48px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--coral); outline-offset: 1px; border-color: var(--teal); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.note { background: #fff; border: 1.5px solid var(--line); border-radius: 6px; padding: 0.8rem 1rem; font-size: 0.95rem; margin: 0; }
.aside { border-left: 3px solid var(--coral); padding-left: 1.5rem; align-self: start; min-width: 0; }
.aside h2 { font-size: 1.5rem; margin: 0 0 0.5rem; max-width: none; }
.aside p { color: var(--ink-soft); }
.aside .gap { margin-top: 1.75rem; }

mark.todo { background: #FFE56B; color: #2B2300; padding: 0.05em 0.3em; border-radius: 3px; font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: var(--on-night); padding-block: 52px 36px; font-size: 0.95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot img { display: block; height: 40px; width: auto; margin-bottom: 1rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--coral); }
.site-foot h2 { font-family: var(--display); font-size: 1rem; letter-spacing: 0; margin: 0 0 0.6rem; color: #fff; max-width: none; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-foot p { margin: 0 0 0.5rem; }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 1.25rem; margin-top: 0.5rem; font-size: 0.875rem; }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .cols, .steps, .why, .commit, .screen, .role, .contact-grid, .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
  .contact-grid { gap: 2.5rem; }
  .slash { opacity: 0.35; }
  .slash.s1 { right: -4%; }
  .slash.s2 { right: 12%; }
  .slash.s3 { right: 8%; }
  .hero.short .slash.s1 { right: -4%; }
  .hero.short .slash.s2 { right: 12%; }
}
@media (max-width: 520px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 0.25rem 1.25rem; }
  .brand img { height: 34px; }
}
