/* FALEERIO Főoldal — page-owned styles */

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-dark-teal);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.home-hero__brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--color-cream);
  text-shadow: 0 2px 12px rgba(15, 31, 31, 0.45);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  margin-inline: 0;
  padding: var(--space-3xl) var(--page-padding-mobile);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  text-align: left;
}

.home-hero__location {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: 0.1em;
  font-weight: var(--text-caption-weight);
  text-transform: uppercase;
  color: var(--color-mustard-ochre);
  margin: 0;
}

.home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--color-cream);
  margin: 0;
  max-width: 80%;
}

.home-hero__lead {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
  font-weight: var(--text-body-large-weight);
  color: var(--color-cream-text-on-dark);
  margin: 0;
  max-width: 65ch;
}

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

.home-hero__actions .btn {
  flex: 1 1 auto;
  min-width: 180px;
  justify-content: center;
}

/* ROOM sections */
.home-room__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.home-room__grid--reverse {
  direction: ltr;
}

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

.home-room__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-letter-spacing);
  font-weight: 400;
  color: inherit;
  margin: 0;
}

.home-room__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: inherit;
  margin: 0;
  max-width: 70ch;
}

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

.home-room__list li {
  position: relative;
  padding-inline-start: var(--space-lg);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: inherit;
}

.home-room__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background-color: var(--color-brick-red);
}

.surface-teal .home-room__list li::before,
.surface-night .home-room__list li::before {
  background-color: var(--color-brick-red-text-on-dark);
}

.home-room__list--tags {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.home-room__list--tags li {
  padding-inline-start: var(--space-sm);
  padding-block: var(--space-2xs);
  background-color: rgba(244, 237, 224, 0.08);
  border: 1px solid rgba(107, 74, 58, 0.2);
  border-radius: var(--radius-tag-label);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: 0.01em;
}

.home-room__list--tags li::before {
  display: none;
}

.home-room__cta {
  margin-top: var(--space-sm);
}

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

.home-room__figure--arch .home-room__image {
  border-radius: 50% 50% 24px 24px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.home-room__figure--square .home-room__image {
  border-radius: var(--radius-card);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.home-room__caption {
  margin-top: var(--space-xs);
  color: var(--color-soft-graphite);
}

.surface-teal .home-room__caption,
.surface-night .home-room__caption {
  color: var(--color-cream-text-on-dark);
  opacity: 0.8;
}

/* PASSAGE */
.home-passage__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

.home-passage__figure {
  margin: 0;
  width: 100%;
}

.home-passage__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
}

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

.home-passage__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-letter-spacing);
  font-weight: 400;
  color: var(--color-dark-teal);
  margin: 0;
}

.home-passage__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-soft-graphite);
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
}

/* FIVE ROOMS */
.home-five-rooms__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.home-five-rooms__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-letter-spacing);
  font-weight: 400;
  color: var(--color-dark-teal);
  margin: 0;
}

.home-five-rooms__lead {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-soft-graphite);
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
}

.home-five-rooms__diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  margin-top: var(--space-md);
}

.home-five-rooms__room {
  background-color: var(--color-cream);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
}

.home-five-rooms__room-number {
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: 400;
  color: var(--color-brick-red);
}

.home-five-rooms__room-name {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: 0.1em;
  font-weight: var(--text-caption-weight);
  text-transform: uppercase;
  color: var(--color-dark-teal);
}

.home-five-rooms__room-time {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
  font-weight: 500;
  color: var(--color-dark-teal);
}

.home-five-rooms__room-desc {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: var(--text-small-letter-spacing);
  color: var(--color-soft-graphite);
}

.home-five-rooms__connector {
  width: 2px;
  height: var(--space-xl);
  background-color: var(--color-mustard-ochre);
  flex: 0 0 auto;
}

/* TABLE */
.home-table__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.home-table__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-letter-spacing);
  font-weight: 400;
  color: var(--color-dark-teal);
  margin: 0;
}

.home-table__lead {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-soft-graphite);
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
}

.home-table__panels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
  margin-top: var(--space-md);
}

