/* ===========================
   Reset & Base
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  line-height: 1.6;
  background:
    linear-gradient(rgba(242, 222, 174, 0.85), rgba(242, 222, 174, 0.85)),
    url('../images/soil-background.webp');
  background-size: auto, 600px;
  background-repeat: repeat;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #1a1a1a;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===========================
   Navbar
   =========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Navbar social — visible only on mobile */

.navbar-social {
  display: none;
  margin-left: auto;
  gap: 0.5rem;
  align-items: center;
}

.navbar-social a {
  display: block;
  width: 28px;
  height: 28px;
}

.navbar-social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.navbar-social .social-icon {
  display: block;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.navbar-social .social-icon img {
  width: 28px;
  height: 28px;
}

/* Hamburger — checkbox hack */

.hamburger-toggle {
  display: none;
}

.hamburger-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 28px;
  height: 24px;
}

.hamburger-label span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===========================
   Hero
   =========================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-logo {
  max-width: 400px;
  width: 100%;
  margin-bottom: 3rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================
   Seccions
   =========================== */

.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
  scroll-margin-top: 80px;
  text-align: justify;
}

.section p + p {
  margin-top: 0.75rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
}

/* ===========================
   Concerts
   =========================== */

.concert-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.concert-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.concert-date {
  font-weight: 700;
  white-space: nowrap;
}

.placeholder-text {
  font-style: italic;
  opacity: 0.7;
}

.section-divider {
  border: none;
  border-top: 2px solid rgba(0, 0, 0, 0.3);
  max-width: 200px;
  margin: 0 auto;
}

/* ===========================
   Treballs
   =========================== */

.treball-item {
  margin-bottom: 2.5rem;
}

.treball-item--amb-imatge {
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-template-rows: auto auto;
  gap: 0.5rem 2rem;
}

.treball-item--amb-imatge h3 {
  grid-column: 1;
  grid-row: 1;
}

.treball-item--amb-imatge .treball-cover {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 200px;
  max-height: 250px;
  object-fit: contain;
  border-radius: 6px;
  align-self: start;
}

.treball-item--amb-imatge p {
  grid-column: 1;
  grid-row: 2;
}


.treball-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.treball-item a {
  text-decoration: underline;
  transition: opacity 0.2s;
}

.treball-item a:hover {
  opacity: 0.6;
}

.cançons-list a {
  text-decoration: none;
}

.treball-item h4 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.cançons-list {
  list-style: upper-roman;
  padding-left: 2.5rem;
}

.cançons-list li {
  margin-bottom: 0.3rem;
}

.cançons-list a {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
}

.cançons-list a:hover {
  opacity: 0.6;
}

/* ===========================
   Pàgines de lletres
   =========================== */

.lletra-page {
  padding-top: 3rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.6;
}

.lletra-album {
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.lletra-text p {
  white-space: pre-line;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ===========================
   Formularis
   =========================== */

.form-group {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 1rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.4);
}

button[type="submit"] {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.35);
}

.hidden {
  display: none !important;
}

/* Tooltip */

.tooltip-wrap {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 4px;
  text-align: center;
  white-space: pre;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}

.tooltip-wrap:hover .tooltip {
  opacity: 1;
}

/* ===========================
   Merch
   =========================== */

.merch-image {
  display: block;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 2rem;
  border-radius: 8px;
}

.merch-item {
  position: relative;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.merch-item .btn-remove + .form-group {
  margin-top: 2rem;
}

.btn-add,
.btn-remove {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add {
  display: inline-block;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  color: #1a1a1a;
}

.btn-add:hover {
  background: rgba(255, 255, 255, 0.7);
}

.btn-remove {
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  background: rgba(180, 60, 60, 0.1);
  color: #8b2020;
  border-color: rgba(180, 60, 60, 0.2);
}

.btn-remove:hover {
  background: rgba(180, 60, 60, 0.2);
}

input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.form-group:has(input[type="checkbox"]) {
  grid-template-columns: auto auto;
  justify-content: start;
}

.price-display {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.payment-info {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #f2deae;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

#modal-summary p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

#modal-summary .modal-payment-note {
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

#modal-summary .modal-total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-modal {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s;
  background: rgba(255, 255, 255, 0.5);
  color: #1a1a1a;
}

.btn-modal:hover {
  background: rgba(255, 255, 255, 0.8);
}

.btn-modal-cancel {
  background: transparent;
}

.btn-modal-cancel:hover {
  background: rgba(0, 0, 0, 0.05);
}

.confirmation-message {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  text-align: center;
}

/* ===========================
   Contacte
   =========================== */

.contact-form {
}

.contact-form .form-group {
  grid-template-columns: 5rem 1fr;
}

.contact-form .form-group--message {
  align-items: start;
}

.contact-form .form-group--message label {
  padding-top: 0.5rem;
}

/* ===========================
   Social Fixed
   =========================== */

.social-fixed {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  z-index: 100;
}

.social-fixed a {
  display: block;
  width: 36px;
  height: 36px;
  transition: transform 0.2s, opacity 0.2s;
}

.social-fixed a:hover {
  transform: scale(1.15);
  opacity: 0.7;
}

.social-fixed img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.social-fixed .social-icon {
  display: block;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.social-fixed .social-icon:hover {
  transform: scale(1.15);
  opacity: 0.7;
}

.social-fixed .social-icon img {
  width: 36px;
  height: 36px;
}

/* ===========================
   Footer
   =========================== */

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===========================
   Media Queries
   =========================== */

/* Tablet */
@media (max-width: 768px) {
  .form-group {
    grid-template-columns: 1fr;
  }

  .form-group label {
    margin-bottom: 0.3rem;
  }

  .treball-item--amb-imatge {
    display: block;
  }

  .treball-item--amb-imatge .treball-cover {
    width: 100%;
    max-width: 250px;
    margin: 0.5rem auto;
    display: block;
  }

  .navbar {
    justify-content: flex-start;
  }

  .hamburger-label {
    display: flex;
  }

  .navbar-social {
    display: flex;
  }

  .navbar-social .tooltip {
    bottom: auto;
    top: 120%;
  }

  .social-fixed {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(222, 210, 190, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
  }

  .hamburger-toggle:checked ~ .nav-links {
    max-height: 400px;
  }

  /* Animate hamburger to X */
  .hamburger-toggle:checked ~ .hamburger-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-toggle:checked ~ .hamburger-label span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-toggle:checked ~ .hamburger-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-logo {
    max-width: 300px;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }
}

/* Mòbil */
@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: 60vh;
  }

  .hero-logo {
    max-width: 220px;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

}
