/* ═══════════════════════════════════════════════════════════
   PAPIK · COMPONENTS
   Reusable UI extracted from the Blog design system.
   Scope: buttons, links, cards, list items, hero, breadcrumb,
          tag pills, blockquote, CTA strip, filters, view toggle.
   Apply on any section to keep visual coherence site-wide.
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
button, .btn {
  height: 42px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 28px;
  cursor: pointer;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease,
              background-color var(--t-base) ease, color var(--t-base) ease,
              border-color var(--t-base) ease;
  font-size: 16px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--ff-sans);
}
button:hover, .btn:hover { background: #d9e4e0; border-color: #d9e4e0; color: var(--green); transform: translateY(-2px); box-shadow: var(--sh-btn-hover); }
button:active, .btn:active { transform: scale(.97); box-shadow: none; }
button svg path, .btn svg path { transition: fill var(--t-base); }
button:hover svg path, .btn:hover svg path { fill: #fff; }

button.btn-dark, .btn-dark {
  background: #000; border-color: transparent; color: #fff;
}
button.btn-dark:hover, .btn-dark:hover {
  background: var(--green); border-color: transparent;
}

button.btn-up, .btn-up {
  background: var(--muted); border-color: transparent; color: #fff;
}
button.btn-up:hover, .btn-up:hover { background: #000; border-color: transparent; }

.btn-accent {
  background: var(--green); border-color: transparent; color: #fff;
}
.btn-accent:hover { background: #d9e4e0; border-color: #d9e4e0; color: var(--green); }

.btn-outline {
  background: var(--accent-soft); border-color: transparent; color: var(--text);
}
.btn-outline:hover {
  background: var(--green); border-color: transparent; color: #fff;
}

.btn-white {
  background: #fff; border: 1px solid transparent;
  color: var(--green); height: 46px; padding: 0 32px;
  border-radius: 10px; font-size: 15px;
}
.btn-white:hover { background: #d9e4e0; color: var(--green); border-color: #d9e4e0; }

/* WCAG 2.5.5 AAA · ensure ≥44px touch targets on mobile.
   Base .btn is 42px tall; bump these variants to 44px+ via min-height. */
@media (max-width: 768px) {
  .btn-outline,
  .btn-white {
    min-height: 44px;
    padding-top: 14px;
    padding-bottom: 14px;
    display: inline-flex;
    align-items: center;
  }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size .28s ease, color .2s ease, gap .3s ease;
}
.link-arrow:hover { background-size: 100% 1px; gap: 10px; }

/* ═══════════════════════════════════
   BREADCRUMB
═══════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted-light);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--muted-light); transition: opacity .2s; }
.breadcrumb a:hover { opacity: .6; }
.breadcrumb .sep { opacity: .5; font-size: 11px; }

/* ═══════════════════════════════════
   TAG / PILL
═══════════════════════════════════ */
.tag-pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--r-xs);
  font-weight: var(--fw-regular);
}
.tag-pill--solid {
  color: #fff;
  background: var(--green);
}
.tag-pill--light {
  color: var(--muted);
  background: var(--bg-light);
}

