/* ==========================================================================
   Collective Source — professional site styles
   Brand matches the letterhead: navy #283f6b, crossroads logo,
   tagline "building tools that improve the world".
   ========================================================================== */
:root {
  --navy: #283f6b;
  --navy-2: #51648f;
  --navy-ink: #1d2c4a;
  --gold: #c8911f;          /* warm accent echoing the crossroads logo */
  --ink: #2b3340;
  --muted: #5d6675;
  --paper: #ffffff;
  --mist: #f4f7fc;
  --line: #dbe3f0;
  --radius: 8px;
  --shadow: 0 2px 14px rgba(31, 44, 74, 0.08);
  --shadow-lg: 0 8px 30px rgba(31, 44, 74, 0.12);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; }
p { color: var(--ink); }
a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 6px; display: block; }
.brand .name { font-weight: 700; font-size: 1.15rem; color: var(--navy); letter-spacing: 0.01em; }
.brand .tag { font-size: 0.72rem; font-style: italic; color: var(--navy-2); display: block; margin-top: -2px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 0.96rem; font-weight: 500; color: var(--navy-ink); }
.nav-links a.cta {
  background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 6px;
}
.nav-links a.cta:hover { background: var(--navy-ink); color: #fff; }

/* Mobile menu — CSS-only <details> dropdown; shown under 860px */
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: 1.3rem; line-height: 1; color: var(--navy);
  padding: 8px 11px; border: 1.5px solid var(--line); border-radius: 6px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--mist); }
.nav-menu-links {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  display: grid; padding: 8px 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.nav-menu-links a { padding: 10px 18px; font-size: 0.98rem; font-weight: 500; color: var(--navy-ink); }
.nav-menu-links a:hover { background: var(--mist); color: var(--navy); }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(40,63,107,0.06), transparent),
    linear-gradient(180deg, var(--mist), #fff);
  border-bottom: 1px solid var(--line);
}
.hero-banner { width: 100%; }
.hero-banner img {
  display: block; width: 100%; max-height: 200px; object-fit: cover;
}
.hero-inner {
  padding: 56px 24px 60px;
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--navy-2); margin-bottom: 14px;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 18px; max-width: 20ch; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 600;
  font-size: 0.98rem; transition: all .2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-ink); color: #fff; }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---- Sections ---- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---- Work list ---- */
.work { display: grid; gap: 18px; }
.work-item {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
.work-item .role { font-weight: 700; color: var(--navy); }
.work-item .meta { font-size: 0.82rem; color: var(--navy-2); margin-top: 2px; }
.work-item p { color: var(--muted); font-size: 0.97rem; }
.work-item strong { color: var(--ink); }

/* ---- Logos / trusted ---- */
.trusted { text-align: center; }
.trusted .label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; color: var(--navy-2); font-weight: 700; margin-bottom: 18px; }
.trusted .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.trusted .row span { font-weight: 600; color: var(--navy-ink); opacity: 0.8; font-size: 1.02rem; }

/* ---- Engagement / rate note ---- */
.note-band {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.note-band h2 { color: #fff; }
.note-band p { color: #d7deec; margin-top: 4px; max-width: 60ch; }
.note-band p a { color: #fff; text-decoration: underline; }
.note-band p a:hover { color: var(--gold); }
.note-band .btn-primary { background: #fff; color: var(--navy); }
.note-band .btn-primary:hover { background: var(--gold); color: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-ink); color: #c4cde0; padding: 46px 0 30px; }
.site-footer a { color: #e6ecf7; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 0.02em; }
.site-footer .brand .name { color: #fff; }
.site-footer .brand .tag { color: #aab6d2; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; font-size: 0.94rem; }
.site-footer .foot-extra { margin-top: 14px; font-size: 0.94rem; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 18px;
  font-size: 0.84rem; color: #9aa6c4; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---- Page header band (interior pages) ---- */
.page-head {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(40,63,107,0.06), transparent),
    linear-gradient(180deg, var(--mist), #fff);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.page-head .eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--navy-2); margin-bottom: 12px;
}
.page-head h1 { font-size: 2.3rem; margin-bottom: 14px; }
.page-head p { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.nav-links a.active, .nav-menu-links a.active { color: var(--gold); }

/* ---- Prose ---- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.05rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

/* ---- About layout ---- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 44px; align-items: start; }
.portrait img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.portrait .cap { font-size: 0.82rem; color: var(--navy-2); margin-top: 12px; }
.highlights { list-style: none; margin-top: 8px; }
.highlights li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.97rem; }
.highlights li:last-child { border-bottom: none; }
.highlights strong { color: var(--navy); }

/* ---- Services detail ---- */
.svc { display: grid; gap: 20px; }
.svc-item {
  padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
.svc-item h3 { margin-bottom: 8px; }
.svc-item p { color: var(--muted); }
.svc-item p + p { margin-top: 10px; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card {
  padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 12px; }
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 10px; font-size: 1.02rem; }
.contact-list .k { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy-2); font-weight: 700; }

/* ---- Speaker bio ---- */
.bio-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: start; }
.bio-grid .portrait img { max-width: 320px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-banner img { max-height: 200px; }
  .hero h1 { font-size: 2.1rem; }
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 24px; }
  .work-item { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
