/* Career Coach — shared styles
   TODO: swap palette/typography once a real brand identity (logo, brand guide) exists. */

:root {
  --navy: #1E2761;
  --navy-dark: #14193F;
  --ice: #CADCFC;
  --teal: #028090;
  --mint: #02C39A;
  --ink: #1A1F36;
  --muted: #5B6178;
  --paper: #FFFFFF;
  --paper-soft: #F5F7FC;
  --border: #E1E6F2;
  --max: 1100px;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 25, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 25, 63, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 25, 63, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

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

img, svg { max-width: 100%; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

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

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.logo-mark { width: 27px; height: 27px; flex-shrink: 0; }

header.site .btn { flex-shrink: 0; white-space: nowrap; }
nav.main { min-width: 0; }

nav.main ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main li { white-space: nowrap; }

nav.main a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.main a:hover { color: var(--teal); text-decoration: none; }
nav.main a.active { color: var(--teal); border-color: var(--teal); }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #026e7b; box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* Hero */
.hero {
  background: radial-gradient(circle at 82% 20%, var(--ice) 0%, transparent 55%), linear-gradient(180deg, var(--paper-soft), var(--paper) 85%);
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art.flip svg { transform: scaleX(-1); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.stat-bar {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-bar .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stat-bar .stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--paper-soft); }

h2.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

p.section-lede {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

/* Journey steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.step-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Audience cards */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.audience-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.audience-card .tag {
  display: inline-block;
  background: var(--ice);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.audience-card h3 { margin: 0 0 10px; font-size: 1.22rem; font-weight: 600; }
.audience-card p { margin: 0; color: var(--muted); }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.team-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.team-card .initial {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}

.team-card h3 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 600; }
.team-card .role { color: var(--teal); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.team-card p.desc { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Callout / internal note */
.note {
  position: relative;
  background: #FFFBEA;
  color: #6B5300;
  border-radius: 10px;
  padding: 16px 20px 16px 24px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.note::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: #E3B23C;
}
.note b { color: #4d3d00; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  border-radius: 20px;
  padding: 52px;
  text-align: center;
  margin: 0 28px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0 0 12px; font-size: 1.75rem; font-weight: 600; }
.cta-band p { color: var(--ice); margin: 0 0 26px; }
.cta-band .btn-primary { background: var(--mint); color: var(--navy-dark); }
.cta-band .btn-primary:hover { background: #02ab86; }

/* Form (placeholder, non-functional) */
form.placeholder {
  display: grid;
  gap: 16px;
  max-width: 420px;
  margin-top: 28px;
}
form.placeholder label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
form.placeholder input, form.placeholder select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper-soft);
  color: var(--ink);
}
form.placeholder input::placeholder { color: #9BA2BD; }
form.placeholder button[disabled] {
  background: var(--border);
  color: var(--muted);
  border: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: not-allowed;
}

/* Checkbox rows (intake form) */
.checkbox-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; color: var(--ink); cursor: not-allowed; }
.checkbox-label input { width: auto; }

/* FAQ */
.faq { display: grid; gap: 20px; max-width: 640px; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.faq-item p { margin: 0; color: var(--muted); }
.faq-item p.note { margin: 0; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--teal); }
footer.site ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

/* FAQ chat widget */
.cc-chat { position: fixed; right: 20px; bottom: 20px; z-index: 50; font-family: var(--font-body); }

.cc-chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--teal); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cc-chat-toggle:hover { background: color-mix(in srgb, var(--teal) 85%, black); transform: translateY(-2px); }

.cc-chat-panel {
  position: absolute; right: 0; bottom: 68px;
  width: 320px; max-width: calc(100vw - 40px);
  background: var(--paper); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.cc-chat-panel[hidden] { display: none; }

.cc-chat-head {
  background: var(--navy); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
}
.cc-chat-tag {
  font-family: var(--font-body); font-weight: 600; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ice);
  background: rgba(255,255,255,0.12); padding: 2px 7px; border-radius: 999px; margin-left: 6px;
}
.cc-chat-close {
  background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 0 2px; opacity: 0.8;
}
.cc-chat-close:hover { opacity: 1; }

.cc-chat-log {
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  max-height: 300px; min-height: 120px; overflow-y: auto;
  background: var(--paper-soft);
}
.cc-msg { font-size: 0.88rem; line-height: 1.5; padding: 9px 12px; border-radius: 12px; max-width: 88%; }
.cc-msg-bot { background: var(--paper); border: 1px solid var(--border); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.cc-msg-user { background: var(--teal); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.cc-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--paper); }
.cc-chat-form input {
  flex: 1; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px;
  font-family: var(--font-body); font-size: 0.88rem; background: var(--paper-soft); color: var(--ink);
}
.cc-chat-form button {
  width: 36px; border: none; border-radius: 9px; background: var(--teal); color: #fff;
  font-size: 1rem; cursor: pointer; flex-shrink: 0;
}
.cc-chat-form button:hover { background: color-mix(in srgb, var(--teal) 85%, black); }

@media (max-width: 480px) {
  .cc-chat { right: 14px; bottom: 14px; }
  .cc-chat-panel { width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  .step-card, .audience-card, .team-card, .btn { transition: none; }
}

@media (max-width: 640px) {
  nav.main ul { gap: 14px; justify-content: center; }
  header.site .wrap { flex-direction: column; padding: 16px 24px; gap: 12px; }
  .cta-band { margin: 0 16px; padding: 36px 22px; }
}
