/* =============================================
   mm-homepage.css — Strona glowna marexmotor.pl
   Rebuild 2026-04-02 | Flexbox, responsive
   ============================================= */

/* --- Zmienne --- */
:root {
  --mm-max-width: 956px;
  --mm-bg: #000000;
  --mm-card-bg: #121212;
  --mm-text: #ffffff;
  --mm-text-muted: #d6d4d4;
  --mm-accent: #fff200;
  --mm-gap: 20px;
  --mm-pad: 20px;
}

/* --- Body background --- */
body {
  background: var(--mm-bg) url(/grafika/bg_tresc.gif) repeat-x top center;
}

/* --- Page Wrapper (tlo desktop) --- */
.mm-page {
  max-width: var(--mm-max-width);
  margin: 0 auto;
  padding: 0 var(--mm-pad);
  box-sizing: border-box;
  background: none;
}

/* --- Hero Wrapper --- */
.mm-hero-wrapper {
  margin: 0 calc(var(--mm-pad) * -1);
  position: relative;
}
.mm-hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
}

/* Desktop (>920px): bg na page wrapper, hero bez bg */
@media (min-width: 921px) {
  .mm-page {
    background: url(grafika/bg-desktop.jpg) no-repeat top center;
    background-size: 100% auto;
  }
  .mm-hero-wrapper {
    background: none;
  }
  .mm-hero-wrapper::before {
    display: none;
  }
  .mm-hero {
    min-height: 520px;
  }
}

/* Mobile (<=920px): bg na hero wrapper */
@media (max-width: 920px) {
  .mm-hero-wrapper {
    background: url(grafika/bg-mobile.jpg) no-repeat top center;
    background-size: cover;
  }
  .mm-hero {
    aspect-ratio: 5 / 4;
  }
}

/* --- Hero --- */
.mm-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--mm-pad) var(--mm-pad) calc(var(--mm-pad) * 3);
  position: relative;
}
.mm-hero__heading {
  position: relative;
  color: var(--mm-text);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.mm-hero__sub {
  position: relative;
  color: var(--mm-text-muted);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* --- News --- */
.mm-news-row {
  padding: calc(var(--mm-pad) * 2) 0 var(--mm-pad);
  display: flex;
  gap: var(--mm-gap);
}
.mm-news {
  flex: 1 1 0;
  display: flex;
  gap: 10px;
  margin-bottom: var(--mm-gap);
  color: var(--mm-text);
  text-decoration: none;
}
.mm-news a {
  display: flex;
  gap: 10px;
  color: var(--mm-text);
  text-decoration: none;
}
.mm-news a:hover {
  color: #999;
  text-decoration: none;
}
.mm-news img {
  width: 95px;
  height: 95px;
  flex-shrink: 0;
  object-fit: cover;
}
.mm-news__text h2 {
  color: var(--mm-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  margin: 5px 0 7px 0;
  text-transform: uppercase;
}
.mm-news__text p {
  font-size: 10px;
  line-height: 16px;
  color: var(--mm-text-muted);
  margin: 0;
}


/* --- Brands Grid --- */
.mm-brands {
}
.mm-brands__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mm-gap);
}
.mm-brand-card {
  flex: 1 1 calc(25% - 15px);
  min-height: 200px;
  background-color: var(--mm-card-bg);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: auto;
  padding: var(--mm-pad);
  box-sizing: border-box;
  text-decoration: none;
  color: var(--mm-text);
  display: block;
  transition: opacity 0.2s;
}
.mm-brand-card:hover {
  opacity: 0.9;
  color: var(--mm-text);
  text-decoration: none;
}
.mm-brand-card h2 {
  color: var(--mm-text);
  font-size: 14px;
  font-weight: bold;
  line-height: 19px;
  margin: 0 0 5px 0;
  text-transform: uppercase;
}
.mm-brand-card p {
  color: var(--mm-text-muted);
  font-size: 10px;
  line-height: 13px;
  margin: 0;
}

/* Regeneracja — podwojna szerokosc, zolte tlo */
.mm-brand-card--regeneracja {
  flex: 1 1 calc(50% - 10px);
  background-color: var(--mm-accent);
  color: #0f0f0f;
}
.mm-brand-card--regeneracja p {
  color: #0f0f0f;
  font-size: 12px;
  line-height: 16px;
}
.mm-brand-card__logo {
  margin-bottom: 10px;
}
.mm-brand-card__logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Background images per brand */
.mm-brand-card--leovince      { background-image: url(grafika/b2_leovince4.jpg); }
.mm-brand-card--vh            { background-image: url(grafika/b2_vance&hines4.jpg); }
.mm-brand-card--mivv          { background-image: url(grafika/b2_mivv.jpg); }
.mm-brand-card--fmf           { background-image: url(grafika/b2_fmf.jpg); }
.mm-brand-card--yamaha-czesci { background-image: url(grafika/b2_yamaha4.jpg); }
.mm-brand-card--yamaha-serwis { background-image: url(grafika/b2_serwis.jpg); }
.mm-brand-card--regeneracja   { /* logo jako <img> we wrapperze z overflow:hidden */ }

/* --- Partnerzy --- */
.mm-partners {
  padding: var(--mm-pad) 0;
}
.mm-partners__title {
  font-size: 11px;
  line-height: 16px;
  color: #686868;
  margin: 0 0 10px 10px;
}
.mm-partners__grid {
  display: flex;
  gap: var(--mm-gap);
}
.mm-partner-card {
  flex: 1;
  display: flex;
  align-items: center;
  background: #000;
  padding: 15px;
  min-height: 100px;
  box-sizing: border-box;
}
.mm-partner-card img {
  flex-shrink: 0;
  margin-right: 10px;
}
.mm-partner-card p {
  color: var(--mm-text-muted);
  font-size: 10px;
  line-height: 13px;
  margin: 0;
}
.mm-partner-card a {
  color: var(--mm-text-muted);
  text-decoration: none;
}
.mm-partner-card b {
  color: var(--mm-text);
}

/* --- Cech --- */
.mm-cech {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.mm-cech__text {
  font-size: 11px;
  line-height: 16px;
  color: #686868;
  text-align: center;
  margin: 0;
}
.mm-cech__img {
  flex-shrink: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- Tablet (<=956px) --- */
@media (max-width: 956px) {
  .mm-hero__heading {
    font-size: 28px;
  }
  .mm-brand-card {
    flex: 1 1 calc(50% - 10px);
    min-height: 160px;
    background-size: auto 85%;
    background-position: bottom right;
  }
  .mm-brand-card--regeneracja {
    flex: 1 1 100%;
  }
}

/* --- Mobile (<=600px) --- */
@media (max-width: 600px) {
  .mm-hero {
    padding: 15px 15px calc(var(--mm-pad) * 2);
  }
  .mm-news-row {
    flex-direction: column;
    padding: 30px 15px 15px;
  }
  .mm-brand-card {
    flex: 1 1 100%;
    min-height: 140px;
  }
  .mm-brand-card--regeneracja {
    flex: 1 1 100%;
  }
  .mm-partners__grid {
    flex-direction: column;
  }
  .mm-cech {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .mm-cech__text {
    text-align: center;
  }
}
