/* AutoMart Global Typography & Color System V6.2
   Scope: frontend + admin typography, color tokens and readability.
   Design goal: premium automotive marketplace, consistent across desktop/tablet/mobile. */

:root{
  --am-green:#0F8F55;
  --am-green-dark:#087445;
  --am-green-deep:#075E3A;
  --am-green-light:#EAF7F0;
  --am-text:#111827;
  --am-text-strong:#0B1220;
  --am-text-muted:#667085;
  --am-text-soft:#98A2B3;
  --am-bg:#FFFFFF;
  --am-bg-soft:#F7F9F8;
  --am-bg-muted:#F2F4F3;
  --am-dark:#101815;
  --am-dark-soft:#17211D;
  --am-border:#E4E7EC;
  --am-border-dark:#D0D5DD;
  --am-success:#12B76A;
  --am-warning:#F79009;
  --am-danger:#D92D20;
  --am-info:#1570EF;
  --am-gold:#C89B3C;

  /* map legacy project tokens to the new system */
  --green:var(--am-green);
  --green2:var(--am-green-dark);
  --green3:var(--am-green-light);
  --dark:var(--am-dark);
  --ink:var(--am-text);
  --muted:var(--am-text-muted);
  --line:var(--am-border);
  --soft:var(--am-bg-soft);
}

