/* Home page styles scoped to main */
main {
  overflow: clip;
}

/* Hero */
.home-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px 24px 64px;
  background-color: var(--color-grafit);
  overflow: hidden;
}

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

.home-hero__central {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(60%, 720px);
  transform: translate(-50%, -50%);
  border-radius: var(--radius-module);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}

.home-hero__central img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.home-hero__satellite {
  position: absolute;
  border-radius: var(--radius-module);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
  opacity: 0.92;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.home-hero__satellite--space {
  width: 20%;
  top: 12%;
  left: 4%;
  aspect-ratio: 4 / 3;
}

.home-hero__satellite--people {
  width: 25%;
  top: 8%;
  right: 5%;
  aspect-ratio: 3 / 4;
}

.home-hero__satellite--food {
  width: 20%;
  bottom: 14%;
  left: 6%;
  aspect-ratio: 1 / 1;
}

.home-hero__satellite--details {
  width: 20%;
  bottom: 10%;
  right: 7%;
  aspect-ratio: 4 / 3;
}

.home-hero__satellite--poker {
  width: 25%;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 16 / 9;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: rgba(46, 46, 46, 0.55);
  border-radius: var(--radius-module);
  backdrop-filter: blur(4px);
}

.home-hero__content h1 {
  color: var(--color-biel);
  margin-block-end: 0;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

.home-hero__intro {
  color: var(--color-biel);
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  margin-block-end: 0;
  max-width: 480px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.home-hero__actions .btn {
  min-width: 180px;
}

@media (max-width: 1023px) {
  .home-hero {
    padding: 72px 24px 48px;
  }

  .home-hero__central {
    width: min(80%, 640px);
  }

  .home-hero__satellite--space {
    width: 28%;
    top: 8%;
    left: 2%;
  }

  .home-hero__satellite--people {
    width: 30%;
    top: 6%;
    right: 2%;
  }

  .home-hero__satellite--food {
    width: 26%;
    bottom: 10%;
    left: 3%;
  }

  .home-hero__satellite--details {
    width: 26%;
    bottom: 8%;
    right: 3%;
  }

  .home-hero__satellite--poker {
    width: 32%;
    bottom: 2%;
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: auto;
    padding: 48px 16px 32px;
    display: block;
  }

  .home-hero__media {
    position: static;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    pointer-events: auto;
  }

  .home-hero__central {
    position: static;
    transform: none;
    width: 100%;
    order: 0;
  }

  .home-hero__satellite {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
  }

  .home-hero__satellite--space {
    order: 1;
  }

  .home-hero__satellite--people {
    order: 2;
  }

  .home-hero__satellite--food {
    order: 3;
  }

  .home-hero__satellite--details {
    order: 4;
  }

  .home-hero__satellite--poker {
    order: 5;
  }

  .home-hero__content {
    margin-top: var(--space-5);
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .home-hero__content h1 {
    font-size: 2.5rem;
  }

  .home-hero__intro {
    font-size: var(--text-body-size);
  }

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

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

/* About */
.home-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-7);
  align-items: start;
}

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

.home-about__text h2 {
  margin-block-end: var(--space-5);
}

.home-about__text p {
  max-width: 500px;
}

.home-about__media {
  min-width: 0;
  border-radius: var(--radius-module);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}

.home-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.home-about__values {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.home-value-card {
  background-color: var(--surface-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}

.home-value-card h3 {
  margin-block-end: var(--space-3);
  font-size: var(--text-h4-size);
}

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

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

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

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

  .home-about__text p {
    max-width: none;
  }
}

/* Comprehensive */
.home-comprehensive {
  background-color: var(--surface-section-alt);
  color: var(--color-grafit);
}

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

.home-comprehensive__header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.home-comprehensive__header h2 {
  margin-block-end: var(--space-4);
}

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

.home-comprehensive__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-7);
}

.home-comprehensive__list,
.home-comprehensive__benefits {
  min-width: 0;
  background-color: var(--surface-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}

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

.home-check-list li {
  position: relative;
  padding-left: var(--space-6);
}

.home-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-pomarancz);
  font-weight: 700;
}

.home-comprehensive__benefits h3 {
  margin-block-end: var(--space-4);
}

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

.home-benefit-list li {
  margin: 0;
}

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

/* Service sections */
.home-service__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: center;
}

.home-service__grid--reverse .home-service__media {
  order: -1;
}

.home-service__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

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

.home-service__content p {
  max-width: 500px;
  margin-block-end: 0;
}

.home-service__content .btn {
  margin-top: var(--space-3);
}

