:root{
  --pmms-bg: #f3f5f7;
  --pmms-surface: #ffffff;
  --pmms-text: #1b1f24;
  --pmms-muted: #6b7280;
  --pmms-border: rgba(15,23,42,.12);
  --pmms-accent: #E92236; /* Brand red */
  --pmms-accent-dark: #B31426;
  --pmms-success: #1f8f3a; /* WhatsApp-like */
  --pmms-success-dark: #18712f;
  --pmms-radius: 14px;
  --pmms-shadow: 0 8px 22px rgba(2,6,23,.10);
  --pmms-shadow-sm: 0 6px 16px rgba(2,6,23,.08);
  --pmms-container: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--pmms-text);
  background: var(--pmms-bg);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{max-width:var(--pmms-container);margin:0 auto;padding:0 18px}

.skip-link{
  position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip-link:focus{
  left:18px;top:18px;width:auto;height:auto;padding:10px 12px;
  background:#fff;border:2px solid var(--pmms-accent);border-radius:10px;z-index:9999;
}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--pmms-border);
  position:sticky; top:0; z-index:50;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px; min-width:190px;
}
.brand img{height:34px;width:auto}
.custom-logo{height:34px;width:auto}
.custom-logo-link{display:inline-flex;align-items:center}

.brand .site-title{font-weight:800; letter-spacing:.2px}

