/* =========================================================
   RoadBeat — automotive news
   Design tokens
   ========================================================= */
:root{
  --ink:#14181F;
  --ink-soft:#2B313B;
  --paper:#F7F7F5;
  --paper-alt:#EFEEE9;
  --white:#FFFFFF;
  --steel:#5B6472;
  --steel-light:#8A93A0;
  --line:#E1E1DC;
  --red:#D2232A;
  --red-dark:#9E1B21;
  --amber:#F2A900;
  --font-head:'Barlow Condensed', sans-serif;
  --font-body:'Source Sans 3', sans-serif;
  --container-max:1220px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
a:hover{color:var(--red);}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-head);
  font-weight:700;
  line-height:1.08;
  letter-spacing:.2px;
  margin:0;
  color:var(--ink);
}
p{margin:0 0 1rem;}
.container{max-width:var(--container-max);}
::selection{background:var(--red);color:#fff;}
:focus-visible{outline:3px solid var(--red);outline-offset:2px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important;}
}

/* =========================================================
   Utility bar
   ========================================================= */
.util-bar{
  background:var(--ink);
  color:#c9cdd3;
  font-size:.8rem;
}
.util-bar a{color:#c9cdd3;}
.util-bar a:hover{color:var(--amber);}
.util-bar .date{color:#8189d94d;}
.util-bar .divider{opacity:.35;padding:0 .5rem;}
.util-bar .social-links a{margin-left:.9rem;font-size:.85rem;}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  background:var(--white);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:1000;
  transition:box-shadow .2s ease;
}
.site-header.is-scrolled{box-shadow:0 4px 14px rgba(20,24,31,.08);}

.brand{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-family:var(--font-head);
  font-weight:700;
  font-size:2rem;
  letter-spacing:.5px;
  color:var(--ink);
  line-height:1;
}
.brand:hover{color:var(--ink);}
.brand .brand-bit{color:var(--red);}
.brand .brand-bar{
  display:inline-block;
  width:6px;height:26px;
  background:var(--red);
  transform:skewX(-12deg);
  margin-right:.15rem;
}

.navbar-nav{margin-left:auto;}
.navbar .nav-link{
  font-family:var(--font-head);
  font-size:1.05rem;
  font-weight:600;
  letter-spacing:.3px;
  color:var(--ink-soft);
  padding:1.6rem .85rem !important;
  position:relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active{color:var(--red);}
.navbar .nav-link.active::after{
  content:"";
  position:absolute;
  left:.85rem;right:.85rem;bottom:1.1rem;
  height:3px;
  background:var(--red);
}
.nav-search{
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  width:32px;height:32px;
  border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:.95rem;
}
.nav-search:hover{border-color:var(--red);color:var(--red);}

.navbar-toggler{
  border:0;
  padding:0;
  width:32px;height:24px;
  position:relative;
  background:none;
}
.navbar-toggler:focus{box-shadow:none;}
.navbar-toggler .bar{
  position:absolute;left:0;right:0;height:2.5px;background:var(--ink);
  transition:transform .25s ease, opacity .2s ease, top .25s ease;
}
.navbar-toggler .bar:nth-child(1){top:2px;}
.navbar-toggler .bar:nth-child(2){top:11px;}
.navbar-toggler .bar:nth-child(3){top:20px;}
.navbar-toggler[aria-expanded="true"] .bar:nth-child(1){top:11px;transform:rotate(45deg);}
.navbar-toggler[aria-expanded="true"] .bar:nth-child(2){opacity:0;}
.navbar-toggler[aria-expanded="true"] .bar:nth-child(3){top:11px;transform:rotate(-45deg);}

@media (max-width:991.98px){
  .navbar .nav-link{padding:.7rem 0 !important;}
  .navbar .nav-link.active::after{display:none;}
  .navbar-collapse{
    background:var(--white);
    border-top:1px solid var(--line);
    margin-top:1rem;
    padding:.5rem 0 1rem;
  }
}

/* =========================================================
   Section headings
   ========================================================= */
.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  border-bottom:3px solid var(--ink);
  margin-bottom:1.5rem;
  padding-bottom:.5rem;
}
.section-head h2{
  font-size:1.9rem;
  text-transform:uppercase;
}
.section-head .view-all{
  font-family:var(--font-head);
  font-weight:600;
  font-size:.95rem;
  color:var(--steel);
  white-space:nowrap;
}
.section-head .view-all:hover{color:var(--red);}
.section-tag{
  display:inline-block;
  font-family:var(--font-head);
  font-weight:600;
  font-size:.8rem;
  letter-spacing:.4px;
  color:var(--red);
  border:1px solid var(--red);
  padding:.15rem .55rem;
  border-radius:2px;
  margin-bottom:.6rem;
}

/* =========================================================
   Story cards
   ========================================================= */
.story-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
  height:100%;
  display:flex;
  flex-direction:column;
  transition:box-shadow .2s ease, transform .2s ease;
}
.story-card:hover{box-shadow:0 10px 26px rgba(20,24,31,.1);transform:translateY(-3px);}
.story-card .thumb{aspect-ratio:16/10;overflow:hidden;position:relative;background:var(--paper-alt);}
.story-card .thumb img{width:100%;height:100%;object-fit:cover;}
.story-card .cat-pill{
  position:absolute;top:.7rem;left:.7rem;
  background:var(--red);
  color:#fff;
  font-family:var(--font-head);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.3px;
  padding:.15rem .55rem;
  border-radius:2px;
}
.story-card .cat-pill.ev{background:var(--amber);color:var(--ink);}
.story-card .body{padding:1rem 1.1rem 1.2rem;flex:1;display:flex;flex-direction:column;}
.story-card h3{font-size:1.28rem;margin-bottom:.5rem;}
.story-card h3 a:hover{color:var(--red);}
.story-card .excerpt{color:var(--steel);font-size:.93rem;margin-bottom:.7rem;flex:1;}
.story-meta{
  font-size:.78rem;
  color:var(--steel-light);
  display:flex;
  gap:.6rem;
  align-items:center;
  margin-top:auto;
  border-top:1px solid var(--line);
  padding-top:.6rem;
}

