/*
Theme Name: MetroFix Approved
Theme URI: https://metrofix.pl
Author: MetroFix
Version: 25.0
Description: Edytowalny motyw MetroFix odwzorowujący zaakceptowany projekt strony głównej.
*/

:root{
  --mf-dark:#171c21;
  --mf-yellow:#f7c400;
  --mf-text:#171b1f;
  --mf-border:#ececec;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%}
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--mf-text);
  background:#fff;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
main{flex:1;display:flex;flex-direction:column}
.mf-container{
  width:min(1420px,calc(100% - 72px));
  margin:0 auto;
}

/* Header */
.mf-header{
  background:#fff;
  border-top:4px solid var(--mf-dark);
}
.mf-header-inner{
  min-height:176px;
  display:flex;
  align-items:center;
}
.mf-logo,.custom-logo-link{
  display:block;
  width:238px;
}
.mf-logo img,.custom-logo{
  display:block;
  width:100%;
  height:auto;
}

/* Homepage */
.mf-home{
  flex:1;
  display:flex;
  align-items:center;
  padding:14px 0 28px;
}
.mf-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:32px;
  width:100%;
}
.mf-card{
  position:relative;
  width:100%;
  aspect-ratio:0.94 / 1;
  overflow:hidden;
  background:#eee;
  box-shadow:0 2px 12px rgba(0,0,0,.05);
}
.mf-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transition:transform .25s ease;
}
.mf-card:hover img{transform:scale(1.018)}
.mf-card-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0) 48%,
    rgba(255,255,255,.56) 71%,
    rgba(255,255,255,.96) 100%
  );
}
.mf-card-copy{
  position:absolute;
  z-index:2;
  left:32px;
  right:92px;
  bottom:28px;
}
.mf-accent-line{
  display:block;
  width:56px;
  height:4px;
  background:var(--mf-yellow);
  margin-bottom:18px;
}
.mf-card-copy h2{
  margin:0 0 14px;
  font-size:34px;
  line-height:1.02;
  letter-spacing:-.03em;
  font-weight:800;
}
.mf-card-copy p{
  margin:0;
  font-size:18px;
  line-height:1.28;
  color:#34383c;
}
.mf-card-arrow{
  position:absolute;
  z-index:3;
  right:28px;
  bottom:32px;
  width:68px;
  height:68px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--mf-yellow);
  color:#111;
  font-size:34px;
  font-weight:700;
  transition:transform .18s ease;
}
.mf-card:hover .mf-card-arrow{transform:translateX(3px)}

/* Content pages */
.mf-page{
  width:100%;
  padding:64px 0 80px;
}
.mf-page-header{max-width:800px;margin-bottom:36px}
.mf-page h1{margin:0 0 16px;font-size:48px;line-height:1.05}
.mf-page .entry-content{max-width:900px}
.mf-page .entry-content h2{margin-top:42px;font-size:30px}
.mf-page .entry-content h3{margin-top:28px;font-size:22px}
.mf-page .entry-content p,.mf-page .entry-content li{font-size:18px;line-height:1.65}
.mf-page .entry-content ul,.mf-page .entry-content ol{padding-left:22px}
.mf-page .wp-block-button__link{
  background:var(--mf-yellow);
  color:#111;
  border-radius:0;
  font-weight:800;
}

