/* Home page scoped styles */
#home-main {
  display: block;
}

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

@media (max-width: 767px) {
  .home-section {
    padding-block: var(--space-3xl);
  }
}

/* Hero */
.home-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-deep-graphite);
}

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

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(30, 42, 50, 0.82) 0%, rgba(30, 42, 50, 0.45) 55%, rgba(30, 42, 50, 0.15) 100%);
}

.home-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.home-hero__content {
  max-width: 560px;
  padding-block: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}

.home-hero__overline {
  color: var(--color-white);
  margin-block-end: 0;
}

.home-hero__title {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw + 0.75rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-block-end: 0;
}

.home-hero__lead {
  color: rgba(255, 255, 255, 0.9);
  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-md);
  align-items: center;
  margin-block-start: var(--space-sm);
}

.home-hero__actions .btn {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .home-hero {
    min-height: 70vh;
  }

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

  .home-hero__content {
    max-width: 100%;
    align-items: center;
    text-align: center;
    padding-block: var(--space-xl);
  }

  .home-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .home-hero__actions .btn {
    width: 100%;
  }
}

/* Offline Poker */
.home-offline {
  background-color: var(--color-baltic-pearl);
}

.home-offline__intro {
  max-width: 720px;
  margin-block-end: var(--space-2xl);
}

.home-offline__intro h1 {
  margin-block-end: var(--space-lg);
}

.home-offline__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-block-end: var(--space-xl);
}

.home-offline__card {
  background-color: var(--color-white);
  border: var(--border-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.home-offline__card:hover {
  box-shadow: 0 12px 32px rgba(30, 42, 50, 0.1);
  transform: translateY(-2px);
}

.home-offline__icon {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-sea-glass-green);
  margin-block-end: var(--space-xs);
}

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

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

.home-offline__link {
  margin-block-start: var(--space-sm);
}

@media (max-width: 1023px) {
  .home-offline__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-offline__grid {
    grid-template-columns: 1fr;
  }
}

/* Poker Room / Stoły */
.home-poker-room {
  background-color: var(--color-pale-stone);
}

.home-poker-room__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-block-end: var(--space-3xl);
}

.home-poker-room__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-poker-room__content h1 {
  margin-block-end: 0;
}

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

.home-poker-room__content .content-list {
  margin-block-end: 0;
}

.home-poker-room__figure {
  margin-block-end: 0;
  min-width: 0;
}

.home-poker-room__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brushed-steel);
}

.home-poker-room__tables {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.home-poker-room__tables-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-poker-room__tables-content h2 {
  margin-block-end: 0;
}

.home-poker-room__tables-content p {
  margin-block-end: 0;
}

.home-poker-room__tables-content .content-list {
  margin-block-end: 0;
}

.home-poker-room__figure--wide img {
  aspect-ratio: 16 / 9;
}

@media (max-width: 1023px) {
  .home-poker-room__grid,
  .home-poker-room__tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .home-poker-room__figure img {
    aspect-ratio: 4 / 3;
  }

  .home-poker-room__figure--wide img {
    aspect-ratio: 4 / 3;
  }
}

/* Card Lounge */
.home-card-lounge {
  background-color: var(--color-sea-glass-light);
}

.home-card-lounge__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-2xl);
  align-items: start;
}

.home-card-lounge__figure {
  margin-block-end: 0;
  min-width: 0;
}

.home-card-lounge__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brushed-steel);
}

.home-card-lounge__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-card-lounge__content h1 {
  margin-block-end: 0;
}

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

.home-card-lounge__content .content-list {
  margin-block-end: 0;
}

@media (max-width: 1023px) {
  .home-card-lounge__grid {
    grid-template-columns: 1fr;
  }
}

/* Events */
.home-events {
  background-color: var(--color-baltic-pearl);
}

.home-events__intro {
  max-width: 720px;
  margin-block-end: var(--space-xl);
}

.home-events__intro h1 {
  margin-block-end: var(--space-lg);
}

.home-events__subtitle {
  margin-block-end: var(--space-sm);
}

.home-events__subcopy {
  max-width: 720px;
  margin-block-end: var(--space-xl);
}

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

.home-events__card {
  background-color: var(--color-white);
  border: var(--border-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

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

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

.home-events__note {
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  color: var(--color-graphite-soft);
  margin-block-end: var(--space-md);
}

@media (max-width: 767px) {
  .home-events__grid {
    grid-template-columns: 1fr;
  }
}

/* Restaurant */
.home-restaurant {
  background-color: var(--color-pale-stone);
}

.home-restaurant__content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-restaurant__content h1 {
  margin-block-end: 0;
}

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

.home-restaurant__content .content-list {
  margin-block-end: 0;
}

/* Location */
.home-location {
  background-color: var(--color-baltic-pearl);
}

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

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

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

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

.home-location__content address {
  font-style: normal;
  color: var(--color-graphite-soft);
}

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

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

@media (max-width: 1023px) {
  .home-location__grid {
    grid-template-columns: 1fr;
  }

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

/* FAQ */
.home-faq {
  background-color: var(--color-pale-stone);
}

.home-faq__container {
  max-width: 800px;
  margin-inline: auto;
}

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

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

.home-faq__item {
  background-color: var(--color-white);
  border: var(--border-panel);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.home-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  font-weight: 600;
  color: var(--color-deep-graphite);
  text-align: left;
  min-height: 44px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.home-faq__question:hover {
  background-color: var(--color-pale-stone);
}

.home-faq__question:focus-visible {
  outline: var(--focus-outline);
  outline-offset: -2px;
  border-radius: 0;
}

.home-faq__icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.home-faq__icon::before,
.home-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  background-color: var(--color-deep-graphite);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-medium);
}

.home-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.home-faq__item.is-open .home-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.home-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.home-faq__answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  margin-block-end: 0;
  color: var(--color-graphite-soft);
}

/* CTA */
.home-cta {
  background-color: var(--color-deep-graphite);
  color: var(--color-white);
}

.home-cta__container {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.home-cta__overline {
  color: var(--color-white);
  margin-block-end: 0;
}

.home-cta__container h2 {
  color: var(--color-white);
  margin-block-end: 0;
}

.home-cta__container p {
  color: rgba(255, 255, 255, 0.85);
  margin-block-end: 0;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-block-start: var(--space-sm);
}

.home-cta__actions .btn {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .home-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .home-cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__media img,
  .home-offline__card,
  .home-faq__answer,
  .home-faq__icon::before,
  .home-faq__icon::after {
    transition: none;
  }
}
