/*
Theme Name: CHS Z Jakubky
Theme URI: http://localhost:8081/
Description: Child theme of Twenty Twenty-Five — clean, modern, mobile-friendly site for chovatelská stanice Z Jakubky (Moskevský strážní pes, Ostrava). Czech UI, no page builder.
Author: Chovatelská stanice Z Jakubky
Template: twentytwentyfive
Version: 1.0.0
Text Domain: chs-z-jakubky
*/

:root {
  --zj-bg: #f6f1e8;
  --zj-bg-2: #ffffff;
  --zj-bg-3: #ece4d6;
  --zj-text: #2a2118;
  --zj-muted: #6a5c50;
  --zj-accent: #8c3d1c;
  --zj-accent-2: #6b2d14;
  --zj-line: #e3d6c4;
  --zj-shadow: 0 10px 28px rgba(42, 33, 24, 0.08);
  --zj-shadow-sm: 0 2px 10px rgba(42, 33, 24, 0.06);
  --zj-radius: 14px;
}

html, body {
  background: var(--zj-bg) !important;
  color: var(--zj-text);
  overflow-x: clip;
}

.wp-site-blocks, main, .entry-content, .wp-block-post-content, .wp-block-group {
  background-color: transparent;
  color: var(--zj-text);
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading, .wp-block-post-title, .wp-block-site-title {
  color: var(--zj-text);
  letter-spacing: -0.02em;
}

a { color: var(--zj-accent); }
a:hover { color: var(--zj-accent-2); }

header.wp-block-template-part:has(.zj-header) {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
}

.zj-header {
  background: rgba(246, 241, 232, 0.94);
  border-bottom: 1px solid var(--zj-line);
  box-shadow: var(--zj-shadow-sm);
}
@media (min-width: 1024px) {
  .zj-header { backdrop-filter: blur(12px); }
}
.zj-header a { text-decoration: none; }
.zj-brand,
.zj-header .wp-block-site-title a {
  font-weight: 750;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--zj-text) !important;
  font-size: 1rem;
}
.zj-header .wp-block-site-title a small,
.zj-brand-sub {
  display: block;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--zj-muted);
  font-size: .78rem;
}

/* Hero */
.zj-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #2a2118 center/cover no-repeat;
  margin-top: 0;
}
.zj-hero__slides {
  position: absolute; inset: 0;
  overflow: hidden;
}
.zj-hero__slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: zjFade 20s infinite;
}
.zj-hero__slides img:nth-child(1) { animation-delay: 0s; }
.zj-hero__slides img:nth-child(2) { animation-delay: 5s; }
.zj-hero__slides img:nth-child(3) { animation-delay: 10s; }
.zj-hero__slides img:nth-child(4) { animation-delay: 15s; }
@keyframes zjFade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}
.zj-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,33,24,.15) 0%, rgba(42,33,24,.55) 55%, rgba(42,33,24,.82) 100%);
}
.zj-hero__inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.25rem 3rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}
.zj-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 .5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.zj-hero .zj-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 38rem;
  color: #f6f1e8;
  margin: 0 0 1.4rem;
}
.zj-cta {
  display: inline-block;
  background: var(--zj-accent);
  color: #fff !important;
  text-decoration: none;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  font-weight: 650;
  margin: 0 .5rem .5rem 0;
  box-shadow: var(--zj-shadow-sm);
}
.zj-cta:hover { background: var(--zj-accent-2); }
 .zj-cta--ghost {
  background: transparent;
  border: 1px solid var(--zj-accent);
  color: var(--zj-accent) !important;
}
.zj-cta--ghost:hover { background: rgba(140, 61, 28, 0.08); color: var(--zj-accent-2) !important; border-color: var(--zj-accent-2); }
.zj-hero .zj-cta--ghost {
  border: 1px solid rgba(255,255,255,.7);
  color: #fff !important;
}
.zj-hero .zj-cta--ghost:hover { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.7); }