.nav{
  display:flex; align-items:center; gap:18px;
}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:18px;align-items:center}
.nav a{
  display:inline-flex; padding:10px 10px; border-radius:10px;
  color:#1f2937; font-weight:600; font-size:14px;
  position:relative;
}
.nav a:hover{background:rgba(15,23,42,.04)}
.nav .current-menu-item > a,
.nav .current_page_item > a{
  color:#111827;
}
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after{
  content:"";
  position:absolute; left:10px; right:10px; bottom:-14px;
  height:3px; background:var(--pmms-accent); border-radius:999px;
}
.header-cta{
  display:flex; align-items:center; gap:10px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:10px;
  font-weight:800; font-size:14px; letter-spacing:.2px;
  border:1px solid transparent;
  box-shadow:0 6px 14px rgba(2,6,23,.10);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor:pointer;
}
.btn:focus{outline:3px solid rgba(197,22,33,.35); outline-offset:2px}
.btn:hover{transform:translateY(-1px); box-shadow:0 10px 22px rgba(2,6,23,.12)}
.btn-red{background:var(--pmms-accent); color:#fff}
.btn-red:hover{background:var(--pmms-accent-dark)}
.btn-green{background:var(--pmms-success); color:#fff}
.btn-green:hover{background:var(--pmms-success-dark)}
.btn-ghost{
  background:#fff; border-color: var(--pmms-border); color:#111827;
  box-shadow:none;
}
.btn-ghost:hover{background:rgba(15,23,42,.04); box-shadow:none; transform:none}


/* Hero */
.hero{
  background:#e9edf2;
}
.hero-wrap{
  --pmms-hero-bg: url('../img/hero.jpg');
  background-image:
    linear-gradient(90deg, rgba(15,25,35,.76) 0%, rgba(15,25,35,.45) 44%, rgba(15,25,35,0) 68%),
    var(--pmms-hero-bg);
  background-size:cover;
  background-position:center right;
  border-bottom:1px solid var(--pmms-border);
}
.hero-inner{
  padding:72px 0 78px;
  display:flex; align-items:center;
}
.hero-card{
  max-width:560px;
  color:#fff;
}
.hero-title{
  font-size:44px; line-height:1.08; margin:0 0 10px; font-weight:900;
  text-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.hero-sub{
  font-size:18px; margin:0 0 22px; font-weight:700; opacity:.95;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}

/* Sections */
.section{
  padding:34px 0;
  background:var(--pmms-bg);
}
.section-title{
  font-size:22px; font-weight:900; margin:0 0 14px;
  display:flex; align-items:center; gap:12px;
}
.section-title::after{
  content:""; height:2px; flex:1;
  background:rgba(15,23,42,.10);
  border-radius:999px;
}

/* Promo */
.promo-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.promo-banner{
  background:#b10f18;
  border-radius:14px;
  overflow:hidden;
  box-shadow: var(--pmms-shadow-sm);
  border:1px solid rgba(255,255,255,.12);
}
.promo-banner img{width:100%;height:100%;object-fit:cover}

/* Motor cards */
.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.card{
  background:#fff;
  border:1px solid var(--pmms-border);
  border-radius:14px;
  overflow:hidden;
  box-shadow: var(--pmms-shadow-sm);
  display:flex; flex-direction:column;
}
.card-media{
  background:#eef2f6;
  height:180px;
}
.card-media img{width:100%;height:100%;object-fit:cover}
.card-body{padding:14px 14px 16px; display:flex; flex-direction:column; gap:0px; flex:1}
.card-title{font-weight:900; margin:0; font-size:16px}
.card-meta{color:var(--pmms-muted); font-size:13px}
.card-meta strong{color:var(--pmms-accent)}
.card-actions{margin-top:auto}
.card-actions .btn{width:100%; border-radius:10px; box-shadow:none}
.card-actions .btn:hover{transform:none}

/* Why */
.why{
  background:linear-gradient(180deg,#f3f5f7 0%, #eef2f6 100%);
  border-top:1px solid var(--pmms-border);
  border-bottom:1px solid var(--pmms-border);
}
.why-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:18px; padding-top:6px;
}
.why-item{
  text-align:center;
  padding:18px 10px;
}
.why-icon{
  width:64px;height:64px;margin:0 auto 10px;
  color:var(--pmms-accent);
}
.why-label{font-weight:800; color:#111827}

/* Big CTA */
.big-cta{
  padding:22px 0 36px;
}
.big-cta-box{
  background:
    radial-gradient(1200px 220px at 12% 0%, rgba(255,255,255,.12), rgba(255,255,255,0)),
    radial-gradient(900px 260px at 95% 100%, rgba(255,255,255,.10), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--pmms-accent), var(--pmms-accent-dark));
  border-radius:16px;
  box-shadow: var(--pmms-shadow);
  border:1px solid rgba(255,255,255,.10);
  padding:26px 22px;
  text-align:center;
}
.big-cta-box h3{
  margin:0 0 12px;
  color:#fff;
  font-size:26px;
  font-weight:900;
  text-shadow:0 10px 26px rgba(0,0,0,.22);
}
.big-cta-box .btn{min-width:320px; box-shadow:0 10px 26px rgba(2,6,23,.20)}

/* Footer */
.site-footer{
  background: linear-gradient(180deg,#2b3541 0%, #1f2833 100%);
  color: rgba(255,255,255,.85);
  padding:26px 0 22px;
  border-top:1px solid rgba(255,255,255,.06);
}
.footer-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.footer-title{
  color:#fff; font-weight:900; margin:0 0 10px; font-size:15px;
  position:relative; padding-bottom:10px;
}
.footer-title::after{
  content:""; position:absolute; left:0; right:0; bottom:0;
  height:2px; background:rgba(255,255,255,.10); border-radius:999px;
}
.footer-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.footer-list a{color:rgba(255,255,255,.75)}
.footer-list a:hover{color:#fff}
.footer-meta{display:flex;flex-direction:column;gap:10px;color:rgba(255,255,255,.75);font-size:13px}
.footer-meta .row{display:flex;gap:10px;align-items:flex-start}
.footer-meta svg{flex:0 0 auto;margin-top:2px;opacity:.9}
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding-top:14px; margin-top:18px;
  border-top:1px solid rgba(255,255,255,.10);
  font-size:12px; color:rgba(255,255,255,.65)
}
.social{display:flex;gap:10px}
.social a{
  width:34px;height:34px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.85);
}
.social a svg{width:18px;height:18px;fill:currentColor;opacity:.95}
.social a:hover{background:rgba(255,255,255,.12);color:#fff}

/* Content pages */
.page-hero{
  background:#fff;
  border-bottom:1px solid var(--pmms-border);
}
.page-hero-inner{
  padding:26px 0;
}
.page-hero h1{margin:0;font-size:26px;font-weight:950;padding-left:20px}

/* Breadcrumb (single post) */
.pmms-breadcrumb{margin-top:8px; padding-left:20px;}
.pmms-breadcrumb ol{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; align-items:center;}
.pmms-breadcrumb li{display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(15,23,42,.72); font-weight:600;}
.pmms-breadcrumb li:not(:last-child)::after{content:"/"; opacity:.55;}
.pmms-breadcrumb a{color:var(--pmms-accent); text-decoration:none;}
.pmms-breadcrumb a:hover{color:var(--pmms-accent-dark); text-decoration:underline;}
.pmms-breadcrumb [aria-current="page"]{color:rgba(15,23,42,.90);}
.content{
  background:#fff;
  border:1px solid var(--pmms-border);
  border-radius:14px;
  box-shadow: var(--pmms-shadow-sm);
  padding:18px;
}

/* Center featured image / post thumbnail inside content */
.content .wp-post-image{
  margin-left:auto;
  margin-right:auto;
}
.grid-2{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:18px;
}
.form{
  display:grid; gap:12px;
}
.field label{display:block;font-weight:800;margin:0 0 6px;font-size:13px}
.field input, .field select, .field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--pmms-border);
  font:inherit;
  background:#fff;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:3px solid rgba(197,22,33,.24);
  border-color:rgba(197,22,33,.55);
}
.notice{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--pmms-border);
  background:rgba(15,23,42,.03);
}

/* Motor detail price boxes: consistent on desktop/tablet/mobile */
.motor-meta .notice{
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
  border: 1px solid rgba(15,23,42,.10);
  border-left: 5px solid #E92236;
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
}
.motor-meta .notice strong{ color:#0f172a; }
.motor-meta .notice span{ color: rgba(15,23,42,.65); font-weight:600; }
.kpi{
  display:grid; gap:10px;
}
.kpi .box{
  padding:12px 14px;border-radius:14px;border:1px solid var(--pmms-border);
  background:#fff;
}
.kpi .box .label{color:var(--pmms-muted);font-size:13px}
.kpi .box .value{font-weight:950;font-size:18px}

/* Responsive */
@media (max-width: 1199px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr)}

  /* pmms-hamburger-nav */
  .nav{display:none}
  .menu-toggle{display:inline-flex}
  .header-inner{gap:12px}
  .brand{min-width:auto}

  /* pmms-menu-toggle-shift */
  .menu-toggle{margin-right:6px}
}
@media (max-width: 840px){
  .promo-grid{grid-template-columns:1fr}
  .hero-title{font-size:36px}
  .grid-2{grid-template-columns:1fr}

  /* pmms-mobile-shift */
  .brand{margin-left:12px}
  .hero-card{padding-left:12px}
}
@media (max-width: 760px){
  .nav{display:none}
  .menu-toggle{display:inline-flex !important}
  .header-inner{gap:10px}
  .brand{min-width:auto}
  .header-cta .btn{padding:10px 12px}
  .hero-inner{padding:54px 0 56px}
  /* Tablet: keep 2 columns, phone handled below */
  .cards{grid-template-columns:repeat(2,1fr)}
  .why-grid{grid-template-columns:1fr}

  /* pmms-mobile-shift */
  .brand{margin-left:16px}
  .hero-card{padding-left:16px}

  /* pmms-mobile-navbar */
  .mobile-nav{display:block; position:fixed; left:14px; right:14px; bottom:14px; z-index:999; background:rgba(255,255,255,.92); border:1px solid rgba(15,23,42,.12); border-radius:18px; box-shadow:0 18px 40px rgba(0,0,0,.14); backdrop-filter: blur(10px)}
  .mobile-nav ul{list-style:none; margin:0; padding:8px; display:flex; gap:0px; align-items:stretch; justify-content:space-between}
  .mobile-nav li{flex:1; min-width:0}
  .mobile-nav a{display:flex; flex-direction:column; gap:4px; align-items:center; justify-content:center; padding:10px 8px; border-radius:14px; background:transparent; font-weight:800; font-size:12px; line-height:1.1; text-align:center}
  .mobile-nav .current-menu-item > a,
  .mobile-nav .current_page_item > a{background:rgba(15,23,42,.06)}
}

@media (max-width: 600px){
  /* Phone: 1 column */
  .cards{grid-template-columns:1fr}
}
.mobile-nav{
  display:none;
  background:#fff;
  border-top:1px solid var(--pmms-border);
}
.mobile-nav.open{display:block}
.mobile-nav ul{list-style:none;margin:0;padding:12px 18px;display:grid;gap:10px}
.mobile-nav a{padding:12px 14px;border-radius:14px;background:rgba(15,23,42,.03);font-weight:800;display:flex;align-items:center;justify-content:space-between}


