/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Tema fill personalitzat per a Hello Elementor
Author: El teu nom
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ══════════════════════════════════════════
   1. AMAGAR TÍTOLS AUTOMÀTICS
══════════════════════════════════════════ */
main h1.entry-title,
.page-header,
.post-header {
  display: none;
}

/* ══════════════════════════════════════════
   2. NAVBAR GLOBAL
══════════════════════════════════════════ */
header nav,
nav {
  background: #0F0F1A;
  border-bottom: 1px solid #1E1E2E;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-logo span { 
  color: #00C896; 
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: #E5E7EB;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover { 
  color: #FFFFFF; 
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; 
  left: 0;
  width: 0; 
  height: 1.5px;
  background: #00C896;
  transition: width 0.25s ease;
}

.nav-links a:hover::after { 
  width: 100%; 
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  width: 20px;
  height: 14px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span { 
  display: block; 
  height: 2px; 
  background: #9CA3AF; 
  border-radius: 2px; 
}

/* ══════════════════════════════════════════
   3. RESPONSIVE NAVBAR
══════════════════════════════════════════ */
@media (max-width: 768px) {
  header nav,
  nav { 
    padding: 0 16px; 
    height: 56px; 
  }
  .nav-links { 
    display: none; 
  }
  .hamburger { 
    display: flex; 
  }

  /* Amaga el selector d'idioma de la capçalera principal a mòbil */
  .nav-right .lang-switcher {
    display: none !important;
  }
}

/* ══════════════════════════════════════════
   4. FOOTER GLOBAL
══════════════════════════════════════════ */
footer {
  background: #13131F;
  border-top: 1px solid #1E1E2E;
  padding: 56px 5% 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1E1E2E;
}

.footer-logo {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-social { 
  display: flex; 
  gap: 10px; 
}

.social-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #1E1E2E;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #9CA3AF;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: #1E1E2E;
  color: #FFFFFF;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 15px;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { 
  color: #FFFFFF; 
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy { 
  font-size: 14px; 
  color: #6B7280; 
}

.footer-legal { 
  display: flex; 
  gap: 20px; 
}

.footer-legal a { 
  font-size: 14px; 
  color: #6B7280; 
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { 
  color: #FFFFFF; 
}

/* Responsive Footer */
@media (max-width: 768px) {
  footer { 
    padding: 40px 20px 20px; 
  }
  .footer-top { 
    grid-template-columns: 1fr 1fr; 
    gap: 28px; 
  }
  .footer-top > div:first-child { 
    grid-column: 1 / -1; 
  }
  .footer-bottom { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 12px; 
  }
  .footer-legal { 
    gap: 12px; 
    flex-wrap: wrap; 
  }
}

@media (max-width: 480px) {
  .footer-top { 
    grid-template-columns: 1fr; 
  }
  .footer-top > div:first-child { 
    grid-column: 1; 
  }
}

/* ══════════════════════════════════════════
   5. SELECTOR D'IDIOMA (POLYLANG DESKTOP)
══════════════════════════════════════════ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.lang-switcher li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.lang-switcher li a {
  color: #9CA3AF;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.lang-switcher li a:hover {
  color: #FFFFFF;
}

/* Idioma actiu actualment (Desktop) */
.lang-switcher li.current-lang a {
  color: #00C896;
  border-color: rgba(0, 200, 150, 0.3);
  background: rgba(0, 200, 150, 0.08);
}

/* ══════════════════════════════════════════
   6. SELECTOR D'IDIOMA (POLYLANG MÒBIL)
══════════════════════════════════════════ */
#mobile-menu .lang-switcher.mobile-lang {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #1E1E2E;
  list-style: none !important;
}

#mobile-menu .lang-switcher.mobile-lang li {
  display: inline-block !important;
}

#mobile-menu .lang-switcher.mobile-lang li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #9CA3AF;
  text-decoration: none;
  border: 1px solid #1E1E2E;
  border-radius: 6px;
  background: #13131F;
  transition: all 0.2s ease;
}

#mobile-menu .lang-switcher.mobile-lang li a:hover {
  color: #FFFFFF;
}

/* Idioma actiu (Mòbil) */
#mobile-menu .lang-switcher.mobile-lang li.current-lang a {
  color: #00C896 !important;
  border-color: rgba(0, 200, 150, 0.4) !important;
  background: rgba(0, 200, 150, 0.1) !important;
}