/* Borusja – wygląd strony (4.6.0). Ładowany na wszystkich stronach po frontend.css. */

:root {
  --b-ink: #1f2a3a;          /* łupkowy granat – tekst */
  --b-ink-soft: #55627a;     /* tekst pomocniczy */
  --b-blue: #5f7896;         /* rosyjski niebieski */
  --b-blue-deep: #3d5270;
  --b-silver: #dfe5ee;       /* srebrzysty */
  --b-lav: #7d6fb0;          /* lawenda z nagłówka */
  --b-lav-soft: #ece8f6;
  --b-cream: #f8f6f2;        /* tło strony */
  --b-card: #ffffff;
  --b-line: #e6e2da;
  --b-shadow: 0 1px 2px rgba(31,42,58,.06), 0 8px 24px rgba(31,42,58,.07);
  --b-shadow-hover: 0 2px 4px rgba(31,42,58,.08), 0 16px 36px rgba(31,42,58,.12);
  --b-serif: 'Cormorant Garamond', Georgia, serif;
  --b-sans: 'DM Sans', system-ui, sans-serif;

  /* przestawienie kolorów wtyczki na paletę Borusji */
  --hmm-sys-primary: var(--b-blue-deep);
  --hmm-sys-surface: var(--b-card);
  --hmm-sys-on-surface: var(--b-ink);
  --hmm-sys-on-surface-variant: var(--b-ink-soft);
  --hmm-sys-outline: #8a94a6;
  --hmm-sys-outline-variant: var(--b-line);
  --hmm-sys-surface-container-low: #faf8f5;
  --hmm-sys-surface-container: #f1eee8;
  --hmm-sys-surface-container-high: var(--b-silver);
  --hmm-sys-secondary-container: var(--b-lav-soft);
  --hmm-sys-on-secondary-container: #3b2f6b;
  --hmm-font: var(--b-sans);
}

/* ---------- cała strona ---------- */
body, .ast-separate-container { background: var(--b-cream) !important; }
body { color: var(--b-ink); -webkit-font-smoothing: antialiased; }
.entry-content p { line-height: 1.75; }

/* tytuły podstron (Mioty, Kotki, Kocury…) */
.entry-content .uagb-heading-text {
  font-family: var(--b-serif) !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  color: var(--b-ink) !important;
}
.entry-content > .wp-block-uagb-container .uagb-heading-text::after,
.entry-content .wp-block-uagb-advanced-heading:first-child .uagb-heading-text::after {
  content: ""; display: block; width: 64px; height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--b-blue), var(--b-lav)); border-radius: 2px;
}

/* tytuł na zdjęciu kota w nagłówku – jasny, czytelny */
.entry-content > .alignfull:first-child .uagb-heading-text {
  color: #fff !important;
  text-shadow: 0 2px 24px rgba(20,25,45,.45);
  letter-spacing: .03em;
}
.entry-content > .alignfull:first-child .uagb-heading-text::after { background: rgba(255,255,255,.8) !important; }