@media (max-width: 600px){
  /* Hide WhatsApp CTA on small phones only */
  .site-header .header-cta{display:none !important}
  .site-header .header-cta .btn{display:none !important}
}

/* pmms-hamburger-button */
.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:52px;
  height:44px;
  border-radius:0;
  border:0;
  background:transparent;
  color:#d11a22;
  cursor:pointer;
}
.menu-toggle:focus{outline:3px solid rgba(209,26,34,.25); outline-offset:4px}
.menu-toggle .bars{width:34px; height:18px; display:inline-flex; flex-direction:column; justify-content:space-between}
.menu-toggle .bars i{display:block; height:2px; border-radius:999px; background:#d11a22}
.menu-toggle .sr{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
.menu-toggle[aria-expanded="true"] .bars i{opacity:.95}


/* pmms-mobile-menu-overlay */
@media (min-width: 761px) and (max-width: 1024px){
  /* Backdrop container */
  .mobile-nav{
    display:none;
    position:fixed;
    inset:0;
    z-index:999;
    background:rgba(15,23,42,.55);
    backdrop-filter: blur(6px);
  }
  .mobile-nav.open{display:block}
  /* Menu panel */
  .mobile-nav ul{
    list-style:none;
    margin:0;
    padding:16px;
    display:grid;
    gap:10px;
    position:absolute;
    left:14px; right:14px; top:72px;
    background:rgba(255,255,255,.96);
    border:1px solid rgba(15,23,42,.12);
    border-radius:18px;
    box-shadow:0 18px 50px rgba(0,0,0,.22);
  }
  .mobile-nav a{
    padding:14px 14px;
    border-radius:14px;
    background:rgba(15,23,42,.04);
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#0f172a;
  }
  .mobile-nav a:active{transform: translateY(1px)}
  .mobile-nav .current-menu-item > a,
  .mobile-nav .current_page_item > a{
    background:rgba(209,26,34,.10);
    border:1px solid rgba(209,26,34,.18);
  }

  /* prevent hero from showing through text too much */
  .site-header{position:sticky; top:0; z-index:1000}
}


body.pmms-nav-open{overflow:hidden}


/* pmms-menu-toggle-desktop-fix */
.site-header .menu-toggle{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline-offset:4px;
}
@media (min-width: 1025px){
  .site-header .menu-toggle{display:none !important;}
}
@media (min-width: 641px) and (max-width: 1024px){

  .site-header .menu-toggle{display:inline-flex !important;}
}


/* Promo cards (ACF Repeater: tabel_promo) */
.promo-cards{ margin: 22px 0; }
.promo-cards__title{ margin: 0 0 12px; font-size: 18px; letter-spacing: -.01em; }

.promo-cards__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px){
  .promo-cards__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.promo-card{
  border: 1px solid var(--pmms-border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: var(--pmms-surface);
  box-shadow: var(--pmms-shadow-sm);
}

.promo-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.promo-card__unit{
  margin:0;
  font-size:16px;
  line-height:1.25;
}

.promo-card__badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--pmms-border);
  white-space:nowrap;
  color: var(--pmms-muted);
  background: rgba(255,255,255,.6);
}

.promo-card__meta{ margin:0; }

.promo-card__row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-top:1px dashed rgba(0,0,0,.10);
}

.promo-card__row:first-child{ border-top:0; padding-top:0; }

.promo-card__row dt{
  font-weight:600;
  opacity:.8;
}

.promo-card__row dd{
  margin:0;
  font-weight:700;
  text-align:right;
}

.promo-card__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pmms-success);
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: var(--pmms-shadow-sm);
}

.promo-card__cta:hover{ background: var(--pmms-success-dark); transform: translateY(-1px); }
.promo-card__cta:focus{ outline: 3px solid rgba(197,22,33,.22); outline-offset: 2px; }


/* Promo table (ACF repeater) — enhanced */
.promo-table-wrap{margin:22px 0;}
.promo-table-title{
  margin:0 0 12px;
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
  text-align:center;
}
.promo-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:16px;
  overflow:hidden;
  background:var(--pmms-surface);
  border:1px solid rgba(15,23,42,.10);
  box-shadow: var(--pmms-shadow-sm);
}
.promo-table thead th{
  text-align:left;
  font-weight:900;
  padding:14px 16px;
  color:#0f172a;
  background: linear-gradient(180deg, rgba(31,143,58,.14) 0%, rgba(31,143,58,.08) 100%);
  border-bottom:1px solid rgba(15,23,42,.10);
}
.promo-table th, .promo-table td{
  padding:13px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.promo-table tr:last-child td{border-bottom:0;}
.promo-table th + th, .promo-table td + td{border-left:1px solid rgba(15,23,42,.06);}
.promo-table tbody tr{
  transition: background-color .18s ease, transform .18s ease;
}
.promo-table tbody tr:hover{background: rgba(15,23,42,.03);}
.promo-table tbody td:nth-child(2),
.promo-table tbody td:nth-child(3){
  font-weight:400;
  color: rgba(0,0,0,.88);
}
@media (max-width: 720px){
  .promo-table{display:block; overflow-x:auto; -webkit-overflow-scrolling:touch;}
}


/* Sales section (homepage) */
.section.sales{
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
.section.sales::before{ display:none; }
.section.sales::after{ display:none; }

.section.sales .container{ position: relative; z-index: 1; }

.section-subtitle{
  margin-top: -10px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  max-width: 64ch;
}

.sales-single{
  display: flex;
  justify-content: center;
}

.sales-single .sales-card{
  width: 100%;
  max-width: 520px;
}

.sales-card{
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sales-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(233, 34, 54, .28), rgba(15, 23, 42, .10), rgba(233, 34, 54, .16));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
}
.sales-card::after{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 20%, rgba(233, 34, 54, .10), rgba(233, 34, 54, 0) 55%),
              radial-gradient(circle at 50% 100%, rgba(15, 23, 42, .08), rgba(15, 23, 42, 0) 60%);
  z-index:-1;
  filter: blur(8px);
  opacity: .9;
  pointer-events:none;
}
.sales-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.sales-photo{
  width: 230px;
  height: 230px;
  border-radius: 12px;
  object-fit: cover;
  background: #f1f5f9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  border: 6px solid #fff;
}

