/* Home page owned styles */

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  min-height: 100vh;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  min-width: 0;
}

.home-hero__title {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin: 0;
}

.home-hero__lead {
  font-size: 20px;
  line-height: 1.6;
  max-width: 40ch;
  margin: 0;
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: 320px;
  margin-top: var(--space-sm);
}

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

.home-hero__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

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

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 19, 32, 0.8) 0%, rgba(8, 19, 32, 0.15) 60%, transparent 100%);
  pointer-events: none;
}

.home-hero__vertical-text {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-limestone);
  opacity: 0.55;
  white-space: nowrap;
  pointer-events: none;
}

/* House / floor plan */
.home-house {
  padding-block: var(--space-2xl);
}

.home-house__intro {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.home-house__title {
  margin-bottom: var(--space-md);
}

.home-house__lead {
  font-size: 20px;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}

.home-house__plan {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-md);
  border-top: 1px solid rgba(140, 147, 160, 0.4);
  border-bottom: 1px solid rgba(140, 147, 160, 0.4);
  padding-block: var(--space-xl);
}

.home-house__plan::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.333%;
  width: 1px;
  background: rgba(140, 147, 160, 0.4);
  pointer-events: none;
}

.home-house__plan::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 66.666%;
  width: 1px;
  background: rgba(140, 147, 160, 0.4);
  pointer-events: none;
}

.home-house__coord {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-fog-grey);
  pointer-events: none;
}

.home-house__coord--one {
  top: -14px;
  left: 0;
}

.home-house__coord--two {
  bottom: -14px;
  right: 0;
}

.home-house__zone {
  grid-column: span 4;
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.home-house__zone:hover {
  border-color: var(--color-aged-brass);
}

.home-house__zone--kitchen {
  grid-column: 1 / span 4;
}

.home-house__zone--bar {
  grid-column: 5 / span 4;
}

.home-house__zone--parlour {
  grid-column: 9 / span 4;
}

.home-house__zone-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.home-house__zone-text {
  font-size: 17px;
  line-height: 1.65;
  max-width: 45ch;
  margin: 0;
}

.home-house__tag {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-muted-burgundy);
  color: var(--color-limestone);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-tag);
}

/* Kitchen */
.home-kitchen {
  padding-block: var(--space-2xl);
}

.home-kitchen__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-xl);
  align-items: start;
}

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

.home-kitchen__title {
  margin: 0;
}

.home-kitchen__lead {
  font-size: 20px;
  line-height: 1.6;
  max-width: 50ch;
  margin: 0;
}

.home-kitchen__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
  width: 100%;
}

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

.home-kitchen__item-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: var(--space-2xs);
}

.home-kitchen__item-desc {
  font-size: 16px;
  line-height: 1.5;
  max-width: 45ch;
  margin: 0;
}

.home-kitchen__media {
  min-width: 0;
  position: relative;
}

.home-kitchen__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--color-aged-brass);
  outline: 12px solid var(--color-limestone-warm);
  transition: transform var(--transition-medium);
}

.home-kitchen__image:hover {
  transform: scale(1.02);
}

/* Bar */
.home-bar {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl);
}

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

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

.home-bar__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 19, 32, 0.8);
}

.home-bar__container {
  position: relative;
  z-index: 2;
}

.home-bar__content {
  max-width: 40%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.home-bar__title {
  margin: 0;
}

.home-bar__lead {
  font-size: 20px;
  line-height: 1.6;
  max-width: 40ch;
  margin: 0;
}

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

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

.home-bar__item-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: var(--space-2xs);
}

.home-bar__item-desc {
  font-size: 16px;
  line-height: 1.5;
  max-width: 40ch;
  margin: 0;
}

/* After Dark */
.home-after-dark {
  position: relative;
  padding-block: var(--space-2xl);
  overflow: hidden;
}

.home-after-dark__waterline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 197, 124, 0.4), transparent);
  pointer-events: none;
}

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

.home-after-dark__intro {
  grid-column: 1 / span 6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.home-after-dark__title {
  margin: 0;
}

.home-after-dark__lead {
  font-size: 20px;
  line-height: 1.6;
  max-width: 50ch;
  margin: 0;
}

.home-after-dark__tag {
  display: inline-block;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-muted-burgundy);
  color: var(--color-limestone);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-tag);
}

.home-after-dark__features {
  grid-column: 7 / span 6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.home-after-dark__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
  width: 100%;
}

.home-after-dark__item {
  min-width: 0;
}

.home-after-dark__item-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: var(--space-2xs);
}

.home-after-dark__item-desc {
  font-size: 16px;
  line-height: 1.5;
  max-width: 45ch;
  margin: 0;
}

/* Schedule / departure board */
.home-schedule {
  padding-block: var(--space-2xl);
}

.home-schedule__header {
  margin-bottom: var(--space-lg);
}

.home-schedule__title {
  margin: 0;
}

.home-schedule__board {
  max-width: 800px;
  margin-inline: auto;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
}

.home-schedule__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  min-width: 0;
}

