/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 0.75em;
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 1rem, 1.5rem); }
p { color: var(--color-text); }
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}
@media (min-width: 600px) {
  .container { padding-inline: var(--space-lg); }
}

.section {
  padding-block: var(--space-xl);
}
.section-alt {
  background: var(--color-surface-alt);
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}
.section-heading {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}
.section-heading p {
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  font-size: 1.05rem;
}
.text-center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}
.btn-primary:hover { background: var(--color-btn-primary-bg-hover); }
.btn-outline {
  background: transparent;
  color: var(--color-heading);
  border: 2px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; width: 100%; }
.btn:active { transform: scale(0.97); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 234, 220, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-icon { width: 60px; height: 60px; object-fit: contain; }
.brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-heading);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  z-index: 110;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  height: calc(100vh - 92px);
  overflow-y: auto;
  z-index: 105;
  background: var(--color-bg);
  padding: var(--space-lg) var(--space-sm);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.site-nav.nav-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.site-nav a {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-heading);
  display: block;
  padding-block: 0.25rem;
}
.site-nav a.is-active,
.site-nav a:hover {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    height: auto;
    overflow: visible;
    background: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 1.9rem;
  }
  .site-nav a { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-xl) var(--space-2xl);
}
.hero-inner {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
.hero-copy p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: var(--space-md);
}
.hero-media,
.slideshow,
.click-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.hero-media,
.slideshow {
  aspect-ratio: 4 / 5;
}
.slideshow-wide {
  aspect-ratio: 4 / 3;
}
.click-gallery {
  aspect-ratio: 4 / 3;
  max-width: 640px;
  margin-inline: auto;
}
.hero-media img,
.slideshow img,
.click-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.hero-media img.is-active,
.slideshow img.is-active,
.click-gallery img.is-active {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- Lightbox ---------- */
.lightbox-trigger {
  cursor: zoom-in;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(90, 61, 46, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-heading);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-heading);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.lightbox-nav:hover { background: var(--froth); }
.lightbox-prev { left: var(--space-sm); }
.lightbox-next { right: var(--space-sm); }
@media (min-width: 700px) {
  .lightbox-prev { left: var(--space-lg); }
  .lightbox-next { right: var(--space-lg); }
}

/* ---------- Poster / group photo (Aktualna ponuka) ---------- */
.poster-block {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.poster-block img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
}
.poster-caption {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding-block: var(--space-lg) var(--space-lg);
  text-align: center;
}
.page-header .section-eyebrow { display: block; }
.page-header p {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: var(--space-xs) auto 0;
}

/* ---------- Teaser cards (home page) ---------- */
.teaser-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .teaser-grid { grid-template-columns: repeat(3, 1fr); }
}
.teaser-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.teaser-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.teaser-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.teaser-card-body h3 { margin-bottom: 0; }
.teaser-card-body p { color: var(--color-text-muted); flex: 1; }

/* ---------- About split ---------- */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse { direction: rtl; }
  .split-reverse > * { direction: ltr; }
}
.split-copy p + p { margin-top: var(--space-sm); }
.split-copy p { color: var(--color-text-muted); }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
.photo-gallery-4col {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
  .photo-gallery-4col { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .photo-gallery-4col { grid-template-columns: repeat(4, 1fr); }
}
.photo-gallery img {
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.photo-gallery figure { margin: 0; }
.photo-gallery figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  text-align: center;
}

/* ---------- Placeholder note ---------- */
.fill-in {
  font-style: italic;
  color: var(--color-text-muted);
}

/* ---------- Tabs (Sučky / Psíky, litters) ---------- */
.tabs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.tab-btn {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.tab-btn.is-active {
  background: var(--color-btn-primary-bg);
  border-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.litter-section + .litter-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
.litter-subheading {
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}
.litter-intro {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

/* ---------- Puppy grid / card ---------- */
.puppy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 600px) {
  .puppy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .puppy-grid { grid-template-columns: repeat(3, 1fr); }
}

.puppy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.puppy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.puppy-card-media { position: relative; }
.puppy-card-media img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.puppy-card.is-sold .puppy-card-media img {
  filter: grayscale(75%);
  opacity: 0.7;
}
.card-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.85);
  color: var(--color-heading);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(90, 61, 46, 0.25);
  transition: background-color 0.15s ease;
}
.card-photo-nav:hover { background: var(--froth); }
.card-photo-prev { left: 0.5rem; }
.card-photo-next { right: 0.5rem; }
.card-photo-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}
.card-photo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.6);
}
.card-photo-dot.is-active { background: var(--froth); }

.gallery-counter {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  background: rgba(90, 61, 46, 0.75);
  color: var(--froth);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 700;
}
.puppy-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.puppy-card-body h3 { margin-bottom: 0; }
.puppy-card-body p { color: var(--color-text-muted); flex: 1; font-size: 0.95rem; }

.status-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(90, 61, 46, 0.2);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-available { background: var(--status-available-bg); color: var(--status-available-text); }
.status-available .status-dot { background: var(--status-available-dot); }
.status-reserved { background: var(--status-reserved-bg); color: var(--status-reserved-text); }
.status-reserved .status-dot { background: var(--status-reserved-text); }
.status-sold { background: var(--status-sold-bg); color: var(--status-sold-text); }
.status-sold .status-dot { background: var(--status-sold-text); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.contact-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.contact-card a, .contact-card p { color: var(--color-text-muted); overflow-wrap: anywhere; }
.contact-card strong { color: var(--color-heading); font-family: var(--font-heading); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-heading);
  color: var(--froth);
  padding-block: var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.footer-brand .brand-text { color: var(--froth); }
.footer-inner p { color: var(--peanut-butter); font-size: 0.9rem; margin: 0; }
.footer-contact a:hover { color: var(--froth); }