/* ═══════════════════════════════════
   FILTER PILLS  (Blog filter bar)
═══════════════════════════════════ */
.filter-bar__pills {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
}
.blog-filters__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 28px;
}
.pill {
  height: 36px; padding: 0 20px; border-radius: 18px;
  border: 1px solid var(--border); background: transparent;
  font-size: 14px; color: var(--muted); cursor: pointer;
  transition: all .2s; font-family: var(--ff-sans);
}
.pill:hover {
  border-color: var(--green); color: var(--green); background: transparent;
  transform: none; box-shadow: none;
}
.pill.active {
  background: var(--green); border-color: var(--green); color: #fff;
}
.pill.active:hover { background: #d9e4e0; border-color: #d9e4e0; color: var(--green); }

@media (max-width: 520px) {
  .filter-bar__pills { gap: 8px; }
  .pill { height: 32px; font-size: 13px; padding: 0 14px; }
}

/* ═══════════════════════════════════
   HERO  (animated, blog-style — compact)
═══════════════════════════════════ */
.hero {
  padding: 56px 0 44px;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
}
.hero--dark { background: var(--green); color: #fff; }
.hero--plain { background: #fff; }

/* Two-column hero: text + visual side by side */
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
}

.hero__eyebrow {font-weight: var(--fw-regular);
  display: inline-block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #002819;
  margin-bottom: 14px;
}
.hero--dark .hero__eyebrow {font-size: 11.5px;font-weight: var(--fw-regular); color: var(--accent); }

.hero__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: var(--fw-light);
  line-height: 1.08;
  color: var(--text);
  overflow: hidden;
  margin: 0;
  letter-spacing: -0.01em;
}
.hero--dark .hero__title { color: #fff; }

.hero__title .word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .7s var(--ease-anim),
              opacity .7s var(--ease-anim);
}
.hero__title.is-revealed .word {
  transform: translateY(0);
  opacity: 1;
}

.hero__subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin-top: 16px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .6s .4s ease, opacity .6s .4s ease;
}
.hero--dark .hero__subtitle { color: #d9e4e0; }
.hero__subtitle.is-revealed { transform: translateY(0); opacity: 1; }

.hero__actions {
  margin-top: 28px;
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .6s .55s ease, opacity .6s .55s ease;
}
.hero__actions.is-revealed { transform: translateY(0); opacity: 1; }

.hero__meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--muted-light);
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero__meta time, .hero__meta span { line-height: 1; }
.hero__meta .sep { opacity: .5; }

@media (max-width: 900px) {
  .hero { padding: 64px 0 36px; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 28px; }
}

/* Hero visual (used inside .hero__inner) */
.hero__visual {
  height: 320px; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-light) 100%);
}
@media (max-width: 900px) {
  .hero__visual { height: 200px; }
}

/* ═══════════════════════════════════
   SECTION HEADER  (compact, 2-col by default)
═══════════════════════════════════ */
.section-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}
.section-header > .link-arrow { justify-self: end; align-self: end; padding-bottom: 6px; }
.section-header__title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: var(--fw-light);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.section-header__lead {
  color: var(--muted);
  font-size: 15px; line-height: 1.6;
}
.section-header__count {
  font-size: 13px;
  color: var(--muted-light);
  transition: opacity .3s;
}
.section-header__tools {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-self: end;
}
@media (max-width: 700px) {
  .section-header { grid-template-columns: 1fr; gap: 14px; }
  .section-header__tools { justify-self: start; }
}
@media (max-width: 700px) {
  .section-header { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ═══════════════════════════════════
   CARD  (Blog grid card pattern)
   Note: .blog-grid/.blog-card are legacy aliases used by article pages
═══════════════════════════════════ */
.card-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--2 .card__img-wrap { height: 280px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .card-grid, .blog-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .card-grid, .blog-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
}

.card,
.blog-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform .35s var(--ease-bounce),
              box-shadow .35s ease,
              border-color .3s ease;
}
.card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card-hover);
  border-color: transparent;
}
.card__link,
.blog-card__link {
  display: block; text-decoration: none; color: inherit;
}
.card__img-wrap,
.blog-card__img-wrap {
  height: 180px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--green-light) 0%, var(--green) 100%);
}
.card__img,
.blog-card__img {
  width: 100%; height: 100%; display: block;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease-img);
}
.card:hover .card__img,
.blog-card:hover .blog-card__img { transform: scale(1.08); }
.card__body { padding: 18px 22px 22px; }
.blog-card__link > .blog-card__cat,
.blog-card__link > .blog-card__title,
.blog-card__link > .blog-card__meta {font-size: 11.5px;font-weight: var(--fw-regular); padding-left: 22px; padding-right: 22px; }
.blog-card__link > .blog-card__cat {font-size: 11.5px;font-weight: var(--fw-regular); display: inline-block; margin: 16px 22px 12px; padding-left: 10px; padding-right: 10px; }
.blog-card__link > .blog-card__meta { padding-bottom: 22px; padding-top: 4px; }
.card__cat,
.blog-card__cat  {
  display: inline-block;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: var(--r-xs);
  margin-bottom: 12px;
  font-weight: var(--fw-regular);
}
.card__title,
.blog-card__title {
  font-size: 17px;
  font-weight: var(--fw-regular);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__excerpt,
.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.card__meta,
.blog-card__meta {
  font-size: 13px;
  color: var(--muted-light);
  display: flex; gap: 10px; align-items: center;
}
.card__meta .sep,
.blog-card__meta .sep { opacity: .4; }
.card__spotlight {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  transition: opacity .3s; z-index: 1;
  border-radius: var(--r-lg);
}
.card:hover .card__spotlight { opacity: 1; }

/* Card icon variant — for services / qualitats */
.card--icon { padding: 24px 22px; }
.card--icon .card__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-light);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
  transition: background .35s ease, transform .35s var(--ease-bounce);
}
.card--icon:hover .card__icon {
  background: var(--accent-soft-hover);
  transform: scale(1.06);
}
.card--icon .card__title { -webkit-line-clamp: unset; margin-bottom: 12px; }
.card--icon .card__excerpt { -webkit-line-clamp: unset; }

