/* ─── Staffbuilder.fi · Components ──────────────────────────────
   All classes translated directly from pages/site-shared.jsx.
   Values are exact matches to the SB design token object.
   ─────────────────────────────────────────────────────────────── */


/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */

.sb-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: rgba(250, 246, 236, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(15, 35, 66, 0.1);
  transition: background var(--transition), box-shadow var(--transition);
}

.sb-nav--scrolled {
  background: rgba(250, 246, 236, 0.98);
  box-shadow: 0 2px 20px rgba(15, 35, 66, 0.10);
}

.sb-nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sb-nav__wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-variation-settings: "wdth" 95;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.sb-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.sb-nav__link {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.6;
  transition: var(--transition);
  cursor: pointer;
  color: var(--ink);
}

.sb-nav__link:hover {
  opacity: 1;
}

.sb-nav__link--active {
  opacity: 1;
  color: var(--signal);
}

/* Mobile hamburger — hidden by default, shown via responsive.css */
.sb-nav__toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

/* Mobile dropdown — hidden by default, shown when .sb-nav--open */
.sb-nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid rgba(15, 35, 66, 0.1);
  padding: 24px 64px;
  flex-direction: column;
  gap: 20px;
}

.sb-nav--open .sb-nav__mobile {
  display: flex;
}

.sb-nav__candidate-link {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.45;
  font-style: italic;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.sb-nav__candidate-link:hover { opacity: 0.85; }


/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */

.sb-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.sb-btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.sb-btn--primary:hover {
  opacity: 0.88;
}

.sb-btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(15, 35, 66, 0.35);
}

.sb-btn--outline:hover {
  border-color: rgba(15, 35, 66, 0.7);
}

.sb-btn--signal {
  background: var(--signal);
  color: var(--paper);
}

.sb-btn--signal:hover {
  opacity: 0.9;
}

/* Arrow dot — default (used on outline / signal buttons) */
.sb-btn__arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Arrow dot inversion on primary (ink bg) button */
.sb-btn--primary .sb-btn__arrow {
  background: var(--paper);
  color: var(--signal);
}


/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ══════════════════════════════════════════════════════════════ */

.sb-smallcaps {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(15, 35, 66, 0.65);
}

.sb-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 35, 66, 0.5);
}

.sb-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.sb-accent {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--signal);
  font-variation-settings: "wdth" 105;
}

.sb-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}


/* ══════════════════════════════════════════════════════════════
   SURFACES
   ══════════════════════════════════════════════════════════════ */

/* Paper background — bone radial gradient + grain texture is applied
   as a ::before pseudo in page-specific CSS to avoid stacking context
   issues. The class itself sets up the gradient surface. */
.sb-paper {
  background: radial-gradient(ellipse at 60% 40%, var(--paper) 0%, var(--cream) 55%, var(--chalk) 100%);
  position: relative;
}

/* Topographic contour overlay — contains inline SVG wave paths */
.sb-contour {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.06;
}

/* Grain noise texture overlay (SVG data URI, multiply blend) */
.sb-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.13  0 0 0 0 0.26  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}


/* ══════════════════════════════════════════════════════════════
   SECTION LAYOUT
   ══════════════════════════════════════════════════════════════ */

.sb-section {
  padding: var(--sp-8) var(--sp-6);
}

.sb-section--cream {
  background: var(--cream);
}

.sb-section--ink {
  background: var(--ink);
  color: var(--paper);
}

/* Section heading pattern: eyebrow + title + optional lede */
.sb-section-head {
  margin-bottom: var(--sp-6);
}

.sb-section-head__eyebrow {
  display: block;
  margin-bottom: 16px;
}

.sb-section-head__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
}

.sb-section-head__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  margin-top: 20px;
  max-width: 640px;
  opacity: 0.82;
}


/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */

.sb-card {
  background: var(--cream);
  border: 1px solid rgba(15, 35, 66, 0.08);
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.sb-photo-placeholder {
  background: var(--chalk);
  position: relative;
  overflow: hidden;
}


/* ══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════════ */

.sb-faq__item {
  border-top: 1px solid rgba(15, 35, 66, 0.12);
  padding: 24px 0;
}

.sb-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  gap: 24px;
  background: transparent;
  border: none;
  color: inherit;
  width: 100%;
  text-align: left;
}

.sb-faq__answer {
  display: none;
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  max-width: 680px;
  opacity: 0.82;
}

.sb-faq__item--open .sb-faq__answer {
  display: block;
}

