/* =========================================================
   Armstrong – APPLICATIONS (master page + industry detail pages)
   Same visual language as the redesigned home page (home.css): red eyebrow, red/black titles, rounded cards,
   alternating white / grey bands, site font. Everything is prefixed .ap so it cannot leak into other pages.
   ========================================================= */
.ap {
    --ap-red: #e41e29; --ap-red-d: #b8141e; --ap-ink: #1a1a1a; --ap-txt: #6f6f6f; --ap-line: #ececec; --ap-band: #f6f6f7;
    --ap-sec: clamp(40px, 4.4vw, 80px);
    font-family: 'Quattrocento Sans', sans-serif; color: var(--ap-ink); background: #fff; overflow-x: hidden;
}
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap img { display: block; max-width: 100%; }
.ap a { text-decoration: none; }
.ap h1, .ap h2, .ap h3, .ap p, .ap ul, .ap ol { margin: 0; padding: 0; }
.ap ul, .ap ol { list-style: none; }
.ap-wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 1599px) { .ap-wrap { max-width: 1332px; } }
@media (max-width: 1399px) { .ap-wrap { max-width: 1220px; } }
.ap-sec { padding: var(--ap-sec) 0; }
.ap-band { background: var(--ap-band); }
.ap-dark { background: #1c1c1e; color: #fff; }

/* shared type */
.ap-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ap-red); }
.ap .ap-h1 { margin-top: 12px; font-size: clamp(32px, 3.1vw, 58px); font-weight: 700; line-height: 1.08; color: var(--ap-ink); }
.ap .ap-h2 { margin-top: 10px; font-size: clamp(28px, 2.5vw, 46px); font-weight: 700; line-height: 1.12; color: var(--ap-ink); }
.ap-h1 span, .ap-h2 span { color: var(--ap-red); }
.ap .ap-lead { font-size: 17px; line-height: 1.7; color: var(--ap-txt); }
.ap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 60px; }
.ap-head > p { flex: 0 1 600px; }
.ap-head--c { flex-direction: column; align-items: center; text-align: center; }
.ap-head--c > p { flex: none; max-width: 760px; }
.ap-head + * { margin-top: 36px; }