/* Card stat variant — KPIs / cifras */
.card--stat { padding: 32px 28px; }
.card--stat .stat-num {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: var(--fw-light);
  color: var(--green);
  line-height: 1; margin-bottom: 12px;
  letter-spacing: -.01em;
}
.card--stat .stat-label {
  font-size: 14px; color: #002819; line-height: 1.5;
}

/* ═══════════════════════════════════
   FEATURED CARD  (2-col Blog featured-post)
═══════════════════════════════════ */
.featured-card {
  position: relative; margin: 12px 0;
}
.featured-card__link {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-radius: var(--r-xl); overflow: hidden;
  background: var(--green-dark); color: #fff;
  text-decoration: none; min-height: 260px;
  position: relative;
}
.featured-card__img-wrap { position: relative; overflow: hidden; }
.featured-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease-img);
}
.featured-card__link:hover .featured-card__img { transform: scale(1.06); }
.featured-card__content {
  padding: 32px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-card__meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.featured-card__cat {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); font-weight: var(--fw-regular);
}
.featured-card__date {
  font-size: 13px; color: #d9e4e0;
}
.featured-card__title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--fw-light);
  line-height: 1.2; margin-bottom: 12px;
}
.featured-card__excerpt {
  font-size: 14px; line-height: 1.6;
  color: #d9e4e0;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--accent);
  transition: gap .3s ease;
}
.featured-card__link:hover .featured-card__cta { gap: 16px; }
.featured-card__cta-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .3s ease;
}
.featured-card__link:hover .featured-card__cta-arrow {
  transform: scale(1.1); background: #fff;
}
.featured-card__spotlight {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  transition: opacity .4s ease;
  border-radius: var(--r-xl); z-index: 2;
}
.featured-card__link:hover .featured-card__spotlight { opacity: 1; }

@media (max-width: 900px) {
  .featured-card__link { grid-template-columns: 1fr; }
  .featured-card__img-wrap { height: 260px; }
  .featured-card__content { padding: 32px 28px; }
}
@media (max-width: 600px) {
  .featured-card__img-wrap { height: 200px; }
  .featured-card__content { padding: 24px 20px; }
}

/* ═══════════════════════════════════
   LIST ITEM  (Blog list with translateX hover)
═══════════════════════════════════ */
.list {
  background: transparent;
}
.list-item {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
}
.list-item:first-child { border-top: 1px solid var(--border); }
.list-item__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; position: relative; z-index: 2;
}
.list-item__content { flex: 1; min-width: 0; }
.list-item__meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.list-item__cat {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: var(--r-xs);
  font-weight: var(--fw-regular);
}
.list-item__date {
  font-size: 13px; color: var(--muted-light);
}
.list-item__title {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: var(--fw-light);
  line-height: 1.3; color: var(--text);
  transition: transform .35s var(--ease-img), color .3s ease;
  padding-right: 60px;
}
.list-item:hover .list-item__title {
  transform: translateX(12px); color: var(--green);
}
.list-item__excerpt {
  font-size: 14px; line-height: 1.6; color: var(--muted);
  margin-top: 6px; max-width: 680px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: transform .35s var(--ease-img);
}
.list-item:hover .list-item__excerpt { transform: translateX(12px); }
.list-item__hint {
  font-size: 12px; color: var(--muted-light);
  margin-top: 6px;
  transition: transform .35s var(--ease-img);
}
.list-item:hover .list-item__hint { transform: translateX(12px); }

