/*
 * Hero Category — Nivel 2. 2 cols (texto + imagen con hover-CTA).
 * Skin-aware via var(--brand-*).
 */

.hero-category { position: relative; }

/* Mateix cas que .hd-title: mitja columna i un h1 amb !important al damunt. */
h1.hc-title {
  /* El sostre és 52px: a 56 el nom més llarg (Enogastronomia) no cabia a la
     columna i es partia a mitja paraula. */
  font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgb(var(--brand-primary, 0 48 86));
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

/* El vídeo ocupa el lloc de la imatge, amb el mateix cantell i ombra. */
.hero-category .hc-video-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg, 0);
  box-shadow: 0 18px 40px -24px rgb(var(--brand-primary, 0 48 86) / 0.55);
}

.hc-text { min-width: 0; }

.hc-emphasis {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: rgb(var(--brand-primary, 0 48 86));
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

/* Los <p> se nombran aparte: el tema les fija el tamaño en la capa base y una
   regla directa gana siempre a la que heredarían del contenedor. */
.hc-body,
.hc-body p,
.hc-body li {
  font-size: 1rem;
  color: rgb(var(--neutral-text-muted, 75 85 99));
  line-height: 1.65;
}

.hc-body {
  margin-bottom: 2rem;
}
.hc-body p + p {
  margin-top: 1rem;
}
.hc-body ul,
.hc-body ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}
.hc-body li + li {
  margin-top: 0.25rem;
}

/* Icon pills row */
.hc-icons { margin-top: 2rem; margin-bottom: 2rem; }

.hc-icon-bubble {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgb(var(--brand-primary, 0 48 86) / 0.06);
  color: rgb(var(--brand-primary, 0 48 86));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .hc-icon-bubble { width: 3rem; height: 3rem; }
}
.hc-icon-bubble .material-icons-outlined { font-size: 1.25rem; }
@media (min-width: 768px) {
  .hc-icon-bubble .material-icons-outlined { font-size: 1.5rem; }
}

.hc-icon-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgb(var(--brand-primary, 0 48 86));
}
@media (min-width: 768px) {
  .hc-icon-label { font-size: 0.875rem; }
}

/* Certified destinations */
.hc-certified { margin-bottom: 2rem; }
.hc-certified-head { margin-bottom: 1rem; }
.hc-certified-icon {
  color: rgb(var(--brand-accent, 243 197 0));
  font-size: 1.25rem;
}
.hc-certified-title {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: rgb(var(--neutral-text-muted, 107 114 128));
}

.hc-tags {
  /* gap se gestiona con utility flex-wrap gap-2 en twig */
}

.hc-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  background: #fff;
  color: rgb(var(--neutral-text-muted, 75 85 99));
  border: 1px solid rgb(229 231 235);
  border-radius: var(--radius-pill, 0);
  transition: border-color 0.2s, color 0.2s;
}
@media (min-width: 768px) {
  .hc-tag { padding: 0.5rem 1rem; font-size: 0.875rem; }
}
.hc-tag:hover {
  border-color: rgb(var(--brand-primary, 0 48 86));
  color: rgb(var(--brand-primary, 0 48 86));
}

/* Image with hover CTA */
.hc-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg, 0);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
  .hc-image-wrap { aspect-ratio: 4 / 4; }
}
@media (min-width: 1024px) {
  /* La imatge iguala EXACTAMENT l'alçada de la columna de text: el wrap es
     posiciona absolut dins la columna estirada (items-stretch), així no aporta
     alçada pròpia i la imatge omple el que ocupi el text. */
  .hc-image-wrap { position: absolute; inset: 0; aspect-ratio: auto; height: auto; width: auto; }
}

.hc-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.hc-image-wrap:hover .hc-image-img {
  transform: scale(1.05);
}

.hc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(var(--brand-primary, 0 48 86) / 0.6), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
  transition: opacity 0.3s;
}
.hc-image-wrap:hover .hc-overlay {
  opacity: 1;
}

.hc-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: rgb(var(--brand-primary, 0 48 86));
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  border-radius: var(--radius-pill, 0);
  transition: background-color 0.2s;
}
@media (min-width: 768px) {
  .hc-overlay-btn { padding: 0.75rem 2rem; font-size: 1rem; }
}
.hc-overlay-btn:hover {
  background: rgb(243 244 246);
}

/* Skin Terres overrides: chip accent en olive */
body.theme-terres .hc-certified-icon,
.hero-category.hc-terres .hc-certified-icon {
  color: rgb(var(--brand-accent, 128 186 39));
}
