/* Surron Bikes and Parts for Sale - Main Styles */
:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --card: #1c1c1f;
  --border: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #f97316;
  --neon: #a3e635;
  --green: #25D366;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1100px, 94%);
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.9; }

.btn-wa {
  background: var(--green);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-full { width: 100%; }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--neon);
}

.stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Section */
.section {
  padding: 2.5rem 0 3.5rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Bike grid */
.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bike-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.bike-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.bike-card a.card-link {
  display: block;
  color: inherit;
}

.bike-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}

.bike-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bike-card:hover .bike-img img {
  transform: scale(1.04);
}

.bike-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.bike-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.bike-body .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(249, 115, 22, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--neon);
  margin: 0.5rem 0 0.85rem;
}

.old-price {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 0.4rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-actions .btn {
  flex: 1;
  min-width: 100px;
}

/* Why cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.why-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.why-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.contact-card h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.contact-item .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.contact-item a {
  color: var(--accent);
}

.contact-item a:hover {
  text-decoration: underline;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid h4 {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--green);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.15s;
}

.float-wa:hover {
  transform: scale(1.08);
}

/* Page header for inner pages */
.page-header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--muted);
}

/* Responsive */

.cta-row { margin-top: 2.5rem; }

/* ===== Professional extras ===== */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.pill strong { color: var(--neon); }

/* Reservation */
.reserve-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.reserve-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.reserve-info h3 { margin-bottom: 0.75rem; }
.reserve-info p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.reserve-info ul {
  margin: 0.75rem 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.reserve-info li { margin-bottom: 0.4rem; }

.steps {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step strong { display: block; font-size: 0.95rem; }
.step span { font-size: 0.85rem; color: var(--muted); }

/* Live chat widget */
.chat-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.chat-toggle:hover { transform: scale(1.06); }

.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: min(360px, calc(100vw - 2rem));
  height: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.chat-panel.open { display: flex; }

.chat-header {
  background: var(--surface);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.chat-header strong { font-size: 0.95rem; }
.chat-header span { display: block; font-size: 0.75rem; color: var(--green); }

.chat-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-bubble.bot {
  background: var(--surface);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: rgba(249, 115, 22, 0.2);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
  margin-bottom: 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

.chat-input-row .btn {
  width: auto;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}

.float-wa {
  bottom: 5.5rem;
}

.success-box {
  display: none;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.success-box.show { display: block; }

.contact-card .btn-full { margin-bottom: 0.5rem; }

.form-note { margin-top: 0.75rem; }

/* ========== RESPONSIVE ========== */

/* Large tablets / small desktops */
@media (max-width: 1024px) {
  .container { width: min(100%, 94%); }
  .bike-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.15rem;
  }
  .hero h1 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
}

/* Tablets */
@media (max-width: 900px) {
  .contact-grid,
  .reserve-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { gap: 1.25rem; }
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile landscape / large phones */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0;
  }
  .nav-links {
    width: 100%;
    gap: 0.35rem 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }
  .hero h1 {
    font-size: 1.45rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats {
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
  }
  .stats strong { font-size: 1.15rem; }

  .section { padding: 1.75rem 0 2.5rem; }
  .section-title { font-size: 1.25rem; }
  .page-header { padding: 1.75rem 0 1.15rem; }
  .page-header h1 { font-size: 1.4rem; }

  .bike-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bike-body { padding: 1rem; }
  .price { font-size: 1.25rem; }
  .card-actions {
    flex-direction: column;
  }
  .card-actions .btn {
    width: 100%;
  }

  .trust-bar {
    gap: 0.5rem 1rem;
    font-size: 0.78rem;
    padding: 0.75rem 0;
  }

  .contact-card,
  .reserve-info {
    padding: 1.15rem;
  }

  .chat-panel {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    bottom: 4.75rem;
    height: min(420px, 70vh);
  }
  .chat-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 52px;
    height: 52px;
  }
  .float-wa {
    bottom: 4.5rem;
    right: 0.75rem;
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }

  footer { padding: 1.5rem 0; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { width: 92%; }

  .logo { font-size: 1.05rem; }

  .hero h1 { font-size: 1.3rem; }
  .hero-actions .btn,
  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  .bike-img { aspect-ratio: 1 / 1; }
  .bike-body h3 { font-size: 0.98rem; }

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

  .steps { gap: 0.7rem; }
  .badge-row { flex-direction: column; }

  input, select, textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 0.75rem 0.85rem;
  }

  .chat-input-row input {
    font-size: 16px;
  }
}

/* Very small */
@media (max-width: 360px) {
  .nav-links { gap: 0.25rem 0.55rem; }
  .trust-bar span { font-size: 0.72rem; }
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
  .nav-links a,
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .bike-card:hover { transform: none; }
  .bike-card:hover .bike-img img { transform: none; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
img { height: auto; }