/* buttons */
.ap-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.ap-btn svg { width: 14px; height: 14px; transition: transform .25s; }
.ap-btn:hover svg { transform: translateX(3px); }
.ap-btn--red { background: var(--ap-red); color: #fff; }
.ap-btn--red:hover { background: var(--ap-red-d); color: #fff; }
.ap-btn--line { border-color: var(--ap-ink); color: var(--ap-ink); background: transparent; }
.ap-btn--line:hover { background: var(--ap-ink); color: #fff; }
.ap-dark .ap-btn--line { border-color: #fff; color: #fff; }
.ap-dark .ap-btn--line:hover { background: #fff; color: var(--ap-ink); }
.ap-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ap-red); }
.ap-link:hover { color: var(--ap-red-d); }

/* breadcrumb */
.ap-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--ap-txt); }
.ap-crumb a { color: var(--ap-txt); }
.ap-crumb a:hover { color: var(--ap-red); }
.ap-crumb li + li::before { content: "/"; margin-right: 10px; color: #b5b5bb; }
.ap-crumb [aria-current] { font-weight: 700; color: var(--ap-ink); }

/* hero */
.ap-hero { padding: clamp(28px, 3vw, 48px) 0 var(--ap-sec); background: var(--ap-band); }
.ap-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px clamp(36px, 4.5vw, 84px); margin-top: 26px; }
.ap .ap-hero__text .ap-lead { margin-top: 20px; }
.ap .ap-hero__text .ap-lead + .ap-lead { margin-top: 12px; }
.ap-hero__text .ap-btns { margin-top: 30px; }
.ap-hero__img { position: relative; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 16px; background: #e6e6ea; box-shadow: 0 22px 50px rgba(0, 0, 0, .12); }
.ap .ap-hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* stat strip */
.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .05); }
.ap-stats li { padding: 26px 24px; text-align: center; }
.ap-stats li + li { border-left: 1px solid var(--ap-line); }
.ap-stats b { display: block; font-size: clamp(32px, 2.6vw, 48px); font-weight: 700; line-height: 1; color: var(--ap-ink); }
.ap-stats b em { font-style: normal; color: var(--ap-red); }
.ap-stats span { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #666; }

/* generic cards */
.ap-grid { display: grid; gap: 18px; }
.ap-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ap-card { display: flex; flex-direction: column; padding: 26px 24px; background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.ap-card:hover { transform: translateY(-4px); border-color: #f3c6c9; box-shadow: 0 18px 36px rgba(0, 0, 0, .08); }
.ap-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fdecee; font-size: 15px; font-weight: 700; color: var(--ap-red); }
.ap-card h3 { margin-top: 18px !important; font-size: clamp(18px, 1.3vw, 22px); font-weight: 700; line-height: 1.3; color: var(--ap-ink); }
.ap-card p { margin-top: 10px !important; font-size: 15.5px; line-height: 1.65; color: var(--ap-txt); }
.ap-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: #fdecee; color: var(--ap-red); }
.ap-ic svg { width: 24px; height: 24px; }

/* rich text from the admin (intro / "how we support" copy) */
.ap-rich h3 { font-size: clamp(20px, 1.5vw, 26px); font-weight: 700; line-height: 1.25; color: var(--ap-ink); }
.ap-rich p { margin-top: 12px !important; font-size: 16.5px; line-height: 1.75; color: var(--ap-txt); }
.ap-rich h3 + p { margin-top: 14px !important; }
.ap-rich strong, .ap-rich b { color: var(--ap-ink); }

/* machinery range tabs (links to product categories) */
.ap-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-tab { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 1px solid #dcdce1; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; color: var(--ap-ink); transition: background-color .25s, border-color .25s, color .25s; }
.ap-tab small { font-size: 12px; font-weight: 700; color: #9a9aa2; transition: color .25s; }
.ap-tab:hover { background: var(--ap-red); border-color: var(--ap-red); color: #fff; }
.ap-tab:hover small { color: rgba(255, 255, 255, .8); }
.ap-dark .ap-tab { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }

/* product cards */
.ap-prod { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; color: var(--ap-ink); transition: transform .3s, box-shadow .3s, border-color .3s; }
.ap-prod:hover { transform: translateY(-4px); border-color: #f3c6c9; box-shadow: 0 18px 36px rgba(0, 0, 0, .08); color: var(--ap-ink); }
.ap-prod__img { display: block; min-height: 0; overflow: hidden; aspect-ratio: 4 / 3; padding: 14px; background: #fff; border-bottom: 1px solid #f2f2f4; }
.ap .ap-prod__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.ap-prod:hover .ap-prod__img img { transform: scale(1.04); }
.ap-prod__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.ap-prod__cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-red); }
.ap-prod h3 { margin-top: 6px !important; font-size: 17px; font-weight: 700; line-height: 1.3; }
.ap-prod p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 8px 0 14px !important; font-size: 14.5px; line-height: 1.6; color: var(--ap-txt); }
.ap-prod .ap-link { margin-top: auto; font-size: 14px; }

/* "products packed" – feature image + 2 x 2 use cards */
.ap-uses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; gap: 22px; }
.ap-uses__img { position: relative; min-height: 340px; overflow: hidden; border-radius: 16px; background: #e6e6ea; }
.ap .ap-uses__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-uses .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* why Armstrong ticks */
.ap-ticks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ap-ticks li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--ap-line); border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.ap-ticks i { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ap-red); color: #fff; }
.ap-ticks svg { width: 16px; height: 16px; }

/* process */
.ap-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: ap-step; }
.ap-steps li { position: relative; padding-top: 22px; border-top: 3px solid #dcdce1; }
.ap-steps li::before { content: ""; position: absolute; top: -3px; left: 0; width: 56px; height: 3px; background: var(--ap-red); }
.ap-steps b { font-size: 14px; font-weight: 700; color: var(--ap-red); }
.ap-steps h3 { margin-top: 8px !important; font-size: 19px; font-weight: 700; line-height: 1.3; }
.ap-steps p { margin-top: 6px !important; font-size: 15px; line-height: 1.6; color: var(--ap-txt); }

/* FAQ accordion */
.ap-faq { max-width: 1040px; margin-left: auto; margin-right: auto; }
.ap-faq details { background: #fff; border: 1px solid var(--ap-line); border-radius: 12px; transition: border-color .25s, box-shadow .25s; }
.ap-faq details + details { margin-top: 10px; }
.ap-faq details[open] { border-color: #f3c6c9; box-shadow: 0 12px 28px rgba(0, 0, 0, .06); }
.ap-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ap-ink); list-style: none; cursor: pointer; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fdecee; font-size: 20px; line-height: 1; color: var(--ap-red); transition: transform .25s, background-color .25s, color .25s; }
.ap-faq details[open] summary::after { content: "\2013"; background: var(--ap-red); color: #fff; }
.ap-faq__a { padding: 0 22px 20px; }
.ap-faq__a, .ap-faq__a p, .ap-faq__a li { font-size: 15.5px; line-height: 1.7; color: var(--ap-txt); }
.ap-faq__a p + p, .ap-faq__a ul, .ap-faq__a ol { margin-top: 10px !important; }
.ap-faq__a ul, .ap-faq__a ol { padding-left: 20px !important; list-style: disc; }

/* industry cards (master page + related industries) */
.ap-ind { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; color: var(--ap-ink); transition: transform .3s, box-shadow .3s, border-color .3s; }
.ap-ind:hover { transform: translateY(-4px); border-color: #f3c6c9; box-shadow: 0 18px 36px rgba(0, 0, 0, .08); }
.ap-ind__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e6e6ea; }
.ap .ap-ind__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ap-ind:hover .ap-ind__img img { transform: scale(1.05); }
.ap-ind__num { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ap-ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.ap-ind__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.ap-ind h3 { font-size: clamp(18px, 1.3vw, 22px); font-weight: 700; line-height: 1.3; }
.ap-ind h3 a { color: var(--ap-ink); }
.ap-ind h3 a::after { content: ""; position: absolute; inset: 0; }
.ap-ind { position: relative; }
.ap-ind p { margin-top: 8px !important; font-size: 15px; line-height: 1.6; color: var(--ap-txt); }
.ap-ind__links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; padding-top: 16px; }
.ap-ind__quote { font-size: 14px; font-weight: 700; color: var(--ap-ink); background: none; border: 0; padding: 0; cursor: pointer; }
.ap-ind__quote:hover { color: var(--ap-red); }
.ap-ind:hover h3 a { color: var(--ap-red); }

/* closing CTA */
.ap-cta { text-align: center; }
.ap-cta .ap-h2 { color: #fff; }
.ap .ap-cta p { max-width: 720px; margin: 16px auto 0; font-size: 17px; line-height: 1.7; color: #c4c4ca; }
.ap-cta .ap-btns { justify-content: center; margin-top: 28px; }
.ap-cta .ap-eyebrow { color: #ff6b72; }

/* responsive */
@media (max-width: 1399px) {
    .ap-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ap-card { padding: 22px 20px; }
}
@media (max-width: 1199px) {
    .ap-head { flex-direction: column; align-items: flex-start; }
    .ap-head > p { flex: none; }
    .ap-head--c { align-items: center; }
    .ap-hero__grid, .ap-uses { grid-template-columns: minmax(0, 1fr); }
    .ap-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .ap-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-uses__img { min-height: 0; aspect-ratio: 16 / 8; }
}
@media (max-width: 767px) {
    .ap-head + * { margin-top: 26px; }
    .ap .ap-lead { font-size: 16px; }
    .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-stats li:nth-child(3) { border-left: 0; }
    .ap-stats li:nth-child(n+3) { border-top: 1px solid var(--ap-line); }
    .ap-grid--3, .ap-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-btns .ap-btn { flex: 1 1 auto; }
    .ap-uses__img { aspect-ratio: 4 / 3; }
    .ap-faq summary { padding: 16px 18px; font-size: 16px; }
    .ap-faq__a { padding: 0 18px 18px; }
}
@media (max-width: 575px) {
    .ap-grid--4, .ap-grid--3, .ap-grid--5, .ap-uses .ap-grid, .ap-ticks { grid-template-columns: minmax(0, 1fr); }
    .ap-steps { grid-template-columns: minmax(0, 1fr); }
    .ap-tab { height: 42px; padding: 0 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-card, .ap-prod, .ap-ind, .ap .ap-ind__img img, .ap .ap-prod__img img { transition: none; }
}

/* arrow icons inside text links; headings keep their written case (a site-wide rule capitalises every word) */
.ap-link svg { flex: none; width: 14px; height: 14px; transition: transform .25s; }
.ap-link:hover svg, .ap-prod:hover .ap-link svg, .ap-ind:hover .ap-link svg { transform: translateX(3px); }
.ap h1, .ap h2, .ap h3, .ap summary { text-transform: none; }
.ap-head > .ap-link { flex: none; white-space: nowrap; }
/* phones: product cards two per row, numbered cards compact (number beside the title) */
@media (max-width: 575px) {
    .ap-grid--4:has(> .ap-prod), .ap-grid--4:has(> .ap-ind) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ap-prod__img { padding: 8px; }
    .ap-prod__body, .ap-ind__body { padding: 12px 12px 14px; }
    .ap-prod h3, .ap-ind h3 { font-size: 15px; }
    .ap-prod p, .ap-ind p { display: none; }
    .ap-prod__cat { font-size: 10.5px; letter-spacing: .08em; }
    .ap-prod .ap-link, .ap-ind .ap-link { margin-top: 10px; font-size: 13px; }
    .ap-ind__links { padding-top: 10px; gap: 6px 12px; }
    .ap-ind__quote { font-size: 13px; }
    .ap-card:has(> .ap-num) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px 18px; }
    .ap-card:has(> .ap-num) .ap-num { width: 40px; height: 40px; font-size: 14px; }
    .ap .ap-card:has(> .ap-num) h3 { margin-top: 0 !important; font-size: 17px; }
    .ap .ap-card:has(> .ap-num) p { grid-column: 2; margin-top: 4px !important; font-size: 15px; }
    .ap-grid { gap: 10px; }
}
@media (max-width: 575px) { .ap-prod .ap-link, .ap-ind .ap-link { margin-top: auto; padding-top: 10px; } }

/* closing CTA on brand red so it doesn't run into the dark footer below */
.ap-dark.ap-cta { background: var(--ap-red); }
.ap .ap-cta p { color: #ffe1e2; }
.ap-cta .ap-eyebrow { color: #fff; opacity: .85; }
.ap-cta .ap-btn--red { background: #fff; color: var(--ap-red); }
.ap-cta .ap-btn--red:hover { background: var(--ap-ink); color: #fff; }
.ap-dark.ap-cta .ap-btn--line:hover { color: var(--ap-red); }

/* detail page: machinery range as category links */
.ap .ap-range__lead { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ap-txt); }
.ap-range__tabs { margin-top: 24px; }
.ap-tab.is-on { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }
