/* =============================================
   VARIABLES GLOBALS
   ============================================= */
:root {
  --color-bg:        #ECEDDC;
  --color-primary:   #440505;
  --color-secondary: #4A6073;
  --color-accent-1:  #FFC759;
  --color-accent-2:  #D64933;
  --color-text:      #1a1a1a;
  --color-text-muted: #555;

  --radius-card:   20px;
  --radius-btn:    22px;

  --font-base: 'Poppins', sans-serif;

  --container-max: 1100px;
  --container-px:  clamp(1rem, 5vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================
   UTILITATS
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* =============================================
   BOTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
}

/* =============================================
   ANIMACIÓ SCROLL-IN (stagger)
   js-ready s'afegeix per JS — si JS no carrega, elements visibles per defecte
   ============================================= */
.js-ready .anim-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready .anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays per stagger */
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }

/* =============================================
   EYEBROW (etiqueta sobre el títol)
   ============================================= */
.section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.levels .section__eyebrow {
  color: rgba(255,255,255,0.55);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

/* Franja senyera */
.footer__senyera {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent-1) 0px,   var(--color-accent-1) 28px,
    var(--color-accent-2) 28px, var(--color-accent-2) 56px
  );
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem var(--container-px) 2rem;
}

.footer__info {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer__info-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__info-value {
  font-size: 0.95rem;
  color: var(--color-primary);
}

a.footer__info-value:hover {
  opacity: 0.7;
}

/* Icones socials */
.footer__social {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-primary);
  transition: background 0.18s ease, transform 0.15s ease;
}

.footer__social-link:hover {
  background-color: rgba(68, 5, 5, 0.08);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Bottom */
.footer__bottom {
  border-top: 1px solid rgba(68, 5, 5, 0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-primary);
  opacity: 0.75;
}

.footer__bottom a:hover {
  opacity: 0.6;
}

@media (max-width: 480px) {
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   RESPONSIVE GLOBAL
   ============================================= */

/* Nav: trencar hamburger abans perquè 4 links no caben */
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(236, 237, 220, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    border-radius: 0;
    padding: 0.75rem var(--container-px);
    color: var(--color-primary) !important;
    opacity: 1 !important;
  }
}

/* Seccions: reduir padding vertical en mòbil */
@media (max-width: 768px) {
  .how-it-works,
  .avantatges,
  .stats,
  .sobre-journey,
  .sobre-values-section,
  .sobre-stats-section,
  .colab-why,
  .colab-profiles,
  .colab-model,
  .colab-cta {
    padding: 4rem var(--container-px);
  }

  .levels,
  .mockups {
    padding: 4rem var(--container-px);
  }

  /* Steps: columna única */
  .steps {
    grid-template-columns: 1fr;
  }

  /* Avantatges: 2 columnes */
  .avantatges__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats: 2 columnes */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sobre values: 1 columna */
  .sobre-values {
    grid-template-columns: 1fr;
  }

  /* Sobre stats: 1 columna */
  .sobre-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sobre timeline: menys indentació */
  .timeline {
    padding-left: 2rem;
  }

  /* Colab perfils: 1 columna */
  .profile-cards {
    grid-template-columns: 1fr;
  }

  /* Colab hero stats: columna */
  .colab-hero__stats {
    gap: 1.5rem;
  }

  /* Colab model steps: 1 columna */
  .model-steps {
    grid-template-columns: 1fr;
  }

  /* Colab CTA accions: columna */
  .colab-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  /* Contact pills: wrap */
  .form__categories {
    gap: 0.5rem;
  }

  /* Levels 1979: columna */
  .levels__1979 {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Sobre quote: text més petit */
  .sobre-quote-big__text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Avantatges: 1 columna */
  .avantatges__grid {
    grid-template-columns: 1fr;
  }

  /* Stats: 1 columna */
  .stats__grid {
    grid-template-columns: 1fr;
  }

  /* Colab why: 1 columna */
  .colab-why__grid {
    grid-template-columns: 1fr;
  }

  /* Hero pills (contacte) */
  .contacte-hero__pills {
    gap: 0.4rem;
  }

  .contacte-hero__pills span {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  /* Btn store: columna */
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