.sales-role{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(233, 34, 54, .08);
  color: #9b0f1f;
  letter-spacing: .2px;
}

.sales-extra{
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-top: 2px;
  margin-bottom: 6px;
}

.sales-card .sales-cta{
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--pmms-success), var(--pmms-success-dark));
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 18px rgba(31, 143, 58, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.sales-card .sales-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(31, 143, 58, .28);
  filter: brightness(1.03);
}
.sales-card .sales-cta:active{
  transform: translateY(0px);
  filter: brightness(.98);
}


@media (max-width: 900px){
  .sales-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .sales-grid{ grid-template-columns: 1fr; }
}


/* Sales responsive tweaks (single card) */
@media (max-width: 900px){
  .section.sales{ padding-top: 32px; padding-bottom: 32px; }
  .sales-single{ padding-left: 12px; padding-right: 12px; }
  .sales-card{ padding: 18px 16px 16px; border-radius: 18px; }
  .sales-photo{ width: 120px; height: 120px; }
  .sales-role{ font-size: 14px; padding: 8px 14px; }
  .sales-extra{ font-size: 13px; }
}

@media (max-width: 560px){
  .section.sales::before{ display:none; }
  .section.sales::after{ display:none; }
  .sales-single .sales-card{ max-width: 360px; }
  .sales-photo{ width: 110px; height: 110px; }
  .sales-extra{ font-size: 12.5px; }
  .sales-cta{ padding: 11px 12px; border-radius: 13px; }
}
/* --- Force responsive columns for motor cards (archive & homepage) --- */
@media (max-width: 1199px){
  body .cards{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px){
  body .cards{
    grid-template-columns: 1fr !important;
  }
}


/* Single Motor: move price/cicilan to right on desktop only */
.motor-detail{display:block;}
.motor-meta{margin-top:12px;}
@media (min-width: 992px){
  .motor-detail{
    display:flex;
    /* keep the price box closer to the image */
    gap:0px;
    align-items:center;
  }
  /* give a bit more room to the meta column so it can sit closer to the image */
  .motor-media{flex: 0 0 64%;}
  .motor-meta{
    flex:1;
    margin-top:0;
    /* nudge a bit closer to the image */
    margin-left:-80px;
    max-width: 440px;
  }

  .motor-meta{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
  }
  .motor-meta .notice{
    width:100%;
    max-width: 360px;
  }

  .motor-meta .notice{
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
    border: 1px solid rgba(15,23,42,.10);
    border-left: 5px solid #E92236;
    box-shadow: 0 12px 28px rgba(15,23,42,.10);
  }
  .motor-meta .notice strong{
    color: #0f172a;
  }
  .motor-meta .notice span{
    color: rgba(15,23,42,.65);
    font-weight:600;
  }
}


.product-desc-title{margin:24px 0 14px; text-align:center; font-size:32px; line-height:1.15;}
@media (max-width: 600px){.product-desc-title{font-size:24px; margin:18px 0 10px;}}


/* ===== Color Carousel (ACF) ===== */
.pmms-color-carousel{ position: relative; margin-top: 16px; }
.pmms-cc-track{
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:6px 4px 10px;
  -webkit-overflow-scrolling:touch;
}
.pmms-cc-track::-webkit-scrollbar{ height:0; }

.pmms-cc-item{
  flex:0 0 calc((100% - (14px * 3)) / 4); /* 4 visible */
  scroll-snap-align:start;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 22px rgba(0,0,0,.08);
  cursor: default;
}
.pmms-cc-item img{ width:100%; height:100%; display:block; object-fit:cover; }

/* responsive */
@media (max-width: 991px){ .pmms-cc-item{ flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 575px){ .pmms-cc-item{ flex-basis: calc((100% - 14px)/2); } }

/* arrows (hover) */
.pmms-cc-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:26px;
  line-height:42px;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, background .2s ease, transform .2s ease;
}
.pmms-color-carousel:hover .pmms-cc-arrow{ opacity:1; pointer-events:auto; }
.pmms-cc-prev{ left:10px; }
.pmms-cc-next{ right:10px; }
.pmms-cc-arrow:hover{
  background: var(--pmms-accent);
  transform:translateY(-50%) scale(1.05);
}


/* =========================
   Finance Card (Detail Pembiayaan)
   ========================= */
.pmms-finance-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:14px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  margin-top: 14px;
}

.pmms-finance-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.pmms-finance-title{
  font-weight:700;
  font-size:14px;
  letter-spacing:.2px;
}

.pmms-finance-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  border-top:1px solid rgba(0,0,0,.06);
  gap:12px;
}

.pmms-finance-row:first-of-type{
  border-top:0;
}

.pmms-finance-label{
  font-size:13px;
  color: rgba(0,0,0,.62);
}

.pmms-finance-value{
  font-weight:700;
  font-size:14px;
  text-align:right;
  color: rgba(0,0,0,.92);
}

.pmms-finance-suffix{
  font-weight:600;
  font-size:12px;
  color: rgba(0,0,0,.55);
  margin-left:6px;
}

/* =========================
   Promo Table (soft red tint)
   ========================= */
.pmms-promo-table{
  border: 1px solid rgba(220, 38, 38, .20);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

.pmms-promo-table .promo-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.pmms-promo-table .promo-table thead th{
  background: rgba(220, 38, 38, .12);
  color: rgba(0,0,0,.88);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(220, 38, 38, .22);
}

.pmms-promo-table .promo-table tbody td{
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.pmms-promo-table .promo-table tbody tr:last-child td{
  border-bottom: 0;
}

.pmms-promo-table .promo-table th + th,
.pmms-promo-table .promo-table td + td{
  border-left: 1px solid rgba(0,0,0,.06);
}


/* Promo table values should be black + normal weight */
.pmms-promo-table .promo-table tbody td:nth-child(2),
.pmms-promo-table .promo-table tbody td:nth-child(3){
  font-weight:400;
  color: rgba(0,0,0,.88);
}

/* Utilities */
.pmms-spacer-12{height:12px}


/* --- About (Tentang) --- */
.about-featured{
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
}
.about-featured__img{
  width: 100%;
  height: 420px;
  object-fit: cover;
}
@media (max-width: 600px){
  .about-featured__img{height: 240px;}
}

.about-values{padding-top: 6px;}
.about-values__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.about-value{text-align: center;}
.about-value__icon{
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--pmms-accent);
  color: #fff;
  display: grid;
  place-items: center;
}
.about-value__icon svg{width: 34px; height: 34px;}
.about-value__title{margin: 0 0 10px; font-size: 28px; line-height: 1.2;}
.about-value__text{
  margin: 0;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--pmms-text-muted);
}
.about-cta{margin-top: 22px; display:flex; justify-content:center;}

