/* ===== O restauracji page styles ===== */

.o-restauracji-main {
  overflow: hidden;
}

/* Hero */
.or-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  color: var(--color-off-white);
}

.or-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.or-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.or-hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(31, 42, 68, 0.1);
}

.or-hero__content {
  position: relative;
  z-index: 1;
  max-width: 60%;
  padding-block: var(--space-8);
}

.or-hero__title {
  color: var(--color-off-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-block-end: var(--space-5);
}

.or-hero__subtitle {
  color: var(--color-off-white);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  margin-block-end: var(--space-6);
  max-width: 540px;
}

.or-hero__cta {
  display: inline-flex;
}

/* History */
.or-history__grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--space-7);
  align-items: center;
}

.or-history__text {
  min-width: 0;
}

.or-history__media {
  min-width: 0;
}

.or-history__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-none);
}

/* Values */
.or-values__heading {
  text-align: center;
  margin-block-end: var(--space-7);
}

.or-values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.or-value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  min-width: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.or-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.or-value-card__icon {
  color: var(--color-olive);
  margin-block-end: var(--space-4);
}

.or-value-card h3 {
  margin-block-end: var(--space-3);
}

.or-value-card p {
  margin-block-end: 0;
}

/* Philosophy */
.or-philosophy__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-7);
  align-items: center;
}

.or-philosophy__media {
  min-width: 0;
}

.or-philosophy__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-none);
}

.or-philosophy__text {
  min-width: 0;
}

/* Atmosphere */
.or-atmosphere__text {
  max-width: 50%;
  margin-block-end: var(--space-7);
}

.or-atmosphere__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
}

.or-gallery-item {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.or-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.or-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.or-gallery-item--large img {
  aspect-ratio: 3 / 4;
}

/* Hospitality */
.or-hospitality__text {
  max-width: 60%;
}

.or-hospitality__text h2,
.or-hospitality__text h3 {
  color: var(--color-off-white);
}

.or-hospitality__text p {
  color: var(--color-off-white);
}

/* Quote */
.or-quote__block {
  max-width: 70%;
  margin-inline: auto;
  text-align: center;
  border-inline-start: none;
  padding-inline-start: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--color-charcoal);
  position: relative;
}

.or-quote__block::before {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: var(--color-brass);
  margin-block-end: var(--space-5);
  margin-inline: auto;
}

.or-quote__block p {
  margin-block-end: 0;
}

/* CTA */
.or-cta__content {
  max-width: 50%;
  margin-inline: auto;
  text-align: center;
}

.or-cta__content h2 {
  color: var(--color-off-white);
}

.or-cta__content p {
  color: var(--color-off-white);
  margin-block-end: var(--space-6);
}

.or-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}
.or-cta__actions .btn {
  color: var(--color-off-white) !important;
}
/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.or-hero__content {
  animation: fadeInUp 0.8s ease-out both;
}

.or-history__grid,
.or-values__grid,
.or-philosophy__grid,
.or-atmosphere__text,
.or-atmosphere__gallery,
.or-hospitality__text,
.or-quote__block,
.or-cta__content {
  animation: fadeInUp 0.8s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

/* Responsive */
@media (min-width: 992px) and (max-width: 1199px) {
  .or-hero__content {
    max-width: 70%;
  }
}

@media (max-width: 991px) {
  .or-hero__content {
    max-width: 80%;
  }

  .or-history__grid,
  .or-philosophy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .or-history__media,
  .or-philosophy__media {
    order: 2;
  }

  .or-history__text,
  .or-philosophy__text {
    order: 1;
  }

  .or-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .or-atmosphere__text {
    max-width: 70%;
  }

  .or-hospitality__text {
    max-width: 80%;
  }
}

@media (max-width: 767px) {
  .or-hero {
    min-height: auto;
    padding-block: var(--space-8);
  }

  .or-hero__content {
    max-width: 100%;
    text-align: center;
    padding-block: var(--space-5);
  }

  .or-hero__subtitle {
    margin-inline: auto;
  }

  .or-hero__cta {
    width: 100%;
    justify-content: center;
  }

  .or-values__grid {
    grid-template-columns: 1fr;
  }

  .or-atmosphere__text {
    max-width: 100%;
  }

  .or-atmosphere__gallery {
    grid-template-columns: 1fr;
  }

  .or-gallery-item img,
  .or-gallery-item--large img {
    aspect-ratio: 4 / 3;
  }

  .or-hospitality__text {
    max-width: 100%;
  }

  .or-quote__block {
    max-width: 90%;
    font-size: 1.5rem;
  }

  .or-cta__content {
    max-width: 100%;
  }

  .or-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .or-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .or-hero__title {
    font-size: 2.5rem;
  }

  .or-history__grid,
  .or-philosophy__grid {
    gap: var(--space-5);
  }

  .or-value-card {
    padding: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .or-hero__content,
  .or-history__grid,
  .or-values__grid,
  .or-philosophy__grid,
  .or-atmosphere__text,
  .or-atmosphere__gallery,
  .or-hospitality__text,
  .or-quote__block,
  .or-cta__content {
    animation: none;
  }
}
