/* External stylesheet for Band Website */
:root {
  --bg: #0b0b0d;
  --muted: #fff8fa;
  --accent: #db0d44;
  --glass: rgba(255, 255, 255, 0.06);
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
html,
body {
  height: 100%;
}
/* Prevent horizontal scrolling when elements slightly overflow */
body{
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: #fff;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 999;
}

/* Remix Contest Banner */
.contest-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--accent);
  padding: 8px 0;
  overflow: hidden;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.contest-banner:hover {
  background: #c50c3d;
}

.banner-scroll {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
  width: fit-content;
}

.banner-scroll span {
  display: inline-block;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.banner-scroll::after {
  content: 'CONCRETE REMIX CONTEST LIVE NOW! • CONCRETE REMIX CONTEST LIVE NOW! • CONCRETE REMIX CONTEST LIVE NOW! • CONCRETE REMIX CONTEST LIVE NOW! • CONCRETE REMIX CONTEST LIVE NOW! • CONCRETE REMIX CONTEST LIVE NOW! • ';
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

header {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg);
}
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 10px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img {
  width: 44px;
  height: auto
}
.hero-logo {
  width: 900px;
  max-width: 85vw;
  overflow: hidden;
  margin: 0 auto 2rem auto;
}
nav {
  display: flex;
  gap: 1rem;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}
.nav-link:hover,
.nav-link:focus {
  color: #fff;
  background: var(--glass);
  outline: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--muted);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  /* Fallback poster if video is not available */
  background-image: url('./assets/poster.jpg');
  background-size: cover;
  background-position: center center;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center center;
  object-fit: cover;
  z-index: 0;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(11, 11, 13, 1) 97%
  );
  z-index: 1;
}
.hero .content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
}
h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0.2rem 0;
}
p.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin: 1rem 0;
}
.cta {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.btn {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: rgb(255, 255, 255);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

main {
  position: relative;
  z-index: 3;
  width: 100%; /* ensure it spans full width */
  min-height: 100vh; /* ensure main fills the viewport */
}
section {
  padding: 6rem 2rem;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.track {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 8px;
}
.services-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.services{
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;;

}
#merchNav{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    position: sticky;
    top: 74px;
    background-color: var(--bg);
    padding: 12px 0px;
    z-index: 100;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#merchNav .nav-link {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--glass);
}

#merchNav .nav-link:hover,
#merchNav .nav-link:focus {
    border-color: var(--accent);
    background: rgba(219, 13, 68, 0.15);
}

#longSleeve,
#hoodies,
#jersey,
#tshirts,
#accessories,
#oneoffs {
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#longSleeve {
    border-top: none;
    margin-top: 0;
}

#merch {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6rem;
}
.services img{
    height: 125px;
    width: auto;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.product-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Constrain Shopify product images */
.product-item img {
  max-height: 300px;
  object-fit: contain;
}

.product-item .shopify-buy__carousel {
  max-height: 300px;
}

footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}




@media (max-width: 1100px) {
  body{
    margin: 0;
  }
  nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  header {
    padding: 1rem;
  }
  #main{
    margin: 0;
    width: 100%;
  }
  h2{
    max-width: 50%;
    margin: 10px auto;
    text-align: center;
  }
  .hero {
    min-height: 60vh;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }


}





@media (max-width: 800px) {
  body{
    margin: 0;
  }
  nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  header {
    padding: 1rem;
  }
  #main{
    margin: 0;
    width: 100%;
  }
  h2{
    max-width: 50%;
    margin: 10px auto;
    text-align: center;
  }
  .hero {
    min-height: 60vh;
  }
  .container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
  }
  .content{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .content .hero-logo{
      max-width: 85vw;
      margin-bottom: 1.5rem;
  }

  .hero .content {
    padding: 2rem 0;
    margin: 0;
  }

  .cta {
    flex-wrap: wrap;
    width: 100%;
  }

  .hero .container {
    padding: 0;
  }
  /* Stack service/product grids on small screens */
  .services-grid{
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    align-items: center;
    justify-content: center;

  }
  .music-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .track {
   min-width: 0;
   width: 100%;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-item img {
    max-height: 250px;
  }
  .services {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .services img {
    width: 100px;
    height: auto;
    margin: 2px;
  }

  /* Make merch nav more compact on mobile */
  #merchNav {
    gap: 8px;
    padding: 10px 4px;
    top: 90px;
  }

  #merchNav .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }

  #longSleeve,
  #hoodies,
  #jersey,
  #tshirts {
    padding-top: 30px;
    margin-top: 30px;
  }

  /* Make contest banner more compact on mobile */
  .banner-scroll span,
  .banner-scroll::after {
    font-size: 12px;
  }
}

/* @media (max-width: 800px) {
   .services img {
    max-width: 100%;
    height: auto;
  }

} */
