/**
 * Naim Bike's Hub & Service Center - Master UI/UX Design System & Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-subtle: #dbeafe;
    
    --secondary: #64748b;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --dark-muted: #334155;
    
    --whatsapp: #25d366;
    --whatsapp-dark: #1ebd5a;
    --whatsapp-light: #e8fbf0;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
    
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 16px 24px -4px rgba(15, 23, 42, 0.08), 0 8px 12px -6px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ==========================================================
   Global Base & Typography
========================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    color: #334155;
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Typography Utilities */
.font-xs { font-size: 0.78rem !important; }
.font-sm { font-size: 0.86rem !important; }
.font-md { font-size: 0.95rem !important; }
.font-lg { font-size: 1.1rem !important; }
.font-xl { font-size: 1.25rem !important; }

.fw-extrabold { font-weight: 800 !important; }
.fw-bolder { font-weight: 900 !important; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.03em; }
.tracking-wider { letter-spacing: 0.06em; }

.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }

.cursor-pointer { cursor: pointer; }
.object-fit-cover { object-fit: cover; }
.object-fit-contain { object-fit: contain; }

/* Custom Shadows */
.shadow-subtle { box-shadow: var(--shadow-subtle) !important; }
.shadow-card { box-shadow: var(--shadow-card) !important; }
.shadow-hover { box-shadow: var(--shadow-hover) !important; }

/* Transitions */
.transition-all {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* ==========================================================
   Header & Top Announcement Bar
========================================================== */
.top-bar {
    background-color: #0b1329 !important;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.top-bar .badge-offer {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
}

.top-bar a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: #ffffff;
}

/* Main Navbar */
.main-navbar-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navbar-brand .brand-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.navbar .nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    padding: 0.6rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--primary);
    background-color: #f1f5f9;
}

.navbar .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

.badge-verified-nav {
    font-size: 0.65rem;
    padding: 2px 6px;
    background-color: #ef4444;
    color: #ffffff;
    font-weight: 700;
    vertical-align: middle;
}

/* Navbar Buttons */
.btn-nav-call {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.btn-nav-call:hover {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.btn-nav-whatsapp {
    background-color: var(--whatsapp);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.48rem 1.15rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
    border: none;
}

.btn-nav-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* ==========================================================
   Hero Section & Search Box
========================================================= */
.hero-section {
    position: relative;
    padding: 4.5rem 0 5rem;
    background-color: #0f172a;
}

.hero-pill-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
}

.hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.3rem;
}

.hero-card .form-control,
.hero-card .form-select {
    font-size: 0.88rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.55rem 0.85rem;
    background-color: #f8fafc;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-card .form-control:focus,
.hero-card .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================
   Bike Cards (Systematic UI & Precision Alignments)
========================================================== */
.bike-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bike-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.bike-thumb-box {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #0f172a;
    overflow: hidden;
}

.bike-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bike-card:hover .bike-thumb-img {
    transform: scale(1.06);
}

.badge-featured-card {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-brand-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bike-card-overlay-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bike-card-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bike-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.25rem;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}

.bike-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.bike-card-title a:hover {
    color: var(--primary);
}

.bike-card-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bike-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #e2e8f0;
}

.bike-price-text {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.badge-price-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    background-color: #ecfdf5;
    color: #059669;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

.bike-specs-chip-grid {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 6px 8px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    gap: 4px;
    margin-bottom: 0.85rem;
    font-size: 0.74rem;
}

.bike-specs-chip-grid .chip-label {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 600;
}

.bike-specs-chip-grid .chip-val {
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Buttons */
.bike-card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.btn-card-details {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.52rem 0.6rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    background: #ffffff;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-card-details:hover {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.btn-card-whatsapp-action {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.52rem 0.6rem;
    border-radius: 8px;
    background-color: var(--whatsapp);
    color: #ffffff !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
}

.btn-card-whatsapp-action:hover {
    background-color: var(--whatsapp-dark);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

/* ==========================================================
   Product Detail Page
========================================================== */
.bike-detail-hero-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--shadow-card);
}

.main-preview-container {
    width: 100%;
    height: 420px;
    background-color: #0b1329;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-preview-container img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.gallery-thumb {
    width: 84px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #0f172a;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Sticky Price Sidebar */
.sticky-sidebar-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.detail-price-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

.detail-price-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    white-space: nowrap;
}

.btn-sidebar-whatsapp {
    background-color: var(--whatsapp);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
    border: none;
}

.btn-sidebar-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.btn-sidebar-call {
    background-color: #ffffff;
    border: 2px solid #0f172a;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-sidebar-call:hover {
    background-color: #0f172a;
    color: #ffffff;
}

/* Specs Table */
.specs-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.specs-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
    width: 38%;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================
   Brand Cards & Services
========================================================== */
.brand-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* ==========================================================
   Footer
========================================================== */
.footer-section {
    background-color: #070d1d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.footer-heading {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==========================================================
   Mobile Bottom Bar & Floating Elements
========================================================== */
.floating-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 12px;
}

.floating-whatsapp-desktop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background-color: var(--whatsapp);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.floating-whatsapp-desktop:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-desktop .tooltip-text {
    position: absolute;
    right: 68px;
    background-color: #0f172a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp-desktop:hover .tooltip-text {
    opacity: 1;
}

/* ==========================================================
   Responsive Breakpoints
========================================================== */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 64px; /* Space for mobile floating bottom bar */
    }
    
    .hero-section {
        padding: 3rem 0 3.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }

    .main-preview-container {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .bike-thumb-box {
        height: 195px;
    }
    
    .detail-price-val {
        font-size: 1.7rem;
    }
}
