/*
Theme Name: MatMama - Nauka bez stresu
Theme URI: https://matmama.pl/
Author: MatMama
Author URI: https://matmama.pl/
Description: Motyw WordPress odtwarzajacy pastelowa strone MatMama z sekcjami: hero, dla kogo, e-booki, o mnie, newsletter i stopka.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matmama
*/

:root {
  --mm-navy: #123456;
  --mm-navy-soft: #244663;
  --mm-teal: #29aaa6;
  --mm-teal-dark: #16938f;
  --mm-coral: #ff7a66;
  --mm-mint: #eaf8f6;
  --mm-bluewash: #f3fbfd;
  --mm-cream: #fff5de;
  --mm-pink: #ffe6e1;
  --mm-sky: #dff2f8;
  --mm-line: rgba(18, 52, 86, .12);
  --mm-shadow: 0 18px 34px rgba(18, 52, 86, .12);
  --mm-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mm-navy);
  background: #fff;
  font-family: Poppins, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mm-shell, .mm-products-grid {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
}

.mm-products-grid {
	padding: 52px 0 58px;
}
#start {
	margin: 70px 0;
}
.mm-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}

.mm-header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.mm-logo img {
  width: 325px;
}

.mm-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--mm-navy);
  font-size: 13px;
  font-weight: 600;
}

.mm-nav a {
  position: relative;
  padding: 9px 5px;
}

.mm-nav a:first-child {
  color: var(--mm-teal);
}

.mm-nav a:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: var(--mm-teal);
  transform: translateX(-50%);
}

.mm-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--mm-teal);
  color: #fff;
  background: linear-gradient(180deg, #35b7b2, #20a5a1);
  box-shadow: 0 8px 18px rgba(41, 170, 166, .22);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mm-outline {
  color: var(--mm-teal-dark);
  background: #fff;
  box-shadow: none;
}

.mm-section {
  position: relative;
  overflow: hidden;
}

.mm-hero {
  padding: 30px 0 0;
  background: radial-gradient(circle at 68% 42%, rgba(234, 248, 246, .95) 0 185px, transparent 186px),
    radial-gradient(circle at 88% 54%, rgba(226, 244, 247, .95) 0 106px, transparent 107px),
    #fff;
}

.mm-hero-grid {
  min-height: 470px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: 36px;
}

.mm-kicker-heart {
  width: 18px;
  height: 18px;
  margin: 0 0 24px;
  color: var(--mm-coral);
}

.mm-hero h1 {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--mm-navy);
  font-size: clamp(48px, 7.1vw, 84px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 800;
}

.mm-lead {
  max-width: 520px;
  margin: 0 0 28px;
  color: #183b5c;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
  font-weight: 500;
}

.mm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 42px;
}

.mm-actions .mm-pill {
  min-width: 250px;
  min-height: 51px;
  font-size: 15px;
}

.mm-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 620px;
}

.mm-benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  color: #173655;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.mm-line-icon {
  color: var(--mm-teal);
}

.mm-coral {
  color: var(--mm-coral);
}

.mm-hero-media {
  position: relative;
  align-self: end;
}

.mm-hero-media::before {
  content: "";
  position: absolute;
  width: 115px;
  height: 115px;
  left: 25px;
  top: 72px;
  border: 5px solid var(--mm-teal);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 45% 55% 55% 45%;
  transform: rotate(45deg);
  opacity: .9;
}

.mm-hero-image {
  width: min(100%, 620px);
  margin-left: auto;
  filter: drop-shadow(0 22px 20px rgba(18, 52, 86, .08));
}

.mm-dots {
  position: absolute;
  right: 24px;
  bottom: 130px;
  width: 86px;
  height: 70px;
  opacity: .5;
  background-image: radial-gradient(var(--mm-teal) 2px, transparent 2.5px);
  background-size: 16px 16px;
}

.mm-audience {
  padding: 52px 0 58px;
  background: linear-gradient(180deg, #f6fcfd 0%, #eef9fb 100%);
}

.mm-section-title {
  margin: 0 0 34px;
  text-align: center;
}

.mm-section-title .mm-mini-heart {
  width: 14px;
  height: 14px;
  margin: 0 auto 11px;
  color: var(--mm-coral);
}

.mm-section-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--mm-navy);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 800;
}

.mm-section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: var(--mm-teal);
  transform: translateX(-50%);
}

.mm-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mm-audience-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 34px 0;
  text-align: center;
  border-right: 1px solid var(--mm-line);
}

.mm-audience-card:last-child {
  border-right: 0;
}

.mm-audience-card svg {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--mm-teal);
}

.mm-audience-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.mm-audience-card p {
  margin: 0;
  color: #23425e;
  font-size: 14px;
  line-height: 1.6;
}

.mm-products {
  padding: 35px 0 42px;
  background: #fff;
}

.mm-products-grid {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 46px;
  align-items: center;
}

.mm-products-copy h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}

.mm-products-copy p {
  margin: 0 0 24px;
  color: #1f3d59;
  font-size: 15px;
}

