/*
Theme Name: Boutique Motor Blog
Theme URI: https://prestashopwebdesign.com/bm/blog/
Author: PWD
Author URI: https://prestashopwebdesign.com/
Description: Editorial WordPress theme matching the Boutique Motor PrestaShop storefront.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: boutiquemotor-blog
*/

:root {
  --white: #ffffff;
  --off-white: #f7f6f4;
  --light-grey: #f0efed;
  --mid-grey: #e2e1de;
  --border: #e2e1de;
  --text: #111111;
  --text-mid: #444444;
  --text-light: #888888;
  --dark: #0e0e0e;
  --dark-2: #181818;
  --dark-3: #242424;
  --yellow: #FFF651;
  --yellow-hover: #E6DE2E;
  --yellow-ink: #A67C00;
  --radius: 0;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.bm-body {
  margin: 0;
  font-family: Barlow, sans-serif;
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font-family: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bm-wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.bm-header { background: #fff; }
.util-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.util-bar-inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-mid);
}
.util-usps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.util-sep { color: #c9c6c0; }
.util-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--yellow);
  vertical-align: middle;
}
.util-contact { display: flex; align-items: center; gap: 14px; }
.util-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.util-contact a:hover { color: var(--yellow-ink); }

.bm-head-shell { background: #fff; border-bottom: 1px solid var(--border); }
.header-main {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  height: 84px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 56px; width: auto; display: block; filter: invert(1); }
.header-search { position: relative; }
.header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9375rem;
  padding: 11px 16px 11px 44px;
  outline: none;
}
.header-search input:focus { border-color: #111; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-account,
.header-cart,
.mobile-burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: #111;
  text-decoration: none;
}
.header-cart { position: relative; }
.header-cart span {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.mobile-burger { display: none; cursor: pointer; }

.site-nav { border-top: 1px solid var(--border); }
.site-nav-inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.site-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 18px;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.is-current { color: var(--yellow-ink); }
.site-nav a.is-accent { color: var(--yellow-ink); }

.bm-mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.bm-mobile-nav.is-open { display: block; }
.bm-mobile-nav a {
  display: block;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bm-hero {
  background: var(--dark);
  color: #fff;
  padding: 72px 0 68px;
}
.bm-hero__kicker {
  margin: 0 0 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: 0.82rem;
}
.bm-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.bm-hero h1 em {
  font-style: italic;
  color: var(--yellow);
  text-transform: none;
}
.bm-hero p {
  max-width: 42rem;
  margin: 18px 0 0;
  color: #c7c7c2;
  font-size: 1.05rem;
  line-height: 1.6;
}

.bm-section { padding: 56px 0 72px; }
.bm-section--soft { background: var(--off-white); }
.bm-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.bm-eyebrow {
  margin: 0 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-ink);
  font-size: 0.78rem;
}
.bm-section h2,
.bm-page-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.bm-section h2 em { font-style: italic; color: var(--text-light); text-transform: none; }

.bm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.bm-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(17,17,17,0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.bm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17,17,17,0.10);
}
.bm-card__media {
  aspect-ratio: 16 / 10;
  background: var(--light-grey);
  overflow: hidden;
}
.bm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bm-card__body { padding: 18px 18px 22px; }
.bm-card__meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-ink);
}
.bm-card h3 {
  margin: 0 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.bm-card p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.55;
}

.bm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}
.bm-pagination a,
.bm-pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}
.bm-pagination .current,
.bm-pagination a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.bm-article { padding: 48px 0 72px; }
.bm-article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.bm-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--text-light);
}
.bm-crumbs a { text-decoration: none; }
.bm-crumbs a:hover { color: var(--yellow-ink); }
.bm-article h1 {
  margin: 0 0 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.bm-article__meta {
  margin-bottom: 24px;
  color: var(--text-light);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.bm-article__hero {
  margin: 0 0 28px;
  background: var(--light-grey);
}
.bm-article__hero img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
}
.bm-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2b2b2b;
}
.bm-prose h2,
.bm-prose h3 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 1.6em 0 0.6em;
}
.bm-prose h2 { font-size: 2rem; }
.bm-prose h3 { font-size: 1.5rem; }
.bm-prose p,
.bm-prose ul,
.bm-prose ol { margin: 0 0 1.1em; }
.bm-prose a { color: var(--yellow-ink); }
.bm-prose img {
  display: block;
  margin: 1.4em auto;
}
.bm-prose figure { margin: 1.6em 0; }
.bm-prose figcaption {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.bm-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}
.bm-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 22px;
}
.bm-box h3 {
  margin: 0 0 10px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 1.2rem;
}
.bm-box p { margin: 0 0 16px; color: var(--text-mid); line-height: 1.5; }
.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bm-btn:hover { background: #000; }
.bm-btn--yellow { background: var(--yellow); color: #111; }
.bm-btn--yellow:hover { background: var(--yellow-hover); }
.bm-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-cats a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.bm-cats a:hover,
.bm-cats a.is-current { background: #111; color: #fff; border-color: #111; }

.bm-cta {
  background: #111;
  color: #fff;
  padding: 56px 0;
}
.bm-cta__inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bm-cta h2 {
  margin: 0 0 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}
.bm-cta p { margin: 0; color: #c7c7c2; }

.site-footer {
  background: #111;
  color: #d7d7d2;
  padding: 48px 0 0;
}
.footer-grid {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.site-footer img { height: 64px; width: auto; display: block; margin-bottom: 16px; }
.footer-tagline { margin: 0 0 16px; max-width: 28ch; line-height: 1.5; }
.footer-contact a,
.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d7d7d2;
  text-decoration: none;
  margin: 0 0 8px;
}
.footer-contact a:hover,
.footer-links a:hover { color: var(--yellow); }
.footer-col-head {
  margin: 0 0 14px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-bar {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid #2b2b2b;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0 22px;
  font-size: 0.85rem;
}
.footer-pays { display: flex; gap: 8px; flex-wrap: wrap; color: #fff; font-weight: 800; letter-spacing: 0.04em; }
.footer-pay {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  background: #1c1c1c;
  font-size: 0.72rem;
}

.bm-404,
.bm-empty { padding: 80px 0; text-align: center; }
.bm-404 h1,
.bm-empty h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .header-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }
  .header-account { display: none; }
  .mobile-burger { display: inline-flex; }
  .site-nav { display: none; }
  .bm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-article__grid,
  .footer-grid,
  .bm-cta__inner { grid-template-columns: 1fr; display: grid; }
  .util-usps { display: none; }
  .util-bar-inner { justify-content: center; }
}

@media (max-width: 760px) {
  .bm-wrap,
  .util-bar-inner,
  .header-main,
  .site-nav-inner,
  .bm-cta__inner,
  .footer-grid,
  .footer-bar { width: calc(100% - 24px); }
  .header-main { height: 64px; }
  .header-logo img { height: 42px; }
  .bm-hero { padding: 42px 0 36px; }
  .bm-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
