/* ============================================================
   Bluewater Search Group — Shared stylesheet for sub-pages.
   Loaded by: how-we-work.html, client-expectations.html,
   candidate-experience.html, and any future sub-pages.
   The homepage (index.html) keeps its own inlined CSS to avoid
   touching the live launch file. Any token / nav / footer change
   here may need to be mirrored in index.html.
   ============================================================ */

:root {
  --ink:            #0F2744;
  --ink-deep:       #081A33;
  --ink-soft:       #2D3748;
  --steel:          #3E6B89;
  --sea:            #6FA7B8;
  --paper:          #F5F3EE;
  --paper-soft:     #ECE8DE;
  --accent:         var(--steel);
  --accent-bright:  var(--sea);

  --rule:           rgba(15, 39, 68, 0.14);
  --rule-light:     rgba(245, 243, 238, 0.22);

  --text-ink:       #0F2744;
  --text-ink-mute:  rgba(15, 39, 68, 0.66);
  --text-paper:     #F5F3EE;
  --text-paper-mute:rgba(245, 243, 238, 0.72);

  --font-display:   "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:      "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-eyebrow:     0.74rem;
  --fs-body:        clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  --fs-lead:        clamp(1rem, 0.94rem + 0.3vw, 1.18rem);
  --fs-h3:          clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-h2:          clamp(1.55rem, 1.3rem + 1.1vw, 2.2rem);
  --fs-h1:          clamp(1.9rem, 1.4rem + 2.4vw, 3.4rem);

  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4.5rem; --s-7: 6rem;    --s-8: 8rem;

  --content-max: 1180px;
  --measure: 62ch;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms;
  --t-med:  420ms;
  --t-slow: 900ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; --t-slow: 0ms; }
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,picture,svg,video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
p { margin: 0 0 1em; max-width: var(--measure); }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.15;
  margin: 0;
  color: var(--text-ink);
}
h2 { font-size: var(--fs-h2); line-height: 1.18; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: var(--s-2) var(--s-3); z-index: 100; font-size: 0.9rem;
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }

.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--text-ink-mute);
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin: 0;
}
.eyebrow.on-ink { color: var(--text-paper-mute); }
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px;
  background: currentColor; opacity: 0.7;
}

.container {
  width: 100%; max-width: var(--content-max);
  margin: 0 auto; padding: 0 var(--s-4);
}
@media (min-width: 768px) { .container { padding: 0 var(--s-5); } }

/* ===== Nav: brand left, hamburger right (all viewports) ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(8, 26, 51, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--rule-light);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) 0; color: var(--paper);
  gap: var(--s-3);
}
.brand {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.01em; white-space: nowrap;
  color: var(--paper); line-height: 1;
}
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; border: none; color: var(--paper);
  font: inherit; font-size: 0.8rem; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer; padding: var(--s-1) 0;
}
.nav-toggle .bar { width: 22px; height: 1px; background: currentColor; display: block; position: relative; }
.nav-toggle .bar::after {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 22px; height: 1px; background: currentColor;
}

/* ===== Side panel: slides from right ===== */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 26, 51, 0.55);
  z-index: 55;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-sheet {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 420px;
  background: var(--ink-deep); color: var(--paper);
  z-index: 60;
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 36px rgba(8, 26, 51, 0.4);
}
.mobile-sheet.is-open { transform: translateX(0); }
.mobile-sheet .sheet-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule-light);
}
.mobile-sheet .sheet-close {
  background: transparent; border: none; color: var(--paper);
  font: inherit; font-size: 0.8rem; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer;
}
.mobile-sheet ul {
  list-style: none; padding: var(--s-4); margin: 0;
  display: flex; flex-direction: column; gap: var(--s-3);
  overflow-y: auto;
}
.mobile-sheet a {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.01em; color: var(--paper);
  padding: 0.5rem 0; display: block;
  transition: color var(--t-fast) var(--ease);
}
.mobile-sheet a:hover { color: var(--accent-bright); }
.mobile-sheet a.is-current { color: var(--accent-bright); }
.mobile-sheet .sheet-foot {
  padding: var(--s-4);
  border-top: 1px solid var(--rule-light);
  font-size: 0.78rem;
  color: var(--text-paper-mute);
  letter-spacing: 0.08em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.6rem;
  font-family: var(--font-body); font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  background: var(--accent); color: var(--paper);
  border: none; border-radius: 6px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--accent-bright); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent; color: var(--paper);
  border: 1px solid var(--rule-light);
  padding: 0.85rem 1.4rem;
}
.btn--ghost:hover {
  background: transparent; color: var(--accent-bright);
  border-color: var(--accent-bright);
}
.btn--outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.85rem 1.4rem;
}
.btn--outline:hover {
  background: var(--accent); color: var(--paper);
}

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.86rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  padding-bottom: 2px; border-bottom: 1px solid var(--accent);
}
.arrow-link.on-ink { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }
.arrow-link:hover { color: var(--ink); border-color: var(--ink); }
.arrow-link.on-ink:hover { color: var(--paper); border-color: var(--paper); }