@media (max-width: 900px){
  .about-values__grid{grid-template-columns: 1fr; gap: 18px;}
  .about-value__title{font-size: 24px;}
}


/* --- Home promo banner title --- */
.promo-banner{display:block;}
.promo-banner__img{width:100%; height:auto; display:block;}
.promo-banner__title{
  margin-top: 10px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--pmms-text);
}


/* --- Fix: promo banner title visibility --- */
.promo-banner img,
.promo-banner__img{
  height: auto !important;
}


/* --- Home promo title spacing (override) --- */
.promo-banner{display:flex; flex-direction:column;}
.promo-banner__img{flex:0 0 auto;}
.promo-banner__title{
  margin: 0;
  padding: 12px 14px 16px;
  background: #fff;
  border-top: 1px solid rgba(15,23,42,.08);
}


/* --- Home promo: title separate from image frame --- */
.promo-item{display:flex; flex-direction:column; gap:10px;}
.promo-title{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--pmms-text);
}
.promo-banner{
  background:#b10f18;
  border-radius:14px;
  overflow:hidden;
  box-shadow: var(--pmms-shadow-sm);
  border:1px solid rgba(255,255,255,.12);
  display:block;
}
.promo-banner__img{width:100%; height:auto; display:block;}


/* --- Center promo titles on homepage --- */
.promo-title{
  text-align: center;
}


/* --- Home promo title spacing + link --- */
.promo-item{gap: 16px !important;}
.promo-title{
  display:block;
  text-align:center;
  margin: 0;
  padding: 4px 6px 10px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--pmms-text);
}
.promo-title:hover{opacity:.9}


/* --- Single Promo: center featured image --- */
.promo-featured{
  max-width: 760px;
  margin: 0 auto 18px;
  border-radius: 14px;
  overflow: hidden;
}
.promo-featured__img{width:100%; height:auto; display:block;}


/* --- Single Promo: center featured image (improved) --- */
.promo-featured{
  max-width: 980px;              /* bigger */
  margin: 0 auto 22px !important;/* force center */
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  justify-content: center;       /* ensure centered */
}
.promo-featured__img{
  width: 100%;
  height: auto;
  display: block;
}


/* --- Single Promo: center + equal radius (final override) --- */
.promo-featured{
  width: 100% !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 22px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: block !important; /* avoid flex quirks */
  padding: 0 !important;
  background: transparent;
}
.promo-featured__img{
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 16px !important; /* ensure both sides same */
}


/* --- Single Promo: centered image with equal left/right space (override) --- */
.promo-featured{
  width: 100% !important;
  margin: 0 auto 22px !important;
  text-align: center !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.promo-featured__img{
  display: inline-block !important;
  width: 100% !important;
  max-width: 980px !important;
  height: auto !important;
  border-radius: 16px !important;
}


/* --- Single Promo: truly centered featured image (final) --- */
.content .promo-featured{
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 22px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}
.content .promo-featured__img{
  width: 100% !important;
  max-width: 980px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 0 !important; /* radius handled by wrapper */
}


/* --- FORCE center featured image on Single Promo/Kredit --- */
body.single-pmms_promo .content .promo-featured{
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
}
body.single-pmms_promo .content .promo-featured img,
body.single-pmms_promo .content img.wp-post-image,
body.single-pmms_promo .content .promo-featured__img{
  float: none !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 980px !important;
  height: auto !important;
  border-radius: 16px !important;
}


/* --- Single Promo: reduce featured image size --- */
body.single-pmms_promo .content .promo-featured img,
body.single-pmms_promo .content img.wp-post-image,
body.single-pmms_promo .content .promo-featured__img{
  max-width: 760px !important;
}
@media (max-width: 900px){
  body.single-pmms_promo .content .promo-featured img,
  body.single-pmms_promo .content img.wp-post-image,
  body.single-pmms_promo .content .promo-featured__img{
    max-width: 100% !important;
  }
}


/* --- Tentang: center featured image --- */
.page-template-page-tentang .about-featured{
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-template-page-tentang .about-featured__img,
.page-template-page-tentang .about-featured img{
  display: block !important;
  width: 100% !important;
  height: 420px !important;
  object-fit: cover !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 16px !important;
}
@media (max-width: 600px){
  .page-template-page-tentang .about-featured__img,
  .page-template-page-tentang .about-featured img{
    height: 240px !important;
  }
}


/* --- Promo list: title under image --- */
.promo-item{display:flex; flex-direction:column; gap:12px;}
.promo-banner{display:block;}
.promo-banner__img{width:100%; height:auto; display:block;}
.promo-title{
  display:block;
  text-align:center;
  font-weight:800;
  font-size:18px;
  line-height:1.25;
  color:var(--pmms-text);
  padding: 2px 6px 10px;
}
.promo-title:hover{opacity:.9}


/* --- Motor cards: add Harga Mulai line --- */
.card-meta--harga{
  margin-bottom: 6px;
}


/* --- Sales photo responsive sizing (tablet/mobile) --- */
@media (max-width: 1024px){

  .sales-photo{width: 200px; height: 200px;}
}
@media (max-width: 600px){
  .sales-photo{width: 170px; height: 170px;}
}


.pmms-hero-slider{
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
@media (min-width: 768px){
  .pmms-hero-slider{ min-height: 520px; }
}

.pmms-hero-controls{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 14px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  z-index: 2;
}

.pmms-hero-nav:hover{ background: rgba(0,0,0,0.16); transform: translateY(-1px); }
.pmms-hero-nav:active{ transform: translateY(0px); }
.pmms-hero-nav:focus-visible{
  outline: 2px solid rgba(220,0,0,0.65);
  outline-offset: 2px;
}

.pmms-hero-dot:hover{ transform: scale(1.15); }
.pmms-hero-dot:focus-visible{
  outline: 2px solid rgba(220,0,0,0.65);
  outline-offset: 3px;
}


.pmms-hero-controls{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 14px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  z-index: 2;
}

.pmms-hero-nav:hover{ background: rgba(0,0,0,0.16); transform: translateY(-1px); }
.pmms-hero-nav:active{ transform: translateY(0px); }
.pmms-hero-nav:focus-visible{
  outline: 2px solid rgba(220,0,0,0.65);
  outline-offset: 2px;
}

.pmms-hero-dot:hover{ transform: scale(1.15); }
.pmms-hero-dot:focus-visible{
  outline: 2px solid rgba(220,0,0,0.65);
  outline-offset: 3px;
}

.hero-wrap.pmms-hero-slider:before{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(15,25,35,.50) 0%, rgba(15,25,35,.18) 44%, rgba(15,25,35,0) 68%);
  z-index:1;
  pointer-events:none;
}
.pmms-hero-controls{ z-index:2; }


/* Controls bar below image (match sample) */


.pmms-hero-nav:hover{ background: rgba(0,0,0,0.18); transform: translateY(-1px); }
.pmms-hero-nav:active{ transform: translateY(0px); }
.pmms-hero-nav:focus-visible{
  outline: 2px solid rgba(220,0,0,0.65);
  outline-offset: 2px;
}

.pmms-hero-dot:hover{ transform: scale(1.15); }
.pmms-hero-dot:focus-visible{
  outline: 2px solid rgba(220,0,0,0.65);
  outline-offset: 3px;
}


/* Tablet & mobile controls sizing (match screenshot) */
@media (max-width: 1024px){

        }
@media (max-width: 640px){
        }


/* Desktop & tablet default: fixed height */
.hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #000;
  height: clamp(320px, 40vw, 640px);
}
@media (max-width: 1024px){
  .hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{ height: clamp(260px, 46vw, 520px); }
}

/* Mobile: let image ratio define height (no crop like Astra) */
@media (max-width: 640px){
  .hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
    height: auto;
    aspect-ratio: var(--pmms-hero-ar, 1366 / 573);
    background: #fff;
  }
}