.list-item__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .3s ease, transform .35s var(--ease-bounce);
}
.list-item:hover .list-item__arrow {
  background: var(--green);
  transform: scale(1.1);
}
.list-item__arrow svg path { transition: fill .3s ease; }
.list-item:hover .list-item__arrow svg path { fill: #fff; }

.list-item__hover {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .35s ease;
}
.list-item:hover .list-item__hover { opacity: 1; }

@media (max-width: 600px) {
  .list-item__title { padding-right: 20px; }
  .list-item__excerpt, .list-item__hint { display: none; }
}

/* List variant: process steps (numbered) */
.list-step {
  display: grid; grid-template-columns: auto 1fr; gap: 22px;
  padding: 22px 0; border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: padding-left .28s ease;
}
.list-step:first-child { border-top: 1px solid var(--border); }
.list-step:hover { padding-left: 8px; }
.list-step__num {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--fw-light);
  color: var(--muted-light);
  line-height: 1;
  transition: color .28s ease;
  min-width: 36px;
}
.list-step:hover .list-step__num { color: var(--green); }
.list-step__title {
  font-size: 17px;
  font-weight: var(--fw-regular);
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.3;
}
.list-step__text {
  font-size: 14px; line-height: 1.6; color: var(--muted);
  max-width: 680px;
}

/* 2-column wrapper — for long lists/FAQs/steps */
.list--2col,
.faq-list--2col,
.list-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px;
}
.list--2col > .list-step,
.list-grid > .list-step {
  border-top: none;
}
.list--2col > .list-step:nth-child(-n+2),
.list-grid > .list-step:nth-child(-n+2) {
  border-top: 1px solid var(--border);
}
.faq-list--2col > .faq-item:nth-child(2) { border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .list--2col, .faq-list--2col, .list-grid { grid-template-columns: 1fr; gap: 0; }
  .list--2col > .list-step, .list-grid > .list-step { border-top: none; }
  .list--2col > .list-step:first-child, .list-grid > .list-step:first-child { border-top: 1px solid var(--border); }
  .faq-list--2col > .faq-item:nth-child(2) { border-top: none; }
}

/* ═══════════════════════════════════
   STATS GRID  (KPIs)
═══════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats-grid--2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }

.stat {
  padding: 22px 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease-bounce),
              box-shadow .35s ease, border-color .3s ease;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card-hover-sm);
  border-color: transparent;
}
.stat__num {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: var(--fw-light);
  color: var(--green); line-height: 1;
  margin-bottom: 10px; letter-spacing: -.01em;
}
.stat__label {
  font-size: 13px; color: #002819; line-height: 1.5;
}

.section--dark .stat {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.section--dark .stat:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.section--dark .stat__num   { color: var(--accent); }
.section--dark .stat__label { color: #d9e4e0; }

@media (max-width: 900px) {
  .stats-grid, .stats-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .stats-grid, .stats-grid--2, .stats-grid--3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════
   BLOCKQUOTE — accent
═══════════════════════════════════ */
.blockquote-accent {
  border-left: 3px solid var(--accent);
  padding: 18px 26px;
  margin: 32px 0;
  background: var(--bg-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.blockquote-accent cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}

/* ═══════════════════════════════════
   ARTICLE BODY  (long-form content)
═══════════════════════════════════ */
.article-body {
  padding: 56px 0 80px;
  background: #fff;
}
.article-body__content {
  max-width: 720px; margin: 0 auto;
}
.article-body__content h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: var(--fw-light);
  margin: 48px 0 20px;
  line-height: 1.2;
  color: var(--text);
}
.article-body__content h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: var(--fw-regular);
  margin: 32px 0 14px;
  line-height: 1.25;
  color: var(--text);
}
.article-body__content p {
  font-size: 16px; line-height: 1.75;
  color: var(--muted);
  margin-bottom: 20px;
}
.article-body__content ul,
.article-body__content ol {
  list-style: disc; padding-left: 24px;
  margin-bottom: 20px;
}
.article-body__content ol { list-style: decimal; }
.article-body__content li {
  font-size: 16px; line-height: 1.75;
  color: var(--muted); margin-bottom: 8px;
}
.article-body__content strong {
  font-weight: var(--fw-medium); color: var(--text);
}
.article-body__content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px; margin: 32px 0;
  background: var(--bg-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 17px; line-height: 1.6;
  color: var(--text);
}
.article-body__content a {
  color: var(--green);
  border-bottom: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.article-body__content a:hover { color: var(--accent); border-color: var(--accent); }
.article-body__content img {
  border-radius: var(--r-md); margin: 28px 0;
}
.article-body__back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 15px;
  margin-top: 48px;
}
.article-body__back:hover { color: var(--green); }