/* ===== Page hero (compact header for sub-pages) ===== */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding-top: calc(var(--s-6) + var(--s-4));
  padding-bottom: var(--s-5);
  position: relative;
}
.page-hero__inner { max-width: 60ch; }
.page-hero h1 {
  color: var(--paper);
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.1;
  margin: var(--s-2) 0 var(--s-3);
  max-width: 22ch;
}
.page-hero__sub {
  color: var(--text-paper-mute);
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 56ch;
}

/* ===== Sections ===== */
section { position: relative; }
.section { padding: var(--s-5) 0; }
.section--paper      { background: var(--paper); color: var(--text-ink); }
.section--paper-soft { background: var(--paper-soft); color: var(--text-ink); }
.section--steel      { background: var(--steel); color: var(--text-paper); }
.section--steel h2, .section--steel h3 { color: var(--paper); }
.section--steel strong { color: var(--paper); }
.section--ink        { background: var(--ink); color: var(--text-paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }

.panel {
  max-width: 60ch;
  margin: 0 auto;
}
.panel.is-center { text-align: center; }
.panel.is-center p { margin-left: auto; margin-right: auto; }
.panel h2 { margin-bottom: var(--s-3); max-width: 22ch; }
.panel.is-center h2 { margin-left: auto; margin-right: auto; }
.panel p { font-size: var(--fs-lead); line-height: 1.55; max-width: 56ch; }
.panel p + p { margin-top: var(--s-2); }

/* ===== Numbered process list (for How We Work) ===== */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--s-5);
}
.step {
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-light);
}
@media (min-width: 800px) {
  .step { grid-template-columns: 2fr 4fr 5fr; column-gap: var(--s-6); align-items: start; }
}
.step__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 3.5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent-bright);
  letter-spacing: -0.02em;
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.1;
  color: var(--paper);
  padding-top: 0.6rem;
}
.step__body {
  color: var(--text-paper-mute);
  font-size: 1rem;
  line-height: 1.55;
  padding-top: 0.8rem;
  max-width: 50ch;
}

/* ===== Plain list with checkmarks for expectations pages ===== */
.expectation-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.expectation-list li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
}
.expectation-list .label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-ink);
  min-width: 14ch;
}
.expectation-list .desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-ink);
  max-width: 60ch;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-6) 0;
}
.cta-band__inner {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.cta-band h2 {
  color: var(--paper);
  margin: 0 auto var(--s-3);
  max-width: 20ch;
}
.cta-band p {
  color: var(--text-paper-mute);
  font-size: var(--fs-lead);
  margin: 0 auto var(--s-4);
  max-width: 52ch;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink-deep);
  color: var(--text-paper-mute);
  padding: var(--s-5) 0 var(--s-3);
  border-top: 1px solid var(--rule-light);
}
.footer-inner {
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; column-gap: var(--s-5); }
}
.footer-brand {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--paper);
  font-size: 1.2rem; line-height: 1.15; margin-bottom: var(--s-2);
}
.footer-tag { font-size: 0.92rem; max-width: 36ch; line-height: 1.55; margin: 0; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--text-paper-mute); margin: 0 0 var(--s-3);
}
.footer-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.footer-col a { color: var(--text-paper); opacity: 0.86; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-bright); opacity: 1; }
.footer-base {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--rule-light);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-2);
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-paper-mute);
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