.hero.pmms-hero-astra .pmms-hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 650ms ease;
  will-change: opacity;
}
.hero.pmms-hero-astra .pmms-hero-slide.is-active{ opacity:1; }

.hero.pmms-hero-astra .pmms-hero-slide img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit: cover !important; /* desktop full-bleed */
  object-position: center;
  display:block;
}

/* Tablet: no-crop with blur fill background */
@media (min-width: 641px) and (max-width: 1024px){
  .hero.pmms-hero-astra .pmms-hero-slide:before{
    content:'';
    position:absolute;
    inset:0;
    background-image: var(--pmms-slide-bg);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.92;
    z-index: 0;
  }
  .hero.pmms-hero-astra .pmms-hero-slide img{
    position: relative;
    z-index: 1;
    object-fit: contain !important; /* no crop on tablet */
  }
}

/* Mobile: show full image (no crop), like Astra */
@media (max-width: 640px){
  .hero.pmms-hero-astra .pmms-hero-slide:before{ content:none !important; }
  .hero.pmms-hero-astra .pmms-hero-slide img{ object-fit: contain !important; }
}

/* Controls: default overlay (desktop) */
.hero.pmms-hero-astra .pmms-hero-controls{
  position:absolute;
  left:50%;
  bottom: 18px;
  transform: translateX(-50%);
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 5;
  backdrop-filter: blur(6px);
}

/* Mobile: controls become bar below image (like Astra) */
@media (max-width: 640px){
  .hero.pmms-hero-astra .pmms-hero-controls{
    position: static;
    transform: none;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    background: #fff;
    padding: 18px 12px 22px;
    border-top: 1px solid var(--pmms-border);
  }
}

.hero.pmms-hero-astra .pmms-hero-nav{
  width:36px;
  height:36px;
  border-radius:999px;
  border:0;
  background: rgba(0,0,0,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform 180ms ease, background 180ms ease;
}
.hero.pmms-hero-astra .pmms-hero-nav span{
  font-size:22px;
  line-height:1;
  color: rgba(0,0,0,0.55);
  transform: translateY(-1px);
}
.hero.pmms-hero-astra .pmms-hero-nav:hover{ background: rgba(0,0,0,0.16); transform: translateY(-1px); }
.hero.pmms-hero-astra .pmms-hero-nav:active{ transform: translateY(0px); }
.hero.pmms-hero-astra .pmms-hero-nav:focus-visible{
  outline: 2px solid rgba(220,0,0,0.65);
  outline-offset: 2px;
}

.hero.pmms-hero-astra .pmms-hero-dots{
  display:flex;
  align-items:center;
  gap: 10px;
}
.hero.pmms-hero-astra .pmms-hero-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background: rgba(0,0,0,0.16);
  cursor:pointer;
  padding:0;
  transition: transform 180ms ease, background 180ms ease;
}
.hero.pmms-hero-astra .pmms-hero-dot.is-active{ background:#e11b22; }
.hero.pmms-hero-astra .pmms-hero-dot:hover{ transform: scale(1.15); }
.hero.pmms-hero-astra .pmms-hero-dot:focus-visible{
  outline: 2px solid rgba(220,0,0,0.65);
  outline-offset: 3px;
}

/* Sizes on smaller screens */
@media (max-width: 1024px){
  .hero.pmms-hero-astra .pmms-hero-nav{ width:34px; height:34px; }
  .hero.pmms-hero-astra .pmms-hero-dot{ width:9px; height:9px; }
}


/* Desktop/Tablet: consistent hero frame */
.hero-carousel .elementor-widget-image-carousel .swiper{
  height: clamp(320px, 40vw, 640px);
}
@media (max-width: 1024px){
  .hero-carousel .elementor-widget-image-carousel .swiper{
    height: clamp(260px, 46vw, 520px);
  }
}
.hero-carousel .elementor-widget-image-carousel .swiper-slide img{
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center;
}

/* Mobile: image full (no crop) + prevent overlap with next sections */
@media (max-width: 640px){
  .hero-carousel .elementor-widget-image-carousel .swiper{
    height: auto !important;
    overflow: hidden !important;
  }
  .hero-carousel .elementor-widget-image-carousel .swiper-wrapper{
    height: auto !important;
    align-items: stretch !important;
  }
  .hero-carousel .elementor-widget-image-carousel .swiper-slide{
    height: auto !important;
    display: flex !important;
    align-items: center !important;
  }
  .hero-carousel .elementor-widget-image-carousel .swiper-slide img{
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* IMPORTANT: no crop */
    background: #fff;
  }
  .hero-carousel .elementor-widget-image-carousel .swiper-pagination{
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    margin-top: 10px !important;
    padding-bottom: 6px !important;
    z-index: 1 !important;
  }
}


/* Desktop & tablet: fixed height */
.hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #000;
  height: clamp(320px, 40vw, 640px);
}
@media (max-width: 1024px){
  .hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{ height: clamp(260px, 46vw, 520px); }
}

