/**
 * about.css
 * Styles for the "Bemutatkozás" (About) section.
 *
 * Extends the global design system defined in main.css.
 * Reuses the --mhm-* colour tokens and shared utilities (.eyebrow,
 * .section-line) declared there. Only tokens specific to this section
 * are added below.
 */

/* ─── Section-specific design tokens ────────────────────────────────────── */
/* The gradient hairline that runs down the left or right edge of the section. */
:root {
  --about-line: linear-gradient(180deg, transparent 0%, rgba(0,75,147,0.35) 50%, transparent 100%);
}

/* Dark mode overrides — the hairline brightens so it stays visible on dark backgrounds. */
html.dark {
  --about-line: linear-gradient(180deg, transparent 0%, rgba(120,170,255,0.30) 50%, transparent 100%);
}

/* ─── Section shell ──────────────────────────────────────────────────────── */
.about {
  position: relative;
  padding: 7rem 3rem;
  background: var(--bg-primary);
  scroll-margin-top: 90px; /* Offset for the fixed navigation bar when jumping to #about. */
  overflow: hidden;
  transition: background 0.5s;
}

/* Dot-grid background — visually continues the hero section's texture. */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Vertical gradient hairline ─────────────────────────────────────────── */
/* Alternates between left and right edges across sections to create rhythm. */
.section-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--about-line);
  pointer-events: none;
  z-index: 1;
}
.section-line.left  { left:  1.5rem; }
.section-line.right { right: 1.5rem; }

/* Raise content above the dot-grid and hairline layers. */
.about-inner { position: relative; z-index: 2; }

/* ─── Editorial two-column layout ────────────────────────────────────────── */
/* Left column: section title. Right column: body copy. */
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

/* Small uppercase label displayed above section headings. */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mhm-red);
  margin-bottom: 1.25rem;
}

/* Main section heading — italic, heavy weight. */
.about-title {
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-primary);
  transition: color 0.5s;
}
.about-title .accent { color: var(--mhm-red); }

/* Body copy paragraphs. */
.about-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 62ch;
  transition: color 0.5s;
}
.about-body p + p { margin-top: 1.25rem; }

/* ─── Certification badge ────────────────────────────────────────────────── */
/* ISO 9001 / DNV mark displayed beneath the section title. */
.about-cert {
  display: block;
  margin-top: 3.5rem;
  margin-left: 6rem;
  width: auto;
  height: 260px;
  object-fit: contain;
  object-position: center;
}

/* Invert the badge in dark mode so it remains legible on dark backgrounds. */
html.dark .about-cert {
  filter: brightness(0) invert(1);
}

/* ─── Responsive overrides ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about { padding: 4.5rem 1.5rem; }

  /* Stack the two columns vertically on smaller viewports. */
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }

  /* Pull hairlines inward, keeping a gap from the reduced section padding. */
  .section-line.left  { left:  0.75rem; }
  .section-line.right { right: 0.75rem; }
}

/* Reduce top/bottom padding on short-viewport screens (e.g. 1536×703 laptops)
   so section titles land comfortably below the nav after a nav-link click. */
@media (max-height: 750px) {
  .about { padding-top: 4rem; padding-bottom: 4rem; }
}