/**
 * The Car Guys UK - Premium Public Site Styles
 * Dark theme with blue accents from brand logo
 */

/* ========================================================================
   VARIABLES & ROOT
   ======================================================================== */

:root {
    /* Colors */
    --color-dark-primary: #1a1a1a;
    --color-dark-secondary: #2c2b2c;
    --color-gold: #2E6BA5;
    --color-gold-dark: #1F4A7A;
    --color-gold-light: #4A8BC2;
    --color-white: #ffffff;
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-75: rgba(255, 255, 255, 0.75);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 12px rgba(46, 107, 165, 0.3);
}

/* ========================================================================
   GLOBAL STYLES
   ======================================================================== */

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-primary);
    color: var(--color-white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gold {
    color: var(--color-gold) !important;
}

.bg-dark-secondary {
    background-color: var(--color-dark-secondary);
}

.bg-gold {
    background-color: var(--color-gold);
}

.text-white-50 {
    color: var(--color-white-50) !important;
}

.text-white-75 {
    color: var(--color-white-75) !important;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    border: none;
    color: var(--color-dark-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    color: var(--color-dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 107, 165, 0.4);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.btn-outline-gold:hover {
    background: var(--color-gold);
    color: var(--color-dark-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-light {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-dark-primary);
    transform: translateY(-2px);
}

/* ========================================================================
   NAVBAR
   ======================================================================== */

.navbar-premium {
    background-color: var(--color-dark-primary);
    border-bottom: 1px solid rgba(46, 107, 165, 0.2);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar-premium.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--color-white) !important;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--color-gold) !important;
}

.navbar-nav .nav-link {
    color: var(--color-white-75) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-gold);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--color-gold) !important;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--color-gold) !important;
}

.navbar-toggler {
    border-color: var(--color-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(46, 107, 165, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2b2c 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c6a76c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-cta {
    margin-bottom: 4rem;
}

.hero-stats .stat-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.hero-stats .stat-item:hover {
    background: rgba(46, 107, 165, 0.1);
    transform: translateY(-5px);
}

.hero-stats .stat-number {
    font-family: var(--font-heading);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================================================
   SECTIONS
   ======================================================================== */

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 3rem;
}

/* ========================================================================
   VEHICLE CARDS
   ======================================================================== */

.vehicle-card {
    background: var(--color-dark-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vehicle-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.vehicle-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(44, 43, 44, 0.9) 100%);
    color: var(--color-white-50);
    font-size: 4rem;
}

.vehicle-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.reserved-badge {
    background: rgba(220, 53, 69, 0.95);
    color: white;
}

.photo-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.vehicle-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-title {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.vehicle-price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(46, 107, 165, 0.2);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-white-75);
    font-size: 0.9rem;
}

.spec-item i {
    color: var(--color-gold);
}

.vehicle-actions {
    margin-top: auto;
}

/* ========================================================================
   SERVICE CARDS
   ======================================================================== */

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(46, 107, 165, 0.2);
    border-radius: 12px;
    padding: 3rem 2rem;
    transition: all var(--transition-normal);
    height: 100%;
}

.service-card:hover {
    background: rgba(46, 107, 165, 0.1);
    border-color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.service-icon {
    font-size: 4rem;
    color: var(--color-gold);
}

.service-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
}

/* ========================================================================
   FEATURE CARDS
   ======================================================================== */

.feature-card {
    padding: 2rem 1rem;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-gold);
}

.feature-title {
    font-size: 1.25rem;
    color: var(--color-white);
}

.feature-description {
    font-size: 0.95rem;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.premium-footer {
    background: var(--color-dark-primary);
    border-top: 1px solid rgba(46, 107, 165, 0.2);
    color: var(--color-white-75);
}

.footer-heading {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-text {
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--color-gold);
    color: var(--color-dark-primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-white-75);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--color-gold);
    font-weight: 700;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 0.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact a {
    color: var(--color-white-75);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-gold);
}

.footer-divider {
    border-color: rgba(46, 107, 165, 0.2);
}

.footer-copyright,
.footer-credits {
    color: var(--color-white-50);
    font-size: 0.9rem;
}

/* ========================================================================
   ADVERT TEMPLATE CONTENT
   ======================================================================== */

.advert-template-content {
    color: var(--color-white-75);
    line-height: 1.7;
}

.advert-template-content h1,
.advert-template-content h2,
.advert-template-content h3,
.advert-template-content h4,
.advert-template-content h5,
.advert-template-content h6 {
    color: var(--color-white);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.advert-template-content h1 { font-size: 2rem; }
.advert-template-content h2 { font-size: 1.75rem; }
.advert-template-content h3 { font-size: 1.5rem; }
.advert-template-content h4 { font-size: 1.25rem; }
.advert-template-content h5 { font-size: 1.1rem; }
.advert-template-content h6 { font-size: 1rem; }

.advert-template-content p {
    margin-bottom: 1rem;
}

.advert-template-content a {
    color: var(--color-gold-light);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.advert-template-content a:hover {
    color: var(--color-gold);
}

.advert-template-content ul,
.advert-template-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.advert-template-content li {
    margin-bottom: 0.5rem;
}

.advert-template-content strong {
    color: var(--color-white);
    font-weight: 600;
}

.advert-template-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.advert-template-content table th,
.advert-template-content table td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advert-template-content table th {
    background: rgba(46, 107, 165, 0.2);
    color: var(--color-white);
    font-weight: 600;
}

.advert-template-content hr {
    border-color: rgba(46, 107, 165, 0.3);
    margin: 2rem 0;
}

/* Ensure any background colors from templates are visible */
.advert-template-content [style*="background"] {
    border-radius: 8px;
    padding: 1rem;
}

/* Override very light text colors that won't show on dark bg */
.advert-template-content [style*="color: #fff"],
.advert-template-content [style*="color: white"],
.advert-template-content [style*="color: #ffffff"] {
    color: var(--color-white) !important;
}

.advert-template-content [style*="color: #000"],
.advert-template-content [style*="color: black"],
.advert-template-content [style*="color: #000000"] {
    color: var(--color-white-75) !important;
}

/* ========================================================================
   ANIMATIONS & UTILITIES
   ======================================================================== */

[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--color-gold);
    color: var(--color-dark-primary);
}

::-moz-selection {
    background: var(--color-gold);
    color: var(--color-dark-primary);
}

/* ========================================================================
   RESPONSIVE STYLES
   ======================================================================== */

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(44, 43, 44, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .vehicle-specs {
        flex-direction: column;
        gap: 0.5rem;
    }
}
