/* ============================================================
   FirstHand Search — Brand Stylesheet
   Palette extracted from FirstHand Search + CatalystModel logos
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

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

/* ── BRAND TOKENS ─────────────────────────────────────────── */
:root {
  /* Core palette — from logos */
  --navy:        #0D1B2A;   /* cover background deep navy     */
  --navy-mid:    #112233;   /* section backgrounds            */
  --navy-card:   #162840;   /* card surfaces                  */
  --navy-border: rgba(46,196,214,0.15);

  --teal:        #2EC4D6;   /* "Hand" in FirstHand wordmark   */
  --teal-dark:   #1ABCCE;   /* hover / deeper teal            */
  --blue:        #2E7EB8;   /* logo icon steel blue           */
  --blue-light:  #3B9FD4;   /* lighter blue accent            */

  /* CatalystModel gradient endpoints */
  --cm-cyan:     #00D4FF;
  --cm-blue:     #2979FF;

  /* Text */
  --text:        #E8F4F8;   /* primary light text on dark     */
  --text-mid:    #8FA8B8;   /* muted / subtitle               */
  --text-faint:  #4A6070;   /* very muted                     */

  /* Light mode surfaces (logo bg) */
  --cream:       #F0EDE6;
  --cream-dark:  #E4E0D8;

  /* CatalystModel wordmark navy */
  --cm-navy:     #1B2A4A;

  /* Typography */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --max-w: 1120px;
  --pad-x: clamp(24px, 5vw, 80px);
}

/* ── BASE ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── UTILITY ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

h2.display {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h2.display i { font-style: italic; color: var(--teal); }

.section-intro {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 52px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal);
  padding: 13px 28px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  transition: color 0.2s;
}
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover { color: var(--text); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── NAV ──────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(13,27,42,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-border);
  transition: background 0.3s;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal);
  padding: 9px 22px;
  border-radius: 3px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal-dark); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 100px var(--pad-x) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

/* radial glow behind left content */
#hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46,196,214,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--teal);
}

#hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.07;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
#hero h1 i { font-style: italic; color: var(--teal); }

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--text); font-weight: 400; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Hero cover image */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-cover {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--navy-border);
}
.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy-border);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  overflow: hidden;
}

.hero-stat {
  background: var(--navy-card);
  padding: 20px 16px;
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .lbl {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── SERVICES ─────────────────────────────────────────────── */
#services {
  background: var(--navy-mid);
  padding: 96px 0;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy-border);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  overflow: hidden;
}

.svc-card {
  background: var(--navy-card);
  padding: 40px 32px;
  transition: background 0.25s;
}
.svc-card:hover { background: #1a3050; }

.svc-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.svc-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.svc-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── WHO WE SERVE ─────────────────────────────────────────── */
#who {
  padding: 96px 0;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--navy-border);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  overflow: hidden;
}

.who-col {
  background: var(--navy-card);
  padding: 44px 40px;
}

.who-col-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.who-col h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.who-col .who-intro {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 1px;
  background: var(--teal);
  margin-top: 10px;
}

/* ── CATALYSTMODEL BAND ───────────────────────────────────── */
#catalyst {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 80px 0;
}

.catalyst-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cm-logo {
  height: 32px;
  width: auto;
  margin-bottom: 24px;
  /* invert white to show on dark bg */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.catalyst-left p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}

.catalyst-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.score-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  padding: 20px 24px;
}

.score-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.badge-exec {
  background: rgba(46,196,214,0.15);
  color: var(--teal);
  border: 1px solid rgba(46,196,214,0.3);
}
.badge-cat {
  background: rgba(0,212,255,0.12);
  color: var(--cm-cyan);
  border: 1px solid rgba(0,212,255,0.25);
}

.score-text h4 {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 5px;
}
.score-text p {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.55;
}

.cm-disclaimer {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-faint);
  line-height: 1.6;
  padding: 0 4px;
}

/* ── PROCESS ──────────────────────────────────────────────── */
#process {
  padding: 96px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--navy-border);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.step {
  background: var(--navy-card);
  padding: 36px 28px;
  transition: background 0.2s;
  position: relative;
}
.step:hover { background: #1a3050; }

.step-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.step h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}

.step p {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── CONTACT ──────────────────────────────────────────────── */
#contact {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  padding: 96px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2.display { margin-bottom: 14px; }
.contact-left p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mid);
}
.contact-row svg {
  width: 15px; height: 15px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.f-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f-group label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.f-group input,
.f-group select,
.f-group textarea {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 3px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.f-group input::placeholder,
.f-group textarea::placeholder { color: var(--text-faint); }
.f-group select option { background: var(--navy-card); color: var(--text); }
.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus { border-color: var(--teal); }
.f-group textarea { resize: vertical; min-height: 88px; }

.f-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.f-note {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-faint);
}

/* ── FOOTER ───────────────────────────────────────────────── */
#footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-border);
  padding: 40px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-faint);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }
  .hero-right { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .catalyst-inner { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  #footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
