@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --bg-primary: #06090e;      /* Deep Obsidian Blue-Black */
    --bg-secondary: #0c111a;    /* Luxury Card Background */
    --bg-tertiary: #131a29;     /* Elevated Card / Dropdown */
    --accent-primary: #059669;  /* Pine Emerald Green */
    --accent-hover: #10b981;    /* Bright Mint Green */
    --accent-glow: rgba(16, 185, 129, 0.3);
    --text-primary: #ffffff;    /* Pure White */
    --text-secondary: #9ca3af;  /* Slate Gray */
    --text-tertiary: #6b7280;   /* Muted Dark Gray */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(16, 185, 129, 0.3);
    --glass-bg: rgba(12, 17, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
    border-color: var(--accent-hover);
    background: rgba(16, 185, 129, 0.05);
    color: var(--accent-hover);
    transform: translateY(-2px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-hover);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- ANIMATIONS --- */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
    }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HEADER / NAVBAR --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(6, 9, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-hover);
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-hover);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 30px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* --- PROMO BANNER --- */
.promo-banner {
    background: #020617;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
    margin-top: 80px; /* Di bawah navbar */
}

.promo-wrapper {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.promo-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-hover);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-hover);
}

.promo-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: fadeIn 1s var(--transition-smooth);
}

.hero-tag {
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.2s var(--transition-smooth);
}

.car-glow-ring {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px dashed rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero-visual img {
    max-width: 110%;
    height: auto;
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.6));
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition-smooth);
}

.hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg) scale(1.03);
}

/* --- MODEL SECTION --- */
.models {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.tab-btn {
    padding: 0.8rem 2.2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s var(--transition-smooth);
}

.tab-content.active {
    display: block;
}

.car-card-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.car-gallery-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: #030712;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Hilangkan padding agar gambar pas penuh memenuhi kotak hitam */
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar pas penuh mengisi seluruh area kotak hitam */
    transition: var(--transition-smooth);
}

.gallery-thumbs {
    display: flex;
    background-color: #030712;
    padding: 0.75rem;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.thumb {
    width: 80px;
    aspect-ratio: 4/3;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: #0d111c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: var(--transition-fast);
    opacity: 0.6;
}

.thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2);
}

.thumb.active {
    opacity: 1;
    border-color: var(--accent-hover);
}

.car-details h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.car-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-hover);
    margin-bottom: 1.5rem;
}

.car-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.specs-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.spec-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.spec-icon {
    font-size: 1.25rem;
    color: var(--accent-hover);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
}

