/* ==========================================================================
   PAGE HERO — Shared subpage hero with tangram, wave, stars, Bauhaus stripe
   Used by: page-team, page-about, page-methodology, page-services, etc.
   Color override via inline style on the section element.
   ========================================================================== */

.cr-hero-team {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(145deg, #2D7A6E 0%, #1F5C52 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.cr-hero-team__tangram {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cr-hero-team__wave {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: clamp(60px, 10vw, 120px);
  z-index: 1;
  pointer-events: none;
}

.cr-hero-team__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

/* Badge — glass pill */
.cr-hero-team__badge {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.35rem 1.2rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  color: #fff;
  font-family: var(--cr-font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cr-hero-team__title {
  font-family: var(--cr-font-serif, 'Chennai', Georgia, serif);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.cr-hero-team__subtitle {
  font-family: var(--cr-font-sans);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
  max-width: 460px;
  margin: 0 auto 1rem;
}

/* Bauhaus rainbow stripe */
.cr-hero-team__stripe {
  height: 5px; width: 100px;
  margin: 0 auto;
  background: linear-gradient(90deg,
    var(--cr-coral) 20%, var(--cr-yellow) 20% 40%,
    var(--cr-teal) 40% 60%, var(--cr-blue) 60% 80%,
    var(--cr-orange) 80%);
  border-radius: 3px;
}

/* Floating star decorations */
.cr-hero-team__deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.cr-hero-team__deco--star1 { top: 15%; left: 8%; animation: cr-float 6s ease-in-out infinite; }
.cr-hero-team__deco--star2 { bottom: 30%; left: 15%; animation: cr-float 9s ease-in-out infinite 1s; }
.cr-hero-team__deco--star3 { top: 25%; right: 12%; animation: cr-float 7s ease-in-out infinite 2s; }

/* Quarter-circle accent */
.cr-hero-team__quarter {
  position: absolute;
  top: 0; right: 0;
  width: clamp(100px, 18vw, 220px);
  height: clamp(100px, 18vw, 220px);
  background: rgba(255,255,255,0.06);
  border-radius: 0 0 0 100%;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .cr-hero-team__deco--star2,
  .cr-hero-team__deco--star3 { display: none; }
}


/* ==========================================================================
   HERO BAND — Triple mosaic layer INSIDE hero (behind text, over bg)
   ========================================================================== */

.cr-hero-band {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  opacity: 0.18;
  pointer-events: none;
}

.cr-hero-band__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  flex: 1;
}

.cr-hero-band__cell {
  overflow: hidden;
}
.cr-hero-band__cell svg {
  width: 100%; height: 100%; display: block;
}
.cr-hero-band__cell--photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cr-hero-band__cell--badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cr-teal, #4AAFA0);
}

/* Ensure text stays above the band */
.cr-hero-team--with-band .cr-hero-team__inner {
  z-index: 3;
}
.cr-hero-team--with-band .cr-hero-team__wave {
  z-index: 2;
}

@media (max-width: 900px) {
  .cr-hero-band__row { grid-template-columns: repeat(5, 1fr); }
  .cr-hero-band__cell:nth-child(6),
  .cr-hero-band__cell:nth-child(7) { display: none; }
}
@media (max-width: 600px) {
  .cr-hero-band__row { grid-template-columns: repeat(4, 1fr); }
  .cr-hero-band__cell:nth-child(5) { display: none; }
  .cr-hero-band { opacity: 0.12; }
}


/* ==========================================================================
   HERO VARIANT: Full-SVG background (methodology, services, workshops)
   ========================================================================== */

.cr-hero-metodo {
  position: relative;
  min-height: clamp(320px, 50vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.cr-hero-metodo__svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cr-hero-metodo__wave {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  height: clamp(50px, 8vw, 100px);
  z-index: 1;
  pointer-events: none;
}

.cr-hero-metodo__inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(3.5rem, 7vw, 5.5rem);
}

.cr-hero-metodo__title {
  font-family: var(--cr-font-serif, 'Chennai', Georgia, serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.cr-hero-metodo__lead {
  font-family: var(--cr-font-sans);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0 0 1.5rem;
}

.cr-hero-metodo__pills {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cr-hero-metodo__pill {
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid var(--pill-color, rgba(255,255,255,0.3));
  color: var(--pill-color, #fff);
  font-family: var(--cr-font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
}
.cr-hero-metodo__pill:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .cr-hero-metodo__title { font-size: 2.2rem; }
  .cr-hero-metodo__pills { gap: 0.4rem; }
}
