/* ── Sunny Car Rental – Public styles ─────── */

:root {
  --primary: #e4271c;
  --primary-dark: #c41f14;
  --accent: #f59e0b;
  --dark: #111827;
  --dark-deep: #030712;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

/* ── General ───────────────────────────────── */
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  line-height: 1.2;
}
a { color: var(--primary); }

/* ── Navbar ────────────────────────────────── */
.navbar { background: var(--dark) !important; }
.navbar .nav-link { color: rgba(255,255,255,.65) !important; font-size: .9rem; font-weight: 500; letter-spacing: .01em; transition: color .2s; }
.navbar .nav-link:hover, .navbar .nav-link.nav-active { color: #fff !important; }
.navbar .nav-link.nav-active { position: relative; }
.navbar .nav-link.nav-active::after { content:''; position:absolute; bottom:-2px; left:12px; right:12px; height:2px; background:var(--primary); border-radius:2px; }

/* ── Hero ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: #fff;
  padding: 100px 0 80px;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; }
.hero .lead { font-size: 1.15rem; opacity: .85; }

/* ── Search / booking bar ──────────────────── */
.booking-bar {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  margin-top: -48px;
  position: relative;
  z-index: 10;
}

/* ── Car card ──────────────────────────────── */
.car-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  background: #fff;
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.car-card .car-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.car-card .car-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-muted);
}
.car-card .badge-gama {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.car-card .price-tag {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.car-card .price-tag small { font-size: .75rem; font-weight: 400; color: var(--text-muted); }

/* ── Spec icons ────────────────────────────── */
.spec-item { font-size: .82rem; color: var(--text-muted); }
.spec-item i { color: var(--primary); }

/* ── Section title ─────────────────────────── */
.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* ── Feature card ──────────────────────────── */
.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  text-align: center;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.feature-icon {
  width: 64px; height: 64px;
  background: #fef2f2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--primary);
}

/* ── Auth pages ────────────────────────────── */
.auth-card {
  max-width: 460px;
  margin: 60px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  padding: 40px;
}
.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-card .auth-logo i { font-size: 3rem; color: var(--primary); }

/* ── Form controls ─────────────────────────── */
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--border);
  font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(228,39,28,.1);
}

/* ── Btn primary ───────────────────────────── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 10px;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ── FAQ ───────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background: #fef2f2;
  color: var(--primary);
}

/* ── Stats strip ───────────────────────────── */
.stats-strip {
  background: var(--dark);
  color: #fff;
  padding: 40px 0;
}
.stat-number { font-size: 2.5rem; font-weight: 800; }
.stat-label  { font-size: .9rem; opacity: .85; }

/* ── Contact ───────────────────────────────── */
.contact-card {
  border-radius: 14px;
  overflow: hidden;
}

/* ── Toast ─────────────────────────────────── */
.toast-container { z-index: 1100; }

/* ── Misc ──────────────────────────────────── */
.badge-available   { background: #d1fae5; color: #065f46; }
.badge-unavailable { background: #fee2e2; color: #991b1b; }
.badge-rented      { background: #dbeafe; color: #1e40af; }
.badge-maintenance { background: #fef3c7; color: #92400e; }

/* ── Selection & Scrollbar ─────────────────── */
::selection { background: rgba(228,39,28,.15); color: var(--text); }
