/* ===== Rezerwacje page styles ===== */

.rez-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
  background-color: var(--color-graphite);
}

.rez-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rez-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rez-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(46, 46, 46, 0.5), rgba(46, 46, 46, 0.7));
}

.rez-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
  padding: var(--space-3xl) var(--container-padding-mobile);
  text-align: center;
  color: var(--color-soft-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.rez-hero__content h1 {
  color: var(--color-soft-white);
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  letter-spacing: var(--text-display-letter-spacing);
  font-weight: var(--text-display-weight);
  margin: 0;
  max-width: 20ch;
}

.rez-hero__content p {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  max-width: 32ch;
  margin: 0;
}

.rez-hero__cta {
  margin-top: var(--space-sm);
}

.rez-section {
  padding-block: var(--space-4xl);
}

.rez-section__header {
  margin-bottom: var(--space-2xl);
}

.rez-section__header h2 {
  position: relative;
  padding-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.rez-section__header h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 1px;
  background-color: var(--color-brushed-bronze);
}

.rez-section__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  max-width: 70ch;
  margin: 0;
}

/* Dlaczego Dinepolix */
.rez-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.rez-why__item {
  min-width: 0;
  padding: var(--space-lg);
  background-color: var(--color-soft-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
}

.rez-why__item h3 {
  margin-bottom: var(--space-sm);
}

.rez-why__item p {
  margin: 0;
  max-width: 60ch;
}

/* Menu degustacyjne */
.rez-menu__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-2xl);
  align-items: center;
}

.rez-menu__figure,
.rez-casino__figure {
  margin: 0;
  min-width: 0;
}

.rez-menu__figure img,
.rez-casino__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.rez-menu__figure figcaption,
.rez-casino__figure figcaption {
  margin-top: var(--space-xs);
}

.rez-menu__content {
  min-width: 0;
}

.rez-menu__content h2 {
  margin-bottom: var(--space-md);
}

.rez-menu__content p {
  max-width: 65ch;
  margin-bottom: var(--space-md);
}

.rez-menu__content p:last-child {
  margin-bottom: 0;
}

/* Atmosfera kasyna */
.rez-casino__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-2xl);
  align-items: center;
}

.rez-casino__content {
  min-width: 0;
}

.rez-casino__content h2 {
  margin-bottom: var(--space-md);
}

.rez-casino__content p {
  max-width: 65ch;
  margin-bottom: var(--space-md);
}

.rez-casino__content p:last-child {
  margin-bottom: 0;
}

/* Godziny otwarcia */
.rez-hours__table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.rez-hours__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.rez-hours__table th,
.rez-hours__table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-brushed-bronze);
}

.rez-hours__table th {
  font-weight: 600;
  font-size: var(--text-body-small-size);
  text-transform: uppercase;
  letter-spacing: var(--text-caption-letter-spacing);
  color: var(--color-muted-graphite);
  width: 40%;
}

.rez-hours__table td {
  font-size: var(--text-body-size);
}

/* Lokalizacja */
.rez-location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.rez-location__content {
  min-width: 0;
}

.rez-location__content h2 {
  margin-bottom: var(--space-md);
}

.rez-location__content p {
  max-width: 55ch;
  margin-bottom: var(--space-md);
}

.rez-location__address {
  font-style: normal;
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-graphite);
  margin: 0;
}

/* Formularz rezerwacji */
.rez-form-section {
  background-color: var(--color-travertine-cream);
}

.rez-form__wrapper {
  max-width: 600px;
  margin-inline: auto;
  background-color: var(--color-soft-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
}

.rez-form__wrapper .rez-section__header {
  margin-bottom: var(--space-xl);
}

.rez-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.rez-form__field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.rez-form__field--full {
  grid-column: 1 / -1;
}

.rez-form__field label {
  margin: 0;
}

.rez-form__field input,
.rez-form__field select,
.rez-form__field textarea {
  width: 100%;
  min-width: 0;
}

.rez-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-sm);
}

.rez-form__success {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-md);
  background-color: var(--color-forest-green);
  color: var(--color-soft-white);
  border-radius: var(--radius-sm);
  font-size: var(--text-body-size);
}

/* Kontakt */
.rez-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.rez-contact__item {
  min-width: 0;
  padding: var(--space-lg);
  background-color: var(--color-soft-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
}

.rez-contact__item h3 {
  margin-bottom: var(--space-sm);
}

.rez-contact__item p {
  margin: 0;
}

.rez-contact__item a {
  color: var(--color-graphite);
  text-decoration: none;
}

.rez-contact__item a:hover {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-decoration-color: var(--color-brushed-bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Nota prawna */
.rez-legal {
  padding-block: var(--space-3xl);
  border-top: 1px solid var(--color-brushed-bronze);
}

.rez-legal__content {
  max-width: 800px;
  margin-inline: auto;
}

.rez-legal__content h2 {
  font-size: var(--text-h4-size);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: var(--text-caption-letter-spacing);
  text-transform: uppercase;
  color: var(--color-muted-graphite);
  margin-bottom: var(--space-sm);
}

.rez-legal__content p {
  max-width: 70ch;
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  color: var(--color-muted-graphite);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 64rem) {
  .rez-hero {
    min-height: 60vh;
  }

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

  .rez-why__item:last-child {
    grid-column: 1 / -1;
  }

  .rez-menu__grid,
  .rez-casino__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .rez-location__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .rez-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 48rem) {
  .rez-section {
    padding-block: var(--space-3xl);
  }

  .rez-hero {
    min-height: 50vh;
  }

  .rez-hero__content {
    padding: var(--space-2xl) var(--container-padding-mobile);
  }

  .rez-hero__content h1 {
    font-size: var(--text-h1-size);
  }

  .rez-hero__content p {
    font-size: var(--text-body-size);
  }

  .rez-hero__cta {
    width: 100%;
  }

  .rez-why__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .rez-why__item:last-child {
    grid-column: auto;
  }

  .rez-form__wrapper {
    padding: var(--space-lg);
  }

  .rez-form {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .rez-form__field--full,
  .rez-form__actions,
  .rez-form__success {
    grid-column: auto;
  }
}

@media (max-width: 30rem) {
  .rez-hero__content h1 {
    font-size: 2rem;
  }

  .rez-section__header h2 {
    font-size: 1.75rem;
  }

  .rez-hours__table th,
  .rez-hours__table td {
    padding: var(--space-sm) var(--space-md);
    display: block;
    width: 100%;
    text-align: left;
  }

  .rez-hours__table tr {
    display: block;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-brushed-bronze);
  }

  .rez-hours__table th {
    border-bottom: none;
    padding-bottom: var(--space-2xs);
  }

  .rez-hours__table td {
    border-bottom: none;
    padding-top: var(--space-2xs);
  }
}
