/* ===== Page-owned styles: Historie kulinarne ===== */

.hk-section {
  padding-block: var(--space-8);
}

.hk-section__heading {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  margin-block-end: var(--space-6);
}

.hk-section__title {
  margin-block-end: var(--space-3);
}

.hk-section__subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-body-size);
  margin-block-end: 0;
}

/* ===== Hero ===== */
.hk-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

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

.hk-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hk-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.85) 0%, rgba(3, 7, 18, 0.4) 50%, rgba(3, 7, 18, 0.1) 100%);
  pointer-events: none;
}

.hk-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-8) var(--container-padding);
  display: flex;
  justify-content: flex-end;
}

.hk-hero__panel {
  max-width: 600px;
  width: 100%;
  background: rgba(11, 21, 40, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-medium);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

.hk-hero__title {
  font-size: var(--text-h1-size);
  margin-block-end: 0;
}

.hk-hero__subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-h4-size);
  color: var(--color-text-secondary);
  margin-block-end: 0;
}

.hk-hero__lead {
  color: var(--color-text-primary);
  margin-block-end: 0;
}

.hk-hero__cta {
  align-self: center;
  margin-block-start: var(--space-2);
}

/* ===== Filozofia ===== */
.hk-philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.hk-philosophy__card {
  background: var(--panel-gradient);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-width: 0;
}

.hk-philosophy__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), 0 0 16px rgba(129, 140, 248, 0.15);
  border-color: rgba(129, 140, 248, 0.4);
}

.hk-philosophy__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hk-philosophy__icon svg {
  width: 100%;
  height: 100%;
}

.hk-philosophy__card-title {
  margin-block-end: 0;
}

.hk-philosophy__text {
  max-width: 300px;
  margin-block-end: 0;
  color: var(--color-text-secondary);
}

/* ===== Szefowie kuchni ===== */
.hk-chefs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.hk-chef-card {
  background: var(--panel-gradient);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-width: 0;
}

.hk-chef-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), 0 0 16px rgba(129, 140, 248, 0.15);
  border-color: rgba(129, 140, 248, 0.4);
}

.hk-chef-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex-shrink: 0;
}

.hk-chef-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hk-chef-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hk-chef-card__name {
  margin-block-end: 0;
}

.hk-chef-card__role {
  color: var(--color-accent);
  font-weight: 600;
  margin-block-end: var(--space-2);
}

.hk-chef-card__text {
  color: var(--color-text-secondary);
  margin-block-end: 0;
  max-width: 400px;
}

/* ===== Historie dań ===== */
.hk-dishes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.hk-dish-card {
  background: var(--panel-gradient);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-width: 0;
}

.hk-dish-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), 0 0 16px rgba(129, 140, 248, 0.15);
  border-color: rgba(129, 140, 248, 0.4);
}

.hk-dish-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.hk-dish-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hk-dish-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hk-dish-card__title {
  margin-block-end: 0;
}

.hk-dish-card__text {
  color: var(--color-text-secondary);
  margin-block-end: 0;
  max-width: 300px;
}

/* ===== Sezonowe inspiracje ===== */
.hk-seasonal__inner {
  background: var(--panel-gradient);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  padding: var(--space-7);
}

.hk-seasonal__content {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hk-seasonal__lead {
  margin-block-end: 0;
}

.hk-seasonal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  text-align: left;
}

.hk-seasonal__list-item {
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-small);
  padding: var(--space-3);
  color: var(--color-text-secondary);
}

.hk-seasonal__menu {
  margin-block-end: 0;
}

.hk-seasonal__price {
  color: var(--color-accent);
  font-weight: 600;
}

/* ===== Proces tworzenia ===== */
.hk-process__timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  position: relative;
}

.hk-process__timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-border-subtle);
  z-index: 0;
}

.hk-process__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  min-width: 0;
}

.hk-process__step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-bg-base);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hk-process__step-icon svg {
  width: 24px;
  height: 24px;
}

.hk-process__step-title {
  margin-block-end: 0;
}

.hk-process__step-text {
  color: var(--color-text-secondary);
  margin-block-end: 0;
  max-width: 250px;
}

