/* style.css - Premium Auto Theme for Passion Motors */

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-hover: #b5952f;
    --success-green: #2ecc71;
    --font-primary: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--accent-gold);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition-speed);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
    font-family: var(--font-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    transition: transform 0.2s;
}
.btn-call {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    border: 1px solid #444;
}

.btn-whatsapp:hover, .btn-call:hover {
    transform: translateY(-3px);
}

.negotiable-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

.contact-number {
    margin-top: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(10, 10, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: url('./images/IMG_2941.JPG') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

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

/* Search Section */
.search-section {
    background-color: var(--bg-card);
    padding: 30px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-group select {
    padding: 12px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
}

.input-group select:focus {
    border-color: var(--accent-gold);
}

/* Trust Banner */
.trust-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 5%;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-card));
}

.trust-item h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Catalogue Section */
.catalogue-section {
    padding: 60px 5%;
}

.catalogue-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.car-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(255,255,255,0.05);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.car-img-wrapper {
    height: 200px;
    overflow: hidden;
}

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

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

.car-info {
    padding: 20px;
}

.car-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.car-price {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 15px;
}

.car-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* Contact Section */
.contact-section {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--bg-card);
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-dark);
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--accent-gold);
}

.modal-image-container {
    flex: 1;
    min-width: 300px;
    background-color: #000;
    display: flex;
    flex-direction: column;
}

.slider-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 300px;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: var(--accent-gold);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #111;
    overflow-x: auto;
}

.slider-thumbnails img {
    height: 60px;
    width: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.slider-thumbnails img.active, .slider-thumbnails img:hover {
    opacity: 1;
    border-color: var(--accent-gold);
}

.modal-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.modal-info .price {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spec-item .value {
    font-weight: 600;
}

.obd-badge {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--success-green);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.modal-cta {
    display: block;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .modal-content { flex-direction: column; }
    .modal-image-container { height: 250px; }
    .modal-info { padding: 25px; }
}