/* Mobile: height follows image ratio via JS var to avoid overlap */
@media (max-width: 640px){
  .hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
    height: auto;
    aspect-ratio: var(--pmms-hero-ar, 1366 / 573);
    background: #fff;
  }
}

.hero.pmms-hero-astra .pmms-hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 650ms ease;
  will-change: opacity;
}
.hero.pmms-hero-astra .pmms-hero-slide.is-active{ opacity:1; }

.hero.pmms-hero-astra .pmms-hero-slide img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit: cover !important; /* desktop full-bleed */
  object-position: center;
  display:block;
}

/* Tablet: no-crop with blur fill (optional) */
@media (min-width: 641px) and (max-width: 1024px){
  .hero.pmms-hero-astra .pmms-hero-slide:before{
    content:'';
    position:absolute;
    inset:0;
    background-image: var(--pmms-slide-bg);
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.92;
    z-index: 0;
  }
  .hero.pmms-hero-astra .pmms-hero-slide img{
    position: relative;
    z-index: 1;
    object-fit: contain !important; /* no crop on tablet */
  }
}

/* Mobile: show full image (no crop), like Astra */
@media (max-width: 640px){
  .hero.pmms-hero-astra .pmms-hero-slide:before{ content:none !important; }
  .hero.pmms-hero-astra .pmms-hero-slide img{ object-fit: contain !important; }
}

/* Controls: overlay on desktop */
.hero.pmms-hero-astra .pmms-hero-controls{
  position:absolute;
  left:50%;
  bottom: 18px;
  transform: translateX(-50%);
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 5;
  backdrop-filter: blur(6px);
}

/* Mobile: controls bar below image */
@media (max-width: 640px){
  .hero.pmms-hero-astra .pmms-hero-controls{
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    background: #fff;
    padding: 18px 12px 22px;
    border-top: 1px solid var(--pmms-border);
  }
}

/* Buttons + dots */
.hero.pmms-hero-astra .pmms-hero-nav{
  width:36px;
  height:36px;
  border-radius:999px;
  border:0;
  background: rgba(0,0,0,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform 180ms ease, background 180ms ease;
}
.hero.pmms-hero-astra .pmms-hero-nav span{
  font-size:22px;
  line-height:1;
  color: rgba(0,0,0,0.55);
  transform: translateY(-1px);
}
.hero.pmms-hero-astra .pmms-hero-dots{ display:flex; align-items:center; gap: 10px; }
.hero.pmms-hero-astra .pmms-hero-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background: rgba(0,0,0,0.16);
  cursor:pointer;
  padding:0;
}
.hero.pmms-hero-astra .pmms-hero-dot.is-active{ background:#e11b22; }

@media (max-width: 1024px){
  .hero.pmms-hero-astra .pmms-hero-nav{ width:34px; height:34px; }
  .hero.pmms-hero-astra .pmms-hero-dot{ width:9px; height:9px; }
}


/* PMMS Hero Slider (Astra-like) — MOBILE FIRST, no empty space */
.hero.pmms-hero-astra{ position: relative; margin:0; padding:0; }

/* Base (mobile): natural image height, no crop */
.hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
  position: relative;
  width: 100%;
  overflow: hidden;
  height: auto;
  background: #fff;
}

/* Mobile slide behavior: show only active slide (no absolute stacking) */
.hero.pmms-hero-astra .pmms-hero-slide{
  position: relative;
  inset: auto;
  display: none;
  opacity: 1;
  transition: none;
}
.hero.pmms-hero-astra .pmms-hero-slide.is-active{ display:block; }

.hero.pmms-hero-astra .pmms-hero-slide img{
  width:100% !important;
  height:auto !important;
  max-width:none !important;
  display:block;
  object-fit: contain !important; /* IMPORTANT: no crop */
  object-position: center;
}

/* Controls: bar below image on mobile */
.hero.pmms-hero-astra .pmms-hero-controls{
  position: static;
  transform: none;
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 14px;
  padding: 18px 12px 22px;
  background: #fff;
  border-top: 1px solid var(--pmms-border);
}

/* Buttons + dots */
.hero.pmms-hero-astra .pmms-hero-nav{
  width:36px;
  height:36px;
  border-radius:999px;
  border:0;
  background: rgba(0,0,0,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.hero.pmms-hero-astra .pmms-hero-nav span{
  font-size:22px;
  line-height:1;
  color: rgba(0,0,0,0.55);
  transform: translateY(-1px);
}
.hero.pmms-hero-astra .pmms-hero-dots{ display:flex; align-items:center; gap: 10px; }
.hero.pmms-hero-astra .pmms-hero-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background: rgba(0,0,0,0.16);
  cursor:pointer;
  padding:0;
}
.hero.pmms-hero-astra .pmms-hero-dot.is-active{ background:#e11b22; }

/* Tablet/Desktop: switch to stacked slides with fixed hero height */
@media (min-width: 641px){
  .hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
    background: #000;
    height: clamp(260px, 46vw, 520px);
  }

  .hero.pmms-hero-astra .pmms-hero-slide{
    position:absolute;
    inset:0;
    display:block;
    opacity:0;
    transition: opacity 650ms ease;
    will-change: opacity;
  }
  .hero.pmms-hero-astra .pmms-hero-slide.is-active{ opacity:1; }

  .hero.pmms-hero-astra .pmms-hero-slide img{
    width:100% !important;
    height:100% !important;
    object-fit: cover !important;
  }

  /* Controls overlay on tablet/desktop */
  .hero.pmms-hero-astra .pmms-hero-controls{
    position:absolute;
    left:50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 14px;
    background: rgba(255,255,255,0.92);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    border-top: 0;
    backdrop-filter: blur(6px);
    z-index: 5;
  }
}

/* Desktop height */
@media (min-width: 1025px){
  .hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
    height: clamp(320px, 40vw, 640px);
  }
}


