/* ══════════════════════════════════════════════
   AutoLogic Bangladesh — Component Design System
   ══════════════════════════════════════════════ */

/* ─── Section Layout ─────────────────────────── */
.section { padding: 5rem 0; }
.section-dark { background: var(--dark); color: white; }
.section-light { background: #f1f5f9; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .label {
    display: inline-block; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: var(--primary);
    margin-bottom: 0.75rem;
}
.section-header h2 { font-size: 2.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.section-dark .section-header h2 { color: #fff; }
.section-header p { color: var(--gray); max-width: 550px; margin: 0 auto; font-size: 1rem; }

/* ─── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: 8px; font-family: inherit;
    font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none;
}
.btn-primary-solid { background: var(--primary); color: #fff; }
.btn-primary-solid:hover { background: #2a4185; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(55,84,164,0.25); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white-solid { background: #fff; color: var(--primary); }
.btn-white-solid:hover { background: #f1f5f9; transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; border-radius: 6px; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 1.1rem; }

/* ─── Cards: Service ─────────────────────────── */
.service-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: all 0.35s ease;
    display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: var(--primary); }
.service-card .card-img { height: 200px; overflow: hidden; position: relative; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .card-img img { transform: scale(1.05); }
.service-card .card-icon {
    position: absolute; bottom: -20px; right: 20px; width: 44px; height: 44px;
    background: var(--primary); color: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(55,84,164,0.3);
}
.service-card .card-body { padding: 1.75rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card .card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card .card-body p { color: var(--gray); font-size: 0.9rem; flex: 1; margin-bottom: 1rem; }
.service-card .card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.service-card .card-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.service-card .card-duration { font-size: 0.8rem; color: var(--gray); display: flex; align-items: center; gap: 0.35rem; }

/* ─── Cards: Product ─────────────────────────── */
.product-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: all 0.35s ease; position: relative;
    display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.product-card .card-badge {
    position: absolute; top: 12px; left: 12px; background: #ef4444; color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 4px; z-index: 2;
}
.product-card .card-img { height: 200px; background: #f8fafc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .card-img img { transform: scale(1.08); }
.product-card .card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card .card-brand { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.35rem; }
.product-card .card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.35; }
.product-card .card-rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; color: #f59e0b; margin-bottom: 0.75rem; }
.product-card .card-rating span { color: var(--gray); margin-left: 0.25rem; }
.product-card .card-pricing { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; margin-bottom: 1rem; }
.product-card .price-now { font-size: 1.2rem; font-weight: 700; color: var(--dark); }
.product-card .price-was { font-size: 0.85rem; color: #94a3b8; text-decoration: line-through; }
.product-card .card-actions { display: flex; gap: 0.5rem; }
.product-card .card-actions .btn { flex: 1; }

/* ─── Cards: Combo ───────────────────────────── */
.combo-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff;
    border-radius: 14px; overflow: hidden; position: relative; transition: all 0.35s ease;
    display: flex; flex-direction: column; height: 100%;
}
.combo-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.combo-card .combo-img { height: 180px; overflow: hidden; position: relative; }
.combo-card .combo-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.combo-card .combo-img .combo-save {
    position: absolute; top: 12px; right: 12px; background: #10b981; color: #fff;
    padding: 0.3rem 0.75rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700;
}
.combo-card .combo-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.combo-card .combo-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.combo-card .combo-body p { color: #94a3b8; font-size: 0.88rem; margin-bottom: 1rem; }
.combo-card .combo-pricing { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; margin-bottom: 1.25rem; }
.combo-card .combo-pricing .price-now { font-size: 1.3rem; font-weight: 700; }
.combo-card .combo-pricing .price-was { font-size: 0.9rem; color: #64748b; text-decoration: line-through; }
.combo-card .combo-includes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.combo-card .combo-tag {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    padding: 0.3rem 0.6rem; border-radius: 5px; font-size: 0.75rem; color: #cbd5e1;
}

/* ─── Trust Badges Row ───────────────────────── */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item {
    display: flex; align-items: center; gap: 1rem; background: #fff;
    padding: 1.25rem 1.5rem; border-radius: 10px; border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.trust-item:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(55,84,164,0.08); }
.trust-item .trust-icon {
    width: 50px; height: 50px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.trust-item .trust-icon.blue { background: rgba(55,84,164,0.1); color: var(--primary); }
.trust-item .trust-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.trust-item .trust-icon.amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.trust-item .trust-icon.red { background: rgba(239,68,68,0.1); color: #ef4444; }
.trust-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
.trust-item p { font-size: 0.8rem; color: var(--gray); }

/* ─── Testimonial ────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card {
    background: #fff; padding: 2rem; border-radius: 12px;
    border: 1px solid #e2e8f0; transition: all 0.3s ease;
}
.testimonial-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.testimonial-card .stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 1rem; }
.testimonial-card .quote { font-size: 0.95rem; color: #475569; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card .avatar {
    width: 42px; height: 42px; border-radius: 50%; background: var(--primary);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.testimonial-card .author-info h4 { font-size: 0.9rem; font-weight: 600; }
.testimonial-card .author-info p { font-size: 0.8rem; color: var(--gray); }

/* ─── Car Selector Modal ─────────────────────── */
.car-selector-bar {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4185 100%); color: #fff;
    padding: 0.6rem 0; font-size: 0.85rem; text-align: center; cursor: pointer;
    transition: all 0.3s ease; position: relative; z-index: 999;
}
.car-selector-bar:hover { background: linear-gradient(135deg, #2a4185 0%, var(--primary) 100%); }
.car-selector-bar .container { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.car-selector-bar i { font-size: 1rem; }
.car-selector-bar .selected-car { font-weight: 700; }
.car-selector-bar .change-btn, .car-selector-bar .clear-btn { background: rgba(255,255,255,0.2); padding: 0.2rem 0.75rem; border-radius: 4px; font-size: 0.75rem; transition: background 0.2s; }
.car-selector-bar .change-btn:hover, .car-selector-bar .clear-btn:hover { background: rgba(255,255,255,0.3); }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 10000; display: none; align-items: center; justify-content: center;
    animation: fadeIn 0.25s ease;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff; border-radius: 16px; width: 90%; max-width: 520px;
    padding: 2.5rem; position: relative; animation: slideUp 0.35s ease;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    font-size: 1.3rem; cursor: pointer; color: var(--gray); transition: color 0.2s;
}
.modal-close:hover { color: var(--dark); }
.modal h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal p { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal .form-group { margin-bottom: 1.25rem; }
.modal .form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--dark); }
.modal .form-group select {
    width: 100%; padding: 0.85rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-family: inherit; font-size: 0.95rem; background: #fff; cursor: pointer;
    transition: border-color 0.2s;
}
.modal .form-group select:focus { outline: none; border-color: var(--primary); }

/* ─── Footer ─────────────────────────────────── */
.main-footer { background: #0f172a; color: #cbd5e1; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin: 1rem 0 1.5rem; color: #94a3b8; }
.footer-brand .footer-logo { height: 40px; margin-bottom: 0.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; background: rgba(255,255,255,0.05);
    color: #94a3b8; transition: all 0.3s ease; font-size: 0.95rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; position: relative; padding-bottom: 0.75rem; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: #94a3b8; font-size: 0.88rem; transition: all 0.2s; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.83rem; color: #64748b; }

/* ─── Grids ──────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ─── Animations ─────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .trust-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .section-header h2 { font-size: 1.75rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .trust-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── Mobile Nav Drawer ──────────────────────── */
.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 1.5rem;
    color: var(--dark); cursor: pointer; padding: 0.25rem;
}
@media (max-width: 991px) { .mobile-menu-btn { display: block; } }

.mobile-drawer {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: #fff; z-index: 10001; transition: right 0.35s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1); overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; }
.mobile-drawer-header img { height: 36px; }
.mobile-drawer-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray); }
.mobile-drawer-nav { padding: 1rem 0; }
.mobile-drawer-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.5rem; color: var(--dark); font-weight: 500; font-size: 0.95rem; transition: all 0.2s; }
.mobile-drawer-nav a:hover { background: #f1f5f9; color: var(--primary); }
.mobile-drawer-nav a i { width: 20px; text-align: center; color: var(--gray); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 10000; display: none; }
.drawer-overlay.open { display: block; }

/* ─── Misc Utilities ─────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
