/*
Theme Name: JMC Automotive
Theme URI: https://jmc-automotive.example
Author: JMC Automotive
Author URI: https://jmc-automotive.example
Description: Thème WordPress sur mesure pour JMC Automotive, spécialiste de véhicules d'exception. Design rouge, noir et blanc inspiré des codes de l'automobile de luxe. Entièrement responsive.
Version: 1.54
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: jmc-automotive
*/

/* =====================================================
   0. VARIABLES & RESET
===================================================== */
:root{
  --jmc-red: #c8102e;
  --jmc-red-dark: #8f0b20;
  --jmc-black: #0b0b0c;
  --jmc-black-soft: #17181a;
  --jmc-white: #ffffff;
  --jmc-grey: #b8b8bc;
  --jmc-grey-light: #f4f4f5;
  --font-main: 'Poppins', Arial, Helvetica, sans-serif;
  --font-title: 'Oswald', 'Poppins', Arial, sans-serif;
  --transition: all .25s ease;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-main);
  color: var(--jmc-black);
  background: var(--jmc-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body{ overflow-x: hidden; }
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration:none; transition: var(--transition); }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4,h5,h6{ font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; margin:0 0 .6em; color: var(--jmc-black); }
p{ margin:0 0 1em; }
.container{ max-width: 1280px; margin:0 auto; padding: 0 24px; }
.btn{
  display:inline-block;
  background: var(--jmc-red);
  color: var(--jmc-white);
  padding: 14px 32px;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  border: 2px solid var(--jmc-red);
  cursor:pointer;
  transition: var(--transition);
}
.btn:hover{ background: transparent; color: var(--jmc-red); }
.btn-outline{
  background: transparent;
  border: 2px solid var(--jmc-white);
  color: var(--jmc-white);
}
.btn-outline:hover{ background: var(--jmc-white); color: var(--jmc-black); }

.section{ padding: 90px 0; }
.section-dark{ background: var(--jmc-black); color: var(--jmc-white); }
.section-dark h1, .section-dark h2, .section-dark h3{ color: var(--jmc-white); }
.eyebrow{
  color: var(--jmc-red);
  font-family: var(--font-title);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display:block;
}
.section-title{ font-size: 36px; margin-bottom: 20px; }
.section-title span{ color: var(--jmc-red); }
.divider{
  width: 70px; height: 3px; background: var(--jmc-red); margin: 20px 0;
}
.center{ text-align:center; }
.divider.center{ margin-left:auto; margin-right:auto; }

