/* ============================================================
   BROWNIE SON ENTERPRISE — EXTEND & OVERRIDE STYLES
   Premium Dealership Aesthetic Additions.
============================================================ */

:root {
    --bg-dark: #0f1115;
    --bg-dark-secondary: #1a1d24;
    --primary-color: #d4af37; /* Gold accent for luxury */
    --primary-hover: #b5952f;
    --text-light: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --brand-900: #111827; 
    --brand-50: #f9fafb;
    --white: #ffffff;
    --radius-xl: 1rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base structural overrides for the new PHP templates */
.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--brand-900);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.category-filters .category-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.category-filters .category-btn:hover,
.category-filters .category-btn.active {
    background: var(--primary-color);
    color: var(--brand-900);
    border-color: var(--primary-color);
}

/* Grid adjustments for new structure */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.car-card {
    background: var(--bg-dark-secondary);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.car-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.car-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.car-info {
    padding: 1.5rem;
}

.car-brand {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.car-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.car-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.spec-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.spec-tag i {
    color: var(--primary-color);
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.car-price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.btn-book {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.car-card:hover .btn-book {
    background: var(--primary-color);
    color: var(--brand-900);
    border-color: var(--primary-color);
}

/* Glassmorphism helpers for Single Car */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* ============================================================
   WordPress Dynamic Menu Overrides
============================================================ */
.dynamic-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dynamic-menu li {
    margin: 0;
    padding: 0;
}

.dynamic-menu li a {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: var(--gray-500);
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    text-decoration: none;
}

.dynamic-menu li a:hover,
.dynamic-menu li.current-menu-item > a {
    color: var(--brand-900);
}

/* ============================================================
   DEALERSHIP PREMIUM UPGRADES
============================================================ */

/* Advanced Gradients & Text Glows */
.text-gradient {
    background: linear-gradient(135deg, var(--white), var(--gray-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-gold {
    background: linear-gradient(135deg, var(--primary-color), #ffe58f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glow-text {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Enhanced Glassmorphism & Depth */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-card:hover {
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

/* Micro-animations */
@keyframes fadeUpIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeUpIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.delay-100 { animation-delay: 100ms; opacity: 0; }
.delay-200 { animation-delay: 200ms; opacity: 0; }
.delay-300 { animation-delay: 300ms; opacity: 0; }

/* Filter Bar for Hero and Archive */
.premium-filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    flex-wrap: wrap;
}
.premium-filter-btn {
    color: var(--white);
    background: transparent;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.premium-filter-btn:hover {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
}
.premium-filter-btn.active, .premium-filter-btn.btn-primary {
    background: var(--primary-color);
    color: var(--brand-900);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Page Headers Global */
.page-header-premium {
    background: var(--bg-dark);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}
.page-header-premium::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 120%; height: 200%;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