.home-table__panel {
  margin: 0;
  width: 100%;
  max-width: 420px;
  background-color: var(--color-cream);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.home-table__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.home-table__caption {
  text-align: center;
  color: var(--color-soft-graphite);
  margin: 0;
}

.home-table__arrow {
  font-size: var(--text-h3-size);
  line-height: 1;
  color: var(--color-mustard-ochre);
  flex: 0 0 auto;
}

/* RESPONSIBLE */
.home-responsible__inner {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.home-responsible__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-letter-spacing);
  font-weight: 400;
  color: var(--color-cream-text-on-dark);
  margin: 0;
}

.home-responsible__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-cream-text-on-dark);
  margin: 0;
  max-width: 70ch;
}

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

.home-responsible__list li {
  position: relative;
  padding-inline-start: var(--space-lg);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-cream-text-on-dark);
}

.home-responsible__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background-color: var(--color-brick-red-text-on-dark);
}

/* FINAL */
.home-final__inner {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.home-final__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--color-dark-teal);
  margin: 0;
  max-width: 80%;
}

.home-final__text {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  letter-spacing: var(--text-body-large-letter-spacing);
  font-weight: var(--text-body-large-weight);
  color: var(--color-soft-graphite);
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
}

.home-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-sm);
}

.home-final__actions .btn {
  flex: 1 1 auto;
  min-width: 180px;
  justify-content: center;
}

/* Tablet */
@media (min-width: 768px) {
  .home-hero__content {
    padding: var(--space-4xl) var(--page-padding-tablet);
  }

  .home-room__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-3xl);
  }

  .home-room__grid--reverse {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .home-room__grid--reverse .home-room__content {
    order: 2;
  }

  .home-room__grid--reverse .home-room__figure {
    order: 1;
  }

  .home-passage__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .home-passage__figure {
    flex: 1 1 60%;
  }

  .home-passage__content {
    flex: 1 1 40%;
    text-align: left;
    margin-inline: 0;
  }

  .home-passage__text {
    margin-inline: 0;
  }

  .home-five-rooms__diagram {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-md);
  }

  .home-five-rooms__room {
    flex: 1 1 160px;
    max-width: 200px;
  }

  .home-five-rooms__connector {
    width: var(--space-xl);
    height: 2px;
    align-self: center;
  }

  .home-table__panels {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-lg);
  }

  .home-table__panel {
    flex: 1 1 0;
    max-width: none;
  }

  .home-table__arrow {
    align-self: center;
  }

  .home-final__actions .btn {
    flex: 0 1 auto;
    min-width: 200px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-hero__content {
    padding: var(--space-5xl) var(--page-padding-desktop);
  }

  .home-room__grid {
    gap: var(--space-4xl);
  }

  .home-five-rooms__diagram {
    flex-wrap: nowrap;
    gap: var(--space-md);
  }

  .home-five-rooms__room {
    flex: 1 1 0;
    max-width: none;
  }

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

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

  .home-hero__brand {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    white-space: normal;
    text-align: center;
    width: 90%;
  }

  .home-hero__content {
    max-width: 100%;
    padding: var(--space-2xl) var(--page-padding-mobile);
  }

  .home-hero__title {
    max-width: 100%;
  }

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

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

  .home-room__grid,
  .home-room__grid--reverse {
    grid-template-columns: 1fr;
  }

  .home-room__grid--reverse .home-room__content {
    order: 1;
  }

  .home-room__grid--reverse .home-room__figure {
    order: 2;
  }

  .home-room__list--tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-passage__inner {
    flex-direction: column;
  }

  .home-passage__content {
    text-align: center;
    margin-inline: auto;
  }

  .home-passage__text {
    margin-inline: auto;
  }

  .home-five-rooms__diagram {
    flex-direction: column;
  }

  .home-five-rooms__connector {
    width: 2px;
    height: var(--space-xl);
  }

  .home-table__panels {
    flex-direction: column;
  }

  .home-table__arrow {
    transform: rotate(90deg);
  }

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

  .home-final__actions .btn {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 479px) {
  .home-hero__brand {
    font-size: 2rem;
  }

  .home-hero__title {
    font-size: 2rem;
  }

  .home-room__title,
  .home-passage__title,
  .home-five-rooms__title,
  .home-table__title,
  .home-responsible__title {
    font-size: 1.5rem;
  }

  .home-final__title {
    font-size: 2.25rem;
  }
}