/* General Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #b5523b;
  color: #222;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

/* Floating Top Menu */
#top-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #222;
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1rem;
  z-index: 9999;
  font-weight: 600;
  font-size: 1.1rem;
  align-items: center;
  font-family: 'Jost', sans-serif;
  box-sizing: border-box;
  overflow-x: auto;
}

@media (max-width: 480px) {
  #top-menu {
    padding: 1rem 0.5rem;
    gap: 0.5rem;
    font-size: 1rem;
  }
}

#home {
  scroll-margin-top: 80px;
}

#top-menu .festival-name {
  display: flex;
  align-items: center;
  height: 1.3rem; /* Approximate text height */
}

#top-menu .festival-name img {
  height: 1.3rem;
  width: auto;
  display: block;
}

#top-menu a {
  color: #ddd;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease;
}

#top-menu a:hover,
#top-menu a:focus {
  color: #fff;
  outline: none;
}

#home {
  margin-top: 80px; /* adjust based on your menu height */
}

/* Lineup Grid Container */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Artist Card */
.artist-card {
  background-color: #98422e;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
  color: #fff;
}

.artist-card:hover {
  transform: translateY(-5px);
}

/* Artist Image */
.artist-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Artist Name */
.artist-card h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

/* Description expands to push footer down */
.artist-card .description {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: #e0f0e9;
  font-size: 1rem;
  line-height: 1.4;
}

/* Website link styling */
.artist-card p:last-of-type {
  margin: 0 0 1rem 0;
}

.artist-card p:last-of-type a {
  color: #d0f2d9;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.artist-card p:last-of-type a:hover,
.artist-card p:last-of-type a:focus {
  color: #b0dcb3;
  outline: none;
}

/* Spotify iframe */
.artist-card iframe {
  border-radius: 12px;
  width: 100%;
  height: 80px;
  max-width: 300px;
  border: 0;
}

/* Other Sections (Home, Tickets, Previous) */
section {
  max-width: 1200px;
  margin: 1rem auto 4rem;
  padding: 1rem 2rem;
  background-color: #fff;
  border-radius: 12px;
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  scroll-margin-top: 80px; /* offset scroll position by 80px */
  text-align: center;
}
}

section h1 {
  font-weight: 700;
  font-size: 2rem;
  color: #111;
  margin-bottom: 0.3rem;
}

section p {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #000;
}

/* Footer with rounded corners on all sides */
#site-footer {
  background-color: #222;
  color: #ddd;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin: 3rem auto 2rem;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .lineup-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .lineup-grid {
    grid-template-columns: 1fr;
  }
  #nav-links {
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}
}

footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  border-radius: 24px;
  margin: 2rem auto;
  max-width: 1200px;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 50px;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* ensures visibility on dark background */
}

.footer-text {
  font-size: 0.9rem;
  color: #ccc;
}

.buy-now-button {
  background-color: #b5523b;  /* brown background */
  color: #f8f8f0;             /* off-white text */
  border: 2px solid black;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.buy-now-button:hover,
.buy-now-button:focus {
  background-color: #98422e;  /* slightly darker brown on hover */
  color: #fff;
  outline: none;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  margin-right: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #222;
}

#previous {
  margin: 0 auto;
  padding: 20px;
}

.lineups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}