/* Responsive Styles - Projecte Verdaguer */

/* Tablet i mòbil */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .text-title-xl {
    font-size: 48px;
  }

  .text-title-lg {
    font-size: 36px;
  }

  .section {
    padding: 64px 0;
  }

  .grid-2 {
    gap: 48px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mòbil */
@media (max-width: 768px) {
  /* Reset per a mòbil */
  .container {
    padding: 0 20px;
  }

  /* Tipografia */
  .text-title-xl {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .text-title-lg {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .text-title-md {
    font-size: 24px;
  }

  .text-lead {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .section {
    padding: 48px 0;
  }

  /* Navbar - Menú Hamburguesa */
  .navbar {
    padding: 16px 20px;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
  }

  .nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-cta {
    margin-top: 8px;
    padding: 16px 0;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Grids */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Hero */
  .hero-img-wrapper {
    order: -1;
  }

  /* Cards */
  .card-content {
    padding: 20px;
  }

  /* Timeline */
  .timeline-item {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .timeline-year {
    font-size: 16px;
    min-width: auto;
  }

  /* Footer */
  .footer {
    padding: 48px 20px;
  }

  /* Botons */
  .text-title-sm {
    font-size: 20px;
  }
}

/* Extra small mòbil */
@media (max-width: 480px) {
  .text-title-xl {
    font-size: 28px;
  }

  .text-title-lg {
    font-size: 24px;
  }

  .text-lead {
    font-size: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .badge {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Link estils per al header */
.nav-brand-link {
  text-decoration: none;
  color: inherit;
}

.nav-link a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.nav-link a:hover,
.nav-link a.active {
  color: var(--foreground);
}

.nav-cta a {
  text-decoration: none;
}

/* Ocultar hamburguesa en desktop */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}
