/* ============================================================
   Catalyst Solutions — marketing site
   Design tokens & shared styles (see design_handoff README)
   ============================================================ */

:root {
  --bg: #F8FAFA;
  --ink: #17344A;
  --coral: #D45A2E;
  --navy: #1F5B87;
  --teal: #2FA29B;
  --text-secondary: #4A6272;
  --muted: #6B7E8A;
  --muted-on-dark: #9FB3BC;
  --border-on-dark: #24465C;
  --border: #DEE7E8;
  --dashed: #C3D4D6;
  --card: #FFFFFF;
  --selection: #D7ECE8;

  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Instrument Sans', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1280px;
  --pad: 48px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
a:hover { color: var(--coral); }
img { display: block; }
::selection { background: var(--selection); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.display { font-family: var(--display); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad);
  background: rgba(248, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { color: inherit; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.wordmark span { font-weight: 600; color: var(--teal); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav a.active {
  color: var(--coral);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}
.btn-getintouch {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 999px;
}
.btn-getintouch:hover { background: var(--coral); color: var(--bg); }

/* ---------------- Buttons / links ---------------- */
.btn-coral {
  background: var(--coral);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}
.btn-coral:hover { background: var(--ink); color: var(--bg); }
.btn-coral.lg { padding: 16px 32px; font-size: 17px; }

.link-underline {
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 2px;
}

/* ---------------- Sections ---------------- */
section { width: 100%; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--display);
  font-size: 72px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 em { color: var(--coral); font-style: italic; font-weight: 600; }
.hero p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-media { height: 460px; }
.hero-media img,
.media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* Stats */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats .container {
  padding-top: 40px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.stat-num { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 15px; }

/* Section heading row (title + intro) */
.section-pad { padding-top: 88px; padding-bottom: 88px; }
.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}
.heading-row h2, .section-title {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.heading-row .intro { color: var(--muted); max-width: 38ch; margin: 0; font-size: 16px; text-wrap: pretty; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 150ms ease;
}
.service-card:hover { border-color: var(--coral); }
.service-num { font-family: var(--mono); color: var(--coral); font-size: 14px; }
.service-card h3 { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 0; }
.service-card p { color: var(--text-secondary); line-height: 1.6; margin: 0; text-wrap: pretty; }

/* Testimonials teaser (dark band) */
.dark-band { background: var(--ink); color: var(--bg); }
.dark-band .heading-row .link-all {
  color: var(--bg);
  font-weight: 600;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}
.dark-band .heading-row .link-all:hover { color: var(--coral); }
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.placeholder-card {
  border: 1px dashed var(--text-secondary);
  border-radius: 20px;
  padding: 36px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.quote-glyph { font-family: var(--display); font-size: 40px; color: var(--coral); line-height: 1; }
.placeholder-caption { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* CTA */
.cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.cta h2 {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}
.cta p { color: var(--text-secondary); font-size: 18px; margin: 0; max-width: 48ch; text-wrap: pretty; }

/* ---------------- About page ---------------- */
.about-intro {
  padding-top: 88px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-intro .copy { display: flex; flex-direction: column; gap: 24px; }
.about-intro h1 {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.about-intro p { font-size: 18px; line-height: 1.65; color: var(--text-secondary); margin: 0; text-wrap: pretty; }
.about-media { height: 420px; }
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.team-band { background: var(--card); border-top: 1px solid var(--border); }
.team-band .container { padding-top: 80px; padding-bottom: 80px; }
.team-band h2 {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.team-member { display: flex; flex-direction: column; gap: 16px; }
.team-member img { width: 100%; height: 280px; object-fit: cover; border-radius: 20px; }
.team-name { font-family: var(--display); font-size: 20px; font-weight: 600; }
.team-role { color: var(--coral); font-size: 14px; font-weight: 500; }

.values {
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.value { border-top: 2px solid var(--coral); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.value h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 0; }
.value p { color: var(--text-secondary); line-height: 1.6; margin: 0; text-wrap: pretty; }

/* ---------------- Clients page ---------------- */
.clients-intro {
  padding-top: 88px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.clients-intro h1 {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.clients-intro p { font-size: 18px; line-height: 1.65; color: var(--text-secondary); margin: 0; max-width: 60ch; text-wrap: pretty; }

.client-section { padding-top: 56px; padding-bottom: 56px; }
.client-section.tight { padding-top: 0; }
.client-section.last { padding-bottom: 88px; }
.client-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.client-meta { display: flex; flex-direction: column; gap: 20px; }
.client-logo { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; }
.client-card h2 { font-family: var(--display); font-size: 28px; font-weight: 700; margin: 0 0 6px; }
.client-industry { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.client-blurb { color: var(--text-secondary); line-height: 1.6; margin: 0; font-size: 15px; text-wrap: pretty; }

.roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.staff-chip {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.staff-chip img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.staff-text { min-width: 0; }
.staff-name { font-weight: 600; font-size: 17px; }
.staff-role { color: var(--coral); font-size: 14px; }

/* ---------------- Case Studies page ---------------- */
.case-studies-empty {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.case-studies-empty h1 {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.empty-card {
  margin-top: 32px;
  border: 1px dashed var(--dashed);
  border-radius: 24px;
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.empty-card .quote-glyph { font-size: 48px; }
.empty-card .placeholder-caption { font-size: 14px; }

/* ---------------- Case Study detail page ---------------- */
.case-study-detail {
  width: 100%;
  max-width: 48rem;           /* match the Seika .seika-case-study width */
  margin: 0 auto;
  padding: 56px 24px 88px;
  flex: 1;
}
.case-study-detail .back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); margin-top: auto; }
.site-footer .footer-grid {
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .lockup { display: flex; align-items: center; gap: 10px; }
.footer-brand .lockup img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: #FFFFFF; }
.footer-brand .lockup span { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--bg); }
.footer-brand .slogan { font-size: 14px; font-style: italic; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-nav a { color: var(--muted-on-dark); }
.footer-nav a:hover { color: var(--bg); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-contact .label { color: var(--bg); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid var(--border-on-dark);
  padding: 20px 0;
  font-size: 13px;
}

/* ============================================================
   Responsive (< ~1024px) — stacking not designed in handoff;
   sensible rules per README.
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad: 32px; }

  .hero,
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .hero h1 { font-size: 56px; }
  .about-intro { padding-top: 56px; }

  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .client-card { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .stats .container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }

  .site-header { flex-wrap: wrap; gap: 12px 20px; }
  .nav { gap: 18px; flex-wrap: wrap; font-size: 14px; }

  .hero h1 { font-size: 44px; }
  .cta h2 { font-size: 38px; }
  .heading-row, .about-intro,
  .team-band h2 { }

  .heading-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  .services-grid,
  .placeholder-grid,
  .roster,
  .values,
  .team-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .section-pad { padding-top: 56px; padding-bottom: 56px; }
  .client-card { padding: 28px; }
}
