/* Page-owned styles for Příběh restaurace */

.pribeh-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.pribeh-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pribeh-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: pribeh-hero-zoom 12s ease-out forwards;
}

@keyframes pribeh-hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.pribeh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(37, 40, 42, 0.1) 0%, rgba(37, 40, 42, 0.55) 70%, rgba(37, 40, 42, 0.85) 100%);
  pointer-events: none;
}

.pribeh-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  padding: var(--space-lg) var(--container-gutter);
  color: var(--bg-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.pribeh-hero__eyebrow {
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 240, 234, 0.75);
  margin: 0;
}

.pribeh-hero__title {
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bg-base);
  margin: 0;
}

.pribeh-hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  color: rgba(242, 240, 234, 0.95);
  margin: 0;
}

.pribeh-hero__text {
  font-size: var(--text-body);
  line-height: 1.6;
  color: rgba(242, 240, 234, 0.85);
  margin: 0;
}

.pribeh-section-eyebrow {
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-copper);
  margin-block-end: var(--space-3xs);
}

.pribeh-section-eyebrow--light {
  color: var(--accent-copper);
}

.pribeh-filozofie {
  background-color: var(--bg-base);
}

.pribeh-filozofie__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-lg);
  align-items: start;
}

.pribeh-filozofie__text {
  max-width: 60%;
  min-width: 0;
}

.pribeh-filozofie__text p {
  margin-block-end: var(--space-2xs);
}

.pribeh-filozofie__text p:last-child {
  margin-block-end: 0;
}

.pribeh-filozofie__icons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  justify-self: end;
  width: 100%;
}

.pribeh-icon-card {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.35);
  min-width: 0;
}

.pribeh-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  position: relative;
}

.pribeh-icon--plate::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--bg-base);
  border-radius: 50%;
}

.pribeh-icon--card::before {
  content: "♠";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-base);
  font-size: 20px;
  line-height: 1;
}

.pribeh-icon--gallery::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--bg-base);
  border-radius: 2px;
}

.pribeh-icon-label {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-primary);
  min-width: 0;
}

.pribeh-historie {
  background-color: rgba(154, 156, 152, 0.08);
}

.pribeh-historie__header {
  max-width: 70%;
  margin-block-end: var(--space-md);
}

.pribeh-historie__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: var(--space-lg);
  align-items: start;
}

.pribeh-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding-block-start: var(--space-3xs);
  position: relative;
}

.pribeh-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background-color: var(--accent-copper);
  opacity: 0.5;
}

.pribeh-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-copper);
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.pribeh-historie__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.pribeh-milestone {
  max-width: 70%;
  min-width: 0;
}

.pribeh-milestone__date {
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-copper);
  margin-block-end: var(--space-3xs);
}

.pribeh-milestone h3 {
  margin-block-end: var(--space-2xs);
}

.pribeh-milestone p {
  margin-block-end: 0;
}

.pribeh-kuchyne {
  background-color: var(--bg-base);
}

.pribeh-kuchyne__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pribeh-kuchyne__media {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.pribeh-kuchyne__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.pribeh-kuchyne__text {
  max-width: 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pribeh-kuchyne__block h3 {
  margin-block-end: var(--space-3xs);
}

.pribeh-kuchyne__block p {
  margin-block-end: 0;
}

.pribeh-prostory {
  background-color: rgba(154, 156, 152, 0.08);
}

.pribeh-prostory__header {
  max-width: 70%;
  margin-inline: auto;
  text-align: center;
  margin-block-end: var(--space-md);
}

.pribeh-prostory__header p:last-child {
  margin-block-end: 0;
}

.pribeh-galerie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2xs);
}

.pribeh-galerie__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.pribeh-galerie__link {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: opacity var(--transition-fast);
}

.pribeh-galerie__link:hover {
  opacity: 0.85;
}

.pribeh-galerie__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pribeh-galerie figcaption {
  text-align: center;
  color: var(--text-secondary);
}

.pribeh-komunita {
  background-color: var(--bg-alt);
  color: var(--bg-base);
}

.pribeh-komunita__header {
  max-width: 60%;
  margin-block-end: var(--space-md);
}

.pribeh-komunita__header h2 {
  color: var(--bg-base);
}

.pribeh-komunita__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xs);
}

.pribeh-komunita__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-sm);
  border: 1px solid rgba(242, 240, 234, 0.1);
  border-radius: var(--radius-sm);
  background-color: rgba(242, 240, 234, 0.04);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.pribeh-komunita__card:hover {
  border-color: rgba(166, 106, 75, 0.7);
  background-color: rgba(242, 240, 234, 0.07);
}

.pribeh-komunita__card h3 {
  color: var(--bg-base);
  margin-block-end: 0;
}

.pribeh-komunita__card p {
  color: rgba(242, 240, 234, 0.85);
  margin-block-end: 0;
}

.pribeh-komunita__card .btn {
  align-self: flex-start;
  margin-block-start: auto;
}

.pribeh-tym {
  background-color: var(--bg-base);
}

.pribeh-tym__header {
  max-width: 70%;
  margin-block-end: var(--space-md);
}

.pribeh-tym__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2xs);
}

.pribeh-osoba {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-2xs);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-soft);
}