.sb-faq__icon {
  color: var(--signal);
  font-size: 24px;
  flex-shrink: 0;
  transition: var(--transition);
  line-height: 1;
}


/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity:    1;
    transform:  none;
    transition: none;
  }
}


/* ══════════════════════════════════════════════════════════════
   STAT STRIP
   ══════════════════════════════════════════════════════════════ */

.sb-stat-strip {
  display: flex;
}

.sb-stat {
  flex: 1;
  padding: 24px 28px;
  border-right: 1px solid rgba(15, 35, 66, 0.1);
}

.sb-stat:last-child {
  border-right: none;
}

.sb-stat__value {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 95;
}

.sb-stat__label {
  margin-top: 10px;
}

/* Dark stat strip (hero footer band) */
.sb-stat-strip--ink {
  background: var(--ink);
  color: var(--paper);
}

.sb-stat-strip--ink .sb-stat {
  border-right-color: rgba(250, 246, 236, 0.1);
}

.sb-stat-strip--ink .sb-stat__value {
  font-size: clamp(26px, 3.2vw, 42px);
}

.sb-stat-strip--ink .sb-stat__label {
  color: var(--sun);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.sb-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-7) var(--sp-6) var(--sp-4);
}

.sb-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(250, 246, 236, 0.1);
}

.sb-footer__bottom {
  border-top: 1px solid rgba(250, 246, 236, 0.1);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.4);
}

.sb-footer__col-label {
  color: rgba(250, 246, 236, 0.55);
  margin-bottom: 14px;
}

.sb-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: rgba(250, 246, 236, 0.85);
}


/* ══════════════════════════════════════════════════════════════
   HERO TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */

.sb-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

.sb-hero__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
}


/* ══════════════════════════════════════════════════════════════
   PROBLEM SECTION
   ══════════════════════════════════════════════════════════════ */

.sb-problem__statement {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}


/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════════════════════ */

.sb-card__heading {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 95;
}

.sb-card__body {
  font-size: 15px;
  line-height: 1.55;
}

.sb-card__list-item {
  font-size: 13px;
}

.sb-card__link {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
}


/* ══════════════════════════════════════════════════════════════
   SECTORS STRIP
   ══════════════════════════════════════════════════════════════ */

.sb-sector__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
  font-variation-settings: "wdth" 95;
  letter-spacing: -0.02em;
}

.sb-sector__count {
  font-size: 12px;
  letter-spacing: 0.04em;
}


/* ══════════════════════════════════════════════════════════════
   PROCESS STEPS
   ══════════════════════════════════════════════════════════════ */

.sb-step__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
}

.sb-step__heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 95;
}

.sb-step__body {
  font-size: 14px;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   BENEFITS
   ══════════════════════════════════════════════════════════════ */

.sb-benefit__stat {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 95;
}

.sb-benefit__heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 95;
}

.sb-benefit__body {
  font-size: 15px;
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════════
   LOGO BAR
   ══════════════════════════════════════════════════════════════ */

.sb-logo-bar__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-variation-settings: "wdth" 95;
}


/* ══════════════════════════════════════════════════════════════
   TESTIMONIAL
   ══════════════════════════════════════════════════════════════ */

.sb-testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.sb-testimonial__attribution {
  font-size: 14px;
}


/* ══════════════════════════════════════════════════════════════
   LEAD MAGNET
   ══════════════════════════════════════════════════════════════ */

.sb-lead__heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 95;
}

.sb-lead__body {
  font-size: 16px;
  line-height: 1.6;
}

.sb-book__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 95;
}


/* ══════════════════════════════════════════════════════════════
   FINAL CTA
   ══════════════════════════════════════════════════════════════ */

.sb-cta__heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 95;
}

.sb-cta__body {
  font-size: 16px;
  line-height: 1.6;
}

.sb-cta__contact {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */

.sb-footer__brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-variation-settings: "wdth" 95;
}

.sb-footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
}

.sb-footer__address {
  font-size: 13px;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   UTILITY MODIFIERS
   ══════════════════════════════════════════════════════════════ */

/* Smaller mono label (badge step-numbers, contact strips) */
.sb-mono--xs {
  font-size: 10px;
}

/* Button size variants */
.sb-btn--md {
  font-size: 15px;
}

.sb-btn--lg {
  font-size: 16px;
}

/* Oversized arrow dot (CTA section) */
.sb-btn__arrow--lg {
  font-size: 14px;
}