.home-service__media {
  min-width: 0;
  border-radius: var(--radius-module);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}

.home-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s ease;
}

.home-service__media:hover img {
  transform: scale(1.03);
}

.home-service--team .home-service__media img,
.home-service--integration .home-service__media img,
.home-service--themed .home-service__media img {
  aspect-ratio: 16 / 9;
}

@media (max-width: 1023px) {
  .home-service__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .home-service__grid--reverse .home-service__media {
    order: 0;
  }

  .home-service__content p {
    max-width: none;
  }
}

/* Poker */
.home-poker {
  background-color: var(--surface-section-accent);
  color: var(--color-biel);
}

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

.home-poker__intro {
  max-width: 700px;
}

.home-poker__intro h2 {
  color: var(--color-biel);
  margin-block-end: var(--space-4);
}

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

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

.home-poker-card {
  min-width: 0;
  background-color: var(--surface-card-bg);
  color: var(--color-grafit);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-poker-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}

.home-poker-card__media {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.home-poker-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

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

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

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

/* Scenography */
.home-scenography__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: start;
}

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

.home-scenography__content h2 {
  margin-block-end: var(--space-4);
}

.home-scenography__content > p {
  max-width: 500px;
}

.home-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.home-zone-card {
  min-width: 0;
  background-color: var(--surface-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.home-zone-card h3 {
  font-size: var(--text-h4-size);
  margin-block-end: var(--space-2);
}

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

.home-scenography__media {
  min-width: 0;
  border-radius: var(--radius-module);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}

.home-scenography__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

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

  .home-zone-grid {
    grid-template-columns: 1fr;
  }

  .home-scenography__content > p {
    max-width: none;
  }
}

/* Catering */
.home-catering__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-7);
  align-items: center;
}

.home-catering__media {
  min-width: 0;
  border-radius: var(--radius-module);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}

.home-catering__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

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

.home-catering__content h2 {
  margin-block-end: var(--space-4);
}

.home-catering__content > p {
  max-width: 500px;
}

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

.home-catering-list li {
  margin: 0;
}

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

  .home-catering__content > p {
    max-width: none;
  }
}

/* Process */
.home-process {
  background-color: var(--surface-section-alt);
}

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

.home-process__header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.home-process__header h2 {
  margin-block-end: var(--space-4);
}

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

.home-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-step-card {
  min-width: 0;
  background-color: var(--surface-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}

.home-step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-pomarancz);
  color: var(--color-grafit);
  font-weight: 700;
  font-size: var(--text-body-large-size);
}

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

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

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

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

/* Gallery */
.home-gallery__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.home-gallery__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.home-gallery__header h2 {
  margin-block-end: var(--space-4);
}

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

.home-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

.home-gallery-item {
  margin: 0;
  border-radius: var(--radius-module);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

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

.home-gallery-item:hover img {
  transform: scale(1.03);
}

.home-gallery-item--people {
  grid-column: span 6;
  aspect-ratio: 4 / 3;
}

.home-gallery-item--decor {
  grid-column: span 6;
  aspect-ratio: 1 / 1;
}

.home-gallery-item--poker {
  grid-column: span 4;
  aspect-ratio: 16 / 9;
}

.home-gallery-item--food {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.home-gallery-item--lounge {
  grid-column: span 4;
  aspect-ratio: 16 / 9;
}

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

  .home-gallery-item--people,
  .home-gallery-item--decor,
  .home-gallery-item--poker,
  .home-gallery-item--food,
  .home-gallery-item--lounge {
    grid-column: span 1;
  }
}

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

/* Contact */
.home-contact {
  background-color: var(--surface-section-accent);
  color: var(--color-biel);
}

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

.home-contact__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.home-contact__header h2 {
  color: var(--color-biel);
  margin-block-end: var(--space-4);
}

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

.home-contact-form {
  max-width: 600px;
  width: 100%;
  margin-inline: auto;
  background-color: var(--surface-card-bg);
  color: var(--color-grafit);
  border-radius: var(--radius-module);
  box-shadow: var(--shadow-raised);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

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

.home-contact-form__group {
  min-width: 0;
}

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

.home-contact-form__actions {
  display: flex;
  justify-content: center;
}

.home-contact-form__note {
  margin-block-end: 0;
  font-size: var(--text-caption-size);
  color: var(--color-grafit-jasny);
  text-align: center;
}

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

  .home-contact-form__group--full {
    grid-column: auto;
  }
}

/* Scroll reveal */
.home-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-hero__satellite,
  .home-service__media img,
  .home-gallery-item img {
    transition: none;
  }
}
