/* About page (main-site/templates/about-us.php), on top of home.css. */

/* Hero: the team illustration */
.ab-hero-grid { grid-template-columns: 1fr 1fr; }
.ab-art { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ab-art img { width: 100%; height: auto; }

/* Numbers */
.ab-nums-sec { padding-block: 8px 0; }
.ab-nums { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.ab-num { padding: 26px 28px; display: grid; gap: 2px; align-content: start; border-left: 1px solid var(--line); }
.ab-num:first-child { border-left: 0; }
.ab-num b { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ab-num span { margin-top: 6px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.ab-num small { font-size: 14px; color: var(--muted); }
.ab-source { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.ab-source a { color: var(--brand-ink); font-weight: 600; }

/* What we do */
.ab-what { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.ab-what .shead { margin-bottom: 0; }
.ab-aud { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-aud-card { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ab-aud-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.ab-aud-card > p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.ab-aud-card ul { margin-top: 16px; display: grid; gap: 4px; }
.ab-aud-card a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px; margin-inline: -10px; border-radius: var(--r-md); transition: background .2s; }
.ab-aud-card a:hover { background: var(--surface-2); }
.ab-aud-card b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ab-aud-card small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.ab-aud-card a > .ico { width: 15px; height: 15px; color: var(--muted); }

/* Our plugins: the same soft tint as the other sections, dark in dark mode (home.css tokens) */
.ab-prod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-prod-grid a, .ab-prod-grid .is-more { min-height: 104px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ab-prod-grid a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 22px 24px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ab-prod-grid a:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.ab-prod-grid b { display: block; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.ab-prod-grid small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ab-prod-grid .is-more { display: grid; place-items: center; padding: 22px 24px; font-size: 18px; font-weight: 600; color: var(--muted); background: transparent; border: 1px dashed color-mix(in srgb, var(--muted) 45%, var(--line)); }

/* How we work */
.ab-why { grid-template-columns: repeat(4, 1fr); }

/* Life at Oxilab: real photos as tilted prints (shown once images are listed in data/about.php) */
.ab-life { list-style: none; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.ab-life figure { margin: 0; padding: 12px 12px 14px; background: #fff; border-radius: 4px; box-shadow: var(--shadow); transition: transform .25s ease; }
.ab-life li:nth-child(3n+1) figure { transform: rotate(-2.2deg); }
.ab-life li:nth-child(3n+2) figure { transform: rotate(1.4deg) translateY(10px); }
.ab-life li:nth-child(3n) figure { transform: rotate(-.8deg); }
.ab-life li figure:hover { transform: rotate(0) scale(1.02); }
.ab-life img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ab-life figcaption { margin-top: 10px; text-align: center; font-size: 15px; font-weight: 500; color: #33475b; }

/* FAQ */
.ab-faq { max-width: 860px; }
.ab-cta-sec { padding-top: 0; }

@media (max-width: 1100px) {
  .ab-hero-grid { grid-template-columns: 1fr; }
  .ab-art { max-width: 620px; }
  .ab-what { grid-template-columns: 1fr; }
  .ab-why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) { .ab-prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .ab-nums { grid-template-columns: 1fr 1fr; }
  .ab-num { padding: 20px; }
  .ab-num:nth-child(3) { border-left: 0; }
  .ab-num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-aud { grid-template-columns: 1fr; }
  .ab-why { grid-template-columns: 1fr; }
  .ab-life { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 560px) { .ab-prod-grid { grid-template-columns: 1fr; } }
