/* Automotive brochure content within the shared Elprosys website system. */
.about-page { --about-product-photo-background: #fff; }
.about-page .utility-hero .product-hero__inner {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .7fr);
  gap: var(--space-xxl);
}
.about-page .utility-hero .product-hero__copy { padding-bottom: var(--space-xl); }
.about-hero-brand { display: grid; place-items: center; align-self: center; min-width: 0; padding: var(--space-l); }
.about-hero-brand img { display: block; width: 100%; max-width: 320px; height: auto; }
.about-hero-subtitle { margin: var(--space-l) 0 0; color: var(--text-primary); font-size: clamp(20px, 2vw, 25px); font-weight: var(--font-weight-heading); line-height: 1.5; }
.about-intro { margin-top: var(--space-xl); max-width: 65ch; color: var(--text-secondary); font-size: var(--font-text); line-height: 1.75; }
.about-intro p { margin: 0 0 var(--space-l); }
.about-intro p:last-child { margin-bottom: 0; }
.about-intro strong { color: var(--text-primary); font-weight: 600; }
.about-functions { background: var(--surface-titlebar); }
.about-functions__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-xxl); margin: 0; padding: 0; list-style: none; }
.about-functions__grid li { min-width: 0; text-align: center; }
.about-functions__grid img { display: block; width: 102px; height: 44px; margin: 0 auto var(--space-xl); object-fit: contain; }
.about-functions__grid img[src$="automotive-diagnostics.webp"] { width: 76px; }
.about-functions__grid h3 { margin: 0 0 var(--space-s); color: var(--text-primary); font-size: var(--font-title); line-height: 1.4; }
.about-functions__grid p { margin: 0 auto; max-width: 26ch; color: var(--text-secondary); font-size: var(--font-body-lg); line-height: 1.7; }
.about-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); }
.about-reason { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: var(--space-xl); padding: var(--space-xxl); border: 1px solid var(--border-strong); border-radius: var(--radius-panel-ui); background: var(--surface-control); }
.about-reason__icon { display: grid; place-items: center; width: 64px; height: 64px; color: var(--accent); }
.about-reason__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.about-reason__number { font-size: var(--font-display-s); line-height: 1; font-weight: var(--font-weight-heading); }
.about-reason h3 { margin: 0 0 var(--space-s); font-size: 20px; line-height: 1.35; }
.about-reason p { margin: 0; color: var(--text-secondary); font-size: var(--font-body-lg); line-height: 1.75; }
.about-products { background: var(--surface-titlebar); }
.about-products__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.about-product { display: flex; flex-direction: column; min-width: 0; padding: var(--space-xl); border: 1px solid var(--border-strong); border-radius: var(--radius-panel-ui); background: var(--surface-window); }
.about-product__image { display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 0 0 var(--space-xl); overflow: hidden; border-radius: var(--radius-button-ui); background: var(--about-product-photo-background); }
.about-product__image img { display: block; max-width: 100%; width: auto; height: auto; max-height: 240px; object-fit: contain; }
.about-product h3 { margin: 0 0 var(--space-s); font-size: 22px; line-height: 1.35; }
.about-product p { margin: 0 0 var(--space-xl); color: var(--text-secondary); font-size: var(--font-body-lg); line-height: 1.75; }
.about-product .product-text-link { margin-top: auto; font-size: var(--font-caption); line-height: 1.7; }
.about-shop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xl); margin-top: var(--space-xxl); padding-top: var(--space-xxl); border-top: 1px solid var(--divider); }
.about-shop p { margin: 0; color: var(--text-secondary); }
@media (max-width: 1100px) {
  .about-functions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-reason { padding: var(--space-xl); gap: var(--space-l); grid-template-columns: 48px minmax(0, 1fr); }
  .about-reason__icon { width: 48px; height: 48px; }
}
@media (max-width: 820px) {
  .about-page .utility-hero .product-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .about-hero-brand { width: 100%; max-width: 320px; justify-self: center; padding: var(--space-l) 0 var(--space-xxl); }
  .about-products__grid { grid-template-columns: minmax(0, 1fr); }
  .about-product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 var(--space-xl); }
  .about-product__image { grid-column: 1; grid-row: 1 / span 3; margin: 0; align-self: center; }
  .about-product h3, .about-product p, .about-product .product-text-link { grid-column: 2; }
  .about-product .product-text-link { align-self: end; }
}
@media (max-width: 600px) {
  .about-functions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xxl) var(--space-l); }
  .about-functions__grid li:last-child { grid-column: 1 / -1; max-width: 260px; justify-self: center; }
  .about-reasons { grid-template-columns: minmax(0, 1fr); }
  .about-product { display: flex; }
  .about-product__image { margin-bottom: var(--space-xl); width: 100%; }
  .about-shop .btn { width: 100%; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .about-page .site-header__bar { gap: 8px; }
}


