/* ===== Falentak Főoldal – page-owned styles ===== */

/* Scope all page styles to the main element to avoid shared component conflicts */
#home-main {
  --home-section-deep-green: var(--color-deep-green);
  --home-section-graphite: var(--color-graphite);
  --home-section-bordeaux: var(--color-bordeaux);
  --home-section-gold: var(--color-gold);
  --home-section-muted-gold: var(--color-muted-gold);
  --home-section-ivory: var(--color-ivory);
  --home-section-dark-wood: var(--color-dark-wood);
  --home-section-overlay: rgba(0, 0, 0, 0.4);
  --home-section-shadow-soft: var(--shadow-soft);
  --home-section-shadow-card-hover: var(--shadow-card-hover);
  --home-section-radius-card: var(--radius-card);
  --home-section-radius-button: var(--radius-button);
  --home-section-radius-image: var(--radius-image);
  --home-section-radius-panel: var(--radius-panel);
  --home-section-transition-base: var(--transition-base);
  --home-section-transition-fast: var(--transition-fast);
  --home-section-transition-smooth: var(--transition-smooth);
  --home-section-focus-ring: var(--focus-ring);
  --home-section-focus-offset: var(--focus-offset);
}

/* ===== Hero ===== */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--home-section-deep-green);
}

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

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

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--home-section-overlay);
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
  display: flex;
  justify-content: center;
  padding-block: var(--space-3xl);
}

.home-hero__panel {
  background-color: var(--surface-overlay);
  border: var(--border-gold-low);
  border-radius: var(--radius-panel);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  max-width: 65ch;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.home-hero__eyebrow {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--home-section-gold);
  margin: 0;
}

.home-hero__panel h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  font-weight: var(--weight-h1);
  color: var(--home-section-ivory);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.home-hero__lead {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  color: var(--home-section-ivory);
  margin: 0;
  max-width: 55ch;
}

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

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

/* ===== Section base ===== */
.home-section {
  padding-block: var(--section-space-mobile);
}

.home-section--deep-green {
  background-color: var(--home-section-deep-green);
}

.home-section--graphite {
  background-color: var(--home-section-graphite);
}

.home-section__eyebrow {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--home-section-gold);
  margin-block-end: var(--space-sm);
}

.home-section__header {
  max-width: 65ch;
  margin-inline: auto;
  text-align: center;
  margin-block-end: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.home-section__header h2 {
  margin: 0;
}

.home-section__intro {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  color: var(--home-section-ivory);
  margin: 0;
  max-width: 55ch;
}

/* ===== Feature sections (pókerterem, kártyaszalon, étterem) ===== */
.home-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.home-feature__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  text-align: left;
}

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

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

.home-feature__list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 65ch;
}

.home-feature__list li {
  position: relative;
  padding-inline-start: var(--space-lg);
  color: var(--home-section-ivory);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.home-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--home-section-gold);
}

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

.home-feature__image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--home-section-radius-image);
  border: 1px solid var(--home-section-gold);
  transition: transform var(--home-section-transition-smooth);
}

.home-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--home-section-transition-smooth);
}

.home-feature__image:hover img {
  transform: scale(1.05);
}

/* ===== Text-only section (pókerasztalok) ===== */
.home-text-block {
  max-width: 65ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  text-align: left;
}

.home-text-block h2 {
  margin: 0;
}

.home-text-block p {
  margin: 0;
}

.home-text-block__list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.home-text-block__list li {
  position: relative;
  padding-inline-start: var(--space-lg);
  color: var(--home-section-ivory);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.home-text-block__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--home-section-gold);
}

/* ===== Events grid ===== */
.home-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.home-events-grid > * {
  min-width: 0;
}

.home-event-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  text-align: left;
  padding: var(--space-lg);
  transition: transform var(--home-section-transition-base), box-shadow var(--home-section-transition-base);
}

.home-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-section-shadow-card-hover);
}

.home-event-card h3 {
  margin: 0;
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  color: var(--home-section-ivory);
  max-width: 45ch;
}

