:root {
  --page-bg: #1e150e;
  --paper: #ead6a8;
  --ink: #3a2818;
  --hotspot-fill: rgba(255, 239, 170, .22);
  --hotspot-outline: rgba(255, 249, 218, .96);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  font-family: Georgia, "Times New Roman", serif;
}

.homepage {
  width: 100%;
}

.scene-wrap {
  position: relative;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  overflow: hidden;
  background: #21160f;
}

.scene {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspots {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  display: block;
  border-radius: 24% 17% 23% 16% / 18% 25% 17% 24%;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform .2s ease,
    background-color .2s ease,
    box-shadow .2s ease;
}

.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-active {
  background: var(--hotspot-fill);
  box-shadow:
    0 0 0 3px var(--hotspot-outline),
    0 12px 28px rgba(0, 0, 0, .42);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

/*
HOTSPOT POSITIONS
These coordinates match bluffton-homepage-final.jpg.
Change left/top to move a hotspot.
Change width/height to resize it.
*/

/* HOME */
.home-building {
  left: 50.5%;
  top: 0%;
  width: 44%;
  height: 43%;
  border-radius: 16px;
}

.home-sign {
  left: 82.3%;
  top: 23.5%;
  width: 13.5%;
  height: 18.5%;
  border-radius: 10px;
}

/* MAIN MENU AND SUBMENU NOTES */
.discover {
  left: 2.6%;
  top: 49.2%;
  width: 12.7%;
  height: 12.5%;
}

.about {
  left: 4.4%;
  top: 72.5%;
  width: 13.4%;
  height: 12.2%;
}

.mission {
  left: 22.1%;
  top: 67.2%;
  width: 12.9%;
  height: 11%;
}

.beliefs {
  left: 44%;
  top: 76.8%;
  width: 15%;
  height: 12.5%;
}

.leadership {
  left: 68%;
  top: 84.4%;
  width: 14.3%;
  height: 9.5%;
}

.service-times {
  left: 16.5%;
  top: 84.6%;
  width: 10.7%;
  height: 11.2%;
}

.ministries {
  left: 35%;
  top: 85%;
  width: 12%;
  height: 10.8%;
}

.contact {
  left: 73.4%;
  top: 57%;
  width: 16.8%;
  height: 11%;
}

/* OTHER MAIN SECTIONS */
.prayer {
  left: 36.2%;
  top: 48.8%;
  width: 9.5%;
  height: 9.5%;
}

.family {
  left: 52.4%;
  top: 50.9%;
  width: 15.2%;
  height: 11.3%;
}

.sermons {
  left: 42.5%;
  top: 61.8%;
  width: 15.1%;
  height: 12%;
}

.give {
  left: 63.9%;
  top: 68.5%;
  width: 13.5%;
  height: 11%;
}

/* MOBILE FALLBACK MENU */
.mobile-menu {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: #2d2015;
}

.mobile-menu a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 18px 11px 16px 12px;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 5px 13px rgba(0, 0, 0, .25);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  outline: 3px solid var(--hotspot-outline);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .scene-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .scene,
  .hotspots {
    width: 900px;
    max-width: none;
  }

  .scene-wrap {
    min-height: 600px;
  }

  .hotspots {
    right: auto;
    bottom: auto;
    height: 600px;
  }

  .mobile-menu {
    display: grid;
  }
}

@media (max-width: 420px) {
  .mobile-menu {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot {
    transition: none;
  }
}
