/* ============================================
    Problaq Creators - Homepage Specific Styles
    Split Hero, Testimonials, Case Study, Escrow, Direct Hire
    ============================================ */

/* ---- Unified Hero ---- */
.home-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eef7ee 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 72px 0 34px;
}
.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 42px;
  align-items: center;
}
.section-kicker,
.path-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: #e6f4e6;
  color: #0d8a00;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero-copy h1 {
  color: #0f172a;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  max-width: 860px;
  margin-bottom: 20px;
}
.hero-copy p {
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 690px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pricing-note {
  color: #334155;
  background: #fff;
  border: 1px solid #dbe4dd;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 680px;
}
.pricing-note strong { color: #0f172a; }
.hero-proof-card {
  background: #0f172a;
  border-radius: 16px;
  color: #fff;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.16);
}
.hero-proof-card .section-kicker {
  background: rgba(20,168,0,0.16);
  color: #6ee36a;
}
.hero-proof-card h2 {
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.16;
  margin-bottom: 14px;
}
.hero-proof-card p {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 22px;
}
.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-proof-grid div {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 10px;
}
.hero-proof-grid strong {
  display: block;
  color: #14a800;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-proof-grid span {
  display: block;
  color: #cbd5e1;
  font-size: 0.72rem;
}
.hero-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.hero-path-card {
  background: #fff;
  border: 1px solid #dfe7df;
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s;
}
.hero-path-card:hover {
  border-color: #14a800;
  box-shadow: 0 10px 28px rgba(20,168,0,0.08);
  transform: translateY(-2px);
}
.hero-path-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.hero-path-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Split Hero ---- */
.cta-button-pair,
.business-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-button-pair { justify-content: flex-start; }
.business-cta-actions { text-align: center; }

.split-hero { padding: 0; background: #fff; }
.split-hero-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }

.split-client {
  background: linear-gradient(135deg, #14a800 0%, #0d8a00 100%);
  padding: 72px 56px; display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden;
}
.split-client::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; background: rgba(255,255,255,0.06);
  border-radius: 50%; pointer-events: none;
}
.split-client::before {
  content: ''; position: absolute; right: 40px; bottom: -80px;
  width: 320px; height: 320px; background: rgba(255,255,255,0.04);
  border-radius: 50%; pointer-events: none;
}
.split-client > * { position: relative; z-index: 1; }
.split-client-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2); color: #fff;
  padding: 5px 12px; border-radius: 20px; font-size: 0.78rem;
  font-weight: 600; margin-bottom: 20px; width: fit-content;
}
.split-client h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800;
  color: #fff; line-height: 1.2; margin-bottom: 14px;
}
.split-client p { color: rgba(255,255,255,0.88); font-size: 1rem; line-height: 1.7; margin-bottom: 28px; max-width: 380px; }
.split-promise {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px;
}
.split-promise-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.9); font-size: 0.88rem;
}
.split-promise-item svg { width: 16px; height: 16px; color: #fff; flex-shrink: 0; }
.btn-white-solid {
  background: #fff; color: #14a800; border: 2px solid #fff;
  font-weight: 800; font-size: 1rem; padding: 14px 28px;
  border-radius: 10px; display: inline-flex; align-items: center;
  gap: 8px; transition: all 0.2s; width: fit-content;
}
.btn-white-solid:hover { background: #f0fdf4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.split-freelancer {
  background: #fff; padding: 72px 56px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid #e2e8f0;
}
.split-freelancer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eff6ff; color: #1f57c3;
  padding: 5px 12px; border-radius: 20px; font-size: 0.78rem;
  font-weight: 600; margin-bottom: 20px; width: fit-content;
}
.split-freelancer h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800;
  color: #1e293b; line-height: 1.2; margin-bottom: 14px;
}
.split-freelancer p { color: #64748b; font-size: 1rem; line-height: 1.7; margin-bottom: 28px; max-width: 380px; }
.freelancer-preview { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.fp-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px;
  transition: all 0.2s;
}
.fp-card:hover { border-color: #14a800; background: #f0fdf4; }
.fp-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; color: #fff; flex-shrink: 0;
}
.fp-name { font-weight: 600; font-size: 0.88rem; color: #1e293b; }
.fp-role { font-size: 0.75rem; color: #64748b; }
.fp-avail {
  margin-left: auto; font-size: 0.72rem; font-weight: 600;
  padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.fp-avail.available { background: #f0fdf4; color: #14a800; }
.fp-avail.busy { background: #fef9c3; color: #854d0e; }
.btn-blue-solid {
  background: #1f57c3; color: #fff; border: 2px solid #1f57c3;
  font-weight: 700; font-size: 1rem; padding: 14px 28px;
  border-radius: 10px; display: inline-flex; align-items: center;
  gap: 8px; transition: all 0.2s; width: fit-content;
}
.btn-blue-solid:hover { background: #1848a8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31,87,195,0.25); }

/* ---- Testimonials ---- */
.testimonials-section { background: #f8fafc; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 28px; transition: all 0.3s;
}
.testimonial-card:hover { border-color: #14a800; box-shadow: 0 8px 32px rgba(20,168,0,0.08); }
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 14px; }
.testimonial-text { color: #374151; font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: #1e293b; }
.testimonial-role { font-size: 0.78rem; color: #64748b; }
.testimonial-company { font-size: 0.75rem; color: #14a800; font-weight: 600; margin-top: 2px; }

/* ---- Case Study ---- */
.case-study {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px; padding: 48px; margin: 0 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.case-study-label { color: #14a800; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.case-study h3 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.case-study p { color: #94a3b8; font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.case-study-stats { display: flex; gap: 32px; }
.cs-stat-val { font-size: 1.8rem; font-weight: 800; color: #14a800; line-height: 1; }
.cs-stat-lbl { font-size: 0.78rem; color: #64748b; margin-top: 4px; }
.case-study-quote {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 24px;
}
.case-study-quote p { color: #e2e8f0; font-size: 1rem; line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.case-study-quote-author { color: #94a3b8; font-size: 0.85rem; }

/* ---- Escrow Banner ---- */
.escrow-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1px solid #bbf7d0; border-radius: 16px; padding: 36px 40px;
  display: flex; align-items: center; gap: 32px; margin: 0 0 48px;
}
.escrow-icon { font-size: 3rem; flex-shrink: 0; }
.escrow-title { font-size: 1.2rem; font-weight: 800; color: #1e293b; margin-bottom: 6px; }
.escrow-desc { color: #374151; font-size: 0.92rem; line-height: 1.6; }
.escrow-steps { display: flex; gap: 0; margin-left: auto; flex-shrink: 0; }
.escrow-step {
  text-align: center; padding: 0 20px; border-right: 1px solid #bbf7d0;
}
.escrow-step:last-child { border-right: none; }
.escrow-step-num { font-size: 1.4rem; font-weight: 800; color: #14a800; line-height: 1; }
.escrow-step-lbl { font-size: 0.72rem; color: #64748b; margin-top: 4px; max-width: 70px; }

/* ---- Direct Hire ---- */
.direct-hire-section { background: #fff; }
.direct-hire-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.direct-hire-cards { display: flex; flex-direction: column; gap: 12px; }
.home-talent-loading {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  padding: 28px;
  text-align: center;
  background: #fff;
}
.dh-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 12px;
  transition: all 0.2s; cursor: pointer;
}
.dh-card:hover { border-color: #14a800; background: #f0fdf4; transform: translateX(4px); }
.dh-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem; flex-shrink: 0;
  overflow: hidden;
}
.dh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dh-info { flex: 1; }
.dh-name { font-weight: 700; font-size: 0.95rem; color: #1e293b; }
.dh-role { font-size: 0.8rem; color: #64748b; }
.dh-rate { font-weight: 700; color: #14a800; font-size: 0.9rem; }
.dh-avail {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
}
.dh-avail.on { background: #f0fdf4; color: #14a800; }
.dh-avail.off { background: #fef9c3; color: #854d0e; }
.dh-heart {
  width: 36px; height: 36px; border: 1px solid #e2e8f0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; color: #94a3b8; font-size: 1rem;
  background: #fff; flex: 0 0 36px;
}
.dh-heart:hover, .dh-heart.saved { background: #fef2f2; border-color: #fecaca; color: #ef4444; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-path-grid { grid-template-columns: 1fr; }
  .split-hero-inner { grid-template-columns: 1fr; }
  .split-client, .split-freelancer { padding: 48px 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .case-study { grid-template-columns: 1fr; gap: 28px; }
  .escrow-banner { flex-direction: column; text-align: center; }
  .escrow-steps { margin-left: 0; }
  .direct-hire-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-hero { padding: 42px 0 26px; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-copy p { font-size: 0.98rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .pricing-note { font-size: 0.86rem; }
  .hero-proof-card { padding: 22px; }
  .hero-proof-grid { grid-template-columns: 1fr; }
  .hero-path-card { padding: 20px; }
  .split-hero-inner { min-height: auto; }
  .split-client, .split-freelancer { padding: 32px 20px; }
  .cta-button-pair, .business-cta-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .business-cta-actions { max-width: 360px; margin: 0 auto; }
  .business-cta-actions .btn { width: 100%; margin: 0; }
  .split-promise-item { font-size: 0.82rem; }
  .fp-card { padding: 10px 12px; }
  .fp-name { font-size: 0.82rem; }
  .fp-role { font-size: 0.72rem; }
  .btn-white-solid, .btn-blue-solid {
    font-size: 0.88rem; padding: 12px 20px; width: 100%;
    justify-content: center;
  }
  .freelancer-preview { gap: 8px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 20px 16px; }
  .case-study { padding: 32px 20px; gap: 24px; }
  .case-study h3, .case-study p { overflow-wrap: anywhere; }
  .case-study-stats { flex-direction: column; gap: 16px; }
  .escrow-banner { padding: 24px 20px; gap: 20px; }
  .escrow-steps { flex-wrap: wrap; gap: 8px; }
  .dh-card { padding: 14px; display: grid; grid-template-columns: 48px minmax(0,1fr) 40px; gap: 12px; align-items: center; }
  .dh-avatar { width: 40px; height: 40px; font-size: 0.85rem; }
  .dh-info { min-width: 0; }
  .dh-avail { grid-column: 2; width: fit-content; }
  .dh-heart { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
}
