/* =================================================================
   CIVITY CLUB — Design System
   Per Civity Style Guide: Helvetica Neue type; brand blue + orange.
   ================================================================= */

:root {
  /* Brand palette (Civity Style Guide) */
  --blue: #67babe;        /* brand blue — bands, primary */
  --blue-dark: #4f9ea3;   /* deeper blue — hover / panels */
  --blue-light: #b4dcde;  /* light blue */
  --wash: #edf1f2;        /* light blue-green — section backgrounds */
  --orange: #f6863c;      /* dark orange — primary accent / CTA */
  --orange-dark: #e06f28; /* orange hover */
  --orange-light: #f89f67;/* light orange */

  /* Neutrals (brand grays) */
  --ink: #4a4848;         /* dark gray — headings & body */
  --slate: #737171;       /* med gray — muted text */
  --mute: #a6a5a5;        /* light gray */
  --line: #dbe4e6;        /* hairline borders */
  --white: #ffffff;

  /* Type — Helvetica Neue (Arimo is the metric-compatible web fallback) */
  --sans: "Helvetica Neue", Helvetica, "Arimo", Arial, sans-serif;
  --serif: "Helvetica Neue", Helvetica, "Arimo", Arial, sans-serif;
  --round: "Helvetica Neue", Helvetica, "Arimo", Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 4px;
  --radius-sm: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--orange);
}
.eyebrow--center { justify-content: center; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.14; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 14px 0 16px; }
.lead { font-size: 1.12rem; color: var(--slate); max-width: 60ch; }
.lead--center { margin-left: auto; margin-right: auto; }

