/* Warpart.id - Sparepart AC Mobil */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --text-dark: #1e293b;
    --text-light: #fff;
    --border: #e2e8f0;
    --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
* { box-sizing: border-box; }
*:focus { outline: none !important; box-shadow: none !important; }
button:focus { outline: none !important; box-shadow: none !important; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--light-bg); margin: 0; }
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Top Bar */
.top-bar { background: var(--primary); color: #fff; padding: 8px 0; font-size: .85rem; text-align: center; }
.top-bar a { color: #fff; font-weight: 600; text-decoration: underline; }

/* Navbar */
.warpart-navbar { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 12px 0; position: sticky; top: 0; z-index: 999; }
.warpart-navbar .nav-link { color: var(--text-dark) !important; font-weight: 500; margin: 0 8px; transition: color .3s; position: relative; }
.warpart-navbar .nav-link:hover, .warpart-navbar .nav-link.active { color: var(--primary) !important; }
.warpart-navbar .nav-link::after { content:''; position: absolute; width: 0; height: 2px; background: var(--grad); bottom: -6px; left: 0; transition: width .3s; }
.warpart-navbar .nav-link:hover::after, .warpart-navbar .nav-link.active::after { width: 100%; }
.navbar-brand { font-weight: 800; font-size: 1.5rem; color: var(--secondary) !important; font-family: 'Outfit', sans-serif; }
.navbar-brand .accent { color: var(--primary); }

/* Buttons */
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.btn-primary { background: var(--grad); border: none; border-radius: 10px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.35); background: var(--grad); }
.btn-outline-primary { color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; font-weight: 600; }
.btn-outline-primary:hover { background: var(--grad); border-color: transparent; color: #fff; }
.btn-wa { background: #25D366; color: #fff; border: none; border-radius: 10px; font-weight: 600; }
.btn-wa:hover { background: #1fb855; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

/* Hero */
.hero-section { padding: 80px 0 60px; background: var(--grad-dark); color: #fff; position: relative; overflow: hidden; }
.hero-section::before { content:''; position: absolute; top: -40%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(6,182,212,.15) 0%, transparent 70%); border-radius: 50%; animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.5} 50%{transform:scale(1.2);opacity:1} }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-title .highlight { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; opacity: .85; margin-bottom: 28px; line-height: 1.7; }
.hero-img { border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; display: block; }
.hero-stat .label { font-size: .8rem; opacity: .7; }

/* Section */
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.section-title .highlight { color: var(--primary); }
.section-desc { color: #64748b; max-width: 550px; }

/* Feature Cards */
.feature-card { background: #fff; border-radius: 16px; padding: 28px; text-align: center; border: 1px solid var(--border); transition: all .3s; height: 100%; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(37,99,235,.1); border-color: var(--primary-light); }
.feature-icon { width: 64px; height: 64px; background: var(--primary-light); color: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px; }

/* Category Cards */
.cat-card { position: relative; border-radius: 16px; overflow: hidden; height: 220px; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(15,23,42,.9)); padding: 20px; color: #fff; }
.cat-card .overlay h5 { font-weight: 700; margin: 0; }
.cat-card .badge-count { position: absolute; top: 12px; right: 12px; background: var(--grad); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; }

/* Product Cards */
.product-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; height: 100%; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(37,99,235,.1); border-color: var(--primary-light); }
.product-card .img-wrap { position: relative; overflow: hidden; height: 200px; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .badge-label { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600; color: #fff; }
.badge-sale { background: #ef4444; }
.badge-new { background: var(--accent); }
.badge-best { background: #f59e0b; }
.product-card .body { padding: 16px; }
.product-brand { color: var(--primary); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-title { font-size: .95rem; font-weight: 600; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price .current { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.product-price .old { color: #94a3b8; text-decoration: line-through; font-size: .8rem; margin-left: 6px; }
.product-meta { display: flex; gap: 12px; font-size: .75rem; color: #94a3b8; margin-top: 8px; }

/* Article Cards */
.article-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; height: 100%; }
.article-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(37,99,235,.1); border-color: var(--primary-light); }
.article-card .img-wrap { height: 180px; overflow: hidden; }
.article-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .img-wrap img { transform: scale(1.05); }
.article-card .body { padding: 20px; }
.article-tag { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600; margin-bottom: 10px; }
.article-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.article-title a:hover { color: var(--primary); }
.article-excerpt { color: #64748b; font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.article-meta { display: flex; gap: 14px; font-size: .75rem; color: #94a3b8; border-top: 1px solid var(--border); padding-top: 12px; }
.article-meta i { color: var(--primary); margin-right: 3px; }

/* Sidebar */
.sidebar-widget { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--border); margin-bottom: 20px; }
.sidebar-widget h5 { font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); font-size: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a { padding: 5px 12px; background: var(--light-bg); color: #64748b; border-radius: 20px; font-size: .75rem; border: 1px solid var(--border); transition: all .2s; }
.tag-list a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.popular-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.popular-item:last-child { border-bottom: none; }
.popular-item img { width: 65px; height: 65px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.popular-item .item-title { font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.popular-item .item-date { font-size: .7rem; color: #94a3b8; }

/* Page Banner */
.page-banner { background: var(--grad-dark); padding: 100px 0 50px; color: #fff; position: relative; overflow: hidden; }
.page-banner::before { content:''; position: absolute; top: -100px; right: -100px; width: 350px; height: 350px; background: radial-gradient(circle, rgba(6,182,212,.12) 0%, transparent 70%); border-radius: 50%; }
.page-banner h1 { font-size: 2.2rem; font-weight: 800; position: relative; z-index: 1; }
.page-banner p { opacity: .8; position: relative; z-index: 1; }
.breadcrumb-nav { position: relative; z-index: 1; }
.breadcrumb-nav a { color: var(--accent); }
.breadcrumb-nav span { color: rgba(255,255,255,.5); }

/* Filter Bar */
.filter-bar { background: #fff; border-radius: 16px; padding: 16px 20px; border: 1px solid var(--border); margin-bottom: 24px; }
.filter-bar .form-select, .filter-bar .form-control { border-radius: 10px; border-color: var(--border); font-size: .85rem; }
.filter-bar .form-select:focus, .filter-bar .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* Pagination */
.pagination .page-link { color: var(--primary); border: 1px solid var(--border); border-radius: 10px !important; margin: 0 3px; padding: 8px 14px; font-weight: 500; }
.pagination .page-link:hover { background: var(--primary-light); border-color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--grad); border-color: transparent; color: #fff; }

/* About Page */
.about-hero { background: var(--grad-dark); padding: 100px 0 60px; color: #fff; position: relative; overflow: hidden; }
.about-values .value-card { background: #fff; border-radius: 16px; padding: 30px 24px; text-align: center; border: 1px solid var(--border); transition: all .3s; height: 100%; }
.about-values .value-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(37,99,235,.1); }
.about-values .value-icon { width: 64px; height: 64px; background: var(--primary-light); color: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px; }
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 30px; }
.timeline-item::before { content:''; position: absolute; left: 14px; top: 30px; bottom: -30px; width: 2px; background: var(--border); }
.timeline-item:last-child::before { display: none; }
.timeline-item .dot { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; background: var(--grad); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.team-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; text-align: center; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(37,99,235,.1); }
.team-card .team-img { height: 220px; overflow: hidden; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.team-card .team-img i { font-size: 5rem; color: var(--primary); opacity: .4; }
.team-card .team-body { padding: 20px; }

/* CTA Section */
.cta-section { background: var(--grad-dark); padding: 60px 0; }

/* Footer */
.warpart-footer { background: var(--grad-dark); padding-top: 48px; padding-bottom: 24px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); transition: all .3s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { color: rgba(255,255,255,.6); }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 10px; transition: all .3s; color: #fff; }
.social-links a:hover { background: var(--grad); transform: translateY(-3px); }

/* Mobile Bottom Nav */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; box-shadow: 0 -2px 15px rgba(0,0,0,.08); display: flex; justify-content: space-around; align-items: flex-end; padding: 8px 0 6px; z-index: 1002; border-top: 1px solid var(--border); }
.mobile-bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; color: #94a3b8; font-size: .65rem; flex: 1; font-weight: 500; transition: color .3s; background: none; border: none; cursor: pointer; text-decoration: none; outline: none !important; }
.mobile-bottom-nav .nav-item i { font-size: 1.15rem; margin-bottom: 3px; }
.mobile-bottom-nav .nav-item.active, .mobile-bottom-nav .nav-item:hover { color: var(--primary); }
.mobile-bottom-nav .nav-cta { position: relative; top: -22px; flex: 1; display: flex; flex-direction: column; align-items: center; background: none; border: none; cursor: pointer; outline: none !important; }
.mobile-bottom-nav .nav-cta .cta-circle { background: var(--primary); width: 52px; height: 52px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 18px rgba(37,99,235,.4); border: 3px solid #fff; transition: all .3s ease; }
.mobile-bottom-nav .nav-cta .cta-circle i { color: #fff; font-size: 1.5rem; transition: transform .3s ease; }
.mobile-bottom-nav .nav-cta.open .cta-circle { background: #ef4444; box-shadow: 0 4px 18px rgba(239,68,68,.4); }
.mobile-bottom-nav .nav-cta.open .cta-circle i { transform: rotate(45deg); }

/* Mobile Popup Overlay */
.mobile-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 1000; opacity: 0; visibility: hidden; transition: all .3s ease; }
.mobile-popup-overlay.open { opacity: 1; visibility: visible; }

/* Mobile Popup Menu */
.mobile-popup-menu { position: fixed; bottom: 70px; left: 0; width: 100%; background: #fff; border-radius: 20px 20px 0 0; z-index: 1001; transform: translateY(100%); transition: transform .3s ease; box-shadow: 0 -8px 30px rgba(0,0,0,.15); padding: 24px 16px 16px; }
.mobile-popup-menu.open { transform: translateY(0); }
.mobile-popup-menu .popup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mobile-popup-menu .popup-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-dark); font-size: .75rem; font-weight: 500; padding: 12px 4px; border-radius: 12px; transition: background .2s; }
.mobile-popup-menu .popup-item:hover { background: var(--light-bg); }
.mobile-popup-menu .popup-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 6px; transition: all .2s; }
.mobile-popup-menu .popup-item:hover .popup-icon { transform: scale(1.1); }

/* Responsive */
@media(max-width:991px) {
    .hero-title { font-size: 2rem; }
    .hero-section { padding: 60px 0 40px; }
    .page-banner { padding: 80px 0 35px; }
    .page-banner h1 { font-size: 1.6rem; }
    body { padding-bottom: 70px; }
    .hero-stats { gap: 16px; }
    .hero-stat .num { font-size: 1.4rem; }
    .article-featured-row .col-md-6:first-child img { border-radius: 16px 16px 0 0 !important; }
}
@media(max-width:576px) {
    .hero-title { font-size: 1.6rem; }
    .section-title { font-size: 1.4rem; }
    .hero-stats { flex-wrap: wrap; gap: 12px; }
}

/* Layanan Page */
.service-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; height: 100%; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(37,99,235,.1); border-color: var(--primary-light); }
.service-card .service-icon { width: 64px; height: 64px; background: var(--primary-light); color: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.service-card .service-body { padding: 28px; }
.process-step { text-align: center; position: relative; }
.process-step .step-num { width: 50px; height: 50px; background: var(--grad); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin: 0 auto 12px; }
.process-step::after { content:''; position: absolute; top: 25px; left: 60%; width: 80%; height: 2px; background: var(--border); z-index: 0; }
.process-step:last-child::after { display: none; }
