/* P1 Strategies — The Table
   Design system: black-led, white space, NSTA Blue (#0060a9) as a rare accent.
   Montserrat for display (upright), serif for body. Restraint over decoration. */

:root {
  --blue: #0060a9;
  --blue-dark: #004e8a;
  --black: #000000;
  --ink: #141414;        /* body text */
  --ink-soft: #4a4a4a;   /* secondary text */
  --offwhite: #edf0f4;
  --line: #e3e6ea;       /* light hairline */
  --line-dark: rgba(255, 255, 255, 0.16);
  --white: #ffffff;

  --display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Charter, Georgia, "Times New Roman", serif;

  --measure: 38rem;      /* ~62ch reading column */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--white);
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.measure { max-width: var(--measure); }

/* "Table edge" — the brand's one signature divider: a hairline with a single blue tick */
.table-rule {
  position: relative;
  height: 1px;
  max-width: var(--measure);
  margin: 2rem 0;
  background: var(--line);
}
.table-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

section { padding: clamp(2.5rem, 5.5vw, 4rem) 0; }

/* ---------- Display type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;         /* refined display weight; 800 reserved for the stat numbers */
  font-style: normal;       /* headlines upright; italic reserved for the logo */
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.15rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 700; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.25rem;
}

.lead { font-size: 1.25rem; line-height: 1.6; }

/* The hinge line — the pivot from problem to solution */
.pivot {
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 2.25rem 0;
}

p { margin: 0 0 1.4rem; }
p:last-child { margin-bottom: 0; }

.emphasis {
  font-family: var(--display);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Buttons (one style everywhere) ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--white) !important;
  background: var(--blue);
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); }
.btn--onblack { background: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  row-gap: 0.85rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand { flex-shrink: 0; }
.brand img { display: block; width: 300px; max-width: 100%; height: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); }
body[data-page="home"] .nav a[href="/"],
body[data-page="host"] .nav a[href="/host"],
body[data-page="group"] .nav a[href="/group"],
body[data-page="process"] .nav a[href="/process"],
body[data-page="faq"] .nav a[href="/faq"],
body[data-page="contact"] .nav a[href="/contact"] { color: var(--blue); }

.nav-cta {
  color: var(--white) !important;
  background: var(--blue);
  padding: 0.5rem 1.05rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--blue-dark); color: var(--white) !important; text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero (deliberate black moment) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(64vh, 580px);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.6) 42%, rgba(0,0,0,0.28) 72%, rgba(0,0,0,0.12) 100%),
    linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.4)),
    url("/img/hero.jpg") center 40% / cover no-repeat #000;
}
.hero h1 {
  color: var(--white);
  max-width: 18ch;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}
.hero .sub {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.9vw, 1.7rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 1.6rem 0 2.4rem;
  max-width: 34ch;
}

/* ---------- Stat band (numbers as large type, on black) ---------- */
.stats {
  background: var(--black);
  color: var(--white);
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}
.stat { text-align: center; }
.stats .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.stat .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
}
.stat .label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.7rem;
}

/* ---------- Soft section ---------- */
.soft { background: var(--offwhite); }

/* ---------- "What to expect" list ---------- */
.expect-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}
.expect-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  line-height: 1.4;
}
.expect-list li:last-child { border-bottom: 1px solid var(--line); }
.expect-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 1px;
}

/* ---------- Closing CTA ---------- */
.closing { text-align: center; background: var(--white); border-top: 1px solid var(--line); padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.closing-soft { background: var(--offwhite); }
.closing h2 { margin-bottom: 1.8rem; max-width: 22ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 1.7;
}
.site-footer .foot-grid img,
.site-footer > .wrap > .foot-grid img { height: 24px; width: auto; margin-bottom: 1.5rem; }

/* Carmel accolades panel (sits at the very bottom of the footer) */
.accolades {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}
.accolades-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.accolades-badges img {
  width: auto;
  max-width: 78px;
  height: auto;
  display: block;
}
@media (max-width: 560px) {
  .accolades { flex-direction: column; gap: 0.65rem; }
}
.site-footer a { color: var(--white); }
.site-footer .foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer .legal {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.foot-contact span { display: block; }
.foot-social { margin-top: 0.5rem; }
.foot-social a { display: inline-flex; color: var(--white); }
.foot-social a:hover { color: var(--blue); text-decoration: none; }
.foot-social svg { display: block; }

/* ---------- Page-stub helper ---------- */
.stub { text-align: center; padding: clamp(4rem, 12vw, 9rem) 0; }
.stub .eyebrow { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (min-width: 440px) {
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .stats .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-toggle .icon-menu { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.6rem;
    border-top: 1px solid var(--line);
  }
  body.nav-open .nav { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    text-align: center;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:last-child { border-bottom: none; }
  .nav-cta { background: none; color: var(--blue) !important; font-weight: 700; border-radius: 0; }
}

@media (max-width: 560px) {
  .brand img { width: 220px; }
  .site-footer .foot-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .site-footer .foot-grid img { margin-left: auto; margin-right: auto; }
}

/* ---------- Page intro ---------- */
.page-intro h1 { max-width: 18ch; }
.page-intro .lead { margin-top: 1.5rem; color: var(--ink-soft); }

.figure { margin: 0; }
.figure img { width: 100%; height: auto; display: block; border-radius: 2px; }

/* Interleaved image/text rows (The Host) */
.host-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  margin: clamp(2.25rem, 5vw, 3.5rem) 0;
}
@media (min-width: 820px) {
  .host-row { grid-template-columns: 1fr 1fr; }
}
.host-row .figure img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Pulled-out standalone beats */
.beat {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  max-width: 32ch;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
}

.figure figcaption {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- Labeled content blocks (About — Group) ---------- */
.block { margin-top: 2.25rem; }
.block h3 { margin-bottom: 0.5rem; }
.section-q {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

/* ---------- "Who belongs" list ---------- */
.belongs-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.belongs-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.7rem;
  font-size: 1.1rem;
  line-height: 1.5;
}
.belongs-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-family: var(--display);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.25rem; }
.faq-item { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 0.5rem; }
.faq-item p { color: var(--ink-soft); }
body[data-page="faq"] .page-intro { padding-bottom: 1.5rem; }
.faq-qa { background: var(--offwhite); padding-top: 2.75rem; padding-bottom: 2.75rem; }

/* Spacing utilities (replaces scattered inline margin-top) */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Numbered intake steps (Contact) ---------- */
.steps { list-style: none; counter-reset: step; margin: 2.25rem 0 0; padding: 0; }
.steps li {
  position: relative;
  padding: 0.1rem 0 1.6rem 3.5rem;
  counter-increment: step;
  font-size: 1.1rem;
  line-height: 1.55;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.6rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--line);
}
.steps .step-h { font-family: var(--display); font-weight: 700; color: var(--ink); }

/* ---------- Contact form ---------- */
.form { margin-top: 2rem; max-width: 34rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.form-section { margin-top: 2.5rem; margin-bottom: 0.25rem; }
.form-section:first-of-type { margin-top: 1.5rem; }
.field textarea { resize: vertical; }
.form .btn { border: none; cursor: pointer; margin-top: 0.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