/* compact list row (used in sidebars, trending) */
.story-row{
  display:flex;
  gap:.9rem;
  padding:.85rem 0;
  border-bottom:1px solid var(--line);
}
.story-row:last-child{border-bottom:0;}
.story-row .thumb{
  width:96px;min-width:96px;height:70px;
  border-radius:3px;overflow:hidden;background:var(--paper-alt);
}
.story-row .thumb img{width:100%;height:100%;object-fit:cover;}
.story-row h4{font-size:1.02rem;margin-bottom:.25rem;}
.story-row h4 a:hover{color:var(--red);}
.story-row .story-meta{border-top:0;padding-top:0;}

/* trending numbered list */
.trend-list{list-style:none;margin:0;padding:0;}
.trend-list li{
  display:flex;
  gap:1rem;
  align-items:flex-start;
  padding:.9rem 0;
  border-bottom:1px solid var(--line);
}
.trend-list li:last-child{border-bottom:0;}
.trend-num{
  font-family:var(--font-head);
  font-size:2rem;
  font-weight:700;
  color:var(--line);
  line-height:1;
  min-width:2.2rem;
}
.trend-list li:hover .trend-num{color:var(--red);}
.trend-list h4{font-size:1.02rem;}
.trend-list h4 a:hover{color:var(--red);}

/* =========================================================
   Hero
   ========================================================= */