/* =====================================================
   1. TOPBAR
===================================================== */
.topbar{
  background: var(--jmc-black);
  color: var(--jmc-grey);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content: flex-end;
  gap: 28px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar-menu{ display:flex; gap: 26px; }
.topbar-menu a{
  color: var(--jmc-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 500;
}
.topbar-menu a:hover{ color: var(--jmc-red); }

/* =====================================================
   2. HEADER / MAIN NAV
===================================================== */
.site-header{
  background: var(--jmc-black);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid var(--jmc-red);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
}
.site-logo{ display:flex; align-items:center; }
.site-logo img{ max-height: 60px; width:auto; }
.site-logo a{
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--jmc-white);
  letter-spacing: 1px;
  font-weight: 700;
}
.site-logo a span{ color: var(--jmc-red); }

.main-nav{ display:flex; align-items:center; }
.main-nav ul{ display:flex; align-items:center; gap: 6px; }
.main-nav > ul > li{ position:relative; }
.main-nav > ul > li > a{
  display:block;
  padding: 14px 18px;
  color: var(--jmc-white);
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current_page_item > a{ color: var(--jmc-red); }

/* dropdown */
.main-nav li.menu-item-has-children{ position:relative; }
.main-nav li.menu-item-has-children > a::after{
  content:"\25BE";
  margin-left: 6px;
  font-size: 11px;
}
.main-nav .sub-menu{
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--jmc-black-soft);
  border-top: 3px solid var(--jmc-red);
  box-shadow: 0 12px 24px rgba(0,0,0,.4);
  opacity:0;
  visibility:hidden;
  transform: translateY(8px);
  transition: var(--transition);
  padding: 6px 0;
}
.main-nav li.menu-item-has-children:hover > .sub-menu{
  opacity:1; visibility:visible; transform: translateY(0);
}
.main-nav .sub-menu li a{
  padding: 12px 22px;
  display:block;
  font-size: 13px;
  color: var(--jmc-grey);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.main-nav .sub-menu li a:hover{ color: var(--jmc-red); background: rgba(200,16,46,.08); }

/* mobile toggle */
.menu-toggle{
  display:none;
  flex-direction:column;
  gap: 5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 6px;
}
.menu-toggle span{
  width: 26px; height: 2px; background: var(--jmc-white);
}

/* =====================================================
   3. HERO
===================================================== */
.hero{
  position:relative;
  min-height: 88vh;
  display:flex;
  align-items:center;
  background: var(--jmc-black);
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  opacity: .55;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.85) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  color: var(--jmc-white);
  max-width: 760px;
}
.hero-content h1{
  font-size: 54px;
  line-height: 1.1;
  color: var(--jmc-white);
  margin-bottom: 22px;
}
.hero-content h1 span{ color: var(--jmc-red); }
.hero-content p{ font-size: 17px; color: var(--jmc-grey); max-width: 620px; }
.hero-actions{ margin-top: 30px; display:flex; gap: 16px; flex-wrap:wrap; }
.hero-scroll{
  position:absolute;
  bottom: 30px; left:50%; transform: translateX(-50%);
  z-index:2;
  color: var(--jmc-white);
  font-size: 12px;
  text-transform:uppercase;
  letter-spacing: 2px;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.hero-scroll::after{
  content:"";
  width:1px; height: 34px; background: var(--jmc-red);
}

/* =====================================================
   4. INTRO / ABOUT
===================================================== */
.intro{ text-align:center; }
.intro .lead{
  max-width: 820px;
  margin: 0 auto 1em;
  font-size: 17px;
  color: #333;
}
.intro-video{ max-width: 900px; margin: 50px auto 0; }
.intro-video iframe{ width:100%; aspect-ratio: 16/9; border:0; }

/* =====================================================
   5. VEHICLE CATEGORIES / GRID
===================================================== */
.categories-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.category-card{
  position:relative;
  background: var(--jmc-black);
  aspect-ratio: 3/4;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  border: 1px solid rgba(255,255,255,.08);
}
.category-card img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:.5; transition: var(--transition);
}
.category-card:hover img{ opacity:.75; transform: scale(1.06); }
.category-card .cat-label{
  position:relative; z-index:2;
  padding: 24px;
  color: var(--jmc-white);
  font-family: var(--font-title);
  text-transform:uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  border-top: 3px solid var(--jmc-red);
  width:100%;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
}

/* =====================================================
   6. VEHICLE CARDS (listing)
===================================================== */
.vehicles-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.vehicle-card{
  background: var(--jmc-white);
  border: 1px solid #eaeaea;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover{ box-shadow: 0 18px 40px rgba(0,0,0,.12); transform: translateY(-4px); }
.vehicle-card--sold:hover{ box-shadow:none; transform:none; }
.vehicle-card--sold .vehicle-thumb{ cursor: default; }
.vehicle-card--sold .vehicle-thumb:hover img{ transform: none; }
.vehicle-thumb{
  position: relative;
  height: 210px;
  flex-shrink: 0;
  overflow: hidden;
  background: #000;
}
.vehicle-thumb img{ width:100%; height:100%; object-fit:cover; transition: var(--transition); }
.vehicle-thumb:hover img{ transform: scale(1.05); }
.vehicle-tag{
  position:absolute; top:14px; left:14px;
  background: var(--jmc-red); color:#fff;
  font-size: 11px; text-transform:uppercase; letter-spacing:1px;
  padding: 5px 12px;
}
.vehicle-overlay{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(11,11,12,.55);
  color:#fff;
  font-family: var(--font-title);
  text-transform:uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  opacity:0;
  transition: var(--transition);
}
.vehicle-thumb:hover .vehicle-overlay{ opacity:1; }
.vehicle-body{
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.vehicle-body h3{ font-size: 18px; margin-bottom: 6px; }
.vehicle-model{
  color:#555; font-size: 14px; margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.vehicle-meta{ color:#999; font-size: 13px; margin: 0 0 10px; }
.vehicle-price{ color: var(--jmc-red); font-weight:700; font-family: var(--font-title); font-size: 18px; margin: auto 0 0; }

/* =====================================================
   7. CTA BAND
===================================================== */
.cta-band{
  background: var(--jmc-red);
  color: #fff;
  padding: 60px 0;
  text-align:center;
}
.cta-band h2{ color:#fff; margin-bottom: 14px; }
.cta-band .btn{ background: var(--jmc-black); border-color: var(--jmc-black); }
.cta-band .btn:hover{ background:transparent; color:#fff; border-color:#fff; }

/* Responsive Google Maps / iframe embeds */
.map-embed{
  position:relative;
  width:100%;
  aspect-ratio: 16/6;
  margin-top: 50px;
  background: var(--jmc-grey-light);
}
.map-embed iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
}
/* Safety net for any iframe pasted directly into page/post content */
.entry-content iframe{
  max-width: 100% !important;
  width: 100% !important;
  min-height: 450px;
}

/* =====================================================
   9d. VEHICLE SEARCH REQUEST FORM (Contact Form 7)
===================================================== */
.search-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.sf-col-full{ grid-column: 1 / -1; }
.search-form-grid .sf-col,
.search-form-grid .sf-col-full{
  min-width: 0;
}
.search-form-grid input[type="text"],
.search-form-grid input[type="email"],
.search-form-grid input[type="tel"],
.search-form-grid input[type="number"],
.search-form-grid input[type="date"],
.search-form-grid select{
  width: 100%;
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  color: #333;
}
.search-form-grid input::placeholder{ color: #999; }
.search-form-grid select{ cursor: pointer; color: #999; }
.sf-label{
  font-size: 14px;
  color: #555;
  margin: 0 0 8px 0;
}
.sf-suffix-wrap{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sf-range-wrap{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sf-suffix-wrap .wpcf7-form-control-wrap,
.sf-range-wrap .wpcf7-form-control-wrap{
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sf-suffix-wrap input, .sf-range-wrap input{
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sf-suffix-wrap span, .sf-range-wrap span{
  font-size: 13px;
  color: #777;
  white-space: nowrap;
}
.sf-message-field textarea{
  width: 100%;
  min-height: 130px;
  border: 2px solid var(--jmc-red);
  padding: 14px;
  font-family: var(--font-main);
  font-size: 14px;
  resize: vertical;
}
.search-form-grid input[type="submit"]{
  background: var(--jmc-red);
  color: #fff;
  border: 2px solid var(--jmc-red);
  padding: 14px 34px;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.search-form-grid input[type="submit"]:hover{
  background: transparent;
  color: var(--jmc-red);
}
.search-form-grid .wpcf7-not-valid-tip{
  color: var(--jmc-red);
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 640px){
  .search-form-grid{ grid-template-columns: 1fr; }
  .sf-range-wrap{ grid-template-columns: 1fr; }
  .sf-suffix-wrap{ grid-template-columns: 1fr; }
  .sf-suffix-wrap span, .sf-range-wrap span{ margin: 2px 0 4px; }
}

/* =====================================================
   9e. CONTACT FORM 7 — modern styling site-wide
===================================================== */
.wpcf7-form{
  max-width: 100%;
}
.wpcf7-form p{
  margin-bottom: 20px;
}
.wpcf7-form label{
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #777;
  font-weight: 600;
  margin-bottom: 8px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea{
  width: 100%;
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
  transition: var(--transition);
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus{
  outline: none;
  border-color: var(--jmc-red);
}
.wpcf7-form textarea{
  min-height: 140px;
  resize: vertical;
}
.wpcf7-form select{
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c8102e'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}
.wpcf7-form input[type="submit"]{
  background: var(--jmc-red);
  color: #fff;
  border: 2px solid var(--jmc-red);
  padding: 14px 34px;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.wpcf7-form input[type="submit"]:hover{
  background: transparent;
  color: var(--jmc-red);
}
.wpcf7-form .wpcf7-not-valid-tip{
  color: var(--jmc-red);
  font-size: 12px;
  margin-top: 6px;
}
.wpcf7-form .wpcf7-response-output{
  border-radius: 0;
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 20px;
}

/* =====================================================
   9c. GUTENBERG / OTTER BLOCKS SUPPORT
   Default blocks stay readable-width, "Large" breaks out
   further, "Pleine largeur" goes edge to edge.
===================================================== */
.entry-content{ width:100%; }
.entry-content > *{
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.entry-content > .alignwide{
  max-width: 1280px;
}
.entry-content > .alignfull{
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}
.entry-content > .alignfull > *{
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.entry-content > .alignleft{ margin-right: 24px; }
.entry-content > .alignright{ margin-left: 24px; }

/* Blocks-mode homepage: no extra top/bottom page padding before the content */
.content-area.content-area--home{ padding: 0; }
.content-area.content-area--page{ padding: 0; }

/* Cover blocks (hero photos, category tiles) need their own inner padding
   and centering, since they sit inside a full-width wrapper. Specificity
   and !important are used here because WordPress's own core block
   stylesheet (wp-block-library) may load after our theme stylesheet and
   would otherwise silently override this rule. */
.entry-content .wp-block-cover .wp-block-cover__inner-container{
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

/* The cover block's background photo must fill the whole block edge to
   edge — our global "img { max-width:100%; height:auto }" reset above
   would otherwise shrink it to its natural aspect ratio, leaving grey
   bands on the sides. */
.wp-block-cover__background{
  max-width: none !important;
}
.wp-block-cover__image-background,
.wp-block-cover__video-background{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Bulleted lists built with blocks (core List, Otter, etc.) get the
   branded red-dash styling automatically, matching the reference design. */
.entry-content ul:not(.wp-block-gallery):not(.options-list){
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}
.entry-content ul:not(.wp-block-gallery):not(.options-list) li{
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid #eee;
}
.entry-content ul:not(.wp-block-gallery):not(.options-list) li::before{
  content: "—";
  position: absolute;
  left: 0;
  color: var(--jmc-red);
  font-weight: 700;
}

/* Gutenberg / Otter buttons automatically match the theme's brand
   button style (sharp corners, uppercase, letter-spacing) instead of
   the default rounded WordPress button. */
.wp-block-button__link{
  border-radius: 0 !important;
  font-family: var(--font-title) !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  font-size: 14px !important;
  padding: 14px 32px !important;
  transition: var(--transition);
}
.wp-block-button.is-style-outline .wp-block-button__link{
  background: transparent !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover{
  background: var(--jmc-white) !important;
  color: var(--jmc-black) !important;
}

/* Force the theme's branded fonts onto block headings/paragraphs —
   WordPress's own block-library stylesheet sets its own font-family on
   .wp-block-heading / paragraphs with a more specific selector than our
   bare "h1, h2..." rule, and can silently override it. */
.entry-content .wp-block-heading,
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6{
  font-family: var(--font-title) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}
.entry-content p{
  font-family: var(--font-main) !important;
}

/* Reusable "Découvrir" scroll indicator for block-built hero sections */
.block-scroll-indicator{
  text-align: center;
  color: var(--jmc-white) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 40px !important;
}
.block-scroll-indicator::after{
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  background: var(--jmc-red);
  margin: 8px auto 0;
}

/* Contact page — full page-width block (map / Elementor content) */
.contact-full-width{
  width: 100%;
  margin-top: 50px;
}
.contact-full-width .widget{ margin-bottom:0; }
.contact-full-width iframe{
  display:block;
  width:100%;
  min-height: 420px;
  border:0;
}
.contact-full-width img{ width:100%; height:auto; }

/* =====================================================
   8. FOOTER
===================================================== */
.site-footer{
  background: var(--jmc-black);
  color: var(--jmc-grey);
  padding-top: 70px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col h4{
  color: var(--jmc-white);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  position:relative;
  padding-bottom: 12px;
}
.footer-col h4::after{
  content:""; position:absolute; left:0; bottom:0;
  width: 40px; height: 2px; background: var(--jmc-red);
}
.footer-col p, .footer-col a{ color: var(--jmc-grey); font-size: 14px; }
.footer-col ul li{ margin-bottom: 10px; }
.footer-col a:hover{ color: var(--jmc-red); }
.footer-logo{ max-height: 50px; margin-bottom: 18px; }
.social-icons{ display:flex; gap: 12px; margin-top: 16px; }
.social-icons a{
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 14px;
  color: var(--jmc-white);
}
.social-icons a:hover{ background: var(--jmc-red); border-color: var(--jmc-red); }
.footer-bottom{
  text-align:center;
  font-size: 13px;
  padding: 22px 0;
  color: #7c7c80;
}
.footer-bottom a{ color: var(--jmc-red); }

/* =====================================================
   9. PAGE / SINGLE / ARCHIVE DEFAULTS
===================================================== */
.page-hero{
  background: var(--jmc-black);
  color:#fff;
  padding: 90px 0 50px;
  text-align:center;
  border-bottom: 3px solid var(--jmc-red);
}
.page-hero h1{ color:#fff; margin-bottom: 8px;}
.breadcrumb{ color: var(--jmc-grey); font-size: 13px; text-transform:uppercase; letter-spacing:1px; }
.breadcrumb a{ color: var(--jmc-grey); }
.breadcrumb a:hover{ color: var(--jmc-red); }
.content-area{ padding: 70px 0; }
.entry-content h2{ margin-top: 1.4em; }
.entry-content img{ margin: 20px 0; }
.entry-content blockquote{
  border-left: 3px solid var(--jmc-red);
  padding-left: 20px;
  font-style: italic;
  color: #555;
}
table{ width:100%; border-collapse: collapse; margin: 20px 0; }
table th, table td{ border:1px solid #e2e2e2; padding: 10px 14px; text-align:left; }
table th{ background: var(--jmc-grey-light); text-transform:uppercase; font-size:13px; letter-spacing:1px; }

.pagination{ display:flex; justify-content:center; gap:10px; margin-top: 40px; }
.pagination a, .pagination span{
  border: 1px solid #e2e2e2;
  padding: 8px 14px;
  font-size: 14px;
}
.pagination .current{ background: var(--jmc-red); color:#fff; border-color: var(--jmc-red); }

.widget{ margin-bottom: 40px; }
.widget h2, .widget h3{ font-size: 16px; }
.comment-form input, .comment-form textarea{
  width:100%; border: 1px solid #ddd; padding: 12px; margin-bottom: 14px; font-family: var(--font-main);
}

/* =====================================================
   9b. SINGLE VEHICLE PAGE
===================================================== */
.vehicle-single-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items:start;
}
.vehicle-gallery-main{
  aspect-ratio: 4/3;
  overflow:hidden;
  background: var(--jmc-black);
}
.vehicle-gallery-main img{ width:100%; height:100%; object-fit:cover; }
.vehicle-gallery-thumbs{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.thumb-btn{
  padding:0; border: 2px solid transparent; background:none; cursor:pointer;
  aspect-ratio: 1/1; overflow:hidden;
}
.thumb-btn img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb-btn.is-active{ border-color: var(--jmc-red); }

.vehicle-panel{ position: sticky; top: 110px; }
.vehicle-panel-title{ font-size: 26px; margin-bottom: 2px; }
.vehicle-panel-version{ color:#666; margin-bottom: 10px; }
.vehicle-panel-price{
  color: var(--jmc-red);
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 24px;
}

.vehicle-tabs{ display:flex; border-bottom: 2px solid #eee; margin-bottom: 22px; }
.tab-btn{
  background:none; border:none; cursor:pointer;
  padding: 12px 20px 12px 0;
  margin-right: 10px;
  font-family: var(--font-title);
  text-transform:uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: #999;
  border-bottom: 3px solid transparent;
  transform: translateY(2px);
}
.tab-btn.is-active{ color: var(--jmc-black); border-bottom-color: var(--jmc-red); }
.tab-panel{ display:none; }
.tab-panel.is-active{ display:block; }

.specs-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.spec-item{
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--jmc-grey-light);
  border-left: 3px solid var(--jmc-red);
  padding: 12px 16px;
}
.spec-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 600;
}
.spec-value{
  font-size: 15px;
  font-weight: 600;
  color: var(--jmc-black);
  line-height: 1.3;
}

@media (max-width: 480px){
  .specs-grid{ grid-template-columns: 1fr; }
}

.options-list{ list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.options-list li{
  background: var(--jmc-grey-light);
  border: 1px solid #e6e6e6;
  padding: 8px 16px;
  font-size: 13px;
  color: #333;
}

/* =====================================================
   10. RESPONSIVE
===================================================== */
@media (max-width: 1024px){
  .vehicles-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .hero-content h1{ font-size: 42px; }
}

@media (max-width: 860px){
  .vehicle-single-grid{ grid-template-columns: 1fr; }
  .vehicle-panel{ position: static; }
  .vehicle-gallery-thumbs{ grid-template-columns: repeat(5, 1fr); }

  .topbar .container{ justify-content:center; }
  .topbar-menu{ gap: 14px; flex-wrap:wrap; justify-content:center; }

  .menu-toggle{ display:flex; }

  .main-nav{
    position:fixed;
    top: 0; right: -100%;
    width: 82%; max-width: 340px;
    height: 100vh;
    background: var(--jmc-black-soft);
    flex-direction:column;
    align-items:flex-start;
    padding: 90px 0 30px;
    transition: right .3s ease;
    overflow-y:auto;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,.5);
  }
  .main-nav.is-open{ right: 0; }
  .main-nav ul{ flex-direction:column; width:100%; align-items:flex-start; }
  .main-nav > ul > li{ width:100%; }
  .main-nav > ul > li > a{ padding: 14px 26px; width:100%; }
  .main-nav .sub-menu{
    position:static; opacity:1; visibility:visible; transform:none;
    display:none; box-shadow:none; border-top:none; border-left: 3px solid var(--jmc-red);
    background: rgba(255,255,255,.03);
  }
  .main-nav li.menu-item-has-children.is-active > .sub-menu{ display:block; }
  .main-nav li.menu-item-has-children > a::after{ float:right; }

  .nav-overlay{
    display:none; position:fixed; inset:0; background: rgba(0,0,0,.5); z-index:998;
  }
  .nav-overlay.is-open{ display:block; }
}

@media (max-width: 640px){
  .contact-full-width iframe{ min-height: 280px; }
  .map-embed{ aspect-ratio: 4/3; }
  .hero{ min-height: 78vh; }
  .hero-content h1{ font-size: 32px; }
  .section{ padding: 60px 0; }
  .categories-grid{ grid-template-columns: 1fr 1fr; gap: 14px; }
  .vehicles-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .section-title{ font-size: 26px; }
}