/* ===== Kulinaria a poker ===== */
.hk-poker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.hk-poker__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-medium);
  border: 1px solid var(--color-border-subtle);
  min-width: 0;
}

.hk-poker__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hk-poker__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.hk-poker__title {
  margin-block-end: 0;
}

.hk-poker__subtitle {
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: var(--text-h4-size);
  margin-block-end: var(--space-2);
}

.hk-poker__text {
  color: var(--color-text-secondary);
  margin-block-end: 0;
  max-width: 500px;
}

.hk-poker__quote {
  border-inline-start: 3px solid var(--color-accent);
  padding-inline-start: var(--space-4);
  margin-block-start: var(--space-3);
  margin-block-end: 0;
  color: var(--color-text-primary);
  font-style: italic;
}

.hk-poker__quote p {
  margin-block-end: var(--space-2);
}

.hk-poker__cite {
  font-style: normal;
  color: var(--color-text-secondary);
  font-size: var(--text-small-size);
}

/* ===== Opinie gości ===== */
.hk-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.hk-testimonial-card {
  background: var(--panel-gradient);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-width: 0;
}

.hk-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft), 0 0 16px rgba(129, 140, 248, 0.15);
  border-color: rgba(129, 140, 248, 0.4);
}

.hk-testimonial-card__stars {
  color: var(--color-accent);
  letter-spacing: 0.2em;
  font-size: var(--text-h4-size);
}

.hk-testimonial-card__quote {
  color: var(--color-text-primary);
  font-style: italic;
  margin-block-end: 0;
  max-width: 300px;
}

.hk-testimonial-card__author {
  color: var(--color-text-secondary);
  font-size: var(--text-small-size);
  margin-block-end: 0;
}

/* ===== CTA rezerwacja ===== */
.hk-cta__inner {
  background: var(--panel-gradient);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  padding: var(--space-7);
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hk-cta__title {
  margin-block-end: 0;
}

.hk-cta__subtitle {
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: var(--text-h4-size);
  margin-block-end: 0;
}

.hk-cta__text {
  margin-block-end: 0;
}

.hk-cta__link {
  color: var(--color-accent);
}

.hk-cta__btn {
  align-self: center;
  margin-block-start: var(--space-2);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hk-philosophy__grid,
  .hk-dishes__grid,
  .hk-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hk-process__timeline::before {
    display: none;
  }

  .hk-poker__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hk-poker__media {
    order: -1;
  }

  .hk-poker__content {
    max-width: 100%;
  }

  .hk-poker__text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hk-section {
    padding-block: var(--space-7);
  }

  .hk-hero {
    min-height: 70vh;
    align-items: center;
    justify-content: center;
  }

  .hk-hero__content {
    justify-content: center;
    padding: var(--space-4);
  }

  .hk-hero__panel {
    padding: var(--space-4);
  }

  .hk-hero__title {
    font-size: var(--text-h1-size);
  }

  .hk-philosophy__grid,
  .hk-dishes__grid,
  .hk-testimonials__grid,
  .hk-chefs__grid,
  .hk-process__timeline {
    grid-template-columns: 1fr;
  }

  .hk-philosophy__text,
  .hk-chef-card__text,
  .hk-dish-card__text,
  .hk-process__step-text,
  .hk-testimonial-card__quote {
    max-width: 100%;
  }

  .hk-seasonal__inner,
  .hk-cta__inner {
    padding: var(--space-5);
  }

  .hk-seasonal__list {
    grid-template-columns: 1fr;
  }

  .hk-poker__grid {
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hk-section {
    padding-block: var(--space-6);
  }

  .hk-hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hk-hero__subtitle {
    font-size: var(--text-body-size);
  }

  .hk-hero__panel {
    gap: var(--space-3);
  }

  .hk-section__heading {
    margin-block-end: var(--space-5);
  }

  .hk-philosophy__card,
  .hk-testimonial-card {
    padding: var(--space-4);
  }

  .hk-chef-card__body,
  .hk-dish-card__body {
    padding: var(--space-4);
  }

  .hk-cta__inner,
  .hk-seasonal__inner {
    padding: var(--space-4);
  }
}
