/* ============================================================
   ShouldIQuitMyJob.net — Design System (Sage & Amber Gold Edition)
   Warm Calm Professional · Contained Layout
   ============================================================ */

/* ── Google Fonts ──
   Outfit      → display, UI, headings
   Fraunces    → italic serif accent headlines
   DM Sans     → body reading text
   ─────────────────────────────────────────── */

/* ── Design Tokens ── */
:root {
  /* Sage Green Palette */
  --accent:         #087c6d;
  --accent-bright:  #0fa393;
  --accent-deep:    #045c52;
  --accent-soft:    #e5f3f0;
  --accent-glow:    rgba(8,124,109,.16);

  /* Amber Gold Palette */
  --amber:          #c8861a;
  --amber-dark:     #9f680f;
  --amber-light:    #fdf5e7;
  --amber-glow:     rgba(200,134,26,.15);
  --lime:           #d8eeaa;

  /* Neutrals */
  --ink:            #1c231f; /* Dark forest charcoal */
  --ink-deep:       #0e1411;
  --ink-mid:        #2b3831;
  --ink-soft:       #4f6358;
  --ink-muted:      #7c9487;

  /* Backgrounds */
  --paper:          #f7f5f0;
  --paper-warm:     #fbfaf7;
  --paper-cool:     #f0f4f1;

  --surface:        #ffffff;
  --surface-soft:   #eef3f0;
  --surface-tint:   #e4ebe7;

  /* Dimension palette */
  --d-burnout:   #bf4343;
  --d-balance:   #3a8fc0;
  --d-manager:   #7a5ea8;
  --d-growth:    var(--amber);
  --d-comp:      #2a8050;
  --d-sat:       #bb3a6e;

  /* Semantic Borders */
  --border:         rgba(28,35,31,.09);
  --border-soft:    rgba(28,35,31,.06);
  --border-strong:  rgba(28,35,31,.15);

  /* Shadows */
  --sh-xs: 0 1px 4px rgba(15,20,17,.04);
  --sh-sm: 0 4px 18px rgba(15,20,17,.06);
  --sh-md: 0 12px 40px rgba(15,20,17,.09);
  --sh-lg: 0 24px 70px rgba(15,20,17,.14);
  --sh-xl: 0 45px 100px rgba(15,20,17,.18);

  /* Radii */
  --r-xs:  .45rem;
  --r-sm:  .75rem;
  --r-md:  1.15rem;
  --r-lg:  1.75rem;
  --r-xl:  2.5rem;
  --r-pill: 999px;

  /* Layout */
  --max-w:    1120px;
  --header-h: 68px;
  --header-top: 0px;

  color-scheme: light;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem; /* header is non-sticky; no offset needed */
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper-warm);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-deep); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s ease;
}
.skip-link:focus { color: #fff; transform: translateY(0); }

/* ── Typography ── */
h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3, h4 {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--ink);
}