.home-schedule__time {
  flex: 0 0 120px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--color-limestone);
}

.home-schedule__leader {
  flex: 1 1 auto;
  min-width: 20px;
  border-bottom: 1px dotted rgba(201, 162, 39, 0.5);
  align-self: center;
}

.home-schedule__activity {
  flex: 0 1 auto;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-limestone);
  min-width: 0;
}

.home-schedule__note {
  max-width: 800px;
  margin-inline: auto;
  margin-top: var(--space-sm);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-fog-grey);
}

/* Featured poster */
.home-featured {
  padding-block: var(--space-2xl);
}

.home-featured__poster {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  height: 400px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.3);
  transition: border-color var(--transition-fast);
}

.home-featured__poster:hover {
  border-color: var(--color-aged-brass);
}

.home-featured__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-featured__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 32, 0.7);
}

.home-featured__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  padding: var(--space-lg);
}

.home-featured__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.0;
  margin: 0;
  max-width: 80%;
}

.home-featured__details {
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
}

/* Final CTA */
.home-final-cta {
  padding-block: var(--space-2xl);
}

.home-final-cta__title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.home-final-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(140, 147, 160, 0.4);
  border-bottom: 1px solid rgba(140, 147, 160, 0.4);
}

.home-final-cta__column {
  min-width: 0;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.home-final-cta__column:first-child {
  border-right: 1px solid rgba(140, 147, 160, 0.4);
}

.home-final-cta__column-title {
  margin: 0;
}

.home-final-cta__text {
  max-width: 40ch;
  margin: 0;
}

/* Reveal animation */
.home-hero__content,
.home-house__zone,
.home-kitchen__content,
.home-kitchen__media,
.home-bar__content,
.home-after-dark__intro,
.home-after-dark__features,
.home-schedule__row,
.home-featured__poster,
.home-final-cta__column {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.home-hero__content.is-visible,
.home-house__zone.is-visible,
.home-kitchen__content.is-visible,
.home-kitchen__media.is-visible,
.home-bar__content.is-visible,
.home-after-dark__intro.is-visible,
.home-after-dark__features.is-visible,
.home-schedule__row.is-visible,
.home-featured__poster.is-visible,
.home-final-cta__column.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  }

  .home-hero__content {
    padding: var(--space-lg);
  }

  .home-house__zone {
    grid-column: span 4;
  }

  .home-house__zone--kitchen {
    grid-column: 1 / span 4;
  }

  .home-house__zone--bar {
    grid-column: 5 / span 4;
  }

  .home-house__zone--parlour {
    grid-column: 9 / span 4;
  }

  .home-kitchen__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .home-kitchen__media {
    order: -1;
  }

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

  .home-bar__content {
    max-width: 60%;
  }

  .home-after-dark__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .home-after-dark__intro,
  .home-after-dark__features {
    grid-column: 1 / -1;
  }

  .home-featured__poster {
    height: 320px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .home-hero__media {
    order: 1;
    aspect-ratio: 16 / 9;
  }

  .home-hero__image {
    height: 100%;
  }

  .home-hero__content {
    order: 2;
    padding: var(--space-md);
    margin-top: -24px;
    position: relative;
    z-index: 2;
    background: var(--color-limestone);
  }

  .home-hero__title {
    font-size: 40px;
  }

  .home-hero__lead {
    font-size: 17px;
  }

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

  .home-hero__vertical-text {
    display: none;
  }

  .home-house__plan {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    border-top: 1px solid rgba(140, 147, 160, 0.4);
    border-bottom: none;
    padding-block: var(--space-lg);
  }

  .home-house__plan::before,
  .home-house__plan::after {
    display: none;
  }

  .home-house__coord {
    display: none;
  }

  .home-house__zone,
  .home-house__zone--kitchen,
  .home-house__zone--bar,
  .home-house__zone--parlour {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(140, 147, 160, 0.4);
    padding: var(--space-md) 0;
  }

  .home-house__zone:last-child {
    border-bottom: none;
  }

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

  .home-bar {
    padding-block: var(--space-lg);
  }

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

  .home-bar__lead {
    font-size: 17px;
  }

  .home-after-dark__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-schedule__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2xs);
  }

  .home-schedule__time {
    flex: none;
    width: auto;
  }

  .home-schedule__leader {
    display: none;
  }

  .home-schedule__activity {
    flex: none;
    width: 100%;
  }

  .home-featured__poster {
    height: auto;
    min-height: 280px;
  }

  .home-featured__content {
    padding: var(--space-md);
    align-items: flex-start;
    text-align: left;
  }

  .home-featured__title {
    font-size: 40px;
    max-width: 100%;
  }

  .home-final-cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-final-cta__column:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(140, 147, 160, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__content,
  .home-house__zone,
  .home-kitchen__content,
  .home-kitchen__media,
  .home-bar__content,
  .home-after-dark__intro,
  .home-after-dark__features,
  .home-schedule__row,
  .home-featured__poster,
  .home-final-cta__column {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
