/* ==========================================================================
   PAGE 06 · NUESTRA GENTE | STYLES
   ========================================================================== */

/* Hero */
.section-gente-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-image: url('/images/hero-gente-istanbul-hd.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.gente-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 29, 24, 0.96) 0%, rgba(3, 29, 24, 0.88) 42%, rgba(3, 29, 24, 0.35) 75%, rgba(3, 29, 24, 0.12) 100%);
  z-index: 1;
}

.section-gente-hero .container-large {
  position: relative;
  z-index: 2;
  width: 100%;
}

.gente-hero-content {
  max-width: 620px;
  padding: 4.5rem 0;
}

.gente-hero-content .heading-hero {
  margin-bottom: 1.25rem;
}

.gente-hero-content .body-lead {
  color: rgba(248, 246, 240, 0.9);
}

/* Common Team Section Styles */
.section-team-block {
  padding: 4.5rem 0;
  background-color: var(--color-warm-ivory);
}

.section-team-block:not(:first-of-type) {
  padding-top: 2rem;
}

.team-category-header {
  margin-bottom: 2.75rem;
}

.team-category-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-antique-gold);
}

.team-category-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(182, 138, 74, 0.3);
}

/* Portrait Cards Grid (4 columns - legacy) */
.team-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

/* 5 Executives Institutional Grid (3 on row 1, 2 centered on row 2) */
.team-grid-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  width: 100%;
}

.team-grid-5 .executive-card:nth-child(1),
.team-grid-5 .executive-card:nth-child(2),
.team-grid-5 .executive-card:nth-child(3) {
  grid-column: span 2;
}

.team-grid-5 .executive-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.team-grid-5 .executive-card:nth-child(5) {
  grid-column: 4 / span 2;
}

/* Centered 2 columns (matches card width of 3-column rows) */
.team-grid-2-centered {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.team-grid-2-centered .executive-card {
  width: calc((100% - 4rem) / 3);
  max-width: 420px;
}

/* Executive Card Component */
.executive-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(182, 138, 74, 0.22);
  height: 100%;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.executive-card:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 18px 40px rgba(6, 43, 35, 0.14), 0 0 1px rgba(182, 138, 74, 0.4);
  border-color: rgba(182, 138, 74, 0.55);
}

.executive-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 853;
  overflow: hidden;
  background: var(--color-deep-forest);
  transform: translateZ(0);
}

.executive-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 29, 24, 0) 70%, rgba(3, 29, 24, 0.4) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.executive-card:hover .executive-image-wrap::after {
  opacity: 0.6;
}

.executive-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.executive-card:hover .executive-image {
  transform: scale(1.04) translateZ(0);
}

.executive-badge-seal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(2, 20, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 194, 138, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.executive-badge-seal img {
  width: 18px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.executive-card:hover .executive-badge-seal {
  transform: scale(1.1) translateZ(0);
  border-color: rgba(226, 194, 138, 0.85);
  background: rgba(2, 20, 16, 0.85);
}

.executive-info {
  padding: 1.35rem 1.15rem 1.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.executive-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-primary-green);
  margin-bottom: 0.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.executive-title {
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.executive-divider {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-antique-gold), transparent);
  margin-top: auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .section-gente-hero {
    min-height: 460px;
  }
  .gente-hero-content {
    padding: 3.5rem 0;
  }
  .team-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .team-grid-5 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .team-grid-5 .executive-card:nth-child(1),
  .team-grid-5 .executive-card:nth-child(2),
  .team-grid-5 .executive-card:nth-child(3),
  .team-grid-5 .executive-card:nth-child(4) {
    grid-column: span 2;
  }
  .team-grid-5 .executive-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
  .team-grid-2-centered {
    display: flex;
    justify-content: center;
    max-width: 100%;
    gap: 1.5rem;
  }
  .team-grid-2-centered .executive-card {
    width: calc((100% - 1.5rem) / 2);
    max-width: 360px;
  }
}

@media (max-width: 767px) {
  .section-gente-hero {
    min-height: 390px;
  }
  .gente-hero-content {
    padding: 2.75rem 0;
  }
  .section-team-block {
    padding: 3.25rem 0;
  }
  .section-team-block:not(:first-of-type) {
    padding-top: 1.25rem;
  }
  .team-category-header {
    margin-bottom: 1.75rem;
  }
  .team-category-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    gap: 0.85rem;
  }

  /* Elegant Directory Layout */
  .team-grid-4,
  .team-grid-2-centered {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    max-width: 100%;
    margin: 0;
  }

  .team-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    max-width: 100%;
    margin: 0;
  }

  .team-grid-5 .executive-card:nth-child(1),
  .team-grid-5 .executive-card:nth-child(2),
  .team-grid-5 .executive-card:nth-child(3),
  .team-grid-5 .executive-card:nth-child(4) {
    grid-column: span 1;
  }

  .team-grid-5 .executive-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .executive-card {
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .executive-image-wrap {
    aspect-ratio: 1024 / 853;
  }

  .executive-badge-seal {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .executive-badge-seal img {
    width: 14px;
  }

  .executive-info {
    padding: 0.85rem 0.55rem 0.95rem;
  }

  .executive-name {
    font-size: clamp(0.95rem, 3.6vw, 1.15rem);
    margin-bottom: 0.25rem;
    min-height: 2.3em;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .executive-title {
    font-size: 0.62rem;
    line-height: 1.35;
    min-height: 2.7em;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
  }

  .executive-divider {
    width: 24px;
  }
}

@media (max-width: 520px) {
  .team-grid-5,
  .team-grid-2-centered {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 1.25rem;
  }
  .team-grid-5 .executive-card:nth-child(n),
  .team-grid-2-centered .executive-card {
    grid-column: span 1;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .team-grid-4,
  .team-grid-2-centered {
    gap: 0.55rem;
  }
  .executive-info {
    padding: 0.65rem 0.35rem 0.75rem;
  }
  .executive-name {
    font-size: 0.88rem;
  }
  .executive-title {
    font-size: 0.56rem;
  }
  .executive-badge-seal {
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
  }
  .executive-badge-seal img {
    width: 12px;
  }
}

