/* Grand Flavvor Kezdőlap — page-owned styles */

.home-hero {
  padding-block: var(--space-8) var(--space-7);
  border-bottom: var(--border-thin) solid var(--line-accent);
}

.home-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  background-color: var(--text-secondary);
  color: #000000;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: var(--border-thin) solid var(--text-secondary);
}

.home-hero__title {
  max-width: 80%;
  margin-block-end: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 1px;
}

.home-hero__lead {
  max-width: 60ch;
  margin-block-end: 0;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
}

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

.home-hero__media {
  width: 100%;
  margin-block-start: var(--space-5);
  margin-block-end: 0;
  border: var(--border-thin) solid var(--line-subtle);
}

.home-hero__media img {
  width: 100%;
  height: auto;
}

.home-formats__intro,
.home-team-highlight__intro,
.home-corporate__intro,
.home-birthday__intro,
.home-poker__intro,
.home-process__intro,
.home-hosts__intro,
.home-gallery__intro,
.home-contact__intro {
  max-width: 80ch;
  margin-inline: auto;
  color: var(--text-muted);
}

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

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

.home-format-card .card__text {
  max-width: 80ch;
}

.home-format-card .link {
  margin-block-start: auto;
}

.home-team-highlight__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-start: var(--space-6);
}

.home-benefit {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background-color: var(--bg-base);
  border: var(--border-thin) solid var(--line-subtle);
  min-width: 0;
}

.home-benefit__marker,
.home-service-item__marker {
  display: block;
  width: 12px;
  height: 12px;
  background-color: var(--text-secondary);
  flex-shrink: 0;
}

.home-benefit__title {
  margin-block-end: 0;
  font-size: 1.25rem;
}

.home-benefit__text {
  max-width: 40ch;
  margin-block-end: 0;
  color: var(--text-muted);
}

.home-team-highlight__cta {
  display: flex;
  justify-content: center;
  margin-block-start: var(--space-6);
}

.home-corporate__layout,
.home-birthday__layout,
.home-poker__layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--space-6);
  align-items: start;
  margin-block-start: var(--space-6);
}

.home-birthday__layout {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.home-corporate__content,
.home-birthday__content,
.home-poker__content {
  min-width: 0;
}

.home-corporate__media,
.home-birthday__media,
.home-poker__media {
  margin-block-end: 0;
  border: var(--border-thin) solid var(--line-subtle);
  min-width: 0;
}

.home-corporate__media img,
.home-birthday__media img,
.home-poker__media img {
  width: 100%;
  height: auto;
}

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

.home-service-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  min-width: 0;
}

.home-service-item__title {
  margin-block-end: var(--space-2);
  font-size: 1.25rem;
}

.home-service-item__text {
  max-width: 40ch;
  margin-block-end: 0;
  color: var(--text-muted);
}

.home-process__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: home-process;
}

.home-process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--bg-base);
  border: var(--border-thin) solid var(--line-subtle);
  min-width: 0;
}

.home-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--space-4) - 1px);
  width: var(--space-4);
  height: var(--border-thick);
  background-color: var(--line-accent);
  transform: translateY(-50%);
}

.home-process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--text-secondary);
  color: #000000;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.home-process-step__body {
  min-width: 0;
}

.home-process-step__title {
  margin-block-end: var(--space-2);
  font-size: 1.25rem;
}

.home-process-step__text {
  max-width: 60ch;
  margin-block-end: 0;
  color: var(--text-muted);
}

.home-hosts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-start: var(--space-6);
}

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

.home-host-card .card__text {
  max-width: 60ch;
}

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

.home-gallery__item {
  margin-block-end: 0;
  border: var(--border-thin) solid var(--line-subtle);
  min-width: 0;
}

.home-gallery__item img {
  width: 100%;
  height: auto;
}

.home-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 80ch;
  margin-inline: auto;
  border-top: var(--border-thin) solid var(--line-accent);
}

.home-faq__item {
  border-bottom: var(--border-thin) solid var(--line-accent);
}

.home-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  list-style: none;
}

.home-faq__question::-webkit-details-marker {
  display: none;
}

.home-faq__question::after {
  content: "+";
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.home-faq__item[open] .home-faq__question::after {
  transform: rotate(45deg);
}

.home-faq__answer {
  max-width: 80ch;
  margin-block-end: var(--space-4);
  color: var(--text-muted);
}

.home-contact__direct {
  margin-block-start: var(--space-3);
  margin-block-end: 0;
  color: var(--text-primary);
}

.home-contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 600px;
  margin-inline: auto;
  margin-block-start: var(--space-6);
}

.home-contact__form .btn {
  align-self: flex-start;
}

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

  .home-team-highlight__grid,
  .home-hosts__grid,
  .home-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-process-step:not(:last-child)::after {
    display: none;
  }

  .home-corporate__layout,
  .home-birthday__layout,
  .home-poker__layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

  .home-corporate__media,
  .home-birthday__media,
  .home-poker__media {
    order: -1;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding-block: var(--space-6) var(--space-5);
  }

  .home-hero__title {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .home-hero__lead {
    max-width: 100%;
    font-size: 1rem;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .home-formats__grid,
  .home-team-highlight__grid,
  .home-hosts__grid,
  .home-gallery__grid,
  .home-process__list {
    grid-template-columns: 1fr;
  }

  .home-formats__intro,
  .home-team-highlight__intro,
  .home-corporate__intro,
  .home-birthday__intro,
  .home-poker__intro,
  .home-process__intro,
  .home-hosts__intro,
  .home-gallery__intro,
  .home-contact__intro {
    max-width: 100%;
  }

  .home-benefit__text,
  .home-service-item__text,
  .home-process-step__text,
  .home-host-card .card__text,
  .home-faq__answer {
    max-width: 100%;
  }

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