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

/* Hero */
.home-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-matte-black);
}

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

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

.home-hero__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(to top, rgba(14, 14, 14, 0.85) 0%, rgba(14, 14, 14, 0.25) 55%, rgba(14, 14, 14, 0) 100%);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.home-hero__content {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.home-hero__eyebrow {
  color: var(--color-brass);
}

.home-hero__title {
  max-width: 12ch;
  color: var(--color-warm-cream);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-block-end: 0;
}

.home-hero__lede {
  max-width: 60ch;
  color: var(--color-muted-cream);
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  margin-block-end: 0;
}

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

/* Section base adjustments */
.home-offline-poker,
.home-poker-room,
.home-poker-tables,
.home-card-lounge,
.home-poker-events,
.home-location {
  padding-block: var(--space-3xl);
}

/* Offline Poker */
.home-offline-poker__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-xl);
  align-items: start;
}

.home-offline-poker__text {
  min-width: 0;
}

.home-offline-poker__text h2 {
  max-width: 18ch;
}

.home-offline-poker__text > p {
  max-width: 68ch;
}

.home-offline-poker__features {
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.home-offline-poker__features li {
  min-width: 0;
  padding-inline-start: var(--space-md);
  border-inline-start: 2px solid var(--color-emerald-green);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-warm-cream);
}

.home-offline-poker__features a {
  color: var(--color-warm-cream);
  text-decoration-color: var(--color-brass);
}

.home-offline-poker__features a:hover {
  text-decoration-color: var(--color-emerald-green);
}

.home-offline-poker__media {
  min-width: 0;
}

.home-offline-poker__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Poker Room */
.home-poker-room__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.home-poker-room__text {
  min-width: 0;
}

.home-poker-room__text h2 {
  max-width: 16ch;
}

.home-poker-room__text > p {
  max-width: 68ch;
}

.home-poker-room__quote {
  max-width: 40ch;
  margin-block-start: var(--space-lg);
  padding-inline-start: var(--space-md);
  border-inline-start: 2px solid var(--color-emerald-green);
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  letter-spacing: var(--text-h3-tracking);
  color: var(--color-warm-cream);
}

.home-poker-room__media {
  min-width: 0;
}

.home-poker-room__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Poker Tables */
.home-poker-tables__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

.home-poker-tables__intro {
  max-width: 68ch;
}

.home-poker-tables__intro h2 {
  max-width: 18ch;
}

.home-poker-tables__list {
  list-style: none;
  padding-inline-start: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.home-poker-tables__list li {
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  background-color: var(--color-deep-black);
}

.home-poker-tables__list h3 {
  color: var(--color-warm-cream);
  font-size: var(--text-h4-size);
  margin-block-end: var(--space-xs);
}

.home-poker-tables__list p {
  color: var(--color-muted-cream);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  margin-block-end: 0;
}

/* Card Lounge */
.home-card-lounge__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-xl);
  align-items: start;
}

.home-card-lounge__media {
  min-width: 0;
}

.home-card-lounge__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-card-lounge__text {
  min-width: 0;
}

.home-card-lounge__text h2 {
  max-width: 18ch;
}

.home-card-lounge__text > p {
  max-width: 68ch;
}

.home-card-lounge__features {
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.home-card-lounge__features li {
  min-width: 0;
  padding-block-start: var(--space-xs);
  border-block-start: 1px solid var(--color-brass);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-warm-cream);
}

/* Poker Events */
.home-poker-events__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

.home-poker-events__intro {
  max-width: 68ch;
}

.home-poker-events__intro h2 {
  max-width: 16ch;
}

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

