
/*
Theme Name: LuxDrive Dealership
Theme URI: https://example.com/luxdrive
Author: You
Author URI: https://example.com
Description: A clean, premium car dealership WordPress theme with vehicle listings, filters, and elegant typography. Original design (not a clone), inspired by luxury dealerships.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxdrive
Tags: custom-logo, custom-menu, featured-images, theme-options, one-column, two-columns, flexible-header, blog, block-patterns
*/

:root {
  --ld-primary: #111111;
  --ld-secondary: #ffffff;
  --ld-accent: #c6a15b; /* gold accent */
  --ld-muted: #f5f5f5;
  --ld-body: #212121;
  --ld-text: #2b2b2b;
  --ld-border: #e9e9e9;
  --ld-radius: 14px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--ld-text);
  background: var(--ld-secondary);
  line-height: 1.6;
}

a {
  color: var(--ld-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.ld-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--ld-border);
}

.ld-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.ld-brand a {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ld-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ld-nav a {
  font-weight: 500;
}

.ld-hero {
  background: linear-gradient(180deg, #0e0e0e, #1b1b1b);
  color: white;
  padding: clamp(48px, 8vw, 120px) 0;
}
.ld-hero .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}
.ld-hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  margin: 0 0 12px 0;
}
.ld-hero p {
  opacity: 0.88;
  margin: 0 0 24px 0;
}
.ld-cta {
  display: inline-block;
  background: var(--ld-accent);
  color: #1a1a1a;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.ld-section {
  padding: 56px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .ld-hero .container {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 14px;
}
.badge {
  display: inline-block;
  background: var(--ld-muted);
  color: #333;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: #555;
  font-size: 14px;
}
.vehicle-price {
  font-weight: 800;
  font-size: 18px;
  margin-top: 6px;
}

.ld-footer {
  border-top: 1px solid var(--ld-border);
  padding: 28px 0;
  background: #fafafa;
}

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--ld-border);
  border-radius: 999px;
  padding: 6px;
  background: white;
}
.search-bar select, .search-bar input {
  border: none;
  padding: 10px 12px;
  outline: none;
  background: transparent;
}
.search-bar button {
  background: var(--ld-primary);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.search-bar button:hover {
  opacity: 0.92;
}
