/* =========================================
   Reliable GPS Tracking — Custom Stylesheet
   Brand: Black (#111) + Orange (#E57201)
   ========================================= */

:root {
    --brand-orange: #E57201;
    --brand-orange-dark: #c46201;
    --brand-orange-light: #f08922;
    --brand-black: #111111;
    --brand-dark: #1a1a1a;
    --brand-gray: #2d2d2d;
    --brand-light: #f8f9fa;
    --text-muted-custom: #6c757d;
}

/* ── Base ─────────────────────────────────── */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #222;
    line-height: 1.65;
}

/* ── Topbar ───────────────────────────────── */
.topbar {
    background-color: var(--brand-orange);
    color: #fff;
    font-size: 0.84rem;
}
.topbar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.topbar a:hover { color: #fff; }

/* ── Navbar ───────────────────────────────── */
.navbar.bg-dark {
    background-color: var(--brand-black) !important;
}
.navbar-brand { text-decoration: none; }
.brand-logo {
    width: 40px;
    height: 40px;
    padding: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    object-fit: contain;
    flex-shrink: 0;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--brand-orange);
    border-radius: 10px;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.brand-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}
.brand-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--brand-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem !important;
    color: rgba(255,255,255,0.8) !important;
    transition: color 0.2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-orange) !important;
}
.navbar .dropdown-menu {
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}
.navbar .dropdown-item {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    transition: background 0.15s;
}
.navbar .dropdown-item:hover {
    background-color: var(--brand-orange);
    color: #fff !important;
}
.navbar .dropdown-item:hover .text-warning {
    color: #fff !important;
}