.home-event-card p {
  margin: 0;
  max-width: 45ch;
  color: var(--home-section-ivory);
}

.home-event-card__meta {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--home-section-muted-gold);
  margin-top: auto;
}

/* ===== Menu grid ===== */
.home-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.home-menu-grid > * {
  min-width: 0;
}

.home-menu-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
  text-align: left;
  padding: var(--space-lg);
  background-color: var(--home-section-dark-wood);
  border: var(--border-muted-gold-low);
  border-radius: var(--home-section-radius-card);
  transition: transform var(--home-section-transition-base), box-shadow var(--home-section-transition-base);
}

.home-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-section-shadow-card-hover);
}

.home-menu-card h3 {
  margin: 0;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  color: var(--home-section-ivory);
  max-width: 45ch;
}

.home-menu-card p {
  margin: 0;
  max-width: 45ch;
  color: var(--home-section-ivory);
}

.home-menu-card__price {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  font-weight: 600;
  color: var(--home-section-gold);
  align-self: flex-end;
  margin-top: auto;
  border-top: 1px solid var(--home-section-muted-gold);
  padding-top: var(--space-sm);
  width: 100%;
  text-align: right;
}

/* ===== Gallery grid ===== */
.home-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.home-gallery-grid > * {
  min-width: 0;
}

.home-gallery-item {
  width: 100%;
  overflow: hidden;
  border-radius: var(--home-section-radius-image);
  border: 1px solid var(--home-section-gold);
  transition: transform var(--home-section-transition-smooth);
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--home-section-transition-smooth);
}

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

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

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

.home-cta h2 {
  margin: 0;
}

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

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

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

/* ===== Contact section ===== */
.home-contact {
  max-width: 65ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  text-align: left;
}

.home-contact h2 {
  margin: 0;
}

.home-contact p {
  margin: 0;
}

.home-contact__list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.home-contact__list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: baseline;
  color: var(--home-section-ivory);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.home-contact__label {
  font-weight: 600;
  color: var(--home-section-gold);
  min-width: 6rem;
}

.home-contact__list a {
  color: var(--home-section-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--home-section-transition-base);
}

.home-contact__list a:hover {
  color: var(--home-section-bordeaux);
}

.home-contact__list a:focus-visible {
  outline: var(--home-section-focus-ring);
  outline-offset: var(--home-section-focus-offset);
  border-radius: var(--home-section-radius-small);
}

/* ===== Tablet breakpoint (768px and up) ===== */
@media (min-width: 768px) {
  .home-hero__content {
    padding-inline: var(--container-padding-tablet);
  }

  .home-hero__panel {
    padding: var(--space-2xl);
  }

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

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

  .home-feature--reverse .home-feature__media {
    order: -1;
  }

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

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

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

/* ===== Desktop breakpoint (1024px and up) ===== */
@media (min-width: 1024px) {
  .home-hero__content {
    padding-inline: var(--container-padding-desktop);
  }

  .home-feature {
    gap: var(--space-3xl);
  }

  .home-events-grid {
    gap: var(--space-2xl);
  }

  .home-menu-grid {
    gap: var(--space-2xl);
  }

  .home-gallery-grid {
    gap: var(--space-2xl);
  }
}

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

  .home-hero__panel {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .home-hero__panel h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

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

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

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

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

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

  .home-feature--reverse .home-feature__media {
    order: 0;
  }

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

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

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

  .home-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

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

  .home-contact__list li {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .home-contact__label {
    min-width: auto;
  }
}

/* ===== Small mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
  .home-hero__panel h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

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

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .home-hero__media img,
  .home-feature__image img,
  .home-gallery-item img {
    transition: none;
  }

  .home-feature__image:hover img,
  .home-gallery-item:hover img {
    transform: none;
  }

  .home-event-card:hover,
  .home-menu-card:hover {
    transform: none;
    box-shadow: var(--home-section-shadow-soft);
  }
}
