/* ============================================================
   HMC PODIUM — HMC-GROUP.CSS
   ============================================================ */

/* ══════════════════════════════════════════
   PAGE HERO 
══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 110px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.07;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: var(--pink);
  border-radius: 50%;
  opacity: 0.05;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 680px; margin: 0 auto; }

/* ══════════════════════════════════════════
   COMPANIES SECTION
══════════════════════════════════════════ */
.companies-section { background: var(--bg-light); position: relative; overflow: hidden; }

.companies-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.companies-section__bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.companies-section__bg .wave--1 {
  opacity: 0.06;
}
@media (prefers-reduced-motion: reduce) {
  .companies-section__bg path animateTransform { display: none; }
}

.companies-section .container {
  position: relative;
  z-index: 1;
}

.companies-section__title {
  text-align: center;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 12px;
}


.companies-section__hint {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: 780px;
  margin: 0 auto 48px;
}


.companies-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 18px;
}

.flip-card { grid-column: span 6; }


.companies-grid .flip-card:nth-last-child(3) { grid-column: 4 / 10; }
.companies-grid .flip-card:nth-last-child(2) { grid-column: 10 / 16; }
.companies-grid .flip-card:nth-last-child(1) { grid-column: 16 / 22; }


.flip-card {
  perspective: 1200px;
  height: 220px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
}

.flip-card__front {
  background: var(--white);
  border: 1.5px solid var(--platinum);
}


.flip-card__front--logo img {
  max-width: 72%;
  max-height: 64%;
  object-fit: contain;
}


.flip-card__front--name h3 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.flip-card__back {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  transform: rotateY(180deg);
}

.flip-card__back p {
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   CLOSING SECTION 
══════════════════════════════════════════ */
.companies-closing {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.companies-closing__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.companies-closing__bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.companies-closing__bg .wave--1 {
  opacity: 0.18;
}
@media (prefers-reduced-motion: reduce) {
  .companies-closing__bg path animateTransform { display: none; }
}

.companies-closing .container {
  position: relative;
  z-index: 1;
}

.companies-closing__lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sector-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.sector-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(102,198,186,0.35);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.sector-chip:hover {
  background: rgba(102,198,186,0.18);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .companies-grid { grid-template-columns: repeat(4, 1fr); }
  .flip-card,
  .companies-grid .flip-card:nth-last-child(3),
  .companies-grid .flip-card:nth-last-child(2),
  .companies-grid .flip-card:nth-last-child(1) { grid-column: span 1; }
}
@media (max-width: 900px) {
  .companies-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .companies-grid { grid-template-columns: repeat(2, 1fr); }
  .flip-card { height: 200px; }
  .flip-card__back p { font-size: 0.72rem; }
  .sector-chip { font-size: 0.8rem; padding: 8px 16px; }
}