/* ── Buttons ──────────────────────────────── */
.btn-brand {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}
.btn-brand:hover {
    background-color: var(--brand-orange-dark);
    border-color: var(--brand-orange-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-brand-outline {
    border: 2px solid var(--brand-orange);
    color: var(--brand-orange);
    background: transparent;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-brand-outline:hover {
    background: var(--brand-orange);
    color: #fff;
}
.btn-warning {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: #fff !important;
    font-weight: 600;
}
.btn-warning:hover {
    background-color: var(--brand-orange-dark) !important;
    border-color: var(--brand-orange-dark) !important;
}
.btn-outline-warning {
    border-color: var(--brand-orange) !important;
    color: var(--brand-orange) !important;
}
.btn-outline-warning:hover {
    background-color: var(--brand-orange) !important;
    color: #fff !important;
}

/* ── Hero Section ─────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--brand-black) 0%, #1c1c1c 50%, #2a1a00 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229,114,1,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229,114,1,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-badge {
    display: inline-block;
    background: rgba(229,114,1,0.15);
    border: 1px solid rgba(229,114,1,0.4);
    color: var(--brand-orange);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}
.hero-title .highlight { color: var(--brand-orange); }
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-device-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(229,114,1,0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}
.hero-device-icon {
    font-size: 6rem;
    color: var(--brand-orange);
    filter: drop-shadow(0 0 30px rgba(229,114,1,0.5));
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── Section Styles ───────────────────────── */
.section-label {
    display: inline-block;
    background: rgba(229,114,1,0.1);
    color: var(--brand-orange);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(229,114,1,0.3);
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--brand-black);
    line-height: 1.2;
}
.section-title .text-orange { color: var(--brand-orange); }

/* ── Feature Cards ────────────────────────── */
.feature-card {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    background: #fff;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--brand-orange);
}
.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.25rem;
}

/* ── Product Cards ────────────────────────── */
.product-card {
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.product-card .product-img-wrap {
    background: #f7f7f7;
    text-align: center;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-card .product-img-wrap i {
    font-size: 5rem;
    color: var(--brand-orange);
    transition: transform 0.3s;
}
.product-card:hover .product-img-wrap i { transform: scale(1.1); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
}
.product-card .card-body { padding: 1.25rem; }
.product-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-black);
    margin-bottom: 0.4rem;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-orange);
}
.product-price .old-price {
    font-size: 0.85rem;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 0.4rem;
}
.product-rating .bi-star-fill { color: #ffc107; font-size: 0.8rem; }
.product-card .btn-add-cart {
    background: var(--brand-black);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    width: 100%;
    transition: background 0.2s;
}
.product-card .btn-add-cart:hover { background: var(--brand-orange); }

/* ── Category Cards ───────────────────────── */
.category-card {
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.category-card .cat-bg {
    background: linear-gradient(135deg, var(--brand-black), #2a1a00);
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.category-card .cat-bg::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(229,114,1,0.15);
    border-radius: 50%;
}
.category-card .cat-icon { font-size: 3.5rem; color: var(--brand-orange); }
.category-card .cat-label {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.75rem;
}
.category-card .cat-count {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

/* ── Vehicle Solutions Cards ─────────────── */
.vehicle-section {
    background: radial-gradient(circle at top right, rgba(229,114,1,0.12), transparent 42%), #fff;
}
.vehicle-section-subtitle {
    color: #6b7280;
    max-width: 560px;
}
.vehicle-card {
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 1.25rem;
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.vehicle-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229,114,1,0.55);
    box-shadow: 0 14px 30px rgba(35, 19, 0, 0.12);
}
.vehicle-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
}
.vehicle-title {
    font-size: 1.03rem;
    font-weight: 700;
    color: var(--brand-black);
    margin-bottom: 0.35rem;
}
.vehicle-hint {
    color: #6c757d;
    font-size: 0.88rem;
    line-height: 1.45;
}
.vehicle-meta {
    color: #4b5563;
    font-size: 0.84rem;
    line-height: 1.4;
}
.vehicle-meta i {
    color: var(--brand-orange);
}
.vehicle-open-modal {
    background: var(--brand-orange);
    color: #fff;
    border: 1px solid var(--brand-orange);
    font-weight: 600;
}
.vehicle-open-modal:hover {
    background: var(--brand-orange-dark);
    border-color: var(--brand-orange-dark);
    color: #fff;
}
.vehicle-modal {
    border-radius: 16px;
    border: 1px solid #ececec;
}
.vehicle-modal-kicker {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-orange);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.vehicle-modal-bestfor {
    background: rgba(229,114,1,0.08);
    border: 1px solid rgba(229,114,1,0.25);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    color: #374151;
    font-size: 0.9rem;
}
.vehicle-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
    color: #374151;
    line-height: 1.45;
}
.vehicle-benefits li i {
    color: var(--brand-orange);
    font-size: 1rem;
    margin-top: 0.1rem;
}

/* ── Service / Info Sections ──────────────── */
.service-section { background: var(--brand-black); }
.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.75rem;
    transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover {
    border-color: var(--brand-orange);
    transform: translateY(-4px);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin-bottom: 1rem;
}

/* ── Testimonials ─────────────────────────── */
.testimonial-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
}
.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--brand-orange);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

/* ── CTA Banner ───────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 250px; height: 250px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

/* ── Page Header / Breadcrumb ─────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--brand-black) 0%, #1c1c1c 100%);
    padding: 4rem 0 3rem;
}
.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
}
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.breadcrumb-item a { color: var(--brand-orange); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.6); }

/* ── Shop / Filter Sidebar ────────────────── */
.filter-card {
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
}
.filter-card .filter-head {
    background: var(--brand-black);
    color: #fff;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.filter-card .filter-body { padding: 1.25rem; }
.filter-card .form-check-label { font-size: 0.9rem; cursor: pointer; }
.filter-card .form-check-input:checked { background-color: var(--brand-orange); border-color: var(--brand-orange); }

/* ── Product Detail ───────────────────────── */
.product-detail-img {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}
.product-detail-img i { font-size: 10rem; color: var(--brand-orange); }
.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-orange);
}
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}
.qty-control button {
    background: #f5f5f5;
    border: none;
    padding: 0.5rem 0.9rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s;
}
.qty-control button:hover { background: var(--brand-orange); color: #fff; }
.qty-control input {
    border: none;
    width: 48px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}
.spec-table td { font-size: 0.9rem; padding: 0.5rem 0.75rem; }
.spec-table tr:nth-child(odd) td { background: #f9f9f9; }

/* ── Cart ─────────────────────────────────── */
.cart-table thead { background: var(--brand-black); color: #fff; }
.cart-table thead th { padding: 0.9rem 1rem; font-weight: 600; font-size: 0.88rem; }
.cart-item-img i { font-size: 3rem; color: var(--brand-orange); }
.cart-summary-card {
    background: var(--brand-black);
    color: #fff;
    border-radius: 16px;
    padding: 1.75rem;
}
.cart-summary-card .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
}
.cart-summary-card .summary-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-orange);
}

