/* ============================================
   POHODA JAZZ — Chovatelská stanice krátkosrstých kolií
   Aesthetic: Meadow Editorial
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-forest:       #2C4A3E;
  --color-forest-deep:  #1E352C;
  --color-forest-light: #3A6354;
  --color-honey:        #C8943E;
  --color-honey-light:  #E2B865;
  --color-honey-pale:   #F5E6C8;
  --color-cream:        #FAF6F0;
  --color-cream-dark:   #F0E8DA;
  --color-brown:        #3E2E1C;
  --color-brown-light:  #6B5744;
  --color-sage:         #8FA98B;
  --color-sage-light:   #C5D5C0;
  --color-white:        #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  --sidebar-width:     260px;
  --content-max-width: 920px;
  --content-padding:   2.5rem;
  --border-radius:     6px;
  --border-radius-lg:  12px;

  --transition-fast:   150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow:   600ms ease-in-out;

  --shadow-soft:   0 2px 12px rgba(62, 46, 28, 0.08);
  --shadow-medium: 0 4px 24px rgba(62, 46, 28, 0.12);
  --shadow-lift:   0 8px 32px rgba(62, 46, 28, 0.15);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-brown);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--color-honey); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-honey-light); }
ul { list-style: none; margin: 0; padding: 0; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-forest);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.65rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.lead {
  font-size: 1.1rem;
  color: var(--color-brown-light);
  line-height: 1.7;
}

/* ============================================
   SPLASH PAGE
   ============================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.splash__bg svg,
.splash__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(44, 74, 62, 0.7) 0%, transparent 70%),
    linear-gradient(160deg, rgba(44, 74, 62, 0.6) 0%, rgba(62, 46, 28, 0.5) 100%);
}

.splash__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
  animation: splashFadeIn 1.2s ease-out;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.25rem;
}

.splash__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.03em;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.splash__welcome {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.splash__enter {
  display: inline-block;
  color: var(--color-honey-light);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1.5px solid rgba(226, 184, 101, 0.4);
  transition: all var(--transition-normal);
  margin-top: 0.25rem;
}

.splash__enter:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
  letter-spacing: 0.05em;
}

/* ============================================
   SITE LAYOUT
   ============================================ */
.site {
  display: flex;
  min-height: 100vh;
}

/* --- Top bar (mobile only) --- */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--color-forest);
  color: var(--color-cream);
  align-items: center;
  padding: 0 1rem;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.topbar__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-honey);
  margin-left: 1rem;
}

.topbar__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.topbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Hamburger → X animation */
.topbar__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.topbar__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.topbar__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-forest);
  color: var(--color-cream);
  display: flex;
  flex-direction: column;
  z-index: 300;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar__header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-honey);
  margin: 0;
  letter-spacing: 0.03em;
}

.sidebar__tagline {
  font-size: 0.8rem;
  color: var(--color-sage);
  margin: 0.25rem 0 0;
  font-style: italic;
  letter-spacing: 0.02em;
}

.sidebar__nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar__link {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--color-sage-light);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sidebar__link:hover {
  color: var(--color-cream);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--color-sage);
}

.sidebar__link.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--color-honey);
  font-weight: 600;
}

.sidebar__footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--color-sage);
}

.sidebar__footer p { margin: 0; }

/* --- Sidebar backdrop (mobile) --- */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  background: var(--color-cream);
}

.section {
  display: none;
  padding: var(--content-padding);
  animation: sectionFadeIn var(--transition-normal);
}

.section--active { display: block; }

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section__body {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: var(--color-cream-dark);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-medium);
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.carousel__slide svg,
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__slide--active { opacity: 1; }

.carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel__dot:hover { background: rgba(255, 255, 255, 0.7); }
.carousel__dot--active { background: var(--color-honey); transform: scale(1.2); }

/* ============================================
   PHOTO GRID (Visual Navigation Mosaic)
   ============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.photo-grid__item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  cursor: pointer;
}

.photo-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 74, 62, 0.7) 0%, transparent 60%);
  transition: background var(--transition-normal);
}

.photo-grid__item:hover::after {
  background: linear-gradient(to top, rgba(200, 148, 62, 0.6) 0%, transparent 60%);
}

.photo-grid__img {
  width: 100%;
  height: 100%;
}

.photo-grid__img svg {
  width: 100%;
  height: 100%;
}

.photo-grid__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ABOUT LAYOUT
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.about-layout__photo {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-layout__photo svg {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.about-layout__text p:first-child {
  font-size: 1.05rem;
}

/* ============================================
   DOG CARDS
   ============================================ */
.dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.dog-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.dog-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.dog-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-cream-dark);
}

.dog-card__photo svg,
.dog-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dog-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.dog-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-forest);
  margin-bottom: 0.25rem;
}

.dog-card__titles {
  font-size: 0.85rem;
  color: var(--color-brown-light);
  margin-bottom: 0.75rem;
}

.dog-card__db-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-honey);
  transition: color var(--transition-fast);
}

.dog-card__db-link:hover {
  color: var(--color-forest);
}

/* ============================================
   LITTER CARDS (Puppies)
   ============================================ */
.litter-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.litter-card h2 {
  margin-bottom: 1.25rem;
}

.litter-card__parents {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.litter-card__parent {
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.litter-card__parent-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  box-shadow: var(--shadow-soft);
  background: var(--color-cream-dark);
}

.litter-card__parent-photo svg,
.litter-card__parent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.litter-card__x {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-honey);
  font-weight: 300;
}

.litter-card__info {
  color: var(--color-brown-light);
  font-size: 0.95rem;
}

.litter-card__status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.litter-card__status--planned {
  background: var(--color-honey-pale);
  color: var(--color-honey);
}

.litter-card__status--available {
  background: var(--color-sage-light);
  color: var(--color-forest);
}

/* ============================================
   ACCORDION (Aktuality)
   ============================================ */
.accordion {
  margin-top: 1rem;
}

.accordion__item {
  border-bottom: 1px solid var(--color-sage-light);
}

.accordion__item:first-child {
  border-top: 1px solid var(--color-sage-light);
}

.accordion__header {
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-brown);
  transition: color var(--transition-fast);
}

.accordion__header:hover { color: var(--color-forest); }

.accordion__header::-webkit-details-marker,
.accordion__header::marker { display: none; content: ''; }

.accordion__header::after {
  content: '+';
  margin-left: auto;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-sage);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

details[open] > .accordion__header::after {
  content: '\2212';
}

.accordion__date {
  font-size: 0.85rem;
  color: var(--color-brown-light);
  font-weight: 400;
  white-space: nowrap;
  min-width: 6rem;
}

.accordion__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.accordion__content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 0 0;
}

details[open] > .accordion__content {
  max-height: 500px;
  padding: 0 0 1.25rem;
}

.accordion__content p {
  color: var(--color-brown-light);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery__item {
  margin: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.gallery__item:hover {
  box-shadow: var(--shadow-medium);
  transform: scale(1.02);
}

.gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery__img svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--color-honey);
  font-weight: 600;
}

/* Certificate frame */
.certificate {
  margin-top: 1.5rem;
}

.certificate h3 {
  margin-bottom: 1rem;
}

.certificate__frame {
  background: var(--color-white);
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-medium);
  transform: rotate(-0.5deg);
  transition: transform var(--transition-normal);
  max-width: 360px;
}

.certificate__frame:hover {
  transform: rotate(0deg);
}

.certificate__frame svg,
.certificate__frame img {
  width: 100%;
  border-radius: 2px;
}

/* ============================================
   PLACEHOLDER STYLES (remove when real images added)
   ============================================ */
.placeholder {
  background: var(--color-sage-light);
  border-radius: var(--border-radius);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 899px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .topbar { display: flex; }

  .content {
    margin-left: 0;
    padding-top: 56px;
  }

  .section { padding: 2rem 1.5rem; }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout__photo {
    max-width: 300px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 599px) {
  :root {
    --content-padding: 1.25rem;
  }

  .splash__title { letter-spacing: 0.03em; }

  .section { padding: 1.25rem; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .carousel { max-height: 240px; }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dog-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .litter-card__parents {
    flex-direction: column;
  }

  .litter-card__x {
    transform: rotate(90deg);
  }

  .accordion__header {
    flex-wrap: wrap;
  }

  .accordion__date {
    width: 100%;
  }
}
