/* Hadi Tunas Toyota - Additional Styles */

/* This file is for additional custom styles */
/* Most styling is inline in index.html for better performance */

:root {
    --primary: #ff6257;
    --primary-dark: #e84a40;
    --secondary: #00a8a8;
    --white: #ffffff;
    --text-dark: #172b4d;
    --text-light: #52606d;
    --border: #d7e8e6;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #d7e8e6;
    box-shadow: 0 2px 8px rgba(23, 43, 77, 0.08);
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary), #00c2a8);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 168, 168, 0.25);
}

.navbar-cta:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 168, 0.35);
}

.navbar-cta::before {
    content: '💬';
    font-size: 1.25rem;
}

body {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

p,
.car-price,
.section-title p {
    color: #4b5563;
}

.section-title h2 {
    background: none;
    color: #000000;
    -webkit-text-fill-color: currentColor;
}

footer p {
    color: #ffffff !important;
}

footer .footer-section a,
footer .footer-divider,
footer .footer-bottom {
    color: #ffffff !important;
}

footer .footer-section a:hover {
    color: #ffd166;
}

.car-image {
    background: #edf1f4;
    overflow: hidden;
}

.car-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
}

.car-placeholder {
    font-size: 4rem;
    color: #9ca3af;
}

.navbar-spec-link {
    color: #374151;
    font-weight: 700;
    text-decoration: none;
    margin-left: auto;
    margin-right: 1rem;
}

.navbar-spec-link:hover {
    color: var(--primary);
}

.eyebrow {
    color: #fdba74;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.spec-button {
    display: block;
    padding: 0.75rem;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.spec-button:hover {
    background: #ffedd5;
}

.spec-page {
    min-height: 100vh;
    background: #f6f7f9;
}

.spec-hero {
    padding: 3rem 1rem 2rem;
    background: linear-gradient(135deg, #007c83 0%, #00a8a8 72%, #ff6257 100%);
    color: #fff;
}

.spec-hero h1,
.spec-hero p {
    color: #fff;
}

.spec-layout {
    max-width: 1100px;
    margin: -1rem auto 0;
    padding: 0 1rem 4rem;
    position: relative;
}

.spec-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.spec-product-image {
    width: 100%;
    height: 340px;
    display: block;
    object-fit: contain;
    background: #edf1f4;
}

.spec-gallery {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #edf1f4;
}

.spec-gallery .car-photo {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.spec-gallery .car-photo.is-active {
    opacity: 1;
}

.spec-content {
    padding: 2rem;
}

.spec-content h2,
.spec-content h3 {
    color: #111827;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
}

.spec-table th,
.spec-table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    color: #374151;
}

.spec-table th {
    width: 35%;
    color: #111827;
    font-weight: 700;
}

.source-note {
    color: #4b5563;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar-spec-link {
        display: none;
    }

    .spec-content {
        padding: 1.25rem;
    }

    .spec-product-image {
        height: 230px;
    }

    .spec-gallery {
        height: 230px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions */
a, button, input, textarea, select {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .navbar,
    .whatsapp-widget {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .car-card {
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: more) {
    :root {
        --primary: #991b1b;
        --border: #000;
    }
    
    body {
        border: 2px solid #000;
    }
}

/* Reduced motion mode */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