.hero{padding:1.6rem 0 0;}
.hero-main{
  position:relative;
  border-radius:4px;
  overflow:hidden;
  aspect-ratio:16/10;
  background:var(--ink);
}
.hero-main img{width:100%;height:100%;object-fit:cover;opacity:.88;}
.hero-main .overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(20,24,31,0) 35%, rgba(20,24,31,.92) 100%);
}
.hero-main .content{
  position:absolute;left:0;right:0;bottom:0;
  padding:1.6rem 1.6rem 1.4rem;
  color:#fff;
}
.hero-main .cat-pill{
  background:var(--red);color:#fff;
  font-family:var(--font-head);font-weight:600;font-size:.78rem;
  padding:.2rem .6rem;border-radius:2px;display:inline-block;margin-bottom:.6rem;
}
.hero-main h1{font-size:2rem;color:#fff;margin-bottom:.5rem;}
@media(min-width:768px){.hero-main h1{font-size:2.5rem;}}
.hero-main .excerpt{color:#d7dae0;font-size:.98rem;max-width:640px;margin-bottom:0;}
.hero-side{display:flex;flex-direction:column;gap:1rem;height:100%;}
.hero-side .story-card{flex:1;}
.hero-side .story-card .thumb{aspect-ratio:16/9;}

/* =========================================================
   Ticker
   ========================================================= */
.ticker{
  background:var(--ink);
  color:#fff;
  overflow:hidden;
  white-space:nowrap;
  display:flex;
  align-items:center;
  margin-top:1.4rem;
}
.ticker .label{
  background:var(--red);
  font-family:var(--font-head);
  font-weight:700;
  letter-spacing:.4px;
  padding:.55rem 1.1rem;
  flex-shrink:0;
  font-size:.85rem;
  z-index: 1 !important;
}
.ticker-track{
  display:inline-flex;
  animation:ticker 32s linear infinite;
  padding-left:1rem;
}
.ticker:hover .ticker-track{animation-play-state:paused;}
.ticker-track span{margin-right:2.5rem;font-size:.9rem;color:#d7dae0;}
.ticker-track span::before{content:"•";color:var(--red);margin-right:.6rem;}
@keyframes ticker{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}

/* =========================================================
   EV spotlight band
   ========================================================= */
.ev-band{
  background:var(--ink);
  color:#fff;
  padding:3rem 0;
  margin:3rem 0;
}
.ev-band .section-head{border-color:rgba(255,255,255,.25);}
.ev-band .section-head h2{color:#fff;}
.ev-band .section-head .view-all{color:var(--amber);}
.ev-band .story-card{background:var(--ink-soft);border-color:rgba(255,255,255,.12);}
.ev-band .story-card h3, .ev-band .story-card .excerpt{color:#fff;}
.ev-band .story-card .excerpt{color:#b7bcc4;}
.ev-band .story-meta{color:#8b92a0;border-color:rgba(255,255,255,.12);}

/* =========================================================
   Spy shots strip
   ========================================================= */
.spy-strip{display:flex;gap:1rem;overflow-x:auto;padding-bottom:.5rem;scroll-snap-type:x mandatory;}
.spy-strip::-webkit-scrollbar{height:8px;}
.spy-strip::-webkit-scrollbar-thumb{background:var(--line);border-radius:4px;}
.spy-card{
  min-width:260px;max-width:260px;
  scroll-snap-align:start;
  border-radius:4px;overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
}
.spy-card .thumb{aspect-ratio:4/3;background:var(--paper-alt);position:relative;overflow:hidden;}
.spy-card .thumb img{width:100%;height:100%;object-fit:cover;filter:grayscale(.15);}
.spy-card .thumb .tag{
  position:absolute;top:.6rem;left:.6rem;background:var(--ink);color:#fff;
  font-family:var(--font-head);font-size:.7rem;font-weight:600;padding:.15rem .5rem;border-radius:2px;
}
.spy-card .body{padding:.8rem .9rem;}
.spy-card h4{font-size:.98rem;}

/* =========================================================
   Video cards
   ========================================================= */
.video-card .thumb{position:relative;}
.video-card .play-btn{
  position:absolute;inset:0;margin:auto;
  width:52px;height:52px;
  background:rgba(20,24,31,.75);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:1.1rem;
  transition:background .2s ease, transform .2s ease;
}
.video-card:hover .play-btn{background:var(--red);transform:scale(1.08);}
.video-card .duration{
  position:absolute;bottom:.6rem;right:.6rem;
  background:rgba(20,24,31,.85);color:#fff;
  font-size:.72rem;padding:.1rem .45rem;border-radius:2px;
}

/* =========================================================
   Newsletter band
   ========================================================= */
.newsletter-band{
  background:var(--red);
  color:#fff;
  padding:2.6rem 0;
}
.newsletter-band h2{color:#fff;font-size:1.8rem;}
.newsletter-band p{color:#ffe2e2;margin-bottom:0;}
.newsletter-form .form-control{
  border-radius:3px;border:0;padding:.7rem .9rem;
}
.newsletter-form .btn{
  background:var(--ink);color:#fff;border:0;
  font-family:var(--font-head);font-weight:600;letter-spacing:.3px;
  padding:.7rem 1.4rem;border-radius:3px;
}
.newsletter-form .btn:hover{background:#000;}

/* =========================================================
   Buttons (generic)
   ========================================================= */
.btn-brand{
  background:var(--red);color:#fff;border:0;
  font-family:var(--font-head);font-weight:600;letter-spacing:.3px;
  padding:.65rem 1.5rem;border-radius:3px;
  display:inline-block;
}
.btn-brand:hover{background:var(--red-dark);color:#fff;}
.btn-outline-brand{
  background:transparent;color:var(--ink);border:1.5px solid var(--ink);
  font-family:var(--font-head);font-weight:600;letter-spacing:.3px;
  padding:.6rem 1.45rem;border-radius:3px;display:inline-block;
}
.btn-outline-brand:hover{background:var(--ink);color:#fff;}

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-header{
  background:var(--ink);
  color:#fff;
  padding:2.6rem 0 2rem;
  margin-bottom:2.5rem;
}
.page-header .eyebrow{color:var(--amber);font-family:var(--font-head);font-weight:600;font-size:.9rem;}
.page-header h1{color:#fff;font-size:2.4rem;text-transform:uppercase;margin-top:.3rem;}
.page-header p{color:#c3c8d1;max-width:640px;margin-top:.6rem;margin-bottom:0;}
.breadcrumb-row{font-size:.85rem;color:#9aa1ac;margin-top:1rem;}
.breadcrumb-row a{color:#c3c8d1;}
.breadcrumb-row a:hover{color:var(--amber);}

/* filter chips */
.filter-row{display:flex;flex-wrap:wrap;gap:.55rem;margin-bottom:2rem;}
.filter-row a{
  background:#fff;border:1px solid var(--line);color:var(--steel);
  font-family:var(--font-head);font-weight:600;font-size:.9rem;
  padding:.4rem 1rem;border-radius:20px;
}
.filter-row a.active,.filter-row a:hover{
  background:var(--ink);color:#fff;border-color:var(--ink);
}

/* pagination */
.pagination .page-link{
  color:var(--ink);border-color:var(--line);font-family:var(--font-head);font-weight:600;
}
.pagination .page-item.active .page-link{background:var(--red);border-color:var(--red);}

/* =========================================================
   Sidebar widgets
   ========================================================= */
.widget{background:#fff;border:1px solid var(--line);border-radius:4px;padding:1.3rem;margin-bottom:1.6rem;}
.widget h3{font-size:1.25rem;text-transform:uppercase;border-bottom:3px solid var(--ink);padding-bottom:.5rem;margin-bottom:.9rem;}
.tag-cloud{display:flex;flex-wrap:wrap;gap:.5rem;}
.tag-cloud a{
  border:1px solid var(--line);border-radius:20px;padding:.3rem .85rem;font-size:.85rem;color:var(--steel);
}
.tag-cloud a:hover{background:var(--ink);color:#fff;border-color:var(--ink);}

/* =========================================================
   Reviews page — rating
   ========================================================= */
.rating-badge{
  width:52px;height:52px;border-radius:50%;
  background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  font-family:var(--font-head);font-weight:700;
  position:absolute;top:.7rem;right:.7rem;
}
.rating-badge .num{font-size:1.15rem;line-height:1;}
.rating-badge .out{font-size:.55rem;color:#aeb4bd;}

/* =========================================================
   About / Contact
   ========================================================= */
.stat-block{text-align:center;padding:1.4rem 1rem;border-right:1px solid var(--line);}
.stat-block:last-child{border-right:0;}
.stat-block .num{font-family:var(--font-head);font-size:2.4rem;font-weight:700;color:var(--red);line-height:1;}
.stat-block .label{color:var(--steel);font-size:.9rem;margin-top:.3rem;}

.team-card{text-align:center;}
.team-card img{border-radius:4px;margin-bottom:.8rem;aspect-ratio:1/1;object-fit:cover;}
.team-card h4{font-size:1.1rem;}
.team-card .role{color:var(--red);font-size:.85rem;font-family:var(--font-head);font-weight:600;}

.contact-info-item{display:flex;gap:.9rem;margin-bottom:1.4rem;}
.contact-info-item .icon{
  width:44px;height:44px;border-radius:50%;background:var(--paper-alt);
  display:flex;align-items:center;justify-content:center;color:var(--red);flex-shrink:0;
}
.form-control,.form-select{
  border:1px solid var(--line);border-radius:3px;padding:.65rem .9rem;
}
.form-control:focus,.form-select:focus{
  border-color:var(--red);box-shadow:0 0 0 .2rem rgba(210,35,42,.12);
}
.form-label{font-family:var(--font-head);font-weight:600;font-size:.92rem;letter-spacing:.2px;}

/* =========================================================
   Legal pages
   ========================================================= */
.legal-content h2{font-size:1.5rem;margin-top:2rem;margin-bottom:.8rem;}
.legal-content h2:first-child{margin-top:0;}
.legal-content p,.legal-content li{color:var(--ink-soft);}
.legal-content ul{padding-left:1.2rem;}
.legal-updated{color:var(--steel);font-size:.9rem;}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{background:var(--ink);color:#c3c8d1;padding:3.5rem 0 0;margin-top:3.5rem;}
.site-footer h5{color:#fff;font-family:var(--font-head);font-size:1.15rem;text-transform:uppercase;margin-bottom:1.1rem;}
.site-footer p{color:#9aa1ac;}
.footer-links{list-style:none;padding:0;margin:0;}
.footer-links li{margin-bottom:.6rem;}
.footer-links a{color:#c3c8d1;font-size:.93rem;}
.footer-links a:hover{color:var(--amber);}
.footer-social a{
  width:36px;height:36px;border-radius:50%;border:1px solid #3a414c;
  display:inline-flex;align-items:center;justify-content:center;
  margin-right:.5rem;color:#c3c8d1;
}
.footer-social a:hover{background:var(--red);border-color:var(--red);color:#fff;}
.footer-bottom{border-top:1px solid #2a303a;margin-top:2.5rem;padding:1.2rem 0;font-size:.85rem;color:#8b92a0;}
.footer-bottom a{color:#8b92a0;}
.footer-bottom a:hover{color:var(--amber);}

/* back to top */
.back-to-top{
  position:fixed;right:1.2rem;bottom:1.2rem;
  width:44px;height:44px;border-radius:50%;
  background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
  z-index:999;
  border:0;
}
.back-to-top.show{opacity:1;visibility:visible;transform:translateY(0);}
.back-to-top:hover{background:var(--red);color:#fff;}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width:767.98px){
  .hero-main h1{font-size:1.5rem;}
  .section-head h2{font-size:1.5rem;}
  .stat-block{border-right:0;border-bottom:1px solid var(--line);}
  .newsletter-band .col-md-auto{margin-top:1rem;}
}
