@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-green: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --font-base: 'Outfit', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 14px -4px var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -6px var(--accent-hover);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--accent-green);
  color: white;
  box-shadow: 0 4px 14px -4px var(--accent-green);
}

.btn-whatsapp:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -6px var(--accent-green);
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.top-bar {
  background-color: var(--accent-primary);
  color: white;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contacts {
  display: flex;
  gap: 16px;
}

.top-contacts a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-contacts a:hover {
  opacity: 0.8;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

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

.nav-logo-img {
  height: 80px;
  width: auto;
  transition: var(--transition);
}

.footer-logo-img {
  height: 110px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  opacity: 0.8;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: var(--transition);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  opacity: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(to right, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 100%), url('https://images.unsplash.com/photo-1603584173870-7f23fdae1b7a?q=80&w=2670&auto=format&fit=crop') center/cover no-repeat;
  padding-top: 80px;
}

.hero-content {
  max-width: 700px;
  animation: fadeUp 1s ease forwards;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.trust-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.badge {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.urgency-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(29, 78, 216, 0.1);
  border: 1px solid rgba(29, 78, 216, 0.2);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--accent-hover);
}

/* ==================== SECTIONS ==================== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== INFO GRID ==================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.info-card {
  background-color: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(29, 78, 216, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.info-card p {
  color: var(--text-muted);
}

/* ==================== VEHICLE GRID ==================== */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.vehicle-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  border-color: #3f3f46;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.vehicle-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  height: auto;
  overflow: hidden;
}

.vehicle-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-img-wrapper img {
  transform: scale(1.05);
}

.vehicle-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.vehicle-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.spec-item i {
  color: var(--text-main);
}

.vehicle-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.vehicle-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.875rem;
}

/* ==================== FOOTER ==================== */
footer {
  background-color: var(--bg-card);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-color);
}

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

.footer-about p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== MEDIA QUERIES & RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Prevent iOS input auto-zoom on mobile text focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  .filter-sidebar {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 20px;
  }

  .top-contacts span { display: none; }
  .top-contacts { gap: 12px; }
  .nav-container { padding: 12px 0; }
  .nav-logo-img { height: 48px; }
  .footer-logo-img { height: 60px; }
  .logo { font-size: 1.1rem; gap: 6px !important; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-secondary);
    flex-direction: column;
    padding: 90px 24px;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.7);
    z-index: 1000;
  }
  .nav-links.show { right: 0; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; z-index: 1001; font-size: 1.5rem; }
  
  .hero { min-height: 550px; padding-top: 100px; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.05rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: 14px; }
  .trust-badges { flex-wrap: wrap; gap: 8px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: 2.2rem; }
  
  section { padding: 60px 0; }
  .section-header h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .hero h1 { font-size: 1.9rem; }
  .vehicle-grid { grid-template-columns: 1fr !important; }
  .info-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .vehicle-specs { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.8rem; }
  .footer-logo-img { height: 48px; }
  .nav-logo-img { height: 40px; }
  .btn { width: 100%; text-align: center; }
  .page-header h1 { font-size: 1.75rem; }
}

.page-header { padding: 150px 0 60px; background-color: var(--bg-secondary); border-bottom: 1px solid var(--border-color); text-align: center; }

.filter-sidebar {
  flex: 1; 
  min-width: 250px; 
  background-color: var(--bg-secondary); 
  padding: 24px; 
  border-radius: var(--radius-md); 
  border: 1px solid var(--border-color); 
  height: fit-content; 
  position: sticky; 
  top: 120px;
}