.pribeh-osoba__media {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.pribeh-osoba__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pribeh-osoba__text {
  max-width: 80%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.pribeh-osoba__text h3 {
  margin-block-end: 0;
}

.pribeh-osoba__role {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--accent-copper);
  margin-block-end: 0;
}

.pribeh-osoba__text p:last-child {
  margin-block-end: 0;
}

.pribeh-ohlasy {
  background-color: rgba(154, 156, 152, 0.08);
}

.pribeh-ohlasy__header {
  max-width: 70%;
  margin-inline: auto;
  text-align: center;
  margin-block-end: var(--space-md);
}

.pribeh-ohlasy__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2xs);
}

.pribeh-citat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-base);
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin: 0;
}

.pribeh-citat p {
  max-width: 80%;
  margin-inline: auto;
  margin-block-end: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  line-height: 1.5;
  color: var(--text-primary);
}

.pribeh-citat cite {
  font-style: normal;
  font-size: var(--text-small);
  color: var(--text-secondary);
}

.pribeh-rezervace {
  background-color: var(--accent-blue);
  color: var(--bg-base);
}

.pribeh-rezervace__content {
  max-width: 60%;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  align-items: center;
}

.pribeh-rezervace__content h2 {
  color: var(--bg-base);
  margin-block-end: 0;
}

.pribeh-rezervace__content p {
  color: rgba(242, 240, 234, 0.85);
  margin-block-end: 0;
}

.pribeh-rezervace__content a {
  color: var(--accent-copper);
}

.pribeh-rezervace__content a:hover {
  color: var(--bg-base);
}

.pribeh-rezervace__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  justify-content: center;
  margin-block-start: var(--space-3xs);
}

.pribeh-rezervace__btn {
  animation: pribeh-pulse 2.4s ease-in-out infinite;
}

@keyframes pribeh-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(166, 106, 75, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(166, 106, 75, 0);
  }
}

.pribeh-kontakt {
  background-color: rgba(154, 156, 152, 0.08);
}

.pribeh-kontakt__content {
  max-width: 70%;
}

.pribeh-kontakt__content p:last-child {
  margin-block-end: 0;
}

.pribeh-kontakt__content a {
  color: var(--accent-blue);
}

.pribeh-kontakt__content a:hover {
  color: var(--accent-copper);
}

/* Lightbox overlay */
.pribeh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 40, 42, 0.92);
  padding: var(--space-2xs);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.pribeh-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pribeh-lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.pribeh-lightbox__close {
  position: absolute;
  top: var(--space-2xs);
  right: var(--space-2xs);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-base);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.pribeh-lightbox__close:hover {
  background-color: var(--accent-copper);
  color: var(--bg-base);
}

@media (max-width: 1024px) {
  .pribeh-filozofie__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--space-md);
  }

  .pribeh-filozofie__text {
    max-width: 100%;
  }

  .pribeh-historie__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 8fr);
    gap: var(--space-md);
  }

  .pribeh-kuchyne__grid {
    gap: var(--space-md);
  }

  .pribeh-kuchyne__text {
    max-width: 100%;
  }

  .pribeh-komunita__header,
  .pribeh-rezervace__content {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .pribeh-hero {
    min-height: 70vh;
  }

  .pribeh-hero__content {
    max-width: 100%;
    padding: var(--space-md) var(--container-gutter);
  }

  .pribeh-hero__title {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  .pribeh-filozofie__grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .pribeh-filozofie__text {
    max-width: 100%;
  }

  .pribeh-filozofie__icons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-self: start;
    gap: var(--space-2xs);
  }

  .pribeh-icon-card {
    flex: 1 1 45%;
    min-width: 0;
  }

  .pribeh-historie__header,
  .pribeh-prostory__header,
  .pribeh-tym__header,
  .pribeh-ohlasy__header,
  .pribeh-kontakt__content {
    max-width: 100%;
  }

  .pribeh-historie__grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .pribeh-timeline {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-lg);
    padding-block-start: 0;
  }

  .pribeh-timeline::before {
    top: 50%;
    bottom: auto;
    left: 10px;
    right: 10px;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
  }

  .pribeh-historie__items {
    gap: var(--space-md);
  }

  .pribeh-milestone {
    max-width: 100%;
  }

  .pribeh-kuchyne__grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .pribeh-kuchyne__media {
    order: -1;
  }

  .pribeh-kuchyne__text {
    max-width: 100%;
  }

  .pribeh-galerie {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .pribeh-komunita__header,
  .pribeh-rezervace__content {
    max-width: 100%;
  }

  .pribeh-komunita__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }

  .pribeh-tym__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }

  .pribeh-osoba__text {
    max-width: 100%;
  }

  .pribeh-ohlasy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }

  .pribeh-citat p {
    max-width: 100%;
  }

  .pribeh-rezervace__buttons {
    flex-direction: column;
    width: 100%;
  }

  .pribeh-rezervace__buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pribeh-hero {
    min-height: 70vh;
  }

  .pribeh-hero__content {
    padding: var(--space-sm) var(--container-gutter);
  }

  .pribeh-icon-card {
    flex: 1 1 100%;
  }

  .pribeh-timeline {
    gap: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pribeh-hero__image {
    animation: none;
  }

  .pribeh-rezervace__btn {
    animation: none;
  }
}
