/* ==========================================================================
   TOPS SAFETY CONTROL — About Us page stylesheet
   Prefix: abt-  (mirrors svl- / svc- convention used on other inner pages)
   Inherits all tokens (colors, type, spacing, easing) from mains.css.
   Reuses shared base classes: .service-hero, .svc-breadcrumb, .about-grid,
   .about-visual-photo, .about-floating-card, .qhse-banner, .cta-band, etc.
   ========================================================================== */

/* ============================ STATS STRIP (Quiénes Somos) =========================== */
.abt-stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-line-light);
  border-bottom: 1px solid var(--c-line-light);
  margin-top: 54px;
}
.abt-stat { padding: 30px 18px; text-align: center; position: relative; }
.abt-stat:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 1px; background: var(--c-line-light);
}
.abt-stat .num {
  font-family: var(--f-mono); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--c-ink);
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.abt-stat .num .suffix { color: var(--c-red); font-size: 1.15rem; }
.abt-stat .label {
  font-size: 0.68rem; color: var(--c-steel); letter-spacing: 0.05em; text-transform: uppercase;
  margin-top: 8px; line-height: 1.4;
}

/* ============================ GEOGRAPHIC PRESENCE =========================== */
.abt-geo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.abt-geo-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-light);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}
.abt-geo-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -22px rgba(10,10,11,0.22); border-color: transparent; }
.abt-geo-card i { color: var(--c-red); font-size: 1.3rem; margin-bottom: 16px; display: block; }
.abt-geo-card h4 { font-size: 1rem; margin-bottom: 10px; letter-spacing: 0.01em; }
.abt-geo-card p { font-size: 0.86rem; color: var(--c-steel); line-height: 1.65; margin: 0; }

/* ============================ VISION / MISSION =========================== */
#vision-mission { background: var(--c-black); position: relative; overflow: hidden; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card {
  position: relative;
  padding: 46px 42px;
  background: var(--c-ink);
  border: 1px solid var(--c-line-dark);
  overflow: hidden;
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}
.vm-card--accent { background: linear-gradient(135deg, #7c0f15 0%, #4b0a0d 100%); border-color: transparent; }
.vm-card__icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: rgba(224, 17, 26, 0.14); border: 1px solid rgba(224, 17, 26, 0.4);
  margin-bottom: 26px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.vm-card--accent .vm-card__icon { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }
.vm-card__icon i { color: var(--c-red); font-size: 1.4rem; }
.vm-card--accent .vm-card__icon i { color: var(--c-white); }
.vm-card__label {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-red); margin-bottom: 16px; display: block;
}
.vm-card--accent .vm-card__label { color: rgba(255,255,255,0.75); }
.vm-card h3 { color: var(--c-white); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.32; margin-bottom: 0; text-transform: none; font-weight: 500; }

/* ============================ CORE VALUES =========================== */
.abt-values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.abt-value-card {
  background: var(--c-white);
  border: 1px solid var(--c-line-light);
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}
.abt-value-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -24px rgba(10,10,11,0.25); border-color: transparent; }
.abt-value-card__icon {
  width: 52px; height: 52px; margin: 0 auto 20px; background: var(--c-off-white);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
  transition: background 0.35s ease;
}
.abt-value-card:hover .abt-value-card__icon { background: var(--c-red); }
.abt-value-card__icon i { font-size: 1.25rem; color: var(--c-red); transition: color 0.35s ease; }
.abt-value-card:hover .abt-value-card__icon i { color: var(--c-white); }
.abt-value-card h4 { font-size: 0.92rem; margin-bottom: 10px; letter-spacing: 0.01em; }
.abt-value-card p { font-size: 0.8rem; color: var(--c-steel); line-height: 1.6; margin: 0; }

/* ============================ ORGANIZATIONAL STRUCTURE =========================== */
.abt-org-list { border-top: 1px solid var(--c-line-dark); }
.abt-org-row {
  display: grid; grid-template-columns: 0.85fr 2fr; gap: 26px;
  padding: 22px 0; border-bottom: 1px solid var(--c-line-dark); align-items: baseline;
}
.abt-org-row .area {
  font-family: var(--f-display); font-size: 0.86rem; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--c-white);
}
.abt-org-row .func { font-size: 0.92rem; color: var(--c-steel-light); line-height: 1.6; }
.abt-org-row .func strong { color: var(--c-white); font-weight: 600; }

