/* Modern Luxury Salvage Motors Website Styles */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #c9a961;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f8f8;
    --bg-dark: #0f0f0f;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.3);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    font-size: 14px;
}

/* Navigation */
.navbar {
    background: var(--gradient-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.call-button {
    background: var(--gradient-gold);
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.call-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s;
    border-radius: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hero .subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--gradient-gold);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Section Headings */
.section {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.car-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.car-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-dark);
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.car-card:hover .car-image {
    transform: scale(1.1);
}

.car-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gradient-gold);
    color: var(--primary-color);
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.8rem;
}

.car-info {
    padding: 1rem;
}

.car-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
}

.car-details {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.car-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.car-price-label {
    font-size: 0.8rem;
    color: #999;
}

/* Product Detail Page */
.product-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-specs h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.product-title {
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    font-weight: 700;
}

.product-location {
    color: #666;
    font-size: 0.95rem;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.thumbnail.active {
    border-color: var(--secondary-color);
}

.product-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.product-specs {
    background: white;
    padding: 1.25rem;
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.spec-item {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0;
}

.spec-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Bidding Section */
.bidding-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 1.25rem;
    border-radius: 0;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 100px;
}

.bidding-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
    font-weight: 600;
}

.bid-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 0;
    margin-bottom: 0.75rem;
}

.bid-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.bid-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.bid-input-group {
    margin-bottom: 0.75rem;
}

.bid-input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.bid-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 0;
    margin-bottom: 0.5rem;
}

.bid-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.bid-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-gold);
    color: var(--primary-color);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 0.75rem;
}

.bid-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.buy-now-button {
    width: 100%;
    padding: 0.9rem;
    background: var(--success-color);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-md);
}

.buy-now-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #218838;
}

.countdown {
    text-align: center;
    padding: 0.75rem;
    background: rgba(220, 53, 69, 0.2);
    border-radius: 0;
    margin-top: 0.75rem;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.countdown-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--danger-color);
}

/* Features Section */
.features {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 3rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 1.25rem;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.feature-description {
    opacity: 0.9;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info-card,
.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    border-radius: 0;
    transition: border-color 0.3s;
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .hero {
        padding: 3rem 1rem !important;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bidding-section {
        position: relative;
        top: 0;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--gradient-primary);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .call-button {
        margin: 0.5rem 2rem;
        text-align: center;
        display: inline-block;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .car-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .car-image-container {
        height: 200px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-detail {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 0;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid #ddd;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    border-radius: 0;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group input.error {
    border-color: var(--danger-color);
}

.form-info {
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: 0;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.modal-submit {
    padding: 0.9rem;
    background: var(--gradient-gold);
    color: var(--primary-color);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 0.5rem;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    display: none;
}

.modal-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

.modal-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    display: block;
}

