/* Home page styles — scoped to page-owned components */

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-block: var(--space-2xl);
}

.home-hero__media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

.home-hero__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.home-hero__panel {
  background-color: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 0.625rem 1.875rem rgba(180, 160, 140, 0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 30rem;
}

.home-hero__panel h1 {
  margin-block-end: 0;
  max-width: 100%;
}

.home-hero__description {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
  color: var(--color-ink-soft);
  max-width: 32.5rem;
  margin-block-end: 0;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-block-start: var(--space-xs);
}

.home-hero__actions .btn {
  min-height: 2.75rem;
}

.home-btn-secondary {
  background-color: var(--color-oat);
  color: var(--color-ink);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius-full);
}

.home-btn-secondary:hover {
  background-color: #E4DCD0;
  color: var(--color-ink);
}

.home-hero__notice,
.home-reservation__notice,
.home-notice__text {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  font-weight: var(--text-caption-weight);
  color: var(--color-ink-soft);
  margin-block-end: 0;
}

.home-hero__notice-icon,
.home-reservation__notice-icon,
.home-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 0.0625rem solid var(--color-terracotta);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.home-hero__inset {
  width: 10rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  align-self: flex-start;
}

.home-hero__inset-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.home-intro__container {
  max-width: var(--container-reading);
  margin-inline: auto;
}

.home-intro__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
}

.home-atmosphere__panel {
  background-color: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.home-atmosphere__text {
  min-width: 0;
}

.home-atmosphere__text h2 {
  margin-block-end: var(--space-md);
}

.home-atmosphere__text p {
  margin-block-end: 0;
}

.home-atmosphere__features {
  min-width: 0;
}

.home-atmosphere__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.home-atmosphere__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-ink);
}

.home-atmosphere__icon,
.home-equipment__icon {
  color: var(--color-terracotta);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-format__header {
  max-width: var(--container-reading);
  margin-block-end: var(--space-xl);
}

.home-format__header h2 {
  margin-block-end: var(--space-md);
}

.home-format__header p {
  margin-block-end: 0;
}

.home-format__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.home-format__card {
  background-color: var(--color-oat);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home-format__card:hover {
  border-color: var(--color-terracotta);
  box-shadow: var(--shadow-elevated);
}

.home-format__card h3 {
  margin-block-end: 0;
}

.home-format__card p {
  margin-block-end: 0;
}

.home-format__icon,
.home-services__icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-terracotta);
}

.home-equipment__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.home-equipment__media {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.home-equipment__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.home-equipment__content {
  min-width: 0;
}

.home-equipment__content h2 {
  margin-block-end: var(--space-md);
}

.home-equipment__content p {
  margin-block-end: var(--space-lg);
}

.home-equipment__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.home-equipment__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-ink);
}

.home-services__header {
  margin-block-end: var(--space-xl);
}

.home-services__header h2 {
  margin-block-end: 0;
}

.home-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.home-services__card {
  background-color: var(--color-paper);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home-services__card:hover {
  border-color: var(--color-terracotta);
  box-shadow: var(--shadow-elevated);
}

.home-services__card h3 {
  margin-block-end: 0;
}

.home-services__card p {
  margin-block-end: 0;
}

.home-hours__panel {
  background-color: var(--color-oat);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 30rem;
}

.home-hours__panel h2 {
  margin-block-end: var(--space-lg);
}

.home-hours__table {
  margin-block-end: var(--space-md);
}

.home-hours__table th,
.home-hours__table td {
  padding: var(--space-sm) var(--space-md);
}

.home-hours__note {
  margin-block-end: 0;
}

.home-reservation__container {
  max-width: var(--container-action);
  margin-inline: auto;
}

.home-reservation__panel {
  background-color: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.home-reservation__panel h2 {
  margin-block-end: var(--space-md);
}

.home-reservation__description {
  margin-block-end: var(--space-xl);
}

.home-reservation__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.home-reservation__field label {
  margin-block-end: 0;
}

.home-reservation__error {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  color: var(--color-terracotta-deep);
  margin-block-end: 0;
  min-height: 1.25rem;
}

.home-reservation__notice {
  margin-block-end: 0;
}

.home-reservation__submit {
  align-self: flex-start;
  min-height: 2.75rem;
}

.home-reservation__success {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-ink);
  background-color: var(--color-oat);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-block-end: 0;
}

.home-contact__container {
  max-width: 35rem;
  margin-inline: auto;
}

.home-contact__card {
  background-color: var(--color-oat);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.home-contact__card h2 {
  margin-block-end: var(--space-lg);
}

.home-contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-ink);
}

.home-contact__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.home-notice__container {
  max-width: 25rem;
  margin-inline: auto;
  text-align: center;
}

.home-notice__text {
  justify-content: center;
}

@media (min-width: 40rem) {
  .home-hero {
    padding-block: var(--space-3xl);
  }

  .home-hero__panel {
    padding: var(--space-2xl);
    max-width: 32rem;
  }

  .home-hero__inset {
    width: 12rem;
  }

  .home-atmosphere__panel {
    padding: var(--space-2xl);
  }

  .home-atmosphere__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .home-format__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .home-equipment__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }

  .home-equipment__media {
    flex: 1 1 50%;
    min-width: 0;
  }

  .home-equipment__content {
    flex: 1 1 50%;
    min-width: 0;
  }

  .home-equipment__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .home-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .home-reservation__panel {
    padding: var(--space-2xl);
  }
}

@media (min-width: 64rem) {
  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30rem;
    grid-template-rows: auto auto;
    gap: 0;
    align-items: start;
    padding-block: var(--space-4xl);
  }

  .home-hero__media {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    aspect-ratio: 16 / 9;
    height: 100%;
  }

  .home-hero__image {
    height: 100%;
    min-height: 30rem;
  }

  .home-hero__panel {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin-block-start: var(--space-2xl);
    margin-inline-start: calc(-1 * var(--space-2xl));
    z-index: 2;
  }

  .home-hero__inset {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    justify-self: end;
    margin-block-start: var(--space-md);
    width: 10rem;
  }

  .home-atmosphere__panel {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }

  .home-atmosphere__text {
    flex: 0 0 40%;
  }

  .home-atmosphere__features {
    flex: 1 1 60%;
  }

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

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

  .home-reservation__field--full {
    grid-column: 1 / -1;
  }

  .home-reservation__field:nth-child(3),
  .home-reservation__field:nth-child(4),
  .home-reservation__field:nth-child(5),
  .home-reservation__field:nth-child(6) {
    grid-column: 1 / -1;
  }

  .home-reservation__notice,
  .home-reservation__submit,
  .home-reservation__success {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__inset {
    transition: none;
  }
}