/* PMMS Hero: remove grey background behind slider on mobile/any device */
.hero.pmms-hero-astra{
  background: #fff !important; /* override .hero { background:#e9edf2 } */
}

/* Ensure slider wrapper doesn't inherit theme hero background-image */
.hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
  background-image: none !important;
  border-bottom: 0 !important;
}


/* ULTIMATE MOBILE FIX: remove any fixed/aspect height + remove grey/gradient backgrounds */
@media (max-width: 640px){
  .hero.pmms-hero-astra,
  .hero.pmms-hero-astra .hero-wrap,
  .hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
    background: #fff !important;
    background-image: none !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: unset !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero.pmms-hero-astra .hero-wrap.pmms-hero-slider:before{
    content: none !important;
    display: none !important;
  }

  /* ensure hero doesn't reserve extra space */
  .hero.pmms-hero-astra .pmms-hero-slide{ margin:0 !important; }
  .hero.pmms-hero-astra .pmms-hero-controls{ margin:0 !important; }
}


  .hero.pmms-hero-astra .pmms-hero-nav{
    background: rgba(0,0,0,0.18) !important;
  }
}


/* Mobile: set slider controls background to match section background (#F3F5F7) */
@media (max-width: 640px){
  .hero.pmms-hero-astra .pmms-hero-controls{
    background: #F3F5F7 !important;
    border-top: 0 !important;
  }
}


/* PMMS Hero: slide (geser) transition instead of fade */
.hero.pmms-hero-astra .hero-wrap.pmms-hero-slider{
  overflow: hidden;
  position: relative;
}

/* JS will wrap slides into .pmms-hero-track */
.hero.pmms-hero-astra .pmms-hero-track{
  display: flex;
  width: 100%;
  transform: translate3d(0,0,0);
  transition: transform 650ms ease;
  will-change: transform;
}

.hero.pmms-hero-astra .pmms-hero-slide{
  flex: 0 0 100%;
  width: 100%;
  display: block !important; /* we manage visibility by transform */
  position: relative !important;
  inset: auto !important;
  opacity: 1 !important;
  transition: none !important;
}

/* Image behavior: mobile contain, tablet/desktop cover (already set by other rules). Ensure it fills slide frame on desktop */
@media (min-width: 641px){
  .hero.pmms-hero-astra .pmms-hero-slide img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
@media (max-width: 640px){
  .hero.pmms-hero-astra .pmms-hero-slide img{
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}


/* Controls sit inside image at bottom-center */
.hero.pmms-hero-astra .pmms-hero-controls{
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 12px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  position: absolute !important;
  left: 50% !important;
  bottom: 16px !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  z-index: 6 !important;
  pointer-events: auto;
}

/* Arrow buttons */
.hero.pmms-hero-astra .pmms-hero-nav{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.22); /* translucent */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hero.pmms-hero-astra .pmms-hero-nav span{
  font-size: 26px;
  line-height: 1;
  color: #fff; /* white arrows */
  transform: translateY(-1px);
}

/* Dots */
.hero.pmms-hero-astra .pmms-hero-dots{ display:flex; align-items:center; gap: 10px; }
.hero.pmms-hero-astra .pmms-hero-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
}
.hero.pmms-hero-astra .pmms-hero-dot.is-active{ background: #e11b22; }

/* Small screens: keep inside image, slightly tighter */
@media (max-width: 640px){
  .hero.pmms-hero-astra .pmms-hero-controls{
    bottom: 12px !important;
    gap: 12px;
  }
  .hero.pmms-hero-astra .pmms-hero-nav{ width: 42px; height: 42px; }
  .hero.pmms-hero-astra .pmms-hero-dot{ width: 9px; height: 9px; }
}


/* PMMS Hero: controls BELOW image (homepage) with NO background */
.hero.pmms-hero-astra .pmms-hero-controls{
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 12px 18px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  position: static !important;
  transform: none !important;
  width: 100% !important;
  z-index: 2 !important;
}

/* Arrow buttons: keep subtle translucent button, but no container bg */
.hero.pmms-hero-astra .pmms-hero-nav{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.10); /* subtle, can be changed */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hero.pmms-hero-astra .pmms-hero-nav span{
  font-size: 26px;
  line-height: 1;
  color: rgba(0,0,0,0.55);
  transform: translateY(-1px);
}

/* Dots */
.hero.pmms-hero-astra .pmms-hero-dots{ display:flex; align-items:center; gap: 10px; }
.hero.pmms-hero-astra .pmms-hero-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.14);
  cursor: pointer;
  padding: 0;
}
.hero.pmms-hero-astra .pmms-hero-dot.is-active{ background: #e11b22; }

@media (max-width: 640px){
  .hero.pmms-hero-astra .pmms-hero-nav{ width: 42px; height: 42px; }
  .hero.pmms-hero-astra .pmms-hero-dot{ width: 9px; height: 9px; }
}


/* PMMS Hero: white arrow icons */
.hero.pmms-hero-astra .pmms-hero-nav{
  background: rgba(0,0,0,0.18) !important;
}
.hero.pmms-hero-astra .pmms-hero-nav span{
  color: #fff !important;
}


/* Match area (1) background to section (2) background */
.hero.pmms-hero-astra{
  background: #F3F5F7 !important;
}
/* Ensure the space below image + controls sits on same background */
.hero.pmms-hero-astra .pmms-hero-controls{
  background: transparent !important;
}
.hero.pmms-hero-astra + *{
  background: #F3F5F7; /* first section after hero, if it was inheriting different bg */
}


/* PMMS Hero: match arrow icon colors to sample (dark translucent circle + white arrow) */
.hero.pmms-hero-astra .pmms-hero-nav{
  background: rgba(0,0,0,0.18) !important;
}
.hero.pmms-hero-astra .pmms-hero-nav span{
  color: #fff !important;
}

/* Dots: subtle grey like sample UI */
.hero.pmms-hero-astra .pmms-hero-dot{
  background: rgba(0,0,0,0.18) !important;
}
.hero.pmms-hero-astra .pmms-hero-dot.is-active{
  background: #e11b22 !important;
}

