/* ==========================================================================
   Homepage "We provide our best facilities" section (templates/index.html)
   Same palette as the header/footer and other redesigned sections.
   ========================================================================== */

.home-facilities {
  --hf-ink: #171b24;
  --hf-muted: #676459;
  --hf-line: #e9e4d8;
  --hf-tint: #f7f5f0;
  --hf-primary: #1f2a44;
  --hf-primary-hover: #151d31;
  --hf-primary-soft: rgba(31, 42, 68, 0.08);
  --hf-gold: #b8903f;

  padding: 5.5rem 0 3rem !important;
  color: var(--hf-muted);
}

/* style.css removes the container's side padding site-wide; restore it here */
.home-facilities .container {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.hf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--hf-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hf-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.home-facilities h2 {
  margin-bottom: 0.9rem;
  color: var(--hf-ink);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hf-lead {
  max-width: 32rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---------- Facility tiles ---------- */

.hf-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.hf-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hf-line);
  border-radius: 1rem;
  background: #fff;
  color: var(--hf-ink);
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hf-tile:hover {
  border-color: transparent;
  box-shadow: 0 16px 32px -20px rgba(23, 27, 36, 0.35);
  transform: translateY(-2px);
}

.hf-tile i,
.hf-tile img {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: var(--hf-primary-soft);
  color: var(--hf-primary);
  font-size: 1.2rem;
}

.hf-tile img {
  padding: 0.6rem;
  object-fit: contain;
}

/* ---------- Actions ---------- */

.hf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-facilities .hf-btn-primary {
  background: var(--hf-primary);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(31, 42, 68, 0.8);
}

.home-facilities .hf-btn-primary:hover {
  background: var(--hf-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.home-facilities .hf-btn-ghost {
  border: 1px solid rgba(23, 27, 36, 0.15);
  color: var(--hf-ink);
}

.home-facilities .hf-btn-ghost:hover {
  border-color: var(--hf-primary);
  color: var(--hf-primary);
}

/* ---------- Explore nearby panel ---------- */

.hf-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.75rem;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(184, 144, 63, 0.12), transparent 60%),
    var(--hf-tint);
}

.hf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hf-panel-head h3 {
  margin: 0;
  color: var(--hf-ink);
  font-size: 1.25rem;
}

.hf-panel-head span {
  color: var(--hf-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.hf-places {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hf-places li + li {
  margin-top: 0.75rem;
}

.hf-place {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 1.1rem;
  background: #fff;
  color: var(--hf-muted);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hf-place:hover {
  box-shadow: 0 16px 32px -20px rgba(23, 27, 36, 0.35);
  transform: translateX(3px);
}

.hf-place img {
  flex: none;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.hf-place-text {
  flex: 1;
  min-width: 0;
}

.hf-place strong {
  display: block;
  color: var(--hf-ink);
  font-size: 1.02rem;
}

.hf-place small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.86rem;
}

.hf-distance {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(184, 144, 63, 0.12);
  color: var(--hf-gold);
  font-size: 0.78rem;
  font-weight: 600;
}

.hf-place > .bi-arrow-up-right {
  flex: none;
  margin-right: 0.35rem;
  color: var(--hf-ink);
  transition: color 0.2s ease;
}

.hf-place:hover > .bi-arrow-up-right {
  color: var(--hf-primary);
}

.hf-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: var(--hf-primary);
  font-weight: 600;
  text-decoration: none;
}

.hf-more i {
  transition: transform 0.2s ease;
}

.hf-more:hover i {
  transform: translateX(3px);
}

.home-facilities a:focus-visible {
  outline: 2px solid var(--hf-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .home-facilities * {
    transition: none !important;
  }
}

@media (max-width: 575.98px) {
  .home-facilities {
    padding-top: 3.5rem !important;
  }

  .hf-tiles {
    gap: 0.6rem;
  }

  .hf-tile {
    gap: 0.65rem;
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .hf-tile i,
  .hf-tile img {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1rem;
  }

  .hf-actions .hf-btn {
    flex: 1 1 100%;
  }

  .hf-place img {
    width: 4.5rem;
    height: 4.5rem;
  }
}