h1 { font-size: clamp(3.2rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
h4 { font-size: 1rem; letter-spacing: -.02em; }

/* Italic serif display accent */
h1 em, h2 em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -.02em;
}

p { color: var(--ink-soft); }
strong { color: var(--ink); }

/* ── Contained Layout ── */
.container {
  width: min(calc(100% - 2.5rem), var(--max-w));
  margin-inline: auto;
}

.site-main { min-height: 60vh; }

.section-pad {
  position: relative;
  padding-block: clamp(5rem, 8vw, 8rem);
}

/* ── Eyebrow Labels ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
  color: var(--accent-deep);
  font-family: 'Outfit', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  flex-shrink: 0;
}

.eyebrow--pill {
  padding: .4rem .8rem .4rem .65rem;
  border: 1px solid rgba(58,92,71,.2);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
}
.eyebrow--pill::before { display: none; }
.eyebrow--pill .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(200,134,26,.18);
  animation: pulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* Eyebrow pill — item wrapper and separator dots */
.eyebrow--pill span:not(.pulse) {
  white-space: nowrap;
}
.eyebrow__dot {
  color: rgba(58,92,71,.35);
  font-size: .9em;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* Hero eyebrow — keep pill compact, left-aligned */
.hero__eyebrow {
  width: fit-content;
  flex-wrap: nowrap;
  gap: .45rem;
}

.eyebrow--on-dark { color: rgba(253,245,231,.9); }
.eyebrow--on-dark::before { background: linear-gradient(90deg, var(--amber), transparent); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200,134,26,.18); }
  50%       { box-shadow: 0 0 0 8px rgba(200,134,26,.06); }
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .8rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform .2s cubic-bezier(.2,.8,.2,1),
    background .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    color .2s ease;
  will-change: transform;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

/* Primary — Sage Green */
.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.button--primary:hover {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 12px 34px rgba(8,124,109,.24);
}

.button--primary::after { display: none; }

.button__arrow {
  display: grid;
  width: 25px; height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  font-size: .85em;
  transition: transform .22s ease;
}
.button:hover .button__arrow { transform: translateX(2px); }

/* Secondary */
.button--secondary {
  background: rgba(255,255,255,.85);
  border-color: var(--border-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.button--secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: var(--sh-sm);
}

/* Ghost */
.button--ghost {
  background: transparent;
  color: var(--ink-mid);
  border-color: transparent;
}
.button--ghost:hover { background: rgba(58,92,71,.05); color: var(--accent-deep); }

/* Amber Gold CTA */
.button--lime {
  background: var(--amber);
  color: var(--ink-deep);
  border-color: transparent;
  box-shadow: 0 8px 24px var(--amber-glow);
}
.button--lime:hover {
  background: var(--amber-dark);
  color: #fff;
  box-shadow: 0 12px 32px rgba(200,134,26,.28);
}

/* White */
.button--white {
  background: #fff;
  color: var(--ink-deep);
  border-color: transparent;
  box-shadow: 0 5px 18px rgba(0,0,0,.1);
}
.button--white:hover {
  background: var(--amber-light);
  color: var(--amber-dark);
  box-shadow: 0 10px 28px rgba(200,134,26,.15);
}

.button--small { min-height: 42px; padding: .55rem 1.05rem; font-size: .8rem; border-radius: var(--r-xs); }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* Text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent-deep);
  font-family: 'Outfit', sans-serif;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: .1rem;
  transition: color .18s ease, gap .18s ease;
}
.text-link::after { content: '↗'; font-size: .9em; transition: transform .2s ease; }
.text-link:hover { color: var(--accent); gap: .55rem; }
.text-link:hover::after { transform: translate(2px,-2px); }

/* ── Header ──
   Normal-flow, non-sticky. Scrolls away with the page (Toolsyte-style).
   The assessment product uses its own separate sticky header instead.
   ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  height: var(--header-h);
  background: rgba(251,250,247,.98);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Right cluster: nav + CTA + hamburger */
.site-header__right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.site-header__cta { flex: 0 0 auto; margin-left: .25rem; }

/* Brand */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}

.site-brand__mark {
  position: relative;
  display: grid;
  width: 36px; height: 36px;
  place-items: center;
  overflow: hidden;
}
.site-brand__mark::before { display: none; }
.site-brand__mark span { position: relative; z-index: 1; }

.site-brand__text {
  font-family: 'Outfit', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.site-brand__text span { color: var(--accent); }

/* Nav links */
.site-nav { display: flex; align-items: center; gap: .05rem; }

.site-nav__link {
  position: relative;
  padding: .58rem .78rem;
  border-radius: .6rem;
  color: var(--ink-soft);
  font-family: 'Outfit', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.site-nav__link:hover { color: var(--ink); background: rgba(58,92,71,.06); }
.site-nav__link.is-active { color: var(--ink); }
.site-nav__link.is-active::after {
  content: '';
  position: absolute;
  width: 14px; height: 1.5px;
  bottom: 4px;
  left: calc(50% - 7px);
  border-radius: var(--r-pill);
  background: var(--accent);
  opacity: .72;
}

/* Hamburger */
.site-nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: .5rem;
}
.site-nav-toggle:hover { background: rgba(28,35,31,.05); }
.site-nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 5px auto 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .22s ease;
}
.site-nav-toggle span:first-child { margin-top: 0; }
.site-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.site-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  z-index: 90;
  top: var(--header-h);
  right: 0;
  left: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: rgba(251,250,247,.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(15,20,17,.12);
  backdrop-filter: blur(20px);
}
.mobile-nav__inner { display: grid; gap: .25rem; padding-block: .9rem 1.5rem; }
.mobile-nav__link {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: .65rem .9rem;
  border-radius: .6rem;
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}
.mobile-nav__link:hover,
.mobile-nav__link.is-active { background: var(--surface-soft); }

/* Mobile CTA block */
.mobile-nav__cta {
  padding: .5rem .5rem 0;
  margin-top: .35rem;
  border-top: 1px solid var(--border);
}
.mobile-nav__cta .button { width: 100%; justify-content: center; margin-top: .5rem; }