/* Footer */
.mf-footer{
  background:var(--mf-dark);
  color:#fff;
}
.mf-footer-inner{
  min-height:132px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  font-size:15px;
}
.mf-copy{opacity:.94}
.mf-footer-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:26px;
}
.mf-footer-links a{color:#fff;opacity:.96}
.mf-footer-links a:hover{color:var(--mf-yellow)}
.mf-sep{color:var(--mf-yellow)}

/* Tablet */
@media(max-width:1100px){
  .mf-container{width:min(100% - 44px,1000px)}
  .mf-header-inner{min-height:145px}
  .mf-logo,.custom-logo-link{width:215px}
  .mf-cards{gap:20px}
  .mf-card-copy{left:22px;right:72px;bottom:22px}
  .mf-card-copy h2{font-size:27px}
  .mf-card-copy p{font-size:15px}
  .mf-accent-line{width:45px;margin-bottom:13px}
  .mf-card-arrow{width:54px;height:54px;right:18px;bottom:24px;font-size:28px}
}

/* Mobile */
@media(max-width:760px){
  .mf-container{width:min(100% - 28px,560px)}
  .mf-header-inner{min-height:110px}
  .mf-logo,.custom-logo-link{width:190px}
  .mf-home{padding:28px 0 38px}
  .mf-cards{grid-template-columns:1fr;gap:18px}
  .mf-card{aspect-ratio:1 / 1.04}
  .mf-card-copy h2{font-size:30px}
  .mf-card-copy p{font-size:16px}
  .mf-footer-inner{
    min-height:150px;
    flex-direction:column;
    justify-content:center;
    text-align:center;
    gap:16px;
  }
  .mf-footer-links{
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
  }
}

/* ===== MetroFix v24 – richer service subpages ===== */
.mf-main{flex:1;display:flex;flex-direction:column}
.mf-page{padding:0 0 90px;background:#fff}
.mf-page-hero{position:relative;min-height:420px;background-size:cover;background-position:center;display:flex;align-items:flex-end;overflow:hidden}
.mf-page-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,20,24,.76) 0%,rgba(16,20,24,.46) 44%,rgba(16,20,24,.08) 76%),linear-gradient(0deg,rgba(16,20,24,.34),transparent 55%)}
.mf-page-hero-inner{position:relative;z-index:2;padding-bottom:54px;color:#fff}
.mf-page-hero h1{max-width:760px;margin:0;font-size:58px;line-height:1;letter-spacing:-.04em;font-weight:800;text-shadow:0 2px 18px rgba(0,0,0,.16)}
.mf-hero-line{display:block;width:62px;height:5px;background:var(--mf-yellow);margin:0 0 20px}
.mf-page-content-wrap{padding-top:56px}
.mf-page .entry-content{max-width:1080px;margin:0 auto}
.mf-page .entry-content > p:first-child{max-width:900px;margin:0 0 42px;font-size:25px;line-height:1.45;letter-spacing:-.015em;color:#20252a}
.mf-page .entry-content > p:first-child strong{font-weight:700}
.mf-page .entry-content > p:not(:first-child){max-width:900px;color:#4b5157}
.mf-page .entry-content h2{position:relative;margin:64px 0 22px;padding-top:22px;font-size:32px;line-height:1.15;letter-spacing:-.025em}
.mf-page .entry-content h2:before{content:"";position:absolute;left:0;top:0;width:42px;height:4px;background:var(--mf-yellow)}
.mf-page .entry-content ul,.mf-page .entry-content ol{list-style:none;padding:0;margin:26px 0 36px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;counter-reset:mfsteps}
.mf-page .entry-content li{position:relative;margin:0;padding:19px 22px 19px 54px;background:#f6f7f7;border:1px solid #eceeef;font-size:17px;line-height:1.48;min-height:64px}
.mf-page .entry-content ul li:before{content:"✓";position:absolute;left:20px;top:18px;color:#111;font-weight:900;background:var(--mf-yellow);width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px}
.mf-page .entry-content ol li{counter-increment:mfsteps;padding-left:64px}
.mf-page .entry-content ol li:before{content:counter(mfsteps);position:absolute;left:18px;top:17px;width:30px;height:30px;border-radius:50%;background:var(--mf-yellow);display:flex;align-items:center;justify-content:center;font-weight:800;color:#111}
.mf-page .wp-block-buttons{margin-top:28px}
.mf-page .wp-block-button__link{padding:16px 25px;border-radius:999px;box-shadow:0 6px 18px rgba(247,196,0,.22);transition:transform .18s ease,box-shadow .18s ease}
.mf-page .wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(247,196,0,.3)}
.mf-page .entry-content > .wp-block-buttons:last-child{margin-bottom:10px}
.mf-edit-note{max-width:1080px;margin:55px auto 0;padding:13px 16px;background:#fff9d9;border-left:4px solid var(--mf-yellow);font-size:13px;color:#656565}
.mf-standard-page{padding-top:62px}
.mf-standard-page .mf-page-header{max-width:1080px;margin:0 auto 40px}
.mf-standard-page .mf-page-header h1{font-size:52px;letter-spacing:-.035em}

@media(max-width:900px){
  .mf-page-hero{min-height:350px}
  .mf-page-hero h1{font-size:46px}
  .mf-page .entry-content ul,.mf-page .entry-content ol{grid-template-columns:1fr}
}
@media(max-width:600px){
  .mf-page{padding-bottom:60px}
  .mf-page-hero{min-height:300px}
  .mf-page-hero-inner{padding-bottom:34px}
  .mf-page-hero h1{font-size:39px}
  .mf-page-content-wrap{padding-top:38px}
  .mf-page .entry-content > p:first-child{font-size:21px;margin-bottom:30px}
  .mf-page .entry-content h2{font-size:27px;margin-top:48px}
  .mf-page .entry-content li{font-size:16px}
}