html,body,button,input,select,textarea{
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
body{
  color:var(--am-text);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,input,select,textarea{font-size:14px;font-weight:500;color:var(--am-text)}
input::placeholder,textarea::placeholder{color:var(--am-text-soft)}

h1,h2,h3,h4,h5,h6{color:var(--am-text-strong);font-family:inherit;line-height:1.2;letter-spacing:-.02em}
h1{font-weight:800}h2{font-weight:800}h3{font-weight:700}h4,h5,h6{font-weight:700}

/* Header */
.brand{font-size:24px;font-weight:800;letter-spacing:-.03em;color:var(--am-text-strong)}
.brandmark{background:var(--am-green);font-weight:800}
.desktop-nav a{font-size:14px;font-weight:600;color:#344054;letter-spacing:-.005em}
.desktop-nav a:hover{color:var(--am-green)}
.nav-actions{font-size:14px;font-weight:600}.login-link{font-weight:600}
.btn,.btn-sm{font-family:inherit;font-size:14px;font-weight:700;letter-spacing:-.005em}

/* Hero */
.hero-copy h1{font-size:56px;font-weight:800;line-height:1.03;letter-spacing:-.045em}
.hero-copy h2{font-size:19px;font-weight:700;letter-spacing:-.015em}
.hero-copy>p{font-size:15px;font-weight:400;line-height:1.6}
.search-tabs button{font-size:13px;font-weight:700}.hero-search label span{font-size:12px;font-weight:600}
.hero-search select{font-size:14px;font-weight:500}.hero-search-btn{font-size:14px;font-weight:700}
.more-filters,.hero-trust{font-size:12px;font-weight:600}

/* General sections */
.section-head h2{font-size:32px;font-weight:800;letter-spacing:-.035em}
.section-head>a{font-size:13px;font-weight:700}.mini-tabs button{font-size:12px;font-weight:700}
.category-row b,.make-row b{font-size:12px;font-weight:700;color:#344054}
.marketing-card h3{font-size:28px;font-weight:800}.marketing-card p{font-size:14px;line-height:1.55}
.marketing-benefits{font-size:12px;font-weight:600}.trust-card span{font-size:18px;font-weight:800}.trust-card b,.trust-card small{font-size:12px}

/* Standard listing cards */
.vehicle-body h3{font-size:16px;font-weight:700;line-height:1.3;color:var(--am-text-strong)}
.price{font-size:21px;font-weight:800;letter-spacing:-.025em;color:var(--am-green-dark)}
.vehicle-facts{font-size:12px;font-weight:500;color:var(--am-text-muted)}
.seller-line{font-size:12px;font-weight:600}.badge{font-size:12px;font-weight:700}

/* Premium homepage vehicle cards */
.premium-featured-kicker{font-size:12px;font-weight:700;letter-spacing:2.4px}
.premium-featured-head h2{font-size:40px;font-weight:800;letter-spacing:-.04em;color:var(--am-text-strong)}
.premium-featured-head p{font-size:14px;color:var(--am-text-muted)}
.premium-view-all{font-size:13px!important;font-weight:700}
.premium-tabs button{font-size:12px!important;font-weight:700!important}
.premium-badge{font-size:12px;font-weight:700}
.premium-photo-meta{font-size:12px}
.premium-title-copy h3{font-size:16px;font-weight:700;line-height:1.3;color:var(--am-text-strong)}
.premium-title-copy p{font-size:12px;color:var(--am-text-muted)}
.premium-condition{font-size:12px;font-weight:700}
.premium-price{font-size:24px;font-weight:800;letter-spacing:-.03em;color:var(--am-green-dark)}
.premium-monthly{font-size:12px;font-weight:500;color:var(--am-text-muted)}
.premium-monthly span{font-size:12px}
.premium-facts{font-size:12px;font-weight:500;color:var(--am-text-muted)}
.premium-dealer-row strong{font-size:12px;font-weight:600}.premium-dealer-row small{font-size:12px}
.premium-card-actions a{font-size:13px;font-weight:700}
.premium-benefit-strip strong{font-size:12px;font-weight:700}.premium-benefit-strip small{font-size:12px}

/* Marketplace / filters */
.market-title-row h1{font-size:42px;font-weight:800;letter-spacing:-.04em}
.market-title-row p{font-size:14px}.view-tools label,.filter-title a{font-size:12px}
.view-btn{font-size:13px;font-weight:700}.filters,.filters label{font-size:13px}
.market-searchbar input{font-size:14px}

/* Vehicle detail */
.vehicle-summary h1,.title-actions h1{font-size:32px;font-weight:800;letter-spacing:-.035em}
.price-line strong{font-size:28px;font-weight:800;color:var(--am-green-dark)}
.summary-facts,.summary-meta,.summary-location{font-size:13px;color:var(--am-text-muted)}
.contact-row .btn{font-size:14px}.detail-tabs{font-size:13px;font-weight:600}
.detail-copy h2{font-size:24px;font-weight:800}.detail-copy p,.key-info,.finance-box{font-size:14px}
.finance-box>strong{font-size:22px;font-weight:800}

/* Footer */
.footer h4{font-size:13px;font-weight:700}.footer a,.footer p{font-size:12.5px;line-height:1.6}
.footer-trust,.footer-bottom{font-size:12px}
.mobile-bottom small{font-size:12px;font-weight:600}

/* Admin readability */
.admin-brand b{font-size:16px;font-weight:800}.admin-brand small{font-size:12px}.admin-side>small{font-size:12px;font-weight:700;letter-spacing:.055em}
.admin-side>a{font-size:13px;font-weight:600;line-height:1.35}.admin-side>a em{font-size:12px;font-weight:700}
.admin-search input{font-size:13px}.admin-toolbar-actions{font-size:13px}.notification{font-size:12px;font-weight:700}
.admin-title-row h1{font-size:32px;font-weight:800;letter-spacing:-.035em}.admin-title-row p{font-size:14px;line-height:1.5}
.date-btn{font-size:13px;font-weight:600}.kpi small{font-size:12px;font-weight:600}.kpi strong{font-size:24px;font-weight:800}.kpi span{font-size:12px;line-height:1.4}
.dash-card h2{font-size:17px;font-weight:700}.dash-card-head select{font-size:12px}.legend{font-size:12px}
.quick-card a:not(.btn){font-size:12.5px;font-weight:600}.table-wrap table{font-size:12.5px;line-height:1.45}.table-wrap th{font-size:12px;font-weight:700}.status{font-size:12px;font-weight:700}.recent-users>div{font-size:12.5px}
.admin-page button,.admin-page input,.admin-page select,.admin-page textarea{font-size:13px}
.admin-page .btn,.admin-page .btn-sm{font-size:13px}

/* Color polish */
a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease}
.btn{background:var(--am-green)}.btn:hover{background:var(--am-green-dark)}
.badge-featured,.premium-badge.featured{background:var(--am-success)}
.verified-mini,.dealer-tick{background:var(--am-success)}
.vehicle-card,.premium-auto-card,.filters,.seller-profile-card,.finance-box,.dash-card,.kpi{border-color:var(--am-border)}

@media(max-width:1180px){
  .hero-copy h1{font-size:48px}
  .section-head h2{font-size:29px}
  .premium-featured-head h2{font-size:34px}
  .market-title-row h1{font-size:36px}
}

@media(max-width:720px){
  body{font-size:14px}
  .brand{font-size:20px}
  .hero-copy h1{font-size:34px;line-height:1.08;letter-spacing:-.035em}
  .hero-copy h2{font-size:16px}.hero-copy>p{font-size:14px}
  .section-head h2{font-size:24px}.section-head>a{font-size:12px}
  .premium-featured-head h2{font-size:28px}.premium-featured-head p{font-size:13px}
  .premium-title-copy h3{font-size:15px}.premium-price{font-size:21px}.premium-facts{font-size:12px}
  .premium-card-actions a{font-size:12px}.premium-dealer-row strong{font-size:12px}
  .market-title-row h1{font-size:30px}.vehicle-summary h1,.title-actions h1{font-size:27px}
  .detail-copy h2{font-size:21px}.footer h4{font-size:13px}.footer a,.footer p{font-size:12px}
  .admin-title-row h1{font-size:27px}
  .admin-side>a{font-size:12.5px}.table-wrap table{font-size:12px}.status{font-size:12px}
}
