/* Home page scoped styles */
#home-main {
  overflow: clip;
}

/* Hero */
.home-hero {
  position: relative;
  min-height: clamp(36rem, 78svh, 45rem);
  display: flex;
  align-items: center;
  background-color: var(--bg-alt);
}

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

.home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.72) 0%, rgba(20, 18, 16, 0.42) 42%, rgba(20, 18, 16, 0.08) 72%),
    linear-gradient(0deg, rgba(20, 18, 16, 0.7) 0%, rgba(20, 18, 16, 0.16) 48%, rgba(20, 18, 16, 0.2) 100%);
  pointer-events: none;
}

.home-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-lg);
  display: flex;
  justify-content: flex-start;
}

.home-hero__content {
  width: 100%;
}

.home-hero__text {
  width: 100%;
  max-width: 41.666%;
  color: var(--bg-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  animation: homeHeroFade 0.8s ease both;
}

.home-hero__title {
  font-size: var(--text-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bg-base);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-hero__lead {
  font-size: var(--text-body);
  line-height: 1.6;
  color: rgba(242, 240, 234, 0.9);
  max-width: 40ch;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@keyframes homeHeroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro */
.home-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-xs);
  align-items: start;
}

.home-intro__concept {
  grid-column: 1 / span 6;
  min-width: 0;
}

.home-intro__philosophy {
  grid-column: 8 / span 5;
  min-width: 0;
}

.home-intro__heading {
  margin-block-end: var(--space-2xs);
}

.home-intro__concept p,
.home-intro__philosophy p {
  max-width: 65ch;
  margin-block-end: 0;
}

/* Signature dishes */
.home-signature__header {
  margin-block-end: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

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

.home-signature__header p {
  max-width: 65ch;
  color: var(--text-secondary);
  margin-block-end: 0;
}

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

.home-dish-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-fast);
}

.home-dish-card:hover {
  border-color: rgba(166, 106, 75, 0.6);
}

.home-dish-card::after {
  content: "♠";
  position: absolute;
  top: var(--space-3xs);
  right: var(--space-3xs);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-copper);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.home-dish-card:hover::after {
  opacity: 1;
}

.home-dish-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.home-dish-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-dish-card__body {
  padding: var(--space-2xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  flex: 1 1 auto;
}

.home-dish-card__title {
  margin: 0;
}

.home-dish-card__text {
  max-width: 45ch;
  margin: 0;
  color: var(--text-primary);
}

/* Poker section */
.home-poker {
  background-color: var(--bg-alt);
  color: var(--bg-base);
}

.home-poker__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: center;
}

.home-poker__content {
  grid-column: 1 / span 6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xs);
}

.home-poker__heading {
  color: var(--bg-base);
  margin: 0;
}

.home-poker__lead {
  color: rgba(242, 240, 234, 0.85);
  max-width: 65ch;
  margin: 0;
}

.home-poker__content p:not(.home-poker__lead) {
  color: rgba(242, 240, 234, 0.85);
  max-width: 65ch;
  margin: 0;
}

.home-poker__cta {
  margin-block-start: var(--space-3xs);
}

.home-poker__media {
  grid-column: 7 / span 6;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
}

.home-poker__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(38, 54, 71, 0.25);
  pointer-events: none;
}

.home-poker__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reservation */
.home-reservation__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2xs);
  max-width: 66.666%;
  margin-inline: auto;
}

.home-reservation__heading {
  margin: 0;
}

.home-reservation__text {
  max-width: 55ch;
  margin: 0;
}

.home-reservation__cta {
  margin-block-start: var(--space-3xs);
  animation: homeReservationPulse 2.4s ease-in-out infinite;
}

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

/* Spaces */
.home-spaces__intro {
  margin-block-end: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.home-spaces__heading {
  margin: 0;
}

.home-spaces__intro p {
  max-width: 65ch;
  margin: 0;
}

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

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

.home-space-item__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-alt);
}

.home-space-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-space-item:hover .home-space-item__image {
  transform: scale(1.02);
}

.home-space-item__caption {
  color: var(--text-secondary);
  margin: 0;
}

/* Themed events */
.home-events {
  background-color: rgba(115, 121, 104, 0.08);
}

.home-events__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.home-events__heading {
  margin: 0;
}

.home-events__lead {
  max-width: 65ch;
  margin: 0;
}

.home-events__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xs) var(--space-xs);
  margin-block-start: var(--space-2xs);
}

.home-events__item {
  min-width: 0;
  padding-inline-start: var(--space-2xs);
  border-inline-start: 2px solid var(--accent-copper);
  display: flex;
  flex-direction: column;
  gap: var(--space-4xs);
}

.home-events__item-title {
  margin: 0;
}

.home-events__item-text {
  margin: 0;
  color: var(--text-primary);
}

/* Contact */
.home-contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: start;
}

.home-contact__details {
  grid-column: 1 / span 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.home-contact__heading {
  margin: 0;
}

.home-contact__details p {
  max-width: 45ch;
  margin: 0;
}

.home-contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  margin: 0;
}

.home-contact__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xs);
  font-size: var(--text-small);
  line-height: 1.5;
}

.home-contact__label {
  font-weight: 600;
  color: var(--text-primary);
}

.home-contact__item a {
  color: var(--accent-blue);
}

.home-contact__item a:hover {
  color: var(--accent-copper);
}

.home-contact__map {
  grid-column: 5 / span 8;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-alt);
}

.home-contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .home-hero__text {
    max-width: 50%;
  }

  .home-poker__grid {
    gap: var(--space-sm);
  }

  .home-contact__grid {
    gap: var(--space-sm);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .home-hero {
    min-height: 100svh;
  }

  .home-hero__container {
    padding-block: var(--space-md);
  }

  .home-hero__text {
    max-width: 100%;
  }

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

  .home-hero__lead {
    max-width: 100%;
  }

  .home-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .home-intro__concept,
  .home-intro__philosophy {
    grid-column: 1 / -1;
  }

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

  .home-dish-card__media {
    aspect-ratio: 16 / 9;
  }

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

  .home-poker__content {
    grid-column: 1 / -1;
    order: 2;
  }

  .home-poker__media {
    grid-column: 1 / -1;
    order: 1;
  }

  .home-reservation__inner {
    max-width: 100%;
  }

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

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

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

  .home-contact__details,
  .home-contact__map {
    grid-column: 1 / -1;
  }

  .home-contact__map {
    aspect-ratio: 4 / 3;
  }
}

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

  .home-hero__lead {
    font-size: var(--text-small);
  }

  .home-reservation__cta {
    width: 100%;
  }

  .home-poker__cta {
    width: 100%;
  }
}

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

  .home-reservation__cta {
    animation: none;
  }

  .home-space-item__image {
    transition: none;
  }
}
