/* Home location / directions — mobile-first, adapted from template index.html */

.home-location {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 70svh;
  padding: 72px 20px;
  overflow: hidden;
  background: #f4f1eb;
  color: #fff;
}

.home-location-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.home-location::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(9, 20, 17, 0.6), transparent 65%);
  pointer-events: none;
}

.home-location-copy {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 460px;
  margin-inline: 0;
  text-align: left;
}

.home-location h3 {
  margin: 0;
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-location h3 span {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  letter-spacing: 0;
}

.home-location-directions {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: background-color 250ms;
}

.home-location-directions:hover {
  background: rgba(255, 255, 255, 0.14);
}

.home-location-directions:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (min-width: 768px) {
  .home-location {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    min-height: 680px;
    height: 85svh;
    padding: 96px 40px;
  }

  .home-location::after {
    background: linear-gradient(to right, rgba(9, 20, 17, 0.55), transparent 45%);
  }

  .home-location-copy {
    width: 48%;
    max-width: 540px;
    margin-inline: 0 auto 0 0;
  }

  .home-location h3 {
    font-size: clamp(36px, 4.2vw, 60px);
  }

  .home-location h3 span {
    font-size: 20px;
  }

  .home-location-directions {
    gap: 36px;
    margin-top: 36px;
  }
}

@media (min-width: 992px) {
  .home-location {
    padding: 96px 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-location-directions {
    transition: none;
  }
}