/* A dedicated shop invitation immediately below the five functions. */
.about-shop { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-xl); margin-top: calc(var(--space-xxl) * 2); padding: var(--space-xxl); border: 1px solid var(--border-strong); border-left: var(--space-xs) solid var(--accent); border-radius: 0 var(--radius-panel-ui) var(--radius-panel-ui) 0; background: var(--surface-control); }
.about-shop__icon { display: grid; place-items: center; width: calc(var(--space-xxl) * 2); height: calc(var(--space-xxl) * 2); color: var(--accent); border: 1px solid var(--border-strong); border-radius: var(--radius-card); }
.about-shop__icon .icon { width: var(--space-xxl); height: var(--space-xxl); }
.about-shop__copy { min-width: 0; }
.about-shop h2 { margin: 0 0 var(--space-s); font-size: var(--font-hero); line-height: 1.35; }
.about-shop p { font-size: var(--font-body-lg); line-height: 1.7; }
.about-shop .btn { position: relative; overflow: hidden; }
.about-shop .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, var(--border-strong) 50%, transparent 65%); transform: translateX(-140%); pointer-events: none; }
.about-shop.motion-entered .btn::after { animation: about-shop-sheen 2.6s ease-in-out .5s 1 both; }
@keyframes about-shop-sheen { to { transform: translateX(140%); } }
@media (hover: hover) { .about-shop .btn:hover > span[aria-hidden] { translate: var(--space-xs) 0; } }
.about-shop .btn > span[aria-hidden] { transition: translate .2s ease; }
@media (max-width: 820px) { .about-shop { grid-template-columns: auto minmax(0, 1fr); padding: var(--space-xl); } .about-shop .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 480px) { .about-shop { grid-template-columns: minmax(0, 1fr); } .about-shop .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .about-shop.motion-entered .btn::after { animation: none; display: none; } .about-shop .btn > span[aria-hidden] { transition: none; } }

.about-hero-brand { gap: var(--space-xxl); }
.about-hero-brand .about-building { width: 100%; max-width: none; height: auto; }



/* Enlarge the sketch into the free part of the text column without changing text wrapping. */
@media (min-width: 1200px) {
 .about-page .utility-hero .product-hero__copy { position: relative; z-index: 2; }
 .about-hero-brand { position: relative; z-index: 1; }
 .about-hero-brand .about-building { width: calc(100% + var(--space-xxl) * 4); justify-self: end; max-width: none; }
}

