/* Seven-Ti Motors - Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #222842;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dark: #0891b2;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-accent: linear-gradient(135deg, #06b6d4, #3b82f6);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

/* Background grid */
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,14,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(10,14,26,0.98); box-shadow: var(--shadow-card); }
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo img { height: 40px; }
.navbar-logo .logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.7) 0%, rgba(10,14,26,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.hero-stock-count {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}
.hero-stock-count span {
  color: var(--accent-light);
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0 4px;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active { background: var(--accent); transform: scale(1.2); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6,182,212,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6,182,212,0.4);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-title .accent-line {
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 1rem auto;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s;
}
.about-image:hover img { transform: scale(1.05); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(6,182,212,0.15);
}
.service-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(6,182,212,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--accent);
  font-size: 1.5rem;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== VEHICLE CARDS ===== */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.vehicle-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
}
.vehicle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.vehicle-card:hover .vehicle-img img { transform: scale(1.08); }
.vehicle-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.vehicle-photos-count {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vehicle-info {
  padding: 1.2rem;
}
.vehicle-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.vehicle-spec {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vehicle-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.vehicle-price small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}
.vehicle-actions {
  display: flex;
  gap: 0.5rem;
}
.vehicle-actions .btn { flex: 1; justify-content: center; }

/* ===== FILTERS ===== */
.filters-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: center;
}
.filter-select, .filter-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  min-width: 160px;
}
.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--accent);
}
.results-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-left: auto;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.modal p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.modal-vehicle-preview {
  display: flex;
  gap: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}
.modal-vehicle-preview img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.modal-vehicle-preview .info { font-size: 0.85rem; }
.modal-vehicle-preview .info strong { display: block; margin-bottom: 2px; }
.modal-vehicle-preview .info span { color: var(--accent); font-weight: 700; }
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.form-group input {
  width: 100%;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.modal-success {
  text-align: center;
  padding: 2rem 0;
}
.modal-success .check-icon {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 1rem;
}
.modal-success h3 { color: var(--success); }

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}
.footer-col p, .footer-col li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  list-style: none;
}
.footer-col a { color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent); }
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== LOADING ===== */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 3rem;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== GALLERY MODAL ===== */
.gallery-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.gallery-overlay.active { display: flex; }
.gallery-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
}
.gallery-nav:hover { background: rgba(255,255,255,0.2); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.gallery-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.no-results svg { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow-card);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--accent); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--bg-primary);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav-links.active a { padding: 1rem 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }

  .about-grid { grid-template-columns: 1fr; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .filters-bar { flex-direction: column; }
  .filter-select, .filter-input { width: 100%; }
  .results-count { margin-left: 0; }

  .section { padding: 3rem 1rem; }
  .section-title h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .vehicle-actions { flex-direction: column; }
}