/* ═══════════════════════════════════
   COVER (article hero image)
═══════════════════════════════════ */
.cover {
  width: 100%; height: 50vh;
  min-height: 320px; max-height: 520px;
  background: var(--green-dark) center / cover no-repeat;
  background-image: linear-gradient(160deg, var(--green) 0%, var(--green-light) 100%);
}

/* ═══════════════════════════════════
   CTA STRIP
═══════════════════════════════════ */
.block-cta {
  background: var(--green);
  padding: 56px 0;
  text-align: center;
  color: #fff;
}
.block-cta__label {font-weight: var(--fw-regular);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: #d9e4e0; margin-bottom: 14px;
}
.block-cta__title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: var(--fw-light); color: #fff;
  line-height: 1.2; margin: 0 auto 24px;
  max-width: 640px;
}
.block-cta__sub {
  font-size: 15px; color: #d9e4e0; line-height: 1.55;
  max-width: 540px; margin: -14px auto 28px;
}

/* ═══════════════════════════════════
   VIEW TOGGLE  (list/grid)
═══════════════════════════════════ */
.view-toggle {
  display: flex; gap: 4px;
  background: var(--bg-light);
  border-radius: 10px; padding: 4px;
}
.view-toggle__btn {
  width: 36px; height: 32px; border-radius: 10px;
  border: none; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background .2s;
}
.view-toggle__btn.is-active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.view-toggle__btn:hover:not(.is-active) { background: rgba(255,255,255,.5); }
.view-toggle__btn svg { opacity: .5; }
.view-toggle__btn.is-active svg { opacity: 1; }

/* ═══════════════════════════════════
   LOAD MORE
═══════════════════════════════════ */
.load-more-wrap { text-align: center; padding: 24px 0 64px; }
.load-more-btn {
  height: 48px; padding: 0 36px;
  border-radius: 10px;
  border: 1px solid var(--green);
  background: transparent;
  font-size: 15px; color: var(--text); cursor: pointer;
  font-family: var(--ff-sans);
  transition: all .25s;
}
.load-more-btn:hover {
  background: var(--green); border-color: transparent; color: #fff;
}

/* ═══════════════════════════════════
   MOTION SYSTEM (data-anim)
═══════════════════════════════════ */
.js-ready [data-anim] {
  opacity: 0;
  transition: opacity var(--t-anim) var(--ease-anim),
              transform var(--t-anim) var(--ease-anim);
}
.js-ready [data-anim="fade-up"]    { transform: translateY(30px); }
.js-ready [data-anim="fade-left"]  { transform: translateX(-32px); }
.js-ready [data-anim="fade-right"] { transform: translateX(32px); }
.js-ready [data-anim="fade-scale"] { transform: scale(.93); }
.js-ready [data-anim="fade-in"]    { transform: none; }
.js-ready [data-anim].is-visible   { opacity: 1; transform: none; }

