/*
  Big Ray Car Recovery Service - Professional UI
  Technology: Plain CSS3 (mobile-first)
*/

:root {
  --bg: #ffffff;
  --panel: #f8fafc;
  --card: #ffffff;
  --muted: #475569;
  --text: #111111;
  --primary: #2563eb;
  --primary-700: #1d4ed8;
  --accent: #f59e0b;
  --success: #16a34a;
  --error: #dc2626;
  --ring: rgba(37, 99, 235, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.1rem;
  border-radius: .6rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--text);
}
.btn-secondary:hover { background: #f8fafc; border-color: #94a3b8; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5e7eb;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .4px;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: .6rem;
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.nav-links { display: flex; gap: .6rem; }
.nav-links a {
  padding: .5rem .8rem;
  border-radius: .45rem;
  color: #334155;
  font-weight: 600;
}
.nav-links a:hover { background: #f1f5f9; text-decoration: none; }
.nav-links a.active { background: #e0e7ff; color: #1f2937; border: 1px solid #c7d2fe; }

/* Hero */
.hero {
  padding: 4rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.hero h1 {
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
}
.hero p { color: var(--muted); line-height: 1.6; }
.hero-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: .8rem;
  padding: 1.2rem;
}

/* Sections */
.section { padding: 2.2rem 0; }
.section h2 { margin: 0 0 .6rem; font-size: 1.6rem; }
.section p.lead { color: var(--muted); margin: 0 0 1rem; }
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: .8rem;
  padding: 1rem;
}
.card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.card p { color: var(--muted); }

/* How It Works steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: .5rem; }
.step-card { display: grid; gap: .4rem; align-content: start; }
.step-num {
  width: 34px; height: 34px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: var(--primary);
  box-shadow: 0 6px 16px rgba(37,99,235,.25);
}
.benefit-chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.benefit-chips li {
  background: #f1f5f9; border: 1px solid #e2e8f0; color: #0f172a;
  padding: .4rem .7rem; border-radius: 9999px; font-weight: 600;
}

/* Service card icons */
.cards .card > img { width: 48px; height: 48px; }

/* Forms */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
label { font-weight: 600; color: #0f172a; }
input, select, textarea {
  width: 100%;
  padding: .75rem .8rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text);
  border-radius: .6rem;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.help-text { color: var(--muted); font-size: .9rem; }
.error { color: var(--error); font-size: .95rem; margin: .25rem 0 0; }
.alert {
  padding: .8rem 1rem;
  border-radius: .6rem;
  border: 1px solid;
}
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: .6rem;
  overflow: hidden;
}
.table th, .table td { text-align: left; padding: .8rem .9rem; }
.table thead th { background: #f8fafc; color: #0f172a; border-bottom: 1px solid #e5e7eb; }
.table tbody tr { border-bottom: 1px solid #eef2f7; }
.table tbody tr:hover { background: #f8fafc; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.site-footer .muted { color: #64748b; }

/* Layout helpers */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* Responsive */
@media (min-width: 768px) {
  .navbar { height: 72px; }
  .hero { padding: 5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1.25fr .9fr; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