/* ── Footer ── */
.site-footer {
  position: relative;
  padding-block: 4.5rem 1.6rem;
  overflow: hidden;
  background: var(--ink-deep);
  color: #fff;
}

/* Ambient glow */
.site-footer::before {
  content: '';
  position: absolute;
  width: 38rem; height: 38rem;
  top: -24rem; right: -12rem;
  border: 1px solid rgba(200,134,26,.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(200,134,26,.015),
    0 0 0 160px rgba(200,134,26,.008);
}
.site-footer::after { display: none; }

.site-footer .site-brand { color: #fff; }
.site-footer .site-brand__text span { color: #8bbfa0; }
.site-footer .site-brand__mark {
  background: transparent;
  color: #fff;
  box-shadow: none;
}
.site-footer .site-brand__mark::before { display: none; }

.site-footer__principles {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 2.5vw, 2rem);
  padding: 1rem 1.2rem;
  margin-bottom: 3.5rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  color: #91aaa0;
  font-family: 'Outfit', sans-serif;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-footer__principles i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-bright); }
.site-footer :focus-visible { outline-color: var(--amber-light); }

.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.site-footer__brand p {
  max-width: 360px;
  margin-top: 1.2rem;
  color: #829c90; /* Improved contrast for accessibility */
  font-size: .86rem;
  line-height: 1.7;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.site-footer__nav h2 {
  margin-bottom: 1rem;
  color: #6da386; /* Improved contrast for dark background */
  font-family: 'Outfit', sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.site-footer__nav a {
  display: block;
  margin-block: .5rem;
  color: #a6beaf; /* Elevated readability */
  font-size: .83rem;
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease;
}
.site-footer__nav a:hover { color: #d4f1ec; padding-left: .3rem; }

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.site-footer__bottom p { margin: 0; color: #a6beaf; font-size: .7rem; }

/* ── Content & Legal pages ── */
.content-page__hero {
  position: relative;
  max-width: 860px;
  padding-block: clamp(4rem, 8vw, 7rem) 3rem;
}
.content-page__hero::after {
  content: '';
  position: absolute;
  width: 100px; height: 5px;
  bottom: 2rem; left: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent), var(--amber));
}
.content-page__hero h1 { margin-bottom: 1.25rem; font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
.content-page__hero > p:last-child { max-width: 650px; font-size: 1.08rem; }

.content-page__body, .legal-page__body {
  max-width: 860px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,256,.96);
  box-shadow: var(--sh-md);
}
.content-page__body h2, .legal-page__body h2 { margin: 2.6rem 0 .9rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.content-page__body h2:first-child, .legal-page__body h2:first-of-type { margin-top: 0; }
.content-page__body h3, .legal-page__body h3 { margin: 1.85rem 0 .55rem; font-size: 1.12rem; }
.content-page__body p, .content-page__body li,
.legal-page__body p, .legal-page__body li { font-size: .97rem; line-height: 1.8; color: var(--ink-soft); }
.content-page__body li, .legal-page__body li { margin-bottom: .5rem; }
.legal-page__meta { margin-bottom: 1.8rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: .6rem; background: var(--surface-soft); color: var(--ink-muted); font-size: .78rem; }

/* ── Contact Layout ── */
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1.6rem; align-items: start; }
.contact-aside { display: grid; gap: .8rem; }
.contact-note {
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.75);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-note:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.contact-note h2 { margin-bottom: .4rem; font-size: .9rem; letter-spacing: -.02em; }
.contact-note p { margin: 0; font-size: .83rem; }

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-md);
}
.contact-card::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  top: -100px; right: -70px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(10px);
}
.contact-card > * { position: relative; }
.contact-card h2 { margin-bottom: .5rem; font-size: 1.8rem; }
.contact-card__intro { margin-bottom: 1.8rem; }

/* ── Utilities ── */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Breakpoints ── */
@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-nav-toggle { display: block; }
  .site-header__cta { display: none; } /* hidden on mobile — lives in mobile-nav instead */
  .site-footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --header-h: 62px; }
  .container { width: min(calc(100% - 1.8rem), var(--max-w)); }
  .site-brand__text { font-size: .82rem; max-width: 170px; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer__principles { flex-wrap: wrap; }
  .site-footer__principles i { display: none; }
  .content-page__body, .legal-page__body { padding: 1.25rem; border-radius: var(--r-md); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
