/* ============================================
   Compàs — Paleta "Coral Fresc"
   Primary:  #1a2b4a (blau mitjanit)
   Accent:   #e76f51 (coral càlid)
   BG:       #faf6f1 (crema)
   Text:     #2a2522
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: #2a2522;
  background: #faf6f1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ Hero ============ */
.hero {
  background:
    linear-gradient(90deg,
      rgba(26, 43, 74, 0.94) 0%,
      rgba(26, 43, 74, 0.7) 55%,
      rgba(26, 43, 74, 0.5) 100%),
    url('img/hero-choir.jpg') center/cover no-repeat;
  color: white;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: white;
}

.lang-switcher {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}

.lang-switcher a {
  color: white;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

.lang-switcher a:hover { opacity: 1; }

.lang-switcher .lang-active {
  color: white;
  font-weight: 500;
  opacity: 1;
}

.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 1.25rem;
  max-width: 720px;
  color: white;
}

.subtitle {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 2rem;
  max-width: 600px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.cta-primary {
  display: inline-block;
  background: #e76f51;
  color: white;
  padding: 0.95rem 1.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: transform 0.15s ease, background 0.15s ease;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(231, 111, 81, 0.25);
}

.cta-primary:hover {
  transform: translateY(-2px);
  background: #d85f43;
}

/* ============ Seccions ============ */
section { padding: 4.5rem 0; }

.problem { background: #ffffff; }

.problem h2,
.solution h2,
.cta h2 {
  font-size: 2rem;
  margin-bottom: 1.75rem;
  color: #1a2b4a;
}

.problem ul { list-style: none; padding: 0; }

.problem li {
  padding: 1rem 0 1rem 1.75rem;
  position: relative;
  border-bottom: 1px solid #ebe6df;
  font-size: 1.05rem;
  color: #3a3530;
}

.problem li:last-child { border-bottom: 0; }

.problem li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e76f51;
}

/* ============ Solution / Features ============ */
.solution { background: #faf6f1; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature {
  background: white;
  padding: 1.6rem;
  border-radius: 8px;
  border: 1px solid #ebe6df;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: #e76f51;
  margin-bottom: 0.85rem;
  display: block;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 43, 74, 0.06);
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #1a2b4a;
}

.feature p {
  color: #5a5550;
  font-size: 0.95rem;
}

/* ============ CTA / Form ============ */
.cta {
  background: #1a2b4a;
  color: white;
  text-align: center;
}

.cta h2 { color: white; }

.cta p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  opacity: 0.88;
  font-family: 'Inter', sans-serif;
}

.cta form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta input {
  padding: 0.95rem 1rem;
  border-radius: 6px;
  border: 0;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: white;
  color: #2a2522;
}

.cta input::placeholder { color: #9a948e; }

.cta input:focus {
  outline: 2px solid #e76f51;
  outline-offset: 1px;
}

.cta button {
  background: #e76f51;
  color: white;
  border: 0;
  padding: 0.95rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s ease;
  letter-spacing: 0.01em;
}

.cta button:hover { background: #d85f43; }

.small {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
}

/* ============ Footer ============ */
footer {
  background: #14110d;
  color: #888076;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}

/* ============ Pàgina d'agraïment / Página de gracias ============ */
.thanks-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a2b4a 0%, #3b4a7a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.thanks-content {
  text-align: center;
  max-width: 520px;
}

.thanks-logo {
  margin-bottom: 2.5rem;
  display: inline-block;
}

.checkmark {
  width: 84px;
  margin: 0 auto 1.5rem;
}

.checkmark svg {
  width: 100%;
  height: auto;
  animation: pop 0.5s ease-out 0.15s both;
}

@keyframes pop {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.thanks-page h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  color: white;
}

.thanks-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* ============ Mòbil ============ */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 4rem; }
  .hero h1 { font-size: 2rem; }
  .subtitle { font-size: 1rem; }
  section { padding: 3rem 0; }
  .problem h2, .solution h2, .cta h2 { font-size: 1.55rem; }
  .topbar { margin-bottom: 2.5rem; }
  .logo { font-size: 1.5rem; }
}
