/* ============================================
   WrenchRoute — Mobile Mechanic Platform
   styles.css
   ============================================ */

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

:root {
  --primary:      #f97316;   /* orange */
  --primary-dark: #ea580c;
  --primary-light:#fff7ed;
  --dark:         #0f172a;
  --dark-2:       #1e293b;
  --dark-3:       #334155;
  --mid:          #64748b;
  --light:        #f1f5f9;
  --lighter:      #f8fafc;
  --white:        #ffffff;
  --border:       #e2e8f0;
  --success:      #22c55e;
  --error:        #ef4444;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.14);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

/* ── Containers ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,.35); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-lg { padding: .875rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; }
.phone-icon { font-size: 1.1em; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.logo-icon { font-size: 1.4rem; }
.logo-light { color: var(--white); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark-3);
}
.nav-links a:not(.btn):hover { color: var(--primary); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 500; }

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: var(--white);
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(249,115,22,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(249,115,22,.08) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,.2);
  border: 1px solid rgba(249,115,22,.4);
  color: #fdba74;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(90deg, #fb923c, #f97316, #fdba74);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.75rem;
  text-align: center;
}
.stat strong { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.stat span { font-size: .78rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.stat-divider { width: 1px; background: rgba(255,255,255,.12); }

/* ── Sections ── */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--lighter); }
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.tag-light { background: rgba(249,115,22,.2); color: #fdba74; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: .75rem; }
.section-header p { color: var(--mid); font-size: 1.05rem; }

/* ── Steps ── */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
}
.step-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  padding: .2rem .7rem;
  border-radius: 100px;
}
.step-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p { font-size: .9rem; color: var(--mid); }
.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
  flex-shrink: 0;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .2s;
  cursor: default;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.1); transform: translateY(-2px); }
.service-icon { font-size: 2rem; margin-bottom: .75rem; }
.service-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.service-card p { font-size: .85rem; color: var(--mid); }

/* ── Form Wrapper ── */
.form-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

/* ── Progress ── */
.progress-bar-wrapper { margin-bottom: 2.5rem; }
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--mid);
  transition: color .3s;
}
.progress-step.active { color: var(--primary); }
.progress-step.done { color: var(--success); }
.ps-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--mid);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  border: 2px solid transparent;
}
.progress-step.active .ps-circle {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(249,115,22,.2);
}
.progress-step.done .ps-circle {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.progress-line { flex: 1; height: 2px; background: var(--border); margin-bottom: 1.2rem; }
.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  transition: width .4s ease;
  width: 0%;
}

/* ── Form Steps ── */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp .3s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step-title { font-size: 1.3rem; font-weight: 800; margin-bottom: .3rem; }
.step-sub { color: var(--mid); font-size: .9rem; margin-bottom: 1.75rem; }

/* ── Form Grid ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field-full { grid-column: 1 / -1; }

/* ── Field ── */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark-2);
}
.req { color: var(--primary); }
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.field input.error,
.field select.error,
.field textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.field textarea { resize: vertical; min-height: 100px; }
.field small { font-size: .78rem; color: var(--mid); }
.field-error { font-size: .78rem; color: var(--error); min-height: 1em; }

/* ── Radio & Checkbox ── */
.radio-group,
.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.checkbox-grid.small { grid-template-columns: 1fr 1fr; }
.radio-option,
.check-option {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark-3);
  cursor: pointer;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: all .15s;
}
.radio-option:hover,
.check-option:hover { border-color: var(--primary); background: var(--primary-light); }
.radio-option input,
.check-option input {
  width: auto !important;
  margin-top: 2px;
  accent-color: var(--primary);
}
.consent-check { border: none; padding: 0; }
.consent-check:hover { background: none; border: none; }

/* ── Summary Card ── */
.summary-card {
  background: var(--lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 2rem;
}
.summary-section { grid-column: 1 / -1; }
.summary-section h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  margin-bottom: .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.summary-item { display: flex; flex-direction: column; gap: .1rem; }
.summary-item .label { font-size: .75rem; color: var(--mid); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.summary-item .value { font-size: .9rem; color: var(--dark); font-weight: 500; }

/* ── Form Nav ── */
.form-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Submit Message ── */
.submit-msg {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.submit-msg.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.submit-msg.error-msg { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Join Section ── */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.join-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }
.join-info p { color: #94a3b8; font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.7; }
.join-perks { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.join-perks li { font-size: .95rem; color: #cbd5e1; }
.join-form-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: 1rem;
  padding: 2rem;
}
.join-form-card h3 { color: var(--white); font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.join-form-card p { color: #94a3b8; font-size: .875rem; margin-bottom: 1.5rem; }
.join-form-card .field { margin-bottom: .1rem; }
.join-form-card .field label { color: #cbd5e1; }
.join-form-card .field input,
.join-form-card .field select,
.join-form-card .field textarea {
  background: var(--dark);
  border-color: var(--dark-3);
  color: var(--white);
}
.join-form-card .field input:focus,
.join-form-card .field select.focus,
.join-form-card .field select:focus {
  border-color: var(--primary);
}
.join-form-card .check-option { color: #94a3b8; border-color: var(--dark-3); }
.join-form-card .check-option:hover { border-color: var(--primary); background: rgba(249,115,22,.1); }
.join-form-card .check-option input { accent-color: var(--primary); }
.join-form-card .inline-link { color: var(--primary); }
.join-form-card .field-error { color: #f87171; }

/* ── Trust Grid ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.trust-item { padding: 2rem 1.5rem; }
.trust-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.trust-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.trust-item p { font-size: .875rem; color: var(--mid); }

/* ── Footer ── */
.footer { background: var(--dark); color: var(--white); padding: 4rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 1rem; }
.footer-brand p { color: #94a3b8; font-size: .9rem; line-height: 1.7; max-width: 280px; margin-bottom: .75rem; }
.footer-phone { color: var(--primary); font-size: .95rem; font-weight: 600; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-links h5 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #64748b; margin-bottom: .75rem; }
.footer-links a { display: block; color: #94a3b8; font-size: .875rem; margin-bottom: .45rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  padding: 1.25rem 0;
  background: var(--dark);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: #475569;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: scaleIn .25s ease;
}
@keyframes scaleIn { from { transform: scale(.9); opacity:0; } to { transform: scale(1); opacity:1; } }
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0fdf4;
  color: var(--success);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid #bbf7d0;
}
.modal-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.modal-box p { color: var(--mid); font-size: .95rem; margin-bottom: 1.5rem; line-height: 1.6; }

/* ── Inline Link ── */
.inline-link { color: var(--primary); text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .steps-grid { flex-direction: column; }
  .step-connector { width: 2px; height: 40px; background: linear-gradient(180deg, var(--border), var(--primary), var(--border)); }
  .join-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .form-wrapper { padding: 1.5rem 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: 1; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .progress-step span { display: none; }
  .summary-card { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 0; }
  .stat-divider { width: 100%; height: 1px; }
  .footer-bottom .container { flex-direction: column; gap: .5rem; align-items: center; text-align: center; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