/* nagłówek z kotem – łagodniejszy, granatowo-lawendowy filtr i szeryfowy napis */
.uagb-is-root-container.alignfull[style], .wp-block-uagb-container.alignfull { position: relative; }
.site-header .main-header-menu a { letter-spacing: .02em; }
.site-header .main-header-menu a:hover,
.site-header .main-header-menu .current-menu-item > a { color: #fff !important; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* stopka */
.site-footer, .site-footer .ast-builder-grid-row-container { background: #1f2a3a !important; }
.site-footer, .site-footer a, .site-footer p, .site-footer .ast-footer-copyright { color: #dfe5ee !important; }
.site-footer a:hover { color: #fff !important; }

/* ---------- karty wtyczki ---------- */
.hmm-container, .hmm-news-wrapper, .hmm-cats-grid-wrapper { max-width: 1080px; }
.hmm-card, .hmm-news-card {
  border: 1px solid var(--b-line);
  border-radius: 20px;
  box-shadow: var(--b-shadow);
}
.hmm-card:hover, .hmm-news-card:hover { box-shadow: var(--b-shadow-hover); }

.hmm-card-header { padding: 32px 36px 12px; }
.hmm-card-title {
  font-family: var(--b-serif) !important;
  font-size: 2.25rem !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  color: var(--b-ink) !important;
}
.hmm-card-meta, .hmm-news-date {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 5px 12px; border-radius: 999px;
  background: var(--b-lav-soft); color: #4a3d85; font-size: .85rem;
}
.hmm-card-body { padding: 0 36px 28px; font-size: 1.02rem; }
.hmm-card-section { padding: 28px 36px; border-top: 1px solid var(--b-line); }
.hmm-section-title, .hmm-parents-title {
  font-family: var(--b-serif) !important;
  font-size: 1.6rem !important; font-weight: 600 !important;
  color: var(--b-ink) !important; margin-bottom: 18px !important;
}

/* ---------- tabela kociąt ---------- */
.hmm-table-responsive-wrapper { border-radius: 14px; border-color: var(--b-line); }
.hmm-status-table th {
  background: #f4f1ec; color: var(--b-ink-soft);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 20px;
}
.hmm-status-table td { padding: 14px 20px; color: var(--b-ink); border-color: #efebe4; }
.hmm-status-table th + th, .hmm-status-table td + td { border-left: 0 !important; }
.hmm-status-table tbody tr { transition: background .15s; }
.hmm-status-table tbody tr:hover { background: #faf8f4; }
.hmm-status-badge {
  gap: 8px; padding: 5px 14px 5px 11px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .01em;
}
.hmm-status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hmm-status-available { background: #e3f3e8; color: #1f6b3a; }
.hmm-status-option    { background: #fbf0d9; color: #8a5a10; }
.hmm-status-reserved  { background: #f7e3e3; color: #9b2c2c; }

/* ---------- galerie ---------- */
.hmm-gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.hmm-gallery-small .hmm-gallery { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.hmm-gallery-item { border-radius: 14px; box-shadow: 0 1px 3px rgba(31,42,58,.12); }
.hmm-gallery-item img { transition: transform .4s ease; }
.hmm-gallery-item:hover img { transform: scale(1.06); opacity: 1; }

/* ---------- rodzice miotu ---------- */
.hmm-parents-section { padding: 28px 36px 36px; background: linear-gradient(180deg, #f6f4fa, #f8f6f2); border-top: 1px solid var(--b-line); }
.hmm-parent-box { border-radius: 16px; padding: 18px 20px; border-color: var(--b-line); background: #fff; }
.hmm-parent-avatar { width: 76px; height: 76px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--b-silver); }
.hmm-parent-avatar.hmm-father { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #cfd9e6; }
.hmm-parent-label { color: var(--b-lav); letter-spacing: .12em; }
.hmm-parent-name { font-family: var(--b-serif) !important; font-size: 1.45rem !important; font-weight: 600 !important; color: var(--b-ink) !important; }

/* ---------- przyciski ---------- */
.hmm-button { font-family: var(--b-sans); font-weight: 600; letter-spacing: .01em; }
.hmm-button-tonal { background: transparent; color: var(--b-blue-deep); box-shadow: inset 0 0 0 1.5px var(--b-blue); }
.hmm-button-tonal:hover { background: var(--b-blue-deep); color: #fff; box-shadow: inset 0 0 0 1.5px var(--b-blue-deep); }
.hmm-load-more-btn { background: #fff; color: var(--b-blue-deep); box-shadow: inset 0 0 0 1.5px var(--b-blue); font-weight: 600; }

/* ---------- karty kotów (Kotki / Kocury / Przyjaciele) ---------- */
.hmm-cat-grid { min-height: 300px; }
.hmm-cat-grid-photo { height: 400px; }
.hmm-cat-grid-photo .hmm-gallery-item { height: 100%; }
.hmm-cat-grid-photo { flex: 0 0 38%; max-width: 400px; padding: 14px 0 14px 14px; }
.hmm-cat-grid-photo .hmm-gallery-item,
.hmm-cat-grid-photo img { border-radius: 14px !important; }
.hmm-cat-grid-photo .hmm-gallery-item { box-shadow: none; }
.hmm-cat-grid-photo > div[style] { border-radius: 14px; background: linear-gradient(135deg, #eef1f6, #f4f1ec) !important; }
.hmm-cat-grid-details { padding: 36px 40px; justify-content: flex-start; }
.hmm-cat-grid-details .hmm-card-title { font-size: 2.4rem !important; }
.hmm-cat-grid-details .hmm-card-title::after {
  content: ""; display: block; width: 48px; height: 2px; margin-top: 14px;
  background: linear-gradient(90deg, var(--b-blue), var(--b-lav)); border-radius: 2px;
}
.hmm-cat-excerpt { color: var(--b-ink-soft); }
.hmm-cat-card .hmm-gallery-section { padding: 18px 36px 22px; background: #fbfaf7; }

/* siatka (jeśli w ustawieniach wybrano „grid”) */
.hmm-layout-grid .hmm-cat-grid-photo { padding: 12px 12px 0; height: 280px; }

/* ---------- telefon ---------- */
@media (max-width: 768px) {
  .hmm-card-header { padding: 24px 20px 8px; }
  .hmm-card-body { padding: 0 20px 20px; }
  .hmm-card-section, .hmm-parents-section { padding: 20px; }
  .hmm-card-title { font-size: 1.9rem !important; }
  .hmm-cat-grid-photo { padding: 12px 12px 0; height: 320px; }
  .hmm-cat-grid-details { padding: 22px 20px; }
  .hmm-gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

  /* tabela kociąt jako lista kart – bez przewijania w bok */
  .hmm-litter-card .hmm-table-responsive-wrapper { border: 0; overflow: visible; background: transparent; }
  .hmm-litter-card .hmm-status-table { min-width: 0 !important; }
  .hmm-litter-card .hmm-status-table thead { display: none; }
  .hmm-litter-card .hmm-status-table tbody { display: grid; gap: 10px; }
  .hmm-litter-card .hmm-status-table tr {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
    padding: 12px 16px; border: 1px solid var(--b-line); border-radius: 14px; background: #fff;
  }
  .hmm-litter-card .hmm-status-table td { padding: 0; border: 0 !important; }
  .hmm-litter-card .hmm-status-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 1.05rem; }
  .hmm-litter-card .hmm-status-table td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: .9rem; color: var(--b-ink-soft); }
  .hmm-litter-card .hmm-status-table td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- wstęp na stronie głównej (dla gości i dla Google) ---------- */
.entry-content > .hmm-intro,
.hmm-intro {
  box-sizing: border-box;
  width: 100%;
  max-width: 860px !important;
  margin: 48px auto 8px !important;
  padding: 0 20px;
  text-align: center;
}
.hmm-intro-title {
  font-family: var(--b-serif) !important;
  font-weight: 600 !important;
  font-size: clamp(1.9rem, 4vw, 2.6rem) !important;
  line-height: 1.15 !important;
  color: var(--b-ink) !important;
  margin: 0 0 18px !important;
}
.hmm-intro-title::after {
  content: ""; display: block; width: 64px; height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--b-blue), var(--b-lav)); border-radius: 2px;
}
.hmm-intro-text {
  color: var(--b-ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 0 10px !important;
}

/* ---------- baner miotu: zdjęcie główne na całą szerokość karty ---------- */
.hmm-litter-cover {
  position: relative;
  margin: 0 !important;
  aspect-ratio: 12 / 5;
  max-width: 100%;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #eef1f6;
  overflow: hidden;
  cursor: zoom-in;
}
.hmm-litter-cover img.hmm-litter-cover-img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: 50% 38%;
  border-radius: 0 !important;
}
.hmm-litter-cover:hover img.hmm-litter-cover-img { transform: none; }
.hmm-has-cover .hmm-card-header { padding-top: 26px; }
@media (max-width: 768px) {
  .hmm-litter-cover { aspect-ratio: 16 / 10; }
}
