/* ── ABOUT HISTORY ── */
.about-history {
  background: var(--white);
  padding: 3rem 5vw 6rem;
}
.about-history-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Two-column quote layout */
.about-history-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}

.about-pullquote {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--sky);
}
.about-pullquote::before { content: '\201C'; }
.about-pullquote::after  { content: '\201D'; }
.about-pullquote--inline {
  margin-top: 1.75rem;
}

.about-history-block p:not(.about-pullquote) {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.about-history-block p:last-child { margin-bottom: 0; }

/* Carlos bio video */
.about-history-video {
  margin-top: 0;
  margin-bottom: 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.about-history-video .section-label {
  text-align: center;
  margin-bottom: 1rem;
}
.about-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
}
.about-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.about-video-thumb:hover img { transform: scale(1.02); }
.about-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,14,30,0.45);
  transition: background 0.2s;
}
.about-video-thumb:hover .about-video-play { background: rgba(6,14,30,0.3); }
.about-video-play svg {
  width: 64px;
  height: 64px;
  fill: var(--white);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}
.about-video-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  display: block;
}

/* Horizontal stats row */
.about-history-stats {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.about-stat {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  text-align: center;
  flex: 1 1 180px;
  max-width: 240px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,31,60,0.08);
}
.about-stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.about-stat-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

/* ── EXPERTISE GRID ── */
.about-expertise {
  background: var(--offwhite);
  padding: 6rem 5vw;
  position: relative;
}
.about-expertise::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--sky), var(--red));
}
.about-expertise-inner { max-width: 1100px; margin: 0 auto; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.expertise-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 1.6rem;
  box-shadow: 0 2px 8px rgba(13,31,60,0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.expertise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,31,60,0.1);
  border-color: var(--sky);
}
.expertise-icon {
  color: var(--sky);
  margin-bottom: 1.2rem;
}
.expertise-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.expertise-body {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

/* ── BRANDS ── */
.about-brands {
  background: var(--white);
  padding: 6rem 5vw;
}
.about-brands-inner { max-width: 1100px; margin: 0 auto; }

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}
/* Each brand is a logo image (img/manufacturers/<key>.webp), with a text-pill
   fallback shown via inline onerror when the logo is missing. Markup is shared
   with the landing-page brand strip (render_brand_item in landing_gen.py). */
.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}
.brand-chip:hover { transform: translateY(-2px); }

.brand-chip .brand-logo {
  height: 44px;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(13,31,60,0.08));
  transition: filter 0.2s;
}
.brand-chip:hover .brand-logo {
  filter: drop-shadow(0 8px 16px rgba(13,31,60,0.18));
}

/* text fallback keeps the original pill look */
.brand-chip .brand-logo-fallback {
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.5rem 1.1rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.brand-chip:hover .brand-logo-fallback {
  background: var(--ice);
  border-color: var(--sky);
  color: var(--blue);
}

/* ── ABOUT PAGE HERO OVERRIDES ── */
.page-hero--compact {
  padding-top: 2.75rem !important;
  padding-bottom: 2.75rem !important;
}
.page-hero-inner--about {
  max-width: 1100px;
}
.page-hero-inner--about .page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-history-quotes {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 4.5rem 5vw 2.5rem; }
  .about-history-stats { gap: 0.75rem; }
  .about-stat { padding: 1.25rem 1rem; flex-basis: 140px; }
  .about-video-play svg { width: 48px; height: 48px; }
}
