/* FixPro Landing Page — Senior UI/UX Stylesheet */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --navy: #0f2942;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --teal: #0d9488;
  --green: #059669;
  --green-dark: #047857;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 41, 66, 0.05);
  --shadow-md: 0 10px 28px -8px rgba(15, 41, 66, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, p, ul, ol {
  margin-top: 0;
}

button, input, select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Utility Bar */
.topbar {
  background: var(--navy);
  color: #e2e8f0;
  font-size: 13px;
  padding: 9px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: #ffffff;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand-link img {
  height: 42px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

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

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

.btn-call {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.22);
}

.btn-call:hover {
  background: var(--blue-dark);
}

.btn-wa {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.btn-wa:hover {
  background: var(--green-dark);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: #94a3b8;
}

.btn-wa-outline {
  background: #f0fdf4;
  color: var(--green-dark);
  border-color: #bbf7d0;
}

.btn-wa-outline:hover {
  background: #dcfce7;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 46px 0 54px;
}

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

.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(29px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-points {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  font-size: 14px;
  color: var(--ink-2);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

/* 2-Step Form Slider Box */
.form-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: var(--shadow-md);
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.form-header h2 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 3px;
}

.form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.step-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.step-progress {
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.step-progress-bar {
  height: 100%;
  width: 50%;
  background: var(--blue);
  transition: width 0.25s ease;
}

.form-slider-viewport {
  overflow: hidden;
}

.form-slider-track {
  display: flex;
  width: 200%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-step {
  width: 50%;
  flex-shrink: 0;
  padding: 2px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.area-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.area-chip:hover,
.area-chip.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--blue);
}

.step-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.step-nav .btn-next,
.step-nav .btn-submit {
  flex: 1;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

.form-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.form-status.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-status.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Animated Stats Counter Strip */
.stats-strip {
  background: var(--navy);
  color: #ffffff;
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 8px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}

.stat-label {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
  max-width: 680px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: clamp(23px, 2.7vw, 30px);
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.why-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}

.why-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
}

/* How We Work (4-Step Workflow) */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.workflow-step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.workflow-step h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}

.workflow-step p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
}

/* Machine Types */
.machine-list {
  display: grid;
  gap: 16px;
}

.machine-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.machine-thumb {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-thumb img {
  max-height: 104px;
  width: auto;
  object-fit: contain;
}

.machine-info h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}

.machine-info p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.machine-parts {
  font-size: 13px;
  color: var(--muted);
}

.machine-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 175px;
}

/* Faults 2-Column List */
.fault-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.fault-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fault-item:hover {
  border-color: var(--blue);
  background: #fafcff;
}

.fault-item.selected {
  border-color: var(--blue);
  background: #eff6ff;
}

.fault-item h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
}

.fault-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.fault-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  padding-top: 2px;
}

/* Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #d97706;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.review-quote {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.review-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.review-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Rate Card & Coverage Split */
.split-2 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.rate-card {
  background: var(--navy);
  color: #ffffff;
  border-radius: 12px;
  padding: 28px;
}

.rate-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  font-weight: 700;
}

.rate-figure {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  margin: 10px 0 6px;
}

.rate-figure span {
  font-size: 15px;
  font-weight: 500;
  color: #cbd5e1;
}

.rate-card p {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.rate-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 14px;
  color: #f8fafc;
}

.rate-list li {
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rate-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brands-line {
  font-size: 14px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.brands-line strong {
  color: var(--navy);
}

/* FAQ */
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-list details:first-child {
  border-top: 1px solid var(--border);
}

.faq-list summary {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-list summary::after {
  content: "+";
  font-size: 18px;
  color: var(--muted);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* Bottom Callout */
.bottom-cta {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 44px 0;
  text-align: center;
}

.bottom-cta h2 {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 8px;
}

.bottom-cta p {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 20px;
}

.bottom-cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  font-size: 13px;
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Sticky Mobile Bar */
.mobile-bar {
  display: none;
}

@media (max-width: 960px) {
  .why-grid,
  .workflow-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: 0;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split-2,
  .fault-grid {
    grid-template-columns: 1fr;
  }

  .machine-row {
    grid-template-columns: 120px 1fr;
  }

  .machine-cta {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .machine-cta .btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 68px;
  }

  .topbar .topbar-hours {
    display: none;
  }

  .header-actions .btn-wa-outline {
    display: none;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero-points,
  .why-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .machine-row {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .machine-thumb {
    height: 140px;
  }

  .site-footer {
    padding-bottom: 32px;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .form-slider-track,
  .step-progress-bar,
  .btn {
    transition: none;
  }
}