/* Image-cover cards reveal as opacity only · avoids exposing section bg above them during scroll */
.js-ready .rl-featured__card[data-anim],
.js-ready .rl-posts__card[data-anim],
.js-ready .rl-projects__card[data-anim],
.js-ready .project-card[data-anim],
.js-ready .blog-grid-card[data-anim],
.js-ready .featured-card[data-anim] {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-ready [data-anim]            { opacity: 1 !important; transform: none !important; }
  .js-ready [data-anim].is-visible { transition: none !important; }
  body, html { animation: none !important; opacity: 1 !important; }
}

/* ═══════════════════════════════════
   INTERACTIVE STATES
   Focus, disabled, loading, error.
   Site-wide defaults; components can override.
═══════════════════════════════════ */

/* ─── Focus visible (keyboard only) ─── */
:where(a, button, .btn, input, select, textarea, summary, [tabindex]):focus { outline: none; }
:where(a, button, .btn, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
:where(.btn, button):focus-visible {
  outline-offset: 3px;
  border-radius: 10px;
}
:where(.btn-accent, .btn-dark, .btn-up):focus-visible {
  outline-color: var(--accent);
}

/* ─── Disabled ─── */
:where(button, .btn)[disabled],
:where(button, .btn).is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
:where(input, select, textarea)[disabled],
:where(input, select, textarea).is-disabled {
  opacity: .6;
  cursor: not-allowed;
  background-color: var(--bg-light);
}
:where(input, textarea)[readonly] {
  background-color: var(--bg-light);
  cursor: default;
}

/* ─── Loading (button) ─── */
:where(button, .btn).is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
:where(button, .btn).is-loading > * { visibility: hidden; }
:where(button, .btn).is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--accent);
  animation: papik-spin .7s linear infinite;
}
:where(.btn-accent, .btn-dark, .btn-up).is-loading::after { color: #fff; }

@keyframes papik-spin { to { transform: rotate(360deg); } }

/* ─── Error states (forms) ─── */
:where(input, select, textarea).is-error,
:where(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--danger) !important;
  background-color: var(--danger-soft);
}
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--danger);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  :where(button, .btn).is-loading::after { animation-duration: 1.6s; }
}


/* ════════════════════════════════════════════════════════════
   LABELS · recalibrats globals (anti-AI feel)
   Tracking 0.10em + weight regular (400) + 11.5px
   Aplicable a totes les pàgines que carreguen components.css.
   ════════════════════════════════════════════════════════════ */
.rl-sectors__label,
.rl-posts__label,
.rl-combo__label,
.rl-footer .footer__col-title,
.hp-login__eyebrow,
.hp-featured__eyebrow,
.hp-sectors__eyebrow,
.hp-cta__eyebrow,
.hp-posts__card-meta,
.hero__eyebrow,
.section-header__label,
.section-header__eyebrow,
.section-header__count,
.tag-pill,
.tag-pill--light,
.tag-pill--solid,
.breadcrumb,
.featured-card__cat,
.featured-card__date,
.list-item__cat,
.list-item__date,
.list-item__hint,
.blog-grid-card__cat,
.blog-grid-card__meta,
.blog-card__cat,
.blog-card__meta,
.article-hero__cat,
.article-hero__meta,
.card__cat,
.card__meta,
.block-cta__label,
.block-hero__breadcrumb,
.actius-intro__label,
.actiu-card__meta,
.phase-section__label,
.phase-section__label-count,
.phase-section__label-sep,
.phases-rail__label,
.solar-card__label,
.mat-card__label,
.ov-tile__label,
.ov-tile__label--green,
.ov-config__meta-light,
.model-card__eyebrow,
.g4-card__kicker,
.err-hero__eyebrow,
.dash-sidebar__label,
.dash-stat__label,
.dash-milestone__date,
.dash-phases__meta,
.conf-section-header__label,
.conf-stepper__label,
.conf-pas1-summary__label,
.nanuk-cfg__eyebrow,
.nanuk-cfg__group-label,
.nanuk-cfg__spec-label,
.nanuk-cfg__placeholder-note,
.upper {
  font-size: 11.5px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.04em !important;
}
