/* About page – built from the same parts as the home page (text-and-photo blocks, result cards), inside the normal page width.
   The photo / logo spaces are elements with fixed classes (.ab-p1, .ab-p2, .ab-logo-ana …): set a picture in the theme editor (select it → Background).
   (The two photo spaces of the Contact page, .ct-p1 / .ct-p2, are styled at the bottom.) */

/* ---- header band: a photo can be set on it; the default is the navy band of the other company pages */
.co-sub { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .92); } .ab-hero { padding-top: 10px; } .ab-hero .wrap { padding-bottom: 0; } .ab-hero h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: .04em; font-weight: 800; } .ab-hero p { font-size: 14px; }

.ab { padding-bottom: 14px; }
.ab-sec { margin: 34px 0; }
.ab .eyebrow { color: var(--gold); font-size: 12px; letter-spacing: 3px; font-weight: 700; }

/* ---- section heading: small gold label, title, short line (the home page's heading style) */
.ab-head { margin-bottom: 18px; }
.ab-h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.5; font-weight: var(--w-heading); color: var(--navy); }

.ab p { text-wrap: pretty; line-break: strict; }

/* ---- ご挨拶: the home page's text-and-photo block, with the three key words under the photo */
/* the logo box floats to the right and the text flows around it, then runs full width below it */
.ab-intro { display: block; padding-top: 30px; }
.ab-intro::after { content: ''; display: block; clear: both; }
.ab-intro p { margin: 0 0 12px; font-size: 14.5px; line-height: 2.05; color: #444; }
.ab-intro p.ab-lead { margin-bottom: 16px; padding-left: 14px; border-left: 3px solid var(--sec-line); font-size: 16.5px; font-weight: 500; line-height: 1.95; color: var(--navy); }
.ab-intro .btn-navy-lg { margin-top: 8px; }
.ab-catch { white-space: pre-line; }
.ab-side { float: right; width: 300px; margin: 6px 0 18px 36px; }
.ab .ph-box { min-height: 0; }
.ab-photo { aspect-ratio: 5 / 4; padding: 22px; background: var(--navy-deep) url('/img/brands/ana-emblem.png') center / contain no-repeat; background-origin: content-box; }
.ab-values { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ab-values li { padding: 10px 4px 8px; text-align: center; background: var(--navy-deep); border-top: 3px solid var(--sec-line); color: var(--on-dark, #fff); font-size: 14.5px; font-weight: 700; letter-spacing: 1px; line-height: 1.4; }

/* ---- the rest of the text, inside the same block as ご挨拶 */
.ab-intro .ab-sub { margin: 26px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.ab-intro .ab-pt { margin: 14px 0 3px; font-size: 15.5px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.ab-end { margin-top: 24px; } .ab-end > div { margin: 0; }
.ab-cja { font-size: 16px; font-weight: 700; color: var(--navy); } .ab-cen { font-size: 14.5px; font-weight: 700; letter-spacing: 1px; color: var(--navy); }
.ab-ctag { font-size: 14.5px; color: #444; } .ab-cchips { font-size: 14.5px; color: #444; }

/* ---- photo gallery: ten photos in different sizes, none cropped (the big ones are 5, 10 and 9). Every photo is a picture space: the default photos are in /img/about/, a picture set in the theme editor (select a photo → Background) replaces it. Click = enlarged view. */
.ab-gallery { display: flex; flex-direction: column; gap: 10px; }
/* nothing is cropped: every place has the shape of its photo. A row shares one height (widths follow the photo shapes); the large block is built so the three small photos beside the big one add up to its height */
.ab-row { display: flex; gap: 10px; } .ab-row > .ab-g { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); }
.ab-hero { display: grid; grid-template-columns: calc(75% + 1.4px) minmax(0, 1fr); gap: 10px; } .ab-hero > .ab-g { aspect-ratio: 16 / 9; } .ab-stack { display: grid; gap: 10px; align-content: start; } .ab-stack > .ab-g { aspect-ratio: 16 / 9; }
.ab-g { margin: 0; position: relative; overflow: hidden; background: #e6ebf4; min-height: 0; cursor: zoom-in; box-shadow: 0 2px 10px rgba(11, 34, 64, .14); transition: box-shadow .3s, transform .3s; }
.ab-ph { width: 100%; height: 100%; background: #e6ebf4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%238a93a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15h8l3-5h14l3 5h8v22H6z'/%3E%3Ccircle cx='24' cy='26' r='7'/%3E%3C/svg%3E") center / 44px no-repeat; background-color: #e6ebf4; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ab-g1 { background: #e6ebf4 url('/img/about/gallery-1.webp') center / cover no-repeat; } .ab-g2 { background: #e6ebf4 url('/img/about/gallery-2.webp') center / cover no-repeat; } .ab-g3 { background: #e6ebf4 url('/img/about/gallery-3.webp') center / cover no-repeat; }
.ab-g4 { background: #e6ebf4 url('/img/about/gallery-4.webp') center / cover no-repeat; } .ab-g5 { background: #e6ebf4 url('/img/about/gallery-5.webp') center / cover no-repeat; } .ab-g6 { background: #e6ebf4 url('/img/about/gallery-6.webp') center / cover no-repeat; }
.ab-g7 { background: #e6ebf4 url('/img/about/gallery-7.webp') center / cover no-repeat; } .ab-g8 { background: #e6ebf4 url('/img/about/gallery-8.webp') center / cover no-repeat; } .ab-g9 { background: #e6ebf4 url('/img/about/gallery-9.webp') center / cover no-repeat; } .ab-g10 { background: #e6ebf4 url('/img/about/gallery-10.webp') center / cover no-repeat; }
.ab-g:hover, .ab-g:focus-visible { box-shadow: 0 10px 28px rgba(11, 34, 64, .3); outline: none; } .ab-g:hover .ab-ph, .ab-g:focus-visible .ab-ph { transform: scale(1.06); }
.ab-g::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(6, 21, 41, .62)); opacity: .55; transition: opacity .35s; }
.ab-g:hover::after, .ab-g:focus-visible::after { opacity: 1; }
.ab-g figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 14px 9px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); border-left: 3px solid var(--gold); transform: translateY(0); transition: transform .35s ease, opacity .35s ease; }
.ab-g figcaption::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; border: 1.5px solid #fff; border-radius: 0 !important; opacity: .0; transition: opacity .3s; } .ab-g:hover figcaption::after { opacity: .9; }
@media (hover: hover) { .ab-g figcaption { transform: translateY(70%); opacity: 0; } .ab-g:hover figcaption, .ab-g:focus-visible figcaption { transform: none; opacity: 1; } }

/* enlarged view */
.gl-back { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 56px; background: rgba(6, 21, 41, .93); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: gl-in .25s ease; }
@keyframes gl-in { from { opacity: 0; } to { opacity: 1; } }
.gl-back img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 16px 60px rgba(0, 0, 0, .5); background: #111; }
.gl-cap { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px; text-align: center; } .gl-cap small { margin-left: 10px; font-weight: 400; opacity: .65; letter-spacing: 1px; }
.gl-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s; } .gl-btn:hover, .gl-btn:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.gl-x { top: 14px; right: 14px; } .gl-prev { left: 10px; top: 50%; margin-top: -22px; } .gl-next { right: 10px; top: 50%; margin-top: -22px; }

/* ---- results: the home page's cards, in a soft box */
.ab-stats { padding: 24px 22px 26px; background: var(--light); }
.ab-stats .g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-stats .ab-head { text-align: center; } .ab-stats .sec-line { margin-left: auto; margin-right: auto; }

/* ---- the three logos on dark tiles (a logo can be replaced in the theme editor: select it → Background) */
.ab-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ab-brand { margin: 0; border: 1px solid #d5dbe8; background: #fff; }
.ab-logo { height: 150px; background: var(--navy-deep) center / contain no-repeat; background-origin: content-box; padding: 16px 22px; }
.ab-brand figcaption { padding: 7px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: var(--navy); text-align: center; }
.ab-logo-ana { background-image: url('/img/brands/ana-enterprises.png?v=3'); } .ab-logo-emblem { background-image: url('/img/brands/ana-emblem.png'); } .ab-logo-amj { background-image: url('/img/brands/amj-trucks.png'); }

/* the logos are already on this page, so the footer logo row would only repeat them */
body:has(.ab-brands) .foot-brands { display: none; }

@media (max-width: 767px) {
  .co-sub { font-size: 12px; letter-spacing: .1em; } .ab-hero h1 { font-size: 21px; } .ab-hero p { font-size: 12px; }
  .ab-sec { margin: 22px 0; } .ab-h2 { font-size: 19px; }
  .ab-intro { display: flex; flex-direction: column; padding-top: 14px; } .ab-intro p { font-size: 13.5px; line-height: 1.95; } .ab-intro p.ab-lead { font-size: 14.5px; } .ab-intro .btn-navy-lg { align-self: flex-start; }
  .ab-side { float: none; order: 2; width: 100%; margin: 16px 0 6px; } .ab .ab-photo { aspect-ratio: auto; height: 150px; max-height: none; padding: 14px; } .ab-values li { font-size: 12.5px; padding: 9px 2px 8px; }
  .ab-intro .ab-sub { font-size: 16px; } .ab-intro .ab-pt { font-size: 14.5px; }
  .ab-end { margin-top: 18px; } .ab-cja, .ab-cen, .ab-ctag, .ab-cchips { font-size: 13px; }
  .ab-stats { padding: 16px 12px 16px; } .ab-stats .g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ab-gallery { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; } .ab-hero, .ab-stack, .ab-row { display: contents; } .ab-gallery .ab-g { flex: 0 0 calc(50% - 3px); aspect-ratio: var(--r); } .ab-g figcaption { font-size: 11px; padding: 16px 8px 4px; transform: none; opacity: 1; }
  .ab-gallery .ab-g[data-i="5"], .ab-gallery .ab-g[data-i="10"], .ab-gallery .ab-g[data-i="9"] { flex: 0 0 100%; } .ab-gallery .ab-g[data-i="8"] { flex: 0 0 66%; }
  .ab-g[data-i="5"] { order: 1; } .ab-g[data-i="1"] { order: 2; } .ab-g[data-i="2"] { order: 3; } .ab-g[data-i="10"] { order: 4; } .ab-g[data-i="3"] { order: 5; } .ab-g[data-i="4"] { order: 6; } .ab-g[data-i="9"] { order: 7; } .ab-g[data-i="6"] { order: 8; } .ab-g[data-i="7"] { order: 9; } .ab-g[data-i="8"] { order: 10; }
  .gl-back { padding: 16px 8px; } .gl-prev { left: 2px; } .gl-next { right: 2px; }
  .ab-brands { grid-template-columns: minmax(0, 1fr); gap: 8px; } .ab-logo { height: 96px; padding: 10px 16px; } .ab-brand figcaption { padding: 5px 10px; font-size: 12px; }
}
