/* The home page (app/Views/pages/home.php): the lodge panorama, the numbers, a tile per section, a short guide. */

.home-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.home-ctas [role="button"] { margin: 0; }

.home-hero {
  position: relative; display: flex; align-items: flex-end; min-height: clamp(320px, 42vw, 460px);
  border: 1px solid var(--ft-metal); border-radius: 6px; overflow: hidden;
  /* The lodge panorama: WebP copies of img/theme/header/thelodge.jpg (the 976 KB source art, local only), 2000 px
     wide (97 KB) and 1000 px for phones (33 KB). */
  background: url('../img/theme/home/thelodge-2000.webp') center 35% / cover no-repeat;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 10, 8, 0.92) 0%, rgba(11, 10, 8, 0.7) 45%, rgba(11, 10, 8, 0.05) 80%);
}
.home-hero__inner { position: relative; max-width: 28rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.home-hero h2 { margin: 0 0 0.75rem; font-family: Marcellus, serif; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; color: var(--ft-gold); }
.home-hero p { margin: 0; color: var(--surface-content); }
.home-hero .outline { background: rgba(11, 10, 8, 0.55); }

.home-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 1rem 0 1.25rem; padding: 0; list-style: none;
  border: 1px solid var(--ft-metal); border-radius: 6px; background: var(--ft-panel-deep);
}
.home-stats li { margin: 0; padding: 0.9rem 0.5rem; text-align: center; list-style: none; color: var(--ft-muted); font-size: 0.85rem; }
.home-stats li + li { border-left: 1px solid var(--ft-metal-dark); }
.home-stats strong { display: block; color: var(--ft-gold); font-family: Marcellus, serif; font-size: 1.7rem; line-height: 1.2; }

/* The six sections on one row (three on mid-size windows, two on phones): the icon beside the name, the line under
   both, so a narrow tile still has the full width for its text. */
.home-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; }
.home-tile {
  display: flex; flex-direction: column; gap: 0.45rem; padding: 0.7rem; text-decoration: none; color: var(--ft-muted);
  border: 1px solid var(--ft-metal-dark); border-radius: 6px; background: var(--ft-panel);
  transition: border-color 0.15s, transform 0.15s, color 0.15s;
}
.home-tile:hover { border-color: var(--ft-tan); transform: translateY(-2px); color: var(--surface-content); }
.home-tile__head { display: flex; align-items: center; gap: 0.5rem; }
.home-tile__head img { flex: none; border: 1px solid var(--ft-metal); border-radius: 4px; }
.home-tile__head strong { color: var(--ft-gold); line-height: 1.2; }
.home-tile__text { font-size: 0.85rem; line-height: 1.4; }

.home-band {
  margin-top: 1.75rem; padding: 1.25rem 1.5rem; border: 1px solid var(--ft-metal-dark); border-radius: 6px;
  background: linear-gradient(180deg, var(--ft-header), var(--ft-panel-deep));
}
.home-band h3 { margin: 0 0 0.75rem; font-family: Marcellus, serif; color: var(--ft-gold); }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding-left: 1.2rem; }
.home-steps li { color: var(--ft-muted); }
.home-steps strong { color: var(--surface-content); }

@media (max-width: 1100px) {
  .home-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-hero { background-image: url('../img/theme/home/thelodge-1000.webp'); }
  /* The text spans the whole picture here: darken all of it, most at the bottom where the text is. */
  .home-hero::before { background: linear-gradient(180deg, rgba(11, 10, 8, 0.35) 0%, rgba(11, 10, 8, 0.85) 45%, rgba(11, 10, 8, 0.95) 100%); }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-stats li:nth-child(3) { border-left: 0; }
  .home-stats li:nth-child(n+3) { border-top: 1px solid var(--ft-metal-dark); }
  .home-steps { grid-template-columns: 1fr; }
}

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