.spec-text h5 {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-text p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.car-actions {
    display: flex;
    gap: 1rem;
}

/* --- DETAILED SPECS MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.close-modal {
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.modal-tab-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.modal-tab-btn:hover {
    color: var(--text-primary);
}

.modal-tab-btn.active {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.modal-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.modal-tab-content.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 1rem 0;
    font-size: 0.95rem;
}

.specs-table td.spec-label {
    width: 35%;
    color: var(--text-secondary);
    font-weight: 500;
}

.specs-table td.spec-val {
    width: 65%;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.feature-item-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item-card h6 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-hover);
}

.feature-item-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- LOAN CALCULATOR --- */
.calculator {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.calculator-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.calculator-form-container {
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.form-group label span.highlight-val {
    color: var(--accent-hover);
    font-weight: 700;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 500;
    border: 1px solid var(--border-color);
    appearance: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-wrapper select:hover {
    border-color: var(--accent-hover);
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--text-secondary);
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Custom Range Input / Slider Styling */
.range-slider {
    position: relative;
    display: flex;
    align-items: center;
}

.range-slider input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--bg-tertiary);
    outline: none;
    transition: var(--transition-fast);
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-hover);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.1s;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.tenure-tags {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.tenure-tag-btn {
    padding: 0.75rem;
    text-align: center;
    border-radius: 6px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tenure-tag-btn:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-primary);
}

.tenure-tag-btn.active {
    border-color: var(--accent-hover);
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--accent-hover);
}

.calculator-results-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calc-result-box {
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px dashed rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.calc-result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
}

.calc-result-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.calc-result-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.calc-result-sub {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.calc-breakdown-card {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breakdown-row span.lbl {
    color: var(--text-secondary);
}

.breakdown-row span.val {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- CONTACT & SHOWROOM LOCATION --- */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: stretch;
}

.sales-card {
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sales-avatar-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.sales-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-hover);
    padding: 3px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sales-online-dot {
    width: 16px;
    height: 16px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    position: absolute;
    bottom: 8px;
    right: 8px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.sales-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sales-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sales-perks {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.sales-perk-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sales-perk-item span.icon {
    color: var(--accent-hover);
    font-size: 1rem;
}

.sales-card .btn {
    width: 100%;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.map-info {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.map-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.map-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.map-iframe-wrapper {
    flex: 1;
    min-height: 320px;
    position: relative;
    background-color: #030712;
}

.map-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) grayscale(10%) contrast(90%); /* Dark Map Mode Trick */
}

/* --- FOOTER --- */
footer {
    background-color: #04060b;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-info-list li span.icon {
    color: var(--accent-hover);
    margin-top: 0.15rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- MOBILE BOTTOM NAVIGATION --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1500;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    background: rgba(12, 17, 26, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 100%;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    gap: 4px;
}

.mobile-nav-item span.icon {
    font-size: 1.25rem;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--text-primary);
}

.mobile-nav-item.wa-active {
    color: var(--accent-hover);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-grid, .car-card-grid, .calculator-grid, .contact-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    header .container {
        height: 70px;
    }
    .promo-banner {
        margin-top: 70px;
    }
    .menu-toggle {
        display: flex;
    }
    
    /* Responsive Navigation Slide-in */
    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    nav.active {
        right: 0;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    /* Grid Adjustments to Single Column */
    .hero-grid, .car-card-grid, .calculator-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .hero {
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    .hero-visual {
        order: -1; /* Gambar mobil duluan di mobile */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
    .hero-visual img {
        max-width: 100% !important;
        width: 100%;
        height: auto;
        transform: none !important; /* Hilangkan efek rotasi 3D di mobile agar terpusat simetris */
        filter: drop-shadow(0 15px 20px rgba(0,0,0,0.5));
    }
    .car-glow-ring {
        width: 280px;
        height: 280px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) !important; /* Pusatkan pendaran lingkaran di belakang mobil */
    }
    .car-actions {
        flex-direction: column;
    }
    .car-actions .btn {
        width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* --- RESPONSIVE MODAL OVERRIDES (MOBILE OPTIMIZED) --- */
    .modal-container {
        width: 95%;
        max-height: 88vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-title h4 {
        font-size: 1.15rem;
    }
    
    .close-modal {
        font-size: 1.6rem;
        padding: 0.25rem 0.5rem;
    }
    
    .modal-body {
        padding: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-tabs {
        gap: 0.25rem;
        margin-bottom: 1.25rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Sembunyikan scrollbar di Firefox */
        padding-bottom: 4px;
    }
    
    .modal-tabs::-webkit-scrollbar {
        display: none; /* Sembunyikan scrollbar di Chrome, Safari, & Opera */
    }
    
    .modal-tab-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    /* Menyusun tabel spesifikasi menjadi vertikal agar sangat nyaman dibaca di layar HP */
    .specs-table tr {
        display: flex;
        flex-direction: column;
        padding: 0.75rem 0;
    }
    
    .specs-table td {
        padding: 0 !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    .specs-table td.spec-label {
        font-size: 0.72rem;
        color: var(--text-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.2rem;
    }
    
    .specs-table td.spec-val {
        font-size: 0.88rem;
        color: var(--text-primary);
        font-weight: 600;
        line-height: 1.4;
    }
    
    .feature-item-card {
        padding: 1rem;
        gap: 0.35rem;
        border-radius: 8px;
    }
    
    .feature-item-card h6 {
        font-size: 0.92rem;
    }
    
    .feature-item-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 65px; /* Spasi agar tidak tertutup sticky bar */
    }

    /* Calculator Adjustments for Mobile (768px) */
    .calculator-form-container {
        padding: 1.75rem;
    }
    
    .calc-result-box {
        padding: 1.75rem 1.5rem;
    }
    
    .tenure-tags {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tenure-tag-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Product Section Overrides for Mobile (768px) */
    .main-image-wrapper {
        padding: 0 !important; /* Gambar pas penuh ke background hitam tanpa sisa kosong */
    }
    
    .main-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Memenuhi seluruh area background hitam */
    }
    
    .gallery-thumbs {
        justify-content: center; /* Memusatkan thumbnails di tengah */
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .thumb {
        width: 70px; /* Lebih ramping agar rapi di HP */
        padding: 2px;
    }
    
    .specs-preview {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .spec-preview-card {
        padding: 0.75rem; /* Lebih hemat ruang agar tidak meluap */
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .calculator-form-container, .sales-card {
        padding: 1.25rem;
    }
    .tenure-tags {
        grid-template-columns: repeat(3, 1fr);
    }
    .tenure-tag-btn {
        padding: 0.6rem 0.35rem;
        font-size: 0.75rem;
    }

    /* Product Section Overrides for Small Mobile (480px) */
    .specs-preview {
        grid-template-columns: 1fr; /* 1 kolom penuh agar sangat longgar dan tidak mendesak ke kanan */
        gap: 0.75rem;
    }
    
    .spec-preview-card {
        padding: 0.75rem 1rem;
    }
    
    .thumb {
        width: 65px; /* Pas untuk ukuran lebar HP kecil */
    }
}
