/* ============================================
   impresoradrivers.com — Design System
   ============================================ */

/* === VARIABLES === */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #059669;
  --success-dark: #047857;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #0891b2;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --transition: .18s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 400; color: var(--gray-700); background: var(--gray-50); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--gray-900); font-weight: 600; line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; } h5 { font-size: .92rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.25rem; }
ol { padding-left: 1.5rem; }
ol li { margin-bottom: .35rem; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 1rem 0; }
small, .small { font-size: .85rem; }
.lead { font-size: 1.05rem; font-weight: 400; }
.font-weight-bold { font-weight: 600; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
code { background: var(--gray-100); padding: 2px 6px; border-radius: 3px; font-size: .85em; color: #b91c1c; }

/* === GRID === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
[class*="col-"] { padding: 0 8px; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media(min-width:576px) {
  .col-sm-2 { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-sm-4 { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media(min-width:768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}
@media(min-width:992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}
@media(min-width:1200px) {
  .col-xl-2 { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
}

/* === SPACING === */
.m-0 { margin: 0; } .m-1 { margin: .25rem; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.my-2 { margin-top: .5rem; margin-bottom: .5rem; } .my-3 { margin-top: 1rem; margin-bottom: 1rem; } .my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mx-2 { margin-left: .5rem; margin-right: .5rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: .5rem; }
.p-2 { padding: .5rem; } .p-3 { padding: 1rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; } .py-2 { padding-top: .5rem; padding-bottom: .5rem; } .py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* === DISPLAY & FLEX === */
.d-none { display: none; } .d-block { display: block; } .d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.align-self-center { align-self: center; }
.flex-shrink-0 { flex-shrink: 0; }
.h-100 { height: 100%; }
.img-fluid { max-width: 100%; height: auto; }
.sticky-top { position: sticky; top: 12px; z-index: 100; }

/* === TEXT === */
.text-center { text-align: center; } .text-left { text-align: left; }
.text-muted { color: var(--gray-500); }
.text-dark { color: var(--gray-900); } .text-dark:hover { color: var(--gray-900); }
.text-white { color: #fff; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-decoration-none, .text-decoration-none:hover { text-decoration: none; }
.text-white a { color: rgba(255,255,255,.7) !important; }
.text-white a:hover { color: #fff !important; text-decoration: none; }
.border-bottom { border-bottom: 1px solid var(--gray-200); }
.rounded { border-radius: var(--radius-sm); }

/* === TOPBAR === */
.topbar { background: var(--gray-900); padding: 0; position: sticky; top: 0; z-index: 900; }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 56px; }
.topbar-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.topbar-logo img { display: block; height: 26px; width: auto; }
.topbar-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.topbar-search form { display: flex; align-items: center; position: relative; }
.topbar-search input[type="search"] {
  width: 100%; padding: 7px 14px 7px 36px; border: none; border-radius: 8px;
  font-size: .88rem; background: rgba(255,255,255,.1); color: #fff;
  outline: none; font-family: inherit; transition: background var(--transition);
}
.topbar-search input[type="search"]::placeholder { color: rgba(255,255,255,.45); }
.topbar-search input[type="search"]:focus { background: rgba(255,255,255,.18); }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); fill: rgba(255,255,255,.45); pointer-events: none; }

/* Autocomplete */
#search-results { list-style: none; margin: 4px 0 0; padding: 0; position: absolute; left: 0; right: 0; z-index: 999; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 380px; overflow-y: auto; }
#search-results li { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--gray-100); font-size: .85rem; color: var(--gray-700); transition: background var(--transition); }
#search-results li:last-child { border-bottom: none; }
#search-results li:hover, #search-results li.active { background: var(--primary-light); color: var(--primary-dark); }

/* === BRAND BAR === */
.brand-bar { background: #fff; border-bottom: 1px solid var(--gray-200); }
.brand-bar-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 0; }
.brand-bar-inner::-webkit-scrollbar { display: none; }
.brand-bar-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 14px; font-size: .8rem; font-weight: 500; color: var(--gray-700); text-decoration: none !important; border-radius: 20px; white-space: nowrap; transition: all var(--transition); }
.brand-bar-link:hover { color: var(--primary); background: var(--primary-light); }
.brand-bar-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.brand-bar-more { position: relative; display: inline-flex; }

/* === DROPDOWN === */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 170px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 4px 0; z-index: 1000; margin-top: 4px; }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: .4rem .85rem; font-size: .82rem; color: var(--gray-700); text-decoration: none !important; transition: background var(--transition); }
.dropdown-item:hover { background: var(--primary-light); color: var(--primary-dark); }

