/* OutsideSet — shared stylesheet
   Brand palette from outsideset_logos.svg:
   Navy #0f2d5e · Coral #D85A30 · Steel Blue #1a56a0 · Light Blue #6b9ad4 · Off White #f4f7fc
   Type: Quicksand (wordmark + headings, per brand sheet) + Inter (body/UI) */

:root {
  --navy: #0f2d5e;
  --navy-deep: #0a2047;
  --coral: #D85A30;
  --coral-dark: #B8461F;
  --steel: #1a56a0;
  --sky: #6b9ad4;
  --off-white: #f4f7fc;
  --rule: #d0d8e8;
  --ink: #24344b;
  --muted: #5a7090;
  --muted-light: #8a9ab5;
  --paper: #FFFFFF;

  --display: "Quicksand", "Trebuchet MS", Verdana, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --wide: 1120px;
  --gap: clamp(3rem, 7vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--navy); margin: 0 0 .6em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.55; max-width: 58ch; }
.note { font-size: .82rem; line-height: 1.55; color: var(--muted); max-width: 82ch; }
.note a { color: var(--muted); }

a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

strong, b { font-weight: 650; }

/* ---------- Layout ---------- */

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
section { padding-block: var(--gap); }
.band { background: var(--off-white); }
.band-navy { background: var(--navy); color: #dbe6f5; }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #FFFFFF; }
.band-navy a { color: var(--sky); }
.rule-top { border-top: 1px solid var(--rule); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Header + wordmark ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }

.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; margin-right: auto; }
.brand .wave { width: 27px; height: 17px; flex: none; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.42rem;
  color: var(--navy); letter-spacing: -.035em;
}
.wordmark span { color: var(--coral); }
.band-navy .wordmark { color: #fff; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-size: .93rem; color: var(--ink); text-decoration: none; font-weight: 500; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--coral); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--coral); }
.head-cta { border-bottom: none; }

@media (max-width: 820px) {
  /* Row 1: wordmark + Book a call. Row 2: the section links, scrollable if tight.
     Keeps the sticky header near 90px instead of eating a fifth of the screen. */
  .site-head .wrap { flex-wrap: wrap; column-gap: 1rem; row-gap: .2rem; padding-block: .5rem; min-height: 0; }
  .brand { order: 1; margin-right: auto; width: auto; }
  .head-cta { order: 2; padding: .74rem 1.05rem; font-size: .9rem; }
  .nav {
    order: 3; width: 100%; gap: 1.15rem;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding-block: .72rem; }
  .site-foot .wrap { display: block; }
  .site-foot nav { margin-left: 0; margin-top: .6rem; gap: 0 1.4rem; }
  .site-foot nav a { padding-block: .62rem; display: inline-block; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font-family: var(--sans); font-size: .95rem; font-weight: 550;
  padding: .7rem 1.25rem; border-radius: 6px; text-decoration: none; cursor: pointer;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn-ghost:hover { background: var(--off-white); color: var(--navy); border-color: var(--sky); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.site-head .head-cta, .site-head .head-cta:hover { color: #fff; }
.band-navy a.btn-coral, .band-navy a.btn-coral:hover { color: #fff; }
.band-navy a.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.band-navy a.btn-light:hover { background: var(--off-white); color: var(--navy); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 6rem) clamp(3rem, 7vw, 4.5rem); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.2rem; }
.hero-meta { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 2px solid var(--coral); font-size: .92rem; color: var(--muted); max-width: 62ch; }

/* ---------- Stage sequence ---------- */

.stages { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); margin-top: 2.4rem; }
@media (min-width: 780px) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stage { background: var(--paper); padding: 1.8rem 1.6rem 2rem; }
.band .stage { background: var(--off-white); }
.stage-n { font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--coral); display: block; margin-bottom: .5rem; }
.stage h3 { margin-bottom: .25rem; }
.stage-when { font-size: .86rem; color: var(--muted); margin-bottom: .9rem; }
.stage p { margin-bottom: 0; font-size: .96rem; }

/* ---------- Column grids ---------- */

.cols { display: grid; gap: 2rem 2.6rem; margin-top: 2.2rem; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cols p:last-child { margin-bottom: 0; }
.cols h3, .cols h4 { margin-bottom: .35rem; }
.col-sub { font-size: .85rem; color: var(--muted); margin: -.2rem 0 .7rem; }

.door { border-top: 3px solid var(--coral); padding-top: 1.1rem; }
.door p { font-size: .96rem; }

/* ---------- Statistics ---------- */

.stats { display: grid; gap: 2rem; margin: 2.4rem 0 1.6rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 2.6rem; } }
.stat-n { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.3rem); line-height: 1; color: var(--navy); display: block; letter-spacing: -.03em; }
.stat p { font-size: .95rem; margin: .7rem 0 0; max-width: 34ch; }

.pull { border-left: 3px solid var(--coral); padding: .2rem 0 .2rem 1.4rem; margin: 2.2rem 0; max-width: 56ch; }
.pull p { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.45; color: var(--navy); margin-bottom: .5rem; }
.pull cite { font-style: normal; font-size: .86rem; color: var(--muted); }

/* ---------- Lists ---------- */

.checklist { list-style: none; margin: 1.6rem 0 0; padding: 0; max-width: 68ch; }
.checklist li { padding: .85rem 0 .9rem 1.6rem; border-top: 1px solid var(--rule); position: relative; font-size: .99rem; }
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: .6rem; height: 2px; background: var(--coral); }

.plain { padding-left: 1.1rem; max-width: var(--measure); }
.plain li { margin-bottom: .5rem; }

/* ---------- Readiness grid ---------- */

.readiness { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 2.2rem; }
@media (min-width: 720px) { .readiness { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .readiness { grid-template-columns: repeat(4, 1fr); } }
.rd { background: var(--paper); padding: 1.4rem 1.3rem 1.6rem; }
.band .rd { background: var(--off-white); }
.rd h4 { margin-bottom: .8rem; }
.rd ul { margin: 0; padding-left: 1.05rem; font-size: .93rem; }
.rd li { margin-bottom: .38rem; }
.rd li::marker { color: var(--coral); }

/* ---------- People ---------- */

.person { display: grid; gap: 1.6rem 2.4rem; padding-block: 2.2rem; border-top: 1px solid var(--rule); }
@media (min-width: 820px) { .person { grid-template-columns: 210px 1fr; } }
.person img { width: 100%; max-width: 210px; height: auto; border-radius: 6px; display: block; }
.person h3 { margin-bottom: .1rem; }
.person .role { font-size: .9rem; color: var(--coral); font-weight: 600; margin-bottom: 1rem; }
.person-body { max-width: 66ch; }
.credits { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.credits li { font-size: .94rem; padding: .45rem .5rem .45rem 0; border-top: 1px solid var(--rule); }
.credits li:last-child { border-bottom: 1px solid var(--rule); }
.credits b { font-weight: 650; color: var(--navy); }

/* ---------- Forms ---------- */

.form { max-width: 34rem; margin-top: 1.8rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 550; margin-bottom: .35rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: .6rem .7rem;
  border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(26,86,160,.14); }
.hp { position: absolute; left: -9999px; }

.fs-success, .fs-error { border-radius: 6px; padding: .85rem 1rem; margin-bottom: 1.4rem; font-size: .95rem; line-height: 1.5; }
.fs-success { background: #e8f0fb; border: 1px solid var(--sky); color: var(--navy); }
.fs-error { background: #FBEDE8; border: 1px solid #E5A98F; color: #8C3414; }
.fs-success:empty, .fs-error:empty { display: none; }
.fs-field-error { display: block; margin-top: .35rem; font-size: .85rem; color: #8C3414; }
.fs-field-error:empty { display: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--coral); }
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(216,90,48,.16); }
button[disabled] { opacity: .55; cursor: progress; }

/* ---------- CTA band + footer ---------- */

.cta-band { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band p { color: #c3d6ee; max-width: 52ch; }

.site-foot { border-top: 1px solid var(--rule); padding-block: 2.4rem 3rem; font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: baseline; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-left: auto; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--coral); text-decoration: underline; }
