
/* Header and footer shared across home and all internal pages */
.site-header{background:#fff;border-bottom:1px solid #edf1ee;position:sticky;top:0;z-index:100}
.site-header .container.nav{max-width:1280px;margin:auto}
.site-header .brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#17231d}
.header-logo-image{width:76px;height:58px}.header-logo-image img{width:100%;height:100%;object-fit:contain}
.footer-logo-image{width:78px;height:58px;display:flex;align-items:center;justify-content:center}.footer-logo-image img{max-width:100%;max-height:100%;object-fit:contain}
.site-footer{margin-top:0}
.front-body>main{min-height:45vh}
.promo-art.has-image{padding:0!important;overflow:hidden;background:#eaf1ed}
.promo-art.has-image img{width:100%;height:100%;min-height:320px;display:block;object-fit:cover}
.promo-art>span{display:grid;place-items:center;width:100%;height:100%}
.register-type-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#edf4ef;border-radius:13px;padding:5px;margin-bottom:18px}
.register-type-switch a{text-align:center;text-decoration:none;color:#486057;border-radius:10px;padding:10px;font-weight:900}
.register-type-switch a.active{background:#0f4a35;color:#fff}
.showroom-register-note{text-align:center;margin-top:14px;background:#f1f7f3;border-radius:11px;padding:10px}.showroom-register-note a{color:#168b2a;font-weight:900;text-decoration:none}
.create-showroom-box{margin-bottom:22px}.create-showroom-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.create-showroom-form label{display:grid;gap:7px;font-size:13px;font-weight:800}.create-showroom-form input,.create-showroom-form select,.create-showroom-form textarea{width:100%;border:1px solid #d9e3dd;border-radius:12px;padding:11px 13px;font-family:inherit;background:#fff}.create-showroom-form .wide{grid-column:1/-1}
.promo-preview img{max-width:100%!important;max-height:180px!important}
@media(max-width:950px){.create-showroom-form{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.create-showroom-form{grid-template-columns:1fr}.create-showroom-form .wide{grid-column:auto}.promo-art.has-image img{min-height:230px}}


/* Patch 036: robust footer logo */
.footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.footer-logo-image{
  width:74px;
  height:58px;
  border-radius:16px;
  background:linear-gradient(145deg,#123f30,#1d6a49);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  flex:0 0 auto;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}
.footer-logo-image img{
  display:block;
  max-width:88%;
  max-height:82%;
  object-fit:contain;
  position:relative;
  z-index:2;
}
.footer-logo-image b{
  display:none;
  color:#fff;
  font-size:22px;
  letter-spacing:1px;
  font-weight:900;
}
.footer-logo-image.fallback img{display:none}
.footer-logo-image.fallback b{display:block}


/* Patch 037: one shared header/footer on every route */
.site-header .header-logo-image{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.site-header .header-logo-image img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}
.site-header .logo,
.footer-logo-image{
  flex:0 0 auto;
}
.front-body > main{
  width:100%;
}
.site-footer{
  width:100%;
}
.latest-cars-section{
  width:100%;
}
.latest-cars-shell{
  direction:rtl;
}
.latest-cars-track{
  direction:rtl;
}


/* Patch 038: linked professional service icons */
.home-services .services-row{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  overflow:hidden;
}
.home-services .service-card{
  min-height:142px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-decoration:none;
  color:#23352c;
  transition:background .22s ease,transform .22s ease,color .22s ease;
}
.home-services .service-card:hover{
  background:#f2f8f4;
  color:#0f4a35;
  transform:translateY(-3px);
}
.home-services .service-icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:linear-gradient(145deg,#ebf8ef,#dff1e5);
  color:#0f6842;
  box-shadow:inset 0 0 0 1px #d2e7d8,0 9px 24px rgba(15,74,53,.09);
}
.home-services .service-icon svg{
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.home-services .service-card b{
  font-size:14px;
}