/* ── Checkout ─────────────────────────────── */
.checkout-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-black);
    border-left: 4px solid var(--brand-orange);
    padding-left: 0.75rem;
    margin-bottom: 1.25rem;
}
.checkout-order-summary {
    background: #f9f9f9;
    border-radius: 14px;
    padding: 1.5rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.2rem rgba(229,114,1,0.2);
}

/* ── About ────────────────────────────────── */
.about-stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: transform 0.3s, border-color 0.3s;
}
.about-stat-card:hover { transform: translateY(-5px); border-color: var(--brand-orange); }
.about-stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-orange);
}
.team-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.team-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-black), var(--brand-gray));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--brand-orange);
    margin: 0 auto;
}

/* ── Contact ──────────────────────────────── */
.contact-info-card {
    background: var(--brand-black);
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
}
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-icon {
    width: 44px; height: 44px;
    background: var(--brand-orange);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.map-placeholder {
    background: #f0f0f0;
    border-radius: 14px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9rem;
    border: 2px dashed #ddd;
}

/* ── Terms ────────────────────────────────── */
.terms-nav { position: sticky; top: 90px; }
.terms-nav .nav-link {
    color: var(--brand-black);
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    border-left: 3px solid transparent;
    border-radius: 0;
    transition: all 0.2s;
}
.terms-nav .nav-link:hover,
.terms-nav .nav-link.active {
    color: var(--brand-orange);
    border-left-color: var(--brand-orange);
    background: rgba(229,114,1,0.05);
}
.terms-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-black);
    padding-top: 1rem;
}

/* ── Footer ───────────────────────────────── */
.footer-main {
    background: #0d0d0d;
    color: rgba(255,255,255,0.7);
}
.footer-heading {
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-orange); }
.footer-contact { list-style: none; padding: 0; color: rgba(255,255,255,0.55); font-size: 0.875rem; }

/* ── Badges / Pills ───────────────────────── */
.badge-orange { background: var(--brand-orange); color: #fff; }
.text-orange { color: var(--brand-orange) !important; }
.bg-orange { background-color: var(--brand-orange) !important; }
.border-orange { border-color: var(--brand-orange) !important; }

/* ── Utilities ────────────────────────────── */
.rounded-xl { border-radius: 16px !important; }
.shadow-brand { box-shadow: 0 8px 32px rgba(229,114,1,0.2); }

/* ── Alert / Toast ────────────────────────── */
.alert-success { background: #d4edda; border-color: #c3e6cb; color: #155724; }
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}

/* ── Responsive Patches ───────────────────── */
@media (max-width: 768px) {
    .hero-stats { gap: 1rem; }
    .hero-stat-num { font-size: 1.4rem; }
    .hero-device-card { margin-top: 2rem; }
    .cart-table { font-size: 0.85rem; }
    .product-detail-img i { font-size: 6rem; }
    .product-detail-price { font-size: 1.5rem; }
}
@media (max-width: 576px) {
    .hero-section { min-height: auto; padding: 4rem 0; }
    .hero-badge { font-size: 0.72rem; }
    .vehicle-card {
        padding: 1rem;
        min-height: 170px;
    }
    .vehicle-title {
        font-size: 0.95rem;
    }
    .vehicle-section-subtitle {
        font-size: 0.92rem;
    }
}

/* ── Service Nav Links ───────────────────── */
.service-nav-link {
    transition: border-color 0.2s, transform 0.2s;
}
.service-nav-link:hover {
    border-color: var(--brand-orange) !important;
    transform: translateX(-3px);
}
.col-6:last-child .service-nav-link:hover {
    transform: translateX(3px);
}

/* ── Scroll behavior ─────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ── Loading animation ───────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
