/* ======================================================================
   HOME – dodatki (CityZen)
   Slider wpisów + zwijana treść SEO + CTA w kafelkach ofert
   Tokeny: Montserrat | dark #363e41 / #26343a | gold #f5c46a | red #dd042b
   Plik: wp-content/themes/ClenPress/assets/css/home-extra.css
   ====================================================================== */

:root {
  --cz-dark: #363e41;
  --cz-darker: #26343a;
  --cz-gold: #f5c46a;
  --cz-gold-dark: #eab94f;
  --cz-red: #dd042b;
  --cz-muted: #8b9396;
  --cz-line: #e2e2e2;
  --cz-bg-soft: #f7f7f7;
}

/* ============================ KAFELEK OFERTY – LINK + CTA ============================ */
.offer__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s linear;
}
.offer__title-link:hover { color: var(--cz-red); }
.offer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 18px;
}
.offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 32px;
  border-radius: 3px;
  background: var(--cz-gold);
  color: var(--cz-darker) !important;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s linear;
}
.offer__cta:hover { background: var(--cz-gold-dark); }

/* ============================ SLIDER WPISÓW ============================ */
.home-blog {
  padding: 80px 0;
  background: #fff;
  font-family: "Montserrat", sans-serif;
}
.home-blog .container { max-width: 1200px; margin: 0 auto; }
.home-blog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.home-blog__title {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cz-darker);
  margin: 0;
}
.home-blog__all {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cz-darker);
  text-decoration: none;
  transition: color 0.15s linear;
}
.home-blog__all:hover { color: var(--cz-red); }

.home-blog__carousel { position: relative; }
.home-blog__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.home-blog__track::-webkit-scrollbar { display: none; }
.home-blog__item {
  flex: 0 0 calc((100% - 84px) / 4);
  scroll-snap-align: start;
}
.home-blog__link { display: block; text-decoration: none; }
.home-blog__thumb {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #ececec;
  aspect-ratio: 16 / 10;
}
.home-blog__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.home-blog__link:hover .home-blog__img { transform: scale(1.06); }
.home-blog__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.home-blog__cat { color: var(--cz-darker); font-weight: 700; padding: 3px 9px; background: var(--cz-bg-soft); border-radius: 3px; }
.home-blog__date { color: var(--cz-muted); }
.home-blog__heading {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cz-darker);
  transition: color 0.15s linear;
}
.home-blog__link:hover .home-blog__heading { color: var(--cz-red); }

.home-blog__nav {
  position: absolute;
  top: 28%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--cz-darker);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.2s linear;
  z-index: 2;
}
.home-blog__nav:hover { background: var(--cz-gold); }
.home-blog__nav--prev { left: -16px; }
.home-blog__nav--next { right: -16px; }
.home-blog__nav[disabled] { opacity: 0; pointer-events: none; }

/* ============================ ZWIJANA TREŚĆ SEO ============================ */
.home-seo {
  padding: 70px 0 80px;
  background: var(--cz-bg-soft);
  font-family: "Montserrat", sans-serif;
  color: var(--cz-dark);
}
.home-seo .container { max-width: 1100px; margin: 0 auto; position: relative; }
.home-seo__content {
  position: relative;
  overflow: hidden;
  max-height: 220px;
  font-size: 15px;
  line-height: 1.75;
  transition: max-height 0.4s ease;
}
.home-seo.is-open .home-seo__content { max-height: 8000px; }
.home-seo__content::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(247,247,247,0), var(--cz-bg-soft));
  transition: opacity 0.3s ease;
}
.home-seo.is-open .home-seo__content::after { opacity: 0; }
.home-seo__content h2 { font-size: 26px; font-weight: 700; color: var(--cz-darker); margin: 0 0 16px; line-height: 1.3; }
.home-seo__content h3 { font-size: 20px; font-weight: 700; color: var(--cz-darker); margin: 28px 0 12px; }
.home-seo__content p { margin: 0 0 14px; }
.home-seo__content ul, .home-seo__content ol { margin: 14px 0; padding-left: 22px; }
.home-seo__content li { margin-bottom: 8px; line-height: 1.6; }
.home-seo__content a { color: var(--cz-red); text-decoration: underline; }

.home-seo__toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 11px 30px;
  border: 2px solid var(--cz-darker);
  border-radius: 3px;
  background: transparent;
  color: var(--cz-darker);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s linear, color 0.2s linear;
}
.home-seo__toggle:hover { background: var(--cz-darker); color: #fff; }
.home-seo__toggle-hide { display: none; }
.home-seo.is-open .home-seo__toggle-show { display: none; }
.home-seo.is-open .home-seo__toggle-hide { display: inline; }

/* ============================ RWD ============================ */
@media (max-width: 991px) {
  .home-blog__item { flex: 0 0 calc((100% - 28px) / 2); }
  .home-blog__nav { display: none; }
  .home-blog__title { font-size: 28px; }
}
@media (max-width: 767px) {
  .home-blog { padding: 56px 0; }
  .home-blog__item { flex: 0 0 80%; }
  .offer__actions { gap: 12px; }
  .offer__cta { width: 100%; }
}
@media (max-width: 600px) {
  .home-blog__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
