/* ===== TRIPLE A GARAGE - MAIN STYLESHEET ===== */
/* Font: Rajdhani (display) + Plus Jakarta Sans (body) */

:root {
    --primary: #b8965c;
    --primary-dark: #9a7a48;
    --primary-light: #cdb07a;
    --accent: #ff6b00;
    --dark: #0d1117;
    --dark-2: #161b22;
    --dark-3: #21262d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: rgba(255,255,255,0.08);
    --white: #ffffff;
    --wa-green: #25D366;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --radius: 12px;
    --radius-lg: 20px;
    font-size: 16px;
}

/* ===== BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .brand-triple, .brand-garage {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

/* ===== LOADER ===== */
#loader {
    position: fixed; inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: pulse 1s ease infinite;
}
.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--dark-3);
    border-radius: 10px;
    overflow: hidden;
}
.loader-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    animation: loadFill 1.5s ease forwards;
}
@keyframes loadFill { from { width: 0; } to { width: 100%; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ===== NAVBAR ===== */
#mainNav {
    background: transparent;
    padding: 20px 0;
    transition: all 0.3s ease;
}
#mainNav.scrolled {
    background: rgba(13,17,23,0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.navbar-brand {
    text-decoration: none;
    line-height: 1;
}
.brand-triple {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
}
.brand-garage {
    font-size: 1.5rem;
    color: var(--white);
    margin-left: 6px;
    letter-spacing: 2px;
}
.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--primary) !important; }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(1); }

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184,150,92,0.4);
}
.btn-wa {
    background: var(--wa-green);
    color: white !important;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}
.btn-wa:hover {
    background: #1aab52;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.35);
}
.btn-outline-custom {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(184,150,92,0.1);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: 
        linear-gradient(135deg, rgba(184,150,92,0.2) 0%, transparent 60%),
        linear-gradient(180deg, rgba(13,17,23,0.3) 0%, rgba(13,17,23,0.8) 100%),
        url('https://images.unsplash.com/photo-1558981852-426c6c22a060?w=600&q=80') center/cover;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(13,17,23,0.9) 40%, transparent);
}
.hero-content {
    position: relative; z-index: 1;
    max-width: 640px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184,150,92,0.15);
    border: 1px solid rgba(184,150,92,0.4);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    color: white;
    margin-bottom: 20px;
}
.hero-title span { color: var(--primary); }
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat-item { }
.stat-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
}
.scroll-indicator i { font-size: 1.2rem; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== SECTION COMMONS ===== */
section { padding: 90px 0; }
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-eyebrow::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary);
    display: inline-block;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
}
.section-title span { color: var(--primary); }
.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 540px;
}

/* ===== ABOUT ===== */
#tentang { background: var(--dark-2); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.trust-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
}
.trust-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    background: rgba(184,150,92,0.08);
}
.trust-icon {
    width: 48px; height: 48px;
    background: rgba(184,150,92,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem;
    color: var(--primary);
}
.trust-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.trust-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-top: 4px;
}

/* ===== CATEGORIES ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.cat-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 40%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}
.cat-icon {
    width: 44px; height: 44px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 10px;
}
.cat-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}
.cat-count { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ===== MOTOR CARDS ===== */
.motor-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.motor-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 16px 48px rgba(184,150,92,0.15);
}
.motor-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.motor-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.motor-card:hover .motor-img img { transform: scale(1.06); }
.motor-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.motor-badge.nego { background: var(--accent); }
.motor-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.motor-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}
.motor-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.2;
}
.motor-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.motor-meta {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.motor-meta span { display: flex; align-items: center; gap: 5px; }
.motor-meta i { color: var(--primary); }
.motor-price-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.motor-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.motor-nego {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}
.motor-actions { display: flex; gap: 10px; margin-top: auto; }
.btn-detail {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-detail:hover { border-color: var(--primary); color: var(--primary); }
.btn-wa-card {
    flex: 1;
    background: var(--wa-green);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}
.btn-wa-card:hover { background: #1aab52; color: white; transform: translateY(-1px); }

/* ===== FILTER/SEARCH ===== */
.search-bar {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.search-input-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}
.search-input-wrap i {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-input {
    width: 100%;
    background: var(--dark-3);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 16px 12px 44px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: var(--text-muted); }
.filter-select {
    background: var(--dark-3);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 140px;
}
.filter-select:focus { border-color: var(--primary); }
.filter-select option { background: var(--dark-3); }

/* ===== CONTACT SECTION ===== */
#kontak { background: var(--dark-2); }
.contact-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-icon {
    width: 48px; height: 48px; min-width: 48px;
    background: rgba(184,150,92,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}
.contact-text-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-text-value {
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
    line-height: 1.5;
}
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 380px;
    border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===== CTA BANNER ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px; right: -100px;
}
.cta-section::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -150px; left: 50px;
}
.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: white;
    margin-bottom: 16px;
}
.cta-desc { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 32px; }

/* ===== DETAIL PAGE ===== */
.detail-wrap { padding-top: 100px; }
.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 420px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb {
    width: 80px; height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:not(:last-child) { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 8px; font-size: 0.9rem; }
.spec-table td:first-child { color: var(--text-muted); width: 45%; }
.spec-table td:last-child { color: white; font-weight: 600; }
.kelengkapan-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kl-badge {
    background: rgba(184,150,92,0.15);
    border: 1px solid rgba(184,150,92,0.3);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== WA FLOAT ===== */
.wa-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); color: white; }
.wa-pulse {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--wa-green);
    animation: waPulse 2s ease-out infinite;
    z-index: -1;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}
.footer-brand { margin-bottom: 16px; }
.footer-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px; height: 40px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.social-links a:hover { border-color: var(--primary); color: var(--primary); }
.footer-heading {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item i { color: var(--primary); font-size: 0.9rem; margin-top: 3px; min-width: 16px; }
.contact-item span { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 48px;
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--dark-2);
    padding: 120px 0 60px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(184,150,92,0.1) 0%, transparent 70%);
}
.page-header-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: white;
    margin-bottom: 8px;
}
.breadcrumb { margin: 0; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); font-size: 0.875rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    display: none;
}
.no-results i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; display: block; }
.no-results p { color: var(--text-muted); font-size: 1rem; }

/* ===== ANIMATIONS ===== */
[data-aos] { opacity: 0; }
[data-aos].aos-animate { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.5rem; }
    .search-bar { flex-direction: column; }
    .search-input-wrap { min-width: 100%; }
    .filter-select { min-width: 100%; }
    .gallery-main { height: 260px; }
    .detail-card { padding: 20px; }
    .motor-actions { flex-direction: column; }
    .cta-section { text-align: center; }
    .hero-cta { flex-direction: column; }
    .hero-cta a { justify-content: center; }
}
