/* HomeBridge Careers */

:root {
  --navy: #0c1222;
  --navy-mid: #151d32;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-light: #eef2ff;
  --violet: #7c3aed;
  --white: #ffffff;
  --cream: #f8f9fc;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --error: #dc2626;
  --gold: #f59e0b;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(12, 18, 34, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 18, 34, 0.12);
  --radius: 12px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); }
h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: center; gap: 0.625rem; color: var(--navy); font-weight: 700; }
.logo-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: white; font-size: 0.8rem; font-weight: 800; border-radius: 10px;
}
.logo-accent { color: var(--indigo); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { color: var(--text); font-weight: 500; font-size: 0.9375rem; }
.nav-cta {
  background: var(--indigo); color: white !important;
  padding: 0.6rem 1.2rem; border-radius: 8px;
}
.nav-cta:hover { background: var(--indigo-dark); color: white !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem; font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; transition: 0.2s;
}
.btn-primary { background: var(--indigo); color: white; border-color: var(--indigo); }
.btn-primary:hover { background: var(--indigo-dark); color: white; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.9375rem; }
#btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(79,70,229,0.12), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(124,58,237,0.08), transparent 50%),
    var(--cream);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--indigo); background: var(--indigo-light);
  padding: 0.35rem 0.75rem; border-radius: 100px; margin-bottom: 1rem;
}
.hero-lead { font-size: 1.125rem; color: var(--muted); max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.hero-perks { display: flex; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero-perks strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.hero-perks span { font-size: 0.8125rem; color: var(--muted); }

.phone-mock {
  background: var(--navy); border-radius: 28px; padding: 12px;
  box-shadow: var(--shadow-lg); max-width: 280px; margin-inline: auto;
}
.phone-screen {
  background: #1a1f2e; border-radius: 20px; padding: 1.25rem; min-height: 320px;
}
.phone-label { font-size: 0.75rem; color: #94a3b8; margin-bottom: 1rem; }
.phone-card { height: 72px; background: linear-gradient(90deg, #334155, #475569); border-radius: 10px; margin-bottom: 0.75rem; }
.phone-card.short { height: 48px; width: 70%; }
.phone-caption { font-size: 0.75rem; color: #64748b; margin-top: 1.5rem; }

.trust-strip { background: var(--navy); color: rgba(255,255,255,0.75); padding: 1.25rem 0; text-align: center; font-size: 0.875rem; }
.trust-strip p { margin: 0; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-header p:last-child { color: var(--muted); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--indigo); margin-bottom: 0.75rem; }

.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.role-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; transition: box-shadow 0.2s, transform 0.2s;
}
.role-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.role-num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--indigo); opacity: 0.4; }
.role-card p { font-size: 0.9375rem; color: var(--muted); margin: 0; }

.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { padding-left: 1.75rem; position: relative; font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--indigo); font-weight: 700; }

.pay-card {
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  color: white; border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.pay-label { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; margin-bottom: 0.5rem; }
.pay-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.pay-note { font-size: 0.875rem; opacity: 0.8; margin-bottom: 1.5rem; }
.pay-tiers { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; }
.pay-tiers li { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9375rem; }
.pay-tiers span { opacity: 0.7; }

.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.req-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.req-item ul { list-style: disc; padding-left: 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.req-item li + li { margin-top: 0.5rem; }
.req-item.highlight { background: var(--indigo-light); border-color: rgba(79,70,229,0.25); }
.req-item.highlight p { color: var(--muted); font-size: 0.9375rem; }

/* Form */
.section-apply { background: linear-gradient(180deg, white, var(--indigo-light)); }
.apply-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.apply-intro p { color: var(--muted); }
.apply-steps-preview { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.apply-steps-preview li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.apply-steps-preview span {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--indigo-light); color: var(--indigo);
  font-size: 0.8125rem; font-weight: 700; border-radius: 50%;
}

.apply-form {
  background: white; padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-progress { height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 0.75rem; }
.form-progress-bar { height: 100%; background: linear-gradient(90deg, var(--indigo), var(--violet)); border-radius: 100px; transition: width 0.35s; }
.form-step-label { font-size: 0.875rem; font-weight: 600; color: var(--indigo); margin: 0 0 1.5rem; }
.form-step { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label, .field-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); margin-bottom: 0.375rem; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.field-hint { font-size: 0.8125rem; color: var(--muted); margin: -0.25rem 0 0.5rem; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 1rem;
  color: var(--text); background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 8px; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,0.15); background: white;
}
.form-group input.error, .form-group select.error, .form-group textarea.error { border-color: var(--error); }
.form-group textarea { resize: vertical; min-height: 88px; }
.form-group input[type="file"] { padding: 0.5rem; font-size: 0.875rem; }

.choice-group { display: flex; gap: 0.75rem; }
.choice-btn { flex: 1; cursor: pointer; }
.choice-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-btn span {
  display: block; text-align: center; padding: 0.875rem; font-weight: 600;
  background: var(--cream); border: 2px solid var(--border); border-radius: 8px; transition: 0.2s;
}
.choice-btn input:checked + span { background: var(--indigo-light); border-color: var(--indigo); color: var(--indigo-dark); }
.choice-group.error .choice-btn span { border-color: var(--error); }

.form-consent { margin-top: 0.5rem; }
.checkbox-label { display: flex; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); cursor: pointer; }
.checkbox-label input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--indigo); }

.form-error {
  margin-top: 1rem; padding: 0.875rem 1rem;
  background: #fef2f2; border: 1px solid var(--error); border-radius: 8px;
  color: var(--error); font-size: 0.875rem; font-weight: 500;
}
.form-nav { display: flex; gap: 1rem; margin-top: 1.5rem; }
.form-nav .btn { flex: 1; }
.form-nav #btn-back { flex: 0 0 auto; min-width: 100px; }
.form-disclaimer { text-align: center; font-size: 0.8125rem; color: var(--muted); margin: 1rem 0 0; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem; background: var(--cream); }
.faq-item summary { padding: 1rem 0; font-weight: 600; cursor: pointer; color: var(--navy); }
.faq-item p { padding-bottom: 1rem; font-size: 0.9375rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 3rem 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.footer-brand p { font-size: 0.9375rem; max-width: 280px; margin-top: 0.75rem; }
.footer-contact a { color: white; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; text-align: center; font-size: 0.8125rem; }

/* Modal */
.form-success {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; background: rgba(12,18,34,0.6); backdrop-filter: blur(4px); padding: 1rem;
}
.form-success.is-open { display: grid; }
.form-success-inner {
  background: white; border-radius: var(--radius); padding: 2.5rem;
  text-align: center; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg);
}
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  display: grid; place-items: center; background: var(--indigo-light);
  color: var(--indigo); font-size: 1.75rem; font-weight: 700; border-radius: 50%;
}

.call-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--indigo); color: white; border-radius: 50%; box-shadow: var(--shadow-lg);
}
.call-fab:hover { background: var(--indigo-dark); color: white; transform: scale(1.05); }
.call-fab svg { width: 24px; height: 24px; }

/* Responsive */
@media (max-width: 1024px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: white;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 1rem 0; transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: 0.3s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { display: block; padding: 0.875rem 1.5rem; }
  .nav-cta { margin: 0.5rem 1.5rem 0; text-align: center; }
  .hero-grid, .benefits-grid, .apply-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone-mock { max-width: 220px; }
  .hero-perks { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .apply-form { padding: 1.5rem; }
  .apply-steps-preview { display: none; }
  .form-nav { flex-direction: column-reverse; }
  .form-nav #btn-back { flex: 1; min-width: unset; }
  .footer-inner { flex-direction: column; }
  .role-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