/* Left-aligned section intro (editorial, asymmetric) */
.section-head { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--gold { background: var(--orange); color: #fff; }
.btn--gold:hover { background: var(--orange-dark); }
.btn--navy { background: var(--ink); color: var(--white); }
.btn--navy:hover { background: #333030; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 52px; width: auto; display: block; flex: 0 0 auto; }
.nav .brand__logo { height: 52px; }
.footer .brand__logo { height: 64px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 600; font-size: .96rem; color: var(--ink); transition: color .15s; }
.nav__links a:hover { color: var(--blue-dark); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 104px 0 112px;
  max-width: 760px;
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--orange-light); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.hero__sub { font-size: 1.18rem; color: rgba(255,255,255,.92); max-width: 52ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__meta { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hero__meta div { font-size: .9rem; color: rgba(255,255,255,.85); }
.hero__meta b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: #fff; }

/* ---------- Feature columns (editorial, no card chrome) ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--blue); }
.card h3 { font-size: 1.28rem; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 1rem; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 44px;
  margin-top: 52px;
}
.feature { border-top: 2px solid var(--ink); padding-top: 20px; }
.feature__label {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 12px;
}
.feature h3 { font-size: 1.24rem; margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: 1rem; }

/* ---------- Meeting timeline ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 90px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.tl-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 14px 0;
  align-items: flex-start;
}
.tl-time {
  text-align: right;
  font-weight: 700;
  font-size: .92rem;
  color: var(--orange-dark);
  padding-top: 16px;
}
.tl-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.tl-card::before {
  content: ""; position: absolute; left: -27px; top: 22px;
  width: 12px; height: 12px;
  background: var(--orange); border: 3px solid var(--white);
}
.tl-card h4 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.tl-card p { color: var(--slate); font-size: .97rem; margin-top: 3px; }

/* ---------- Dark blue band (Method / Environment) ---------- */
.norms { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.norms h2 { color: var(--white); }
.norms .lead { color: rgba(255,255,255,.9); }
.norms .eyebrow { color: #fff; }
.norms .eyebrow::before { background: var(--orange-light); }
.norms .card { background: var(--blue-dark); border-color: rgba(255,255,255,.3); }
.norms .card:hover { border-color: var(--orange-light); }
.norms .card h3 { color: var(--white); }
.norms .card p { color: rgba(255,255,255,.9); }
.norm-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 30px; }
.norm-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--blue-dark);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.norm-num {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--orange); color: #fff;
  font-family: var(--serif); font-weight: 700;
}
.norm-item p { font-weight: 600; }

/* ---------- Steps to start (numbered) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.step:last-child { border-bottom: 0; }
.step__num {
  counter-increment: step;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange-dark);
  line-height: 1;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.4rem; margin-bottom: 6px; }
.step p { color: var(--slate); }

/* ---------- Funding callout ---------- */
.funding {
  background: var(--orange);
  border-radius: var(--radius);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  color: #fff;
}
.funding .eyebrow { color: #fff; }
.funding .eyebrow::before { background: #fff; }
.funding h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.funding p { font-size: 1.1rem; max-width: 52ch; margin-top: 10px; color: rgba(255,255,255,.95); font-weight: 500; }
.funding__amt { font-family: var(--serif); font-weight: 700; font-size: clamp(4rem,9vw,6.5rem); line-height: .9; color: #fff; }
.funding__amt small { font-size: 1.1rem; display: block; font-family: var(--sans); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px;
  font-family: var(--sans); font-weight: 700; font-size: 1.12rem; color: var(--ink);
  text-align: left;
}
.faq-q .plus { flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform .25s; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--orange); border-radius: 2px;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.faq-q .plus::before { width: 16px; height: 2.5px; }
.faq-q .plus::after { width: 2.5px; height: 16px; }
.faq-item.open .plus { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 24px; color: var(--slate); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
}
.cta h2 { color: var(--white); font-size: clamp(2rem,4vw,3rem); }
.cta p { color: rgba(255,255,255,.92); max-width: 56ch; margin: 14px auto 30px; font-size: 1.12rem; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer p { font-size: .95rem; margin-top: 14px; max-width: 34ch; }
.footer h5 { color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul li { padding: 6px 0; }
.footer ul a { font-size: .95rem; transition: color .15s; }
.footer ul a:hover { color: var(--orange-light); }
.footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .88rem;
}

/* ---------- Form (start a chapter) ---------- */
.form-page { background: var(--wash); }
.form-hero {
  background: var(--blue);
  color: var(--white);
  padding: 70px 0 90px;
  text-align: center;
}
.form-hero .eyebrow { color: #fff; justify-content: center; }
.form-hero .eyebrow::before { background: var(--orange-light); }
.form-hero h1 { color: var(--white); font-size: clamp(2.1rem,4.2vw,3.1rem); margin: 14px 0 14px; }
.form-hero p { color: rgba(255,255,255,.92); max-width: 58ch; margin: 0 auto; font-size: 1.1rem; }

.form-shell {
  max-width: 760px; margin: -56px auto 0; position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}
.form-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 32px; }
.form-progress .dot { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.form-progress .dot.on { background: var(--orange); }

.fieldset { margin-bottom: 30px; }
.fieldset legend { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.fieldset .hint { color: var(--slate); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: #d6453d; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--wash);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(103,186,190,.28);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: .88rem; color: var(--slate); }

.form-success {
  text-align: center; padding: 30px 10px;
}
.form-success .check {
  width: 76px; height: 76px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%; background: #fbe2d1; color: var(--orange-dark);
}
.form-success h2 { margin-bottom: 10px; }
.form-success p { color: var(--slate); max-width: 46ch; margin: 0 auto 24px; }
.hidden { display: none; }

/* Side info column on form page */
.form-aside { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 760px; margin: 40px auto 0; }
.mini-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.mini-card .n { font-family: var(--serif); font-size: 1.8rem; color: var(--orange-dark); font-weight: 700; }
.mini-card p { color: var(--slate); font-size: .92rem; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid--3, .grid--4, .feature-row { grid-template-columns: repeat(2,1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .funding { grid-template-columns: 1fr; text-align: center; }
  .funding__amt { justify-self: center; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  .nav.open .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--wash); }
  .grid--3, .grid--4, .grid--2, .feature-row, .norm-list, .field--2, .form-aside { grid-template-columns: 1fr; }
  .timeline::before { left: 70px; }
  .tl-row { grid-template-columns: 70px 1fr; gap: 18px; }
  .form-shell { padding: 26px; }
  .step { grid-template-columns: 60px 1fr; gap: 16px; }
}
