/* Home page styles. Shared styles are in mg-style.css. */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 62vh, 620px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 14, 12, 0.1), rgba(15, 14, 12, 0.78)),
    url("assets/hero-guitars.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fffaf2;
}

.hero-copy p,
.category-content span {
  margin: 0 0 10px;
  color: #91d6cd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 12em;
  margin: 0;
  font-size: clamp(2rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(246, 243, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--accent-dark);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  border-color: rgba(39, 115, 107, 0.42);
  background: #e8f2ef;
  transform: translateY(-1px);
}

.category-list {
  padding: clamp(44px, 7vw, 84px) 0;
}

.category-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 260px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 45px rgba(21, 19, 15, 0.16);
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 9, 8, 0.83), rgba(8, 9, 8, 0.48) 45%, rgba(8, 9, 8, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
}

.category-card:hover,
.category-card:focus-visible {
  border-color: rgba(145, 214, 205, 0.86);
  box-shadow:
    0 0 0 4px rgba(145, 214, 205, 0.24),
    0 30px 72px rgba(21, 19, 15, 0.35),
    0 12px 28px rgba(39, 115, 107, 0.28);
  transform: translateY(-5px) scale(1.01);
}

.acoustic {
  background-image: url("assets/category-acoustic.png");
}

.electric {
  background-image: url("assets/category-electric.png");
}

.bass {
  background-image: url("assets/category-bass.png");
}

.category-content {
  width: min(520px, 92%);
  padding: clamp(24px, 5vw, 54px);
  color: #fffaf2;
}

.category-content h3 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.category-content p {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
}

.descriptions {
  padding-bottom: clamp(44px, 7vw, 70px);
  border-bottom: 1px solid var(--line);
}

.description-title {
  margin: 50px 0 20px;
  color: #91d6cd;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-description {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.description-card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(39, 115, 107, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(21, 19, 15, 0.07);
}

.description-card:nth-child(2) {
  background: #edf5f2;
}

.description-card:nth-child(3) {
  background: #f1eee7;
}

.site-description h2 {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: 0;
  word-break: keep-all;
}

.site-description p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  word-break: keep-all;
}

@media (max-width: 720px) {
  .hero {
    min-height: 430px;
    padding: 26px 20px;
  }

  .category-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .category-nav a {
    flex: 0 0 auto;
  }

  .category-card {
    min-height: 320px;
    background-position: 62% center;
  }

  .category-card::before {
    background:
      linear-gradient(180deg, rgba(8, 9, 8, 0.2), rgba(8, 9, 8, 0.86)),
      linear-gradient(90deg, rgba(8, 9, 8, 0.62), rgba(8, 9, 8, 0.16));
  }

  .category-content {
    align-self: flex-end;
    padding: 28px 22px;
  }
}