/* Shared bg5 motif on About, strongest behind the building and the reasons section. */
.about-page .utility-hero .product-hero__pattern { opacity: .38; }
.about-page .about-why { isolation: isolate; }
.about-page .about-why::before {
 content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
 background: url("../assets/images/bg5.png") right center / cover no-repeat;
 opacity: .18;
 -webkit-mask-image: linear-gradient(90deg, transparent, #000);
 mask-image: linear-gradient(90deg, transparent, #000);
}

/* Compact spacing around the five capability icons. */
.about-page .about-functions { padding-block: calc(var(--space-xxl) * 1.5); }


/* About: restrained one-time reveals and interactive detail. */
.about-page { --about-motion-duration: 900ms; --about-motion-step: 130ms; }
.about-page [data-stagger].motion-entered > :nth-child(1) { --about-entry-delay: 0ms; }
.about-page [data-stagger].motion-entered > :nth-child(2) { --about-entry-delay: var(--about-motion-step); }
.about-page [data-stagger].motion-entered > :nth-child(3) { --about-entry-delay: calc(var(--about-motion-step) * 2); }
.about-page [data-stagger].motion-entered > :nth-child(4) { --about-entry-delay: calc(var(--about-motion-step) * 3); }
.about-page [data-stagger].motion-entered > :nth-child(5) { --about-entry-delay: calc(var(--about-motion-step) * 4); }
.about-page [data-stagger].motion-entered > * { animation-name: about-item-enter; animation-delay: var(--about-entry-delay, 0ms); animation-duration: var(--about-motion-duration); }
.about-hero-brand.motion-entered .about-building { animation: about-building-enter 1.4s var(--ease-out) .2s both; }
.about-functions__grid.motion-entered img { animation: about-icon-enter var(--about-motion-duration) var(--ease-out) var(--about-entry-delay, 0ms) both; }
.about-product__image img, .about-reason__icon img { transition: transform .35s var(--ease-out); }
.about-product, .about-reason { transition: border-color .25s ease, box-shadow .25s ease; }
@keyframes about-item-enter { from { opacity: 0; translate: 0 var(--space-xl); } to { opacity: 1; translate: 0 0; } }
@keyframes about-icon-enter { from { opacity: 0; transform: scale(.84); } to { opacity: 1; transform: scale(1); } }
@keyframes about-building-enter { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@media (hover: hover) {
 .about-product:hover, .about-reason:hover { border-color: var(--accent); }
 .about-product:hover .about-product__image img { transform: scale(1.035); }
 .about-reason:hover .about-reason__icon img { transform: translateY(calc(var(--space-xs) * -1)); }
}
@media (prefers-reduced-motion: reduce) {
 .about-page [data-stagger].motion-entered > *, .about-hero-brand.motion-entered .about-building, .about-functions__grid.motion-entered img { animation: none !important; opacity: 1; clip-path: none; translate: none; transform: none; }
 .about-product__image img, .about-reason__icon img, .about-product, .about-reason { transition: none; }
}

/* Reuse the homepage light sweep on the dividers around the function strip. */
.about-page .about-functions { overflow: hidden; }
.about-page .about-functions::before,
.about-page .about-functions::after {
 content: ""; position: absolute; left: -25%; width: 25%; height: 1px;
 background: linear-gradient(90deg, transparent, var(--accent), transparent);
 box-shadow: 0 0 10px var(--glow-accent);
 animation: trustLightSweep 7s linear infinite; pointer-events: none;
}
.about-page .about-functions::before { top: 0; }
.about-page .about-functions::after { bottom: 0; animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) {
 .about-page .about-functions::before, .about-page .about-functions::after { animation: none; left: 25%; width: 50%; }
}

.about-page .about-products { isolation: isolate; }
.about-page .about-products::before {
 content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
 background: url("../assets/images/bg5.png") right center / min(960px, 100vw) auto no-repeat;
 opacity: .5;
 -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
 mask-image: linear-gradient(90deg, transparent, #000 65%);
}

/* Lighter labels balance the thin function icons. */
html[lang="en"] body.about-page #main .about-functions__grid h3 { font-size: 18px; font-weight: 500; }

/* Thin reason icons pair with medium-weight titles. */
html[lang="en"] body.about-page #main .about-reason h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }

/* Mobile-only photo fit; preserve the original desktop presentation. */
@media (max-width: 820px) {
/* Product photos fit within a definite frame instead of overflowing its grid row. */
.about-product__image { position: relative; min-height: 0; }
.about-product__image img {
 position: absolute; inset: 0; box-sizing: border-box;
 width: 100%; height: 100%; max-width: 100%; max-height: 100%;
 object-fit: contain; object-position: center; padding: var(--space-s);
}
@media (hover: hover) { .about-product:hover .about-product__image img { transform: none; } }
}