/* Cards */
.zj-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.zj-card {
  background: var(--zj-bg-2);
  border: 1px solid var(--zj-line);
  border-radius: var(--zj-radius);
  overflow: hidden;
  box-shadow: var(--zj-shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.zj-card:hover { transform: translateY(-3px); box-shadow: var(--zj-shadow); color: inherit; }
.zj-card img { width: 100%; height: 200px; object-fit: cover; }
.zj-card__body { padding: 1rem 1.1rem 1.2rem; }
.zj-card h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.zj-card p { margin: 0; color: var(--zj-muted); font-size: .95rem; }

.zj-note {
  background: var(--zj-bg-3);
  border-left: 4px solid var(--zj-accent);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--zj-radius) var(--zj-radius) 0;
  margin: 1.25rem 0;
}

/* Page hero */
.zj-page-hero {
  align-self: stretch;
  width: 100%;
  margin-top: 0;
  margin-bottom: 2rem;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  background: #2a2118 var(--zj-page-hero, none) center/cover no-repeat;
  position: relative;
}
.zj-page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,33,24,.2), rgba(42,33,24,.72));
}
.zj-page-hero__inner {
  position: relative; z-index: 1;
  width: min(900px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 1.6rem;
}
.zj-page-hero h1 { color: #fff; margin: 0; }

/* Subnav on dog / litter pages */
.zj-subnav {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 1.5rem;
}
.zj-subnav a {
  border: 1px solid var(--zj-line);
  background: #fff;
  border-radius: 999px;
  padding: .35rem .85rem;
  text-decoration: none;
  font-size: .92rem;
}
.zj-subnav a:hover, .zj-subnav a.is-current {
  background: var(--zj-accent);
  color: #fff;
  border-color: var(--zj-accent);
}

/* Galleries */
.wp-block-gallery { gap: .6rem; }
.wp-block-gallery img { border-radius: 8px; }

/* Videos */
.zj-video {
  position: relative;
  aspect-ratio: 16/9;
  margin: 0 0 1.75rem;
  border-radius: var(--zj-radius);
  overflow: hidden;
  background: #111;
  box-shadow: var(--zj-shadow-sm);
}
.zj-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zj-video-title { margin: -.8rem 0 1.6rem; color: var(--zj-muted); font-size: .95rem; }

/* Footer */
.zj-footer {
  background: #2a2118;
  color: #f6f1e8;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 3rem;
}
.zj-footer a { color: #f0d2b8; }
.zj-footer a:hover { color: #fff; }
.zj-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 .7rem; }
.zj-footer p, .zj-footer li { color: #e8dccb; }
.zj-footer .wp-block-columns { margin-bottom: 1.5rem; }
.zj-copy { font-size: .85rem; color: #cbbba8; margin-top: 1rem; }

/* Forms */
.wpcf7-form label { display: block; font-weight: 600; margin: .4rem 0 .25rem; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form textarea {
  width: 100%;
  max-width: 36rem;
  border: 1px solid #7a6c60;
  border-radius: 10px;
  padding: .65rem .8rem;
  background: #fff;
  color: var(--zj-text);
}
.wpcf7-form input[type=submit] {
  background: var(--zj-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.3rem;
  font-weight: 650;
  cursor: pointer;
}
.wpcf7-form input[type=submit]:hover { background: var(--zj-accent-2); }
.zj-hp { position: absolute !important; left: -9999px !important; }


/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.zj-cta:focus-visible,
.zj-cookie button:focus-visible,
.zj-contact-fab__btn:focus-visible,
.wpcf7-form input:focus-visible,
.wpcf7-form textarea:focus-visible {
  outline: 2px solid var(--zj-accent);
  outline-offset: 2px;
}

/* Cookie banner */
.zj-cookie {
  position: fixed;
  z-index: 200;
  left: 0; right: 0; bottom: 0;
  background: #2a2118;
  color: #f6f1e8;
  padding: .45rem 1.25rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.zj-cookie[hidden] { display: none !important; }
.zj-cookie__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
}
.zj-cookie p { margin: 0; max-width: 46rem; font-size: .9rem; line-height: 1.3; }
.zj-cookie button {
  border: 0;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-weight: 650;
  cursor: pointer;
  flex-shrink: 0;
}
.zj-cookie__ok {
  min-height: 44px;
  min-width: 44px;
}
.zj-cookie__ok { background: var(--zj-accent); color: #fff; }
.zj-cookie__no { background: transparent; color: #f6f1e8; border: 1px solid #cbbba8 !important; }

/* Phone FAB */
.zj-contact-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
}
.zj-contact-fab__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--zj-accent);
  color: #fff;
  box-shadow: var(--zj-shadow);
}
.zj-contact-fab__btn:hover { background: var(--zj-accent-2); color: #fff; }
.zj-contact-fab svg { fill: currentColor; }
.zj-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

@media (max-width: 781px) {
  .zj-hero { min-height: 70vh; }
  .zj-cards { grid-template-columns: 1fr; }
  .zj-cookie__inner { flex-wrap: nowrap; align-items: center; }
  .zj-cookie p { font-size: .85rem; }
}