/* ================================ RESPONSIVE ================================ */
@media (max-width: 991px) {
  .vm-grid { grid-template-columns: 1fr; }
  .abt-values-grid { grid-template-columns: repeat(3, 1fr); }
  .abt-geo-grid { grid-template-columns: 1fr; }
  .abt-org-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 767px) {
  .abt-stats-band { grid-template-columns: repeat(2, 1fr); }
  .abt-stat:nth-child(2)::after { display: none; }
  .abt-stat:not(:last-child)::after { display: none; }
  .abt-stat { border-bottom: 1px solid var(--c-line-light); }
  .abt-stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 575px) {
  .abt-values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================ OUR TEAM =========================== */

/* Featured leadership card — Managing Director */
.abt-lead-card {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  align-items: stretch;
  background: var(--c-ink);
  border: 1px solid var(--c-line-dark);
  overflow: hidden;
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
}
.abt-lead-photo { position: relative; overflow: hidden; min-height: 340px; }
.abt-lead-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: transform 0.6s var(--ease-out);
}
.abt-lead-card:hover .abt-lead-photo img { transform: scale(1.06); }
.abt-lead-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,11,0) 60%, var(--c-ink) 100%);
}
.abt-lead-body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.abt-lead-quote-mark { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; color: var(--c-red); margin-bottom: 6px; }
.abt-lead-body p.abt-lead-quote {
  color: var(--c-steel-light); font-size: 1.08rem; line-height: 1.7; margin-bottom: 26px; max-width: 480px;
}
.abt-lead-name { color: var(--c-white); font-size: 1.05rem; margin-bottom: 4px; letter-spacing: 0.01em; }
.abt-lead-role {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-red);
}
.abt-lead-social { display: flex; gap: 10px; margin-top: 22px; }
.abt-lead-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--c-line-dark);
  display: flex; align-items: center; justify-content: center; color: var(--c-steel-light);
  transition: all 0.3s ease;
}
.abt-lead-social a:hover { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }

/* Department team grid — photo cards with animated hover reveal */
.abt-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.abt-team-card {
  position: relative;
  height: 320px;
  overflow: hidden;
  cursor: default;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}
.abt-team-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.abt-team-card:hover img { transform: scale(1.12); filter: grayscale(0) contrast(1.05); }
.abt-team-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.55) 42%, rgba(10,10,11,0.12) 100%);
  transition: background 0.5s ease;
  z-index: 1;
}
.abt-team-card:hover::before { background: linear-gradient(0deg, rgba(224,17,26,0.88) 0%, rgba(10,10,11,0.75) 55%, rgba(10,10,11,0.2) 100%); }
.abt-team-card-icon {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white); font-size: 1rem;
  transform: translateY(0) rotate(0deg);
  transition: transform 0.5s var(--ease-out), background 0.4s ease, border-color 0.4s ease;
}
.abt-team-card:hover .abt-team-card-icon { transform: translateY(-4px) rotate(90deg); background: var(--c-white); border-color: var(--c-white); color: var(--c-red); }
.abt-team-card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 24px 24px;
}
.abt-team-card-num {
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.55);
  display: block; margin-bottom: 8px;
  transition: color 0.4s ease;
}
.abt-team-card:hover .abt-team-card-num { color: rgba(255,255,255,0.85); }
.abt-team-card-body h4 { color: var(--c-white); font-size: 1.02rem; margin-bottom: 0; letter-spacing: 0.01em; }
.abt-team-card-desc {
  color: rgba(255,255,255,0.88); font-size: 0.84rem; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease-out), opacity 0.4s ease, margin-top 0.45s var(--ease-out);
  margin-top: 0;
}
.abt-team-card:hover .abt-team-card-desc { max-height: 90px; opacity: 1; margin-top: 10px; }

/* ================================ RESPONSIVE ================================ */
@media (max-width: 991px) {
  .vm-grid { grid-template-columns: 1fr; }
  .abt-values-grid { grid-template-columns: repeat(3, 1fr); }
  .abt-geo-grid { grid-template-columns: 1fr; }
  .abt-lead-card { grid-template-columns: 1fr; }
  .abt-lead-photo { min-height: 260px; }
  .abt-lead-photo::after { background: linear-gradient(0deg, var(--c-ink) 0%, rgba(10,10,11,0) 30%); }
  .abt-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .abt-stats-band { grid-template-columns: repeat(2, 1fr); }
  .abt-stat:nth-child(2)::after { display: none; }
  .abt-stat:not(:last-child)::after { display: none; }
  .abt-stat { border-bottom: 1px solid var(--c-line-light); }
  .abt-stat:nth-last-child(-n+2) { border-bottom: none; }
  .abt-lead-body { padding: 34px 28px; }
  /* Touch devices can't hover — keep descriptions visible */
  .abt-team-card-desc { max-height: 90px; opacity: 1; margin-top: 10px; }
  .abt-team-card::before { background: linear-gradient(0deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.6) 50%, rgba(10,10,11,0.15) 100%) !important; }
}

@media (max-width: 575px) {
  .abt-values-grid { grid-template-columns: repeat(2, 1fr); }
  .abt-team-grid { grid-template-columns: 1fr; }
}