.mm-products-copy .mm-pill {
  padding-inline: 24px;
}

.mm-product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
}

.mm-product {
  min-width: 0;
  padding: 8px 8px 13px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 52, 86, .13);
}

.mm-product-art {
  aspect-ratio: 1 / 1.13;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 18px;
  border-radius: 6px;
  text-align: center;
}

.mm-product:nth-child(1) .mm-product-art { background: #d9efeb; }
.mm-product:nth-child(2) .mm-product-art { background: #ffe2dd; }
.mm-product:nth-child(3) .mm-product-art { background: #dceff7; }
.mm-product:nth-child(4) .mm-product-art { background: #ffefd0; }

.mm-product-art h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.mm-product-art svg {
  width: 82px;
  height: 82px;
  color: #5d7984;
}

.mm-product-body {
  padding: 13px 4px 0;
}

.mm-product-body h4 {
  margin: 0 0 2px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.mm-product-body p {
  min-height: 21px;
  margin: 0 0 12px;
  color: #38516a;
  font-size: 12px;
  line-height: 1.25;
}

.mm-price {
  color: #ff654f;
  font-size: 13px;
  font-weight: 700;
}

.mm-about {
  padding: 34px 0;
  background: linear-gradient(90deg, #eaf8f6 0%, #f7fcfd 58%, #fff 100%);
}

.mm-about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr 350px;
  align-items: center;
  gap: 42px;
}

.mm-hand-heart {
  position: absolute;
  pointer-events: none;
}

.mm-hand-heart-left {
  left: -4px;
  top: 68px;
  width: 68px;
  color: var(--mm-teal);
  transform: rotate(-10deg);
}

.mm-about-photo {
  width: 210px;
  height: 210px;
  margin: 0 auto;
  border: 1px solid rgba(41, 170, 166, .28);
  border-radius: 50%;
  object-fit: cover;
}

.mm-about-copy h2 {
  margin: 0 0 11px;
  font-size: 27px;
  line-height: 1.18;
  font-weight: 800;
}

.mm-about-copy p {
  margin: 0 0 18px;
  color: #173655;
  font-size: 14px;
  line-height: 1.75;
}

.mm-quote {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  padding: 30px 42px;
  border: 1px dashed rgba(41, 170, 166, .55);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
}

.mm-hand-heart-right {
  right: -35px;
  bottom: -17px;
  width: 78px;
  color: var(--mm-coral);
  background: #fff;
  transform: rotate(7deg);
}

.mm-quote::before {
  content: "”";
  position: absolute;
  left: 20px;
  top: 4px;
  color: var(--mm-teal);
  font-size: 68px;
  line-height: 1;
  font-weight: 800;
}

.mm-quote p {
  margin: 0;
  padding-left: 18px;
  color: #123456;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

.mm-newsletter-wrap {
  padding: 0 0 22px;
  background: #fff;
}

.mm-newsletter {
  min-height: 126px;
  display: grid;
  grid-template-columns: 170px 1fr 470px;
  align-items: center;
  gap: 18px;
  padding: 20px 44px;
  border-radius: 18px 18px 0 0;
  color: #fff;
  background: linear-gradient(90deg, #12395e 0%, #0e3358 52%, #113d62 100%);
}

.mm-envelope svg {
  width: 150px;
  height: 92px;
  margin: 0 auto;
}

.mm-envelope-orbit {
  opacity: .88;
}

.mm-newsletter h2 {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
}

.mm-newsletter p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.mm-form {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
}

.mm-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  color: var(--mm-navy);
  background: #fff;
}

.mm-form button {
  border: 0;
  cursor: pointer;
}

.mm-site-footer {
  background: #fff;
}

.mm-footer-grid {
  display: grid;
  grid-template-columns: 300px 1fr 330px;
  gap: 54px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(18, 52, 86, .1);
}

.mm-footer-logo img {
  width: 252px;
}

.mm-footer-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.mm-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.mm-socials {
  display: flex;
  gap: 25px;
}

.mm-social {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 52, 86, .08);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 18px rgba(18, 52, 86, .06);
  font-weight: 800;
}

.mm-social:nth-child(1) { color: #000; }
.mm-social:nth-child(2) { color: #df4b8c; }
.mm-social:nth-child(3) { color: #2e5d9d; }
.mm-social:nth-child(4) { color: #ff2a21; }

.mm-footer-bottom {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #344f68;
  font-size: 12px;
}

.mm-policy {
  display: flex;
  gap: 90px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .mm-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0;
  }

  .mm-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 26px;
  }

  .mm-hero-grid,
  .mm-products-grid,
  .mm-about-grid,
  .mm-newsletter,
  .mm-footer-grid {
    grid-template-columns: 1fr;
  }

  .mm-hero-grid {
    text-align: center;
  }

  .mm-kicker-heart,
  .mm-hero h1,
  .mm-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .mm-actions,
  .mm-benefits {
    justify-content: center;
    margin-inline: auto;
  }

  .mm-products-copy {
    text-align: center;
  }

  .mm-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 650px;
    margin: 0 auto;
  }

  .mm-newsletter {
    text-align: center;
    border-radius: 14px;
  }

  .mm-form {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .mm-shell {
    width: min(100% - 28px, 1160px);
  }

  .mm-logo img {
    width: min(100%, 280px);
  }

  .mm-nav {
    font-size: 12px;
  }

  .mm-hero {
    padding-top: 14px;
  }

  .mm-hero-grid {
    min-height: 0;
  }

  .mm-hero h1 {
    font-size: clamp(43px, 16vw, 64px);
  }

  .mm-actions .mm-pill {
    width: 100%;
    min-width: 0;
  }

  .mm-benefits {
    width: 100%;
    max-width: 360px;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .mm-benefit {
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    padding: 12px 14px;
    border: 1px solid rgba(41, 170, 166, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    text-align: left;
    font-size: 13px;
  }

  .mm-benefit svg {
    width: 34px;
    height: 34px;
  }

  .mm-benefit span {
    min-width: 0;
  }

  .mm-audience-grid,
  .mm-product-list {
    grid-template-columns: 1fr;
  }

  .mm-audience-card {
    border-right: 0;
    border-bottom: 1px solid var(--mm-line);
    padding-bottom: 28px;
  }

  .mm-audience-card:last-child {
    border-bottom: 0;
  }

  .mm-about-grid {
    gap: 26px;
    text-align: center;
  }

  .mm-hand-heart-left {
    left: 8px;
    top: 6px;
    width: 52px;
  }

  .mm-quote {
    padding: 34px 22px 26px;
    text-align: left;
  }

  .mm-hand-heart-right {
    right: 8px;
    bottom: -29px;
    width: 58px;
    background: transparent;
  }

  .mm-form {
    grid-template-columns: 1fr;
  }

  .mm-footer-links {
    grid-template-columns: 1fr;
  }

  .mm-footer-bottom,
  .mm-policy {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* === E-booki (dynamiczne) === */
.mm-product { position: relative; }

/* Klikalna karta */
a.mm-product {
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, box-shadow .18s ease;
}
a.mm-product:hover,
a.mm-product:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 18px 38px rgba(30, 58, 95, .14);
}
a.mm-product:focus-visible {
	outline: 3px solid rgba(91, 140, 122, .5);
	outline-offset: 3px;
}

/* Plakietka oznaczenia */
.mm-badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	padding: 5px 12px; border-radius: 999px;
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: .72rem; font-weight: 700; letter-spacing: .02em;
	color: #fff; line-height: 1;
	box-shadow: 0 4px 12px rgba(30, 58, 95, .18);
}
.mm-badge-nowy     { background: #F4845F; }
.mm-badge-promocja { background: #5B8C7A; }
.mm-badge-wkrotce  { background: #1E3A5F; }

/* Okladka - jednolite proporcje kart */
.mm-product-cover {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

/* Strona z lista e-bookow */
.mm-page-hero { text-align: center; }
.mm-page-hero .mm-section-title { justify-content: center; }
.mm-page-hero h1 { margin: 0; }
.mm-page-lead { max-width: 640px; margin: 14px auto 0; font-size: 1.1rem; line-height: 1.7; color: #5B8C7A; font-weight: 600; }

.mm-ebooks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

/* Paginacja */
.mm-pagination { margin-top: 36px; }
.mm-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mm-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.mm-pagination a, .mm-pagination .current {
	display: inline-block; padding: 8px 14px;
	border-radius: 10px; font-weight: 700; text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.mm-pagination .current { background: #1E3A5F; color: #fff; }
.mm-pagination a { background: #FAF8F4; color: #1E3A5F; }
.mm-pagination a:hover { background: #5B8C7A; color: #fff; }
/* === Opinie === */
.mm-quote-author {
	display: block; margin-top: 14px;
	font-family: 'Poppins', system-ui, sans-serif;
	font-style: normal; font-weight: 700; color: #5B8C7A;
}
.mm-quote-author span { color: #98a2b0; font-weight: 600; }

.mm-opinie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.mm-opinia-card {
	position: relative;
	background: #fff;
	border: 1px solid rgba(30, 58, 95, .08);
	border-radius: 22px;
	box-shadow: 0 16px 36px rgba(30, 58, 95, .06);
	padding: 30px 28px;
}
.mm-opinia-mark { width: 40px; height: 40px; color: #F4845F; margin-bottom: 12px; }
.mm-opinia-text {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: 1.05rem; line-height: 1.8; color: #3a4a5c; margin: 0 0 18px;
}
.mm-opinia-meta { display: flex; flex-direction: column; gap: 2px; }
.mm-opinia-author { font-family: 'Poppins', system-ui, sans-serif; font-weight: 700; color: #1E3A5F; }
.mm-opinia-role { font-family: 'Nunito', system-ui, sans-serif; font-size: .92rem; color: #98a2b0; }