/* Clwyd Autos - Dark/Silver Theme */
:root {
    --primary-dark: #1a1a2e;
    --primary-mid: #16213e;
    --accent-silver: #c0c0c0;
    --accent-gold: #d4a843;
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    --bg-dark: #0f0f1a;
    --bg-card: #1e1e30;
    --border-subtle: #2a2a40;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-silver);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    padding: 15px 0;
    border-bottom: 2px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 700;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-bg.jpg') center/cover;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

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

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Vehicle Cards */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 168, 67, 0.2);
}

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vehicle-card-content {
    padding: 20px;
}

.vehicle-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

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

.vehicle-card .specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vehicle-card .spec {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vehicle-card .btn {
    width: 100%;
    text-align: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

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

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.testimonial-card .stars {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .author {
    color: var(--text-light);
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Footer */
footer {
    background: var(--primary-dark);
    padding: 50px 0 20px;
    border-top: 2px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 20px;
    border-top: 2px solid var(--accent-gold);
    z-index: 9999;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-consent .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent p {
    color: var(--text-muted);
    flex: 1;
}

.cookie-consent .btn {
    white-space: nowrap;
}

/* Vehicle Detail Page */
.vehicle-detail {
    padding: 40px 0;
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vehicle-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.vehicle-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.vehicle-gallery .thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.vehicle-gallery .thumbnails img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.vehicle-gallery .thumbnails img:hover,
.vehicle-gallery .thumbnails img.active {
    border-color: var(--accent-gold);
}

.vehicle-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.vehicle-info .price {
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 20px;
}

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

.vehicle-info .spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-info .spec-item .label {
    color: var(--text-muted);
    min-width: 100px;
}

.vehicle-info .spec-item .value {
    color: var(--text-light);
    font-weight: 500;
}

.vehicle-info .description {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.vehicle-info .features {
    margin-bottom: 30px;
}

.vehicle-info .features h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.vehicle-info .features ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vehicle-info .features li {
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.vehicle-info .features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* Finance Calculator */
.finance-calculator {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.finance-calculator h3 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.finance-calculator .calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.finance-calculator .result {
    background: var(--primary-dark);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.finance-calculator .result .monthly {
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Search/Filter */
.search-filter {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.search-filter .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.search-filter select,
.search-filter input {
    width: 100%;
    padding: 12px;
    background: var(--primary-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 5px;
    color: var(--text-light);
}

/* Map */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 20px;
        border-bottom: 2px solid var(--accent-gold);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-info .specs-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-info .features ul {
        grid-template-columns: 1fr;
    }

    .finance-calculator .calc-grid {
        grid-template-columns: 1fr;
    }

    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