/* === CARDS === */
.card { position: relative; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card a { color: inherit; text-decoration: none; }
.card a:hover { text-decoration: none; color: inherit; }
.card .card-img-top { aspect-ratio: 4/3; object-fit: contain; background: #fff; padding: 8px; width: 100%; }
.card .card-body { padding: 8px 10px 12px; }
.card .card-title { font-size: .8rem; font-weight: 500; line-height: 1.35; margin: 0; color: var(--gray-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-header { padding: 10px 14px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); font-weight: 500; font-size: .9rem; }
.card .card-brand { position: absolute; top: 0; left: 0; background: var(--primary); color: #fff !important; font-size: .62rem; font-weight: 600; padding: 3px 10px; border-radius: 0 0 var(--radius-sm) 0; text-decoration: none !important; z-index: 1; letter-spacing: .03em; text-transform: uppercase; }
.card .card-brand:hover { background: var(--primary-dark); }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 500; font-size: .85rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: all var(--transition); text-decoration: none !important; line-height: 1.5; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 5px 12px; font-size: .78rem; }
.btn-lg { padding: 11px 24px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); color: #fff !important; }
.btn-success { background: var(--success); color: #fff !important; }
.btn-success:hover { background: var(--success-dark); color: #fff !important; }
.btn-warning { background: var(--warning); color: #fff !important; }
.btn-warning:hover { background: #d97706; color: #fff !important; }
.btn-outline-secondary { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-info { background: transparent; border-color: var(--info); color: var(--info); }
.btn-outline-info:hover { background: var(--info); color: #fff; }
.btn-link { background: none; border: none; color: var(--primary); padding: 0; text-decoration: underline !important; }
.btn-1 { background: var(--gray-900); color: #fff !important; }
.btn-1:hover { background: var(--primary-dark); color: #fff !important; }

/* === BADGES === */
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: .72rem; font-weight: 600; line-height: 1.3; }
.badge-primary { background: var(--primary); color: #fff; }
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-secondary { background: var(--gray-100); color: var(--gray-700); }

/* === TABLES === */
.table { width: 100%; border-collapse: collapse; font-size: .85rem; background: #fff; }
.table th, .table td { padding: .6rem .75rem; text-align: left; vertical-align: middle; }
.table thead th { background: var(--gray-50); border-bottom: 2px solid var(--gray-200); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); }
.table tbody tr { border-bottom: 1px solid var(--gray-100); }
.table tbody tr:last-child { border-bottom: none; }
.table-sm th, .table-sm td { padding: .35rem .5rem; }
.table-bordered { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.table-bordered th, .table-bordered td { border: 1px solid var(--gray-100); }
.table-bordered thead th { border-bottom-color: var(--gray-200); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.table-wrap .table { margin: 0; }
.table-wrap .table-bordered { border: none; }

/* === TABS === */
.nav { display: flex; list-style: none; padding: 0; margin: 0; }
.nav-tabs { border-bottom: 2px solid var(--gray-200); gap: 0; flex-wrap: wrap; }
.nav-tabs .nav-item { margin-bottom: -2px; }
.nav-tabs .nav-link { display: flex; align-items: center; gap: 6px; padding: .5rem .9rem; font-size: .85rem; font-weight: 500; color: var(--gray-500); border-bottom: 2px solid transparent; transition: all var(--transition); cursor: pointer; text-decoration: none; background: none; }
.nav-tabs .nav-link:hover { color: var(--primary); }
.nav-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-tabs .nav-link .os-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; }
.nav-tabs .nav-link.active .os-icon { opacity: 1; }
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active, .tab-content > .tab-pane.show { display: block; }

/* === PAGINATION === */
.pagination { display: flex; gap: 4px; justify-content: center; list-style: none; padding: 2rem 0; margin: 0; flex-wrap: wrap; }
.page-item .page-link { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); color: var(--gray-700); font-size: .85rem; text-decoration: none; background: #fff; transition: all .15s; }
.page-item .page-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.page-item.active .page-link { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === BREADCRUMB === */
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; padding: .75rem 0 0; margin: 0 0 .75rem; font-size: .8rem; background: none; gap: 4px; }
.breadcrumb-item a { color: var(--gray-500); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--gray-300); margin-right: 4px; }
.breadcrumb-item.active { color: var(--gray-900); font-weight: 500; }

/* === ALERTS === */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .88rem; }
.alert-info { background: var(--primary-light); color: #1e40af; }
.alert-light { background: var(--gray-50); color: var(--gray-700); border: 1px solid var(--gray-200); }

/* === COLLAPSE === */
.collapse { display: none; }
.collapse.show { display: block; }

/* === PROGRESS === */
.progress { background: var(--gray-200); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; transition: width 1s linear; }
.bg-success { background: var(--success) !important; }

/* === FORMS === */
.form-control { display: block; width: 100%; padding: .5rem .75rem; font-size: .9rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-family: inherit; transition: border-color var(--transition); background: #fff; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* === MEDIA OBJECT === */
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1; min-width: 0; }

/* === FOOTER === */
footer { background: var(--gray-900); color: rgba(255,255,255,.5); font-size: .88rem; }
footer h5 { color: #fff; margin-bottom: .6rem; font-size: .9rem; }
footer p { color: rgba(255,255,255,.5); }
footer a { color: rgba(255,255,255,.6); transition: color var(--transition); }
footer a:hover { color: #fff; text-decoration: none; }
footer ul li { margin-bottom: .2rem; }
footer hr { border-color: rgba(255,255,255,.08); }

/* === HERO STATS === */
.hero-stats { text-align: center; padding: 1.25rem 0 .5rem; }
.hero-stats h1 { margin-bottom: .25rem; }
.hero-stats p { color: var(--gray-500); font-size: .88rem; margin: 0; }

/* === BRAND STRIP (homepage) === */
.brand-strip { padding: .75rem 0; }
.brand-card { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: var(--radius); background: #fff; border: 1px solid var(--gray-200); text-decoration: none !important; color: var(--gray-900); transition: all var(--transition); }
.brand-card:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--primary); transform: translateY(-2px); }
.brand-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.brand-card strong { font-size: .78rem; }
.brand-card small { font-size: .68rem; }

/* === SEO TEXT === */
.seo-text { background: #fff; border-radius: var(--radius); padding: 1.25rem; margin-top: 1.25rem; border: 1px solid var(--gray-200); }
.seo-text h2 { font-size: 1.1rem; margin-top: .25rem; }
.seo-text p { color: var(--gray-500); font-size: .88rem; }

/* === MODEL PAGE === */
.model-hero { display: flex; gap: 20px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 1.25rem; border: 1px solid var(--gray-200); }
.model-hero-img { flex-shrink: 0; width: 140px; }
.model-hero-img img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.model-hero-info { flex: 1; min-width: 0; }
.model-hero-info h1 { margin-bottom: .5rem; font-size: 1.35rem; }
.model-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-tag { display: inline-block; padding: 3px 10px; background: var(--gray-100); color: var(--gray-700); border-radius: 20px; font-size: .72rem; font-weight: 500; text-decoration: none !important; transition: all var(--transition); }
a.spec-tag:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.spec-free { background: var(--success-light); color: var(--success-dark); font-weight: 600; }

/* CTA box */
.cta-box { background: var(--primary-light); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .75rem 1rem; }

/* === SIDEBAR === */
.sidebar-box { border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; padding: 14px; margin-bottom: 12px; }
.sidebar-title { font-weight: 600; font-size: .85rem; color: var(--gray-900); margin-bottom: .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--primary); display: flex; align-items: center; gap: 6px; }
.sidebar-link { padding: 6px 0; border-bottom: 1px solid var(--gray-100); font-size: .82rem; }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link a { color: var(--gray-700); text-decoration: none; display: block; transition: color var(--transition), padding var(--transition); }
.sidebar-link a:hover { color: var(--primary); padding-left: 4px; text-decoration: none; }

/* === DOWNLOAD PAGE === */
.download-card { max-width: 460px; margin: 1.5rem auto; padding: 2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center; border: 1px solid var(--gray-200); }
.trust-signals { display: flex; flex-direction: column; gap: 5px; max-width: 280px; margin: 1rem auto 0; font-size: .76rem; color: var(--gray-500); text-align: left; }
.trust-signals span { display: flex; align-items: center; gap: 6px; }

/* === FAQ === */
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 6px; overflow: hidden; background: #fff; }
.faq-question { width: 100%; text-align: left; padding: 12px 16px; background: none; border: none; cursor: pointer; font-weight: 500; font-size: .88rem; color: var(--gray-900); display: flex; justify-content: space-between; align-items: center; font-family: inherit; transition: background var(--transition); }
.faq-question:hover { background: var(--gray-50); }
.faq-question::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--gray-500); border-bottom: 2px solid var(--gray-500); transform: rotate(45deg); flex-shrink: 0; margin-left: 12px; transition: transform .2s; }
.faq-question.active::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 16px 14px; display: none; font-size: .88rem; color: var(--gray-500); line-height: 1.65; }
.faq-answer.show { display: block; }

/* === ANIMATIONS === */
.fade-in { animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

/* === SCROLL TO TOP === */
.scroll-top { position: fixed; bottom: 20px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--gray-900); color: #fff; border: none; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transition: opacity .3s, background .15s; z-index: 990; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.scroll-top.visible { opacity: .8; }
.scroll-top:hover { opacity: 1; background: var(--primary); }

/* === ADS === */
.adsbygoogle { display: flex; justify-content: center; align-items: center; min-height: 250px; }

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .topbar-search { max-width: 260px; }
  .topbar-logo img { height: 24px; }
}
@media (max-width: 767px) {
  h1 { font-size: 1.3rem; }
  .card .card-img-top { aspect-ratio: 1/1; }
  .brand-card { padding: 8px 4px; }
  .brand-icon { width: 34px; height: 34px; font-size: 1rem; }
  .model-hero { flex-direction: column; align-items: center; text-align: center; padding: 16px; }
  .model-hero-img { width: 100px; }
  .model-hero-info h1 { font-size: 1.2rem; }
  .model-specs { justify-content: center; }
  .table-wrap { margin: 0 -4px; }
  .sidebar-box { margin-top: 1rem; }
  .download-card { padding: 1.25rem; margin: 1rem auto; }
  .trust-signals { text-align: center; align-items: center; }
}
@media (max-width: 600px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 8px 0; justify-content: center; }
  .topbar-logo { margin: 0 auto; }
  .topbar-search { flex-basis: 100%; max-width: 100%; margin-left: 0; margin-top: 6px; }
}
