/*
  About-us teaser — matches the shared NAVIGATOR Group template seen in
  references/home/2, about us/ (a jglobe.hu screenshot): eyebrow label →
  H2 → red divider → two short paragraphs → CTA, white background,
  two-column on desktop with a photo on the right.

  Two deviations from that reference, both deliberate:
  - The reference's right-column visual is a Julius-Globe-specific
    isometric illustration. Brunnbauer has no equivalent illustration
    asset, so a real curated photo (photo-hq-building-exterior) fills
    that slot instead, following the same "reskin the shared template
    with real Brunnbauer content" precedent as the hero section.
  - A second reference image (a dark SaaS stat-strip: value + label ×3)
    is redesigned here as a navy elevated card (.about__stats) using
    brand tokens and real Brunnbauer facts, not the source's dark theme
    or content.
*/

.about {
  background: var(--color-white);
  padding-block: var(--space-10);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}

.about__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about__eyebrow {
  color: var(--color-slate-600);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__title {
  margin-top: var(--space-3);
}

.about__divider {
  width: 56px;
  height: 3px;
  margin-top: var(--space-5);
  background: var(--color-red-600);
  border-radius: 2px;
}

.about__paragraph {
  margin-top: var(--space-5);
}

.about__paragraph strong {
  font-weight: var(--fw-bold);
  color: var(--color-navy-900);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-3);
  background: var(--color-navy-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about__stat {
  padding-inline: var(--space-2);
  text-align: center;
}

.about__stat:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.about__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  white-space: nowrap;
}

.about__stat-label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--color-slate-200);
  white-space: nowrap;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-6);
  background: var(--color-red-600);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-red);
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring);
}

.about__cta:hover {
  background: var(--color-red-700);
}

.about__cta:active {
  transform: scale(0.97);
}

.about__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 24px 0 24px 0;
  box-shadow: var(--shadow-lg);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Color-treatment layer: a navy multiply tint ties the photo into the
   site's navy palette, matching the hero's overlay treatment. */
.about__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-navy-900);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

/* Grounding gradient for depth, per the Anti-Generic Guardrails.
   rgba(29, 47, 66, *) is --color-navy-900, written literally since
   var() can't carry its own alpha here (same reasoning as
   .hero__overlay in hero.css). */
.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 47, 66, 0.55), rgba(29, 47, 66, 0) 55%);
}

/* ---- Tablet / mobile (<= 768px) ---- */
@media (max-width: 768px) {
  .about {
    padding-block: var(--space-8);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .about__media {
    aspect-ratio: 16 / 9;
  }

  .about__paragraph {
    max-width: 100%;
  }

  .about__stats,
  .about__cta {
    width: 100%;
  }

  .about__cta {
    justify-content: center;
  }
}

/* ---- Mobile (<= 480px) ---- */
@media (max-width: 480px) {
  .about__stats {
    padding: var(--space-4);
  }

  .about__stat {
    padding-inline: var(--space-2);
  }

  .about__stat-value {
    font-size: var(--fs-body);
  }

  /* The one-row nowrap only holds down to the tablet breakpoint above —
     at phone widths "NAVIGATOR Csoport tagja" no longer fits a single
     column and forces horizontal scroll, so let it wrap again here. */
  .about__stat-label {
    white-space: normal;
  }
}