.home-event-card {
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid var(--color-border-dark);
  border-inline-start: 2px solid var(--color-emerald-green);
  border-radius: var(--radius-md);
  background-color: var(--color-deep-black);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.home-event-card__date {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  font-weight: var(--text-caption-weight);
  letter-spacing: var(--text-caption-tracking);
  text-transform: uppercase;
  color: var(--color-brass);
  margin-block-end: 0;
}

.home-event-card h3 {
  color: var(--color-warm-cream);
  font-size: var(--text-h4-size);
  margin-block-end: 0;
}

.home-event-card p {
  color: var(--color-muted-cream);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  margin-block-end: 0;
}

.home-event-card a {
  margin-block-start: var(--space-xs);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-warm-cream);
  text-decoration-color: var(--color-brass);
}

.home-event-card a:hover {
  text-decoration-color: var(--color-emerald-green);
}

/* Restaurant */
.home-restaurant {
  background-color: var(--color-cream-surface);
  color: var(--color-ink-on-cream);
}

.home-restaurant__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-xl);
  align-items: start;
}

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

.home-restaurant__text h2 {
  color: var(--color-ink-on-cream);
  max-width: 14ch;
}

.home-restaurant__text > p {
  color: var(--color-ink-on-cream);
  max-width: 68ch;
}

.home-restaurant__menu {
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.home-restaurant__menu li {
  min-width: 0;
  padding-block-start: var(--space-xs);
  border-block-start: 1px solid var(--color-walnut);
}

.home-restaurant__menu h3 {
  color: var(--color-ink-on-cream);
  font-size: var(--text-h4-size);
  margin-block-end: var(--space-xs);
}

.home-restaurant__menu p {
  color: var(--color-ink-on-cream);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  margin-block-end: 0;
}

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

.home-restaurant__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-restaurant figcaption {
  color: var(--color-muted-cream);
}

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

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

.home-location__text h2 {
  max-width: 14ch;
}

.home-location__address {
  font-style: normal;
  color: var(--color-warm-cream);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

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

.home-location__address a {
  color: var(--color-warm-cream);
  text-decoration-color: var(--color-brass);
}

.home-location__address a:hover {
  text-decoration-color: var(--color-emerald-green);
}

.home-location__map {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-emerald-green);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}

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

/* Tablet */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .home-hero__content {
    padding-inline: var(--container-padding-desktop);
  }

  .home-offline-poker__grid,
  .home-poker-room__grid,
  .home-card-lounge__grid,
  .home-restaurant__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .home-offline-poker__features,
  .home-card-lounge__features,
  .home-poker-tables__list,
  .home-poker-events__list,
  .home-restaurant__menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-poker-tables__list li:last-child,
  .home-poker-events__list .home-event-card:last-child {
    grid-column: span 2;
  }

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

/* Mobile */
@media (max-width: 47.9375rem) {
  .home-hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
  }

  .home-hero__overlay {
    position: relative;
    background: var(--color-matte-black);
    padding: var(--space-xl) 0;
  }

  .home-hero__content {
    padding-inline: var(--container-padding-mobile);
    gap: var(--space-sm);
  }

  .home-hero__title {
    font-size: 2rem;
    line-height: 1.1;
    max-width: 100%;
  }

  .home-hero__lede {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
  }

  .home-hero__actions {
    width: 100%;
  }

  .home-hero__actions .btn {
    flex: 1 1 auto;
  }

  .home-offline-poker,
  .home-poker-room,
  .home-poker-tables,
  .home-card-lounge,
  .home-poker-events,
  .home-location {
    padding-block: var(--space-2xl);
  }

  .home-offline-poker__grid,
  .home-poker-room__grid,
  .home-card-lounge__grid,
  .home-restaurant__grid,
  .home-location__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .home-offline-poker__features,
  .home-card-lounge__features,
  .home-poker-tables__list,
  .home-poker-events__list,
  .home-restaurant__menu {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .home-poker-tables__list li:last-child,
  .home-poker-events__list .home-event-card:last-child {
    grid-column: auto;
  }

  .home-poker-room__quote {
    max-width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .home-hero__overlay,
  .home-hero__media img {
    transition: none;
  }
}
