/* ═══════════════════════════════════════════════════════
   SPRUCE UP — applications.css
   Application Hub page: prefix ap-
   Sections: Hero · Grid · Machines · Stats · Logos · CTA
═══════════════════════════════════════════════════════ */

:root {
    --ap-yellow:   #FFCD11;
    --ap-charcoal: #1C1C1C;
    --ap-dark:     #141414;
    --ap-dark-2:   #1e1e1e;
    --ap-white:    #ffffff;
    --ap-gray:     #f5f5f5;
    --ap-border:   rgba(28,28,28,0.1);
    --ap-text-dim: #666666;
    --ap-font:     'Poppins', sans-serif;
    --ap-radius:   8px;
    --ap-ease:     cubic-bezier(0.4,0,0.2,1);
    --ap-trans:    0.22s var(--ap-ease);
}

/* ── Shared ── */
.ap-section { width: 100%; }
.ap-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}
.ap-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.ap-reveal.is-visible { opacity: 1; transform: none; }
.ap-reveal--d1 { transition-delay: 0.08s; }
.ap-reveal--d2 { transition-delay: 0.16s; }
.ap-reveal--d3 { transition-delay: 0.24s; }
.ap-reveal--d4 { transition-delay: 0.32s; }

.ap-eyebrow {
    display: inline-block;
    font-family: var(--ap-font);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ap-yellow);
    margin-bottom: 12px;
}
.ap-section-title {
    font-family: var(--ap-font);
    font-size: 36px; font-weight: 700; line-height: 1.15;
    color: var(--ap-charcoal); margin: 0 0 14px;
}
.ap-section-sub {
    font-family: var(--ap-font);
    font-size: 15px; line-height: 1.7;
    color: var(--ap-text-dim); margin: 0;
    max-width: 560px;
}

/* ── Breadcrumb ── */
.ap-breadcrumb {
    font-family: var(--ap-font); font-size: 12px;
    color: var(--ap-text-dim); padding: 16px 0 20px;
    display: flex; align-items: center; gap: 8px;
    justify-content: flex-start;
}
.ap-breadcrumb a { color: var(--ap-text-dim); text-decoration: none; transition: color var(--ap-trans); }
.ap-breadcrumb a:hover { color: var(--ap-charcoal); }
.ap-breadcrumb span { opacity: 0.45; }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.ap-hero {
    background: var(--ap-white);
    padding: 80px 0 72px;
    border-bottom: 1px solid var(--ap-border);
    position: relative;
    overflow: hidden;
}
/* No grain on light hero */
.ap-hero::before { display: none; }
/* Yellow accent line left */
.ap-hero::after {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: var(--ap-yellow);
}

.ap-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ap-hero__content { padding: 0; }

.ap-hero__eyebrow {
    font-family: var(--ap-font); font-size: 10px; font-weight: 700;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--ap-yellow); display: block; margin-bottom: 16px;
}
.ap-hero__title {
    font-family: var(--ap-font); font-size: 52px; font-weight: 800;
    line-height: 1.08; color: var(--ap-charcoal);
    margin: 0 0 8px; letter-spacing: -0.02em;
}
.ap-hero__title em {
    font-style: normal; color: var(--ap-yellow);
}
.ap-hero__accent {
    width: 48px; height: 3px;
    background: var(--ap-yellow); margin: 20px 0;
}
.ap-hero__desc {
    font-family: var(--ap-font); font-size: 16px; line-height: 1.75;
    color: var(--ap-text-dim); margin: 0 0 32px; max-width: 480px;
}
.ap-hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Buttons */
.ap-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; font-family: var(--ap-font);
    font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
    text-decoration: none; border-radius: var(--ap-radius);
    border: 2px solid transparent; cursor: pointer;
    transition: background var(--ap-trans), transform var(--ap-trans), border-color var(--ap-trans), color var(--ap-trans);
}
.ap-btn svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform var(--ap-trans); }
.ap-btn:hover svg { transform: translateX(3px); }
.ap-btn--yellow { background: var(--ap-yellow); color: var(--ap-charcoal); border-color: var(--ap-yellow); }
.ap-btn--yellow:hover { background: #EABC00; transform: translateY(-1px); }
.ap-btn--outline { background: transparent; color: var(--ap-charcoal); border-color: var(--ap-border); }
.ap-btn--outline:hover { border-color: var(--ap-charcoal); color: var(--ap-charcoal); }
.ap-btn--outline-dark { background: transparent; color: var(--ap-charcoal); border-color: var(--ap-border); }
.ap-btn--outline-dark:hover { border-color: var(--ap-charcoal); }

/* Hero right: image */
.ap-hero__img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.ap-hero__img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}

/* ══════════════════════════════════════════════════════
   APPLICATION CARDS GRID
══════════════════════════════════════════════════════ */
.ap-grid-section {
    background: #fff;
    padding: 80px 0;
}
.ap-grid-section__head {
    display: flex; align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px; gap: 32px;
}
.ap-grid-section__head-link {
    font-family: var(--ap-font); font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ap-charcoal); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; transition: gap var(--ap-trans);
}
.ap-grid-section__head-link:hover { gap: 10px; }
.ap-grid-section__head-link svg { width: 12px; height: 12px; }

.ap-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ap-card {
    display: block; text-decoration: none;
    border: 1px solid var(--ap-border);
    border-radius: 10px; overflow: hidden;
    background: #fff;
    transition: border-color var(--ap-trans), box-shadow var(--ap-trans), transform var(--ap-trans);
}
.ap-card:hover {
    border-color: var(--ap-yellow);
    box-shadow: 0 8px 32px rgba(255,205,17,0.12);
    transform: translateY(-3px);
}

.ap-card__img {
    height: 180px; overflow: hidden; position: relative;
    background: var(--ap-gray);
}
.ap-card__img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.55s var(--ap-ease);
}
.ap-card:hover .ap-card__img img { transform: scale(1.04); }

.ap-card__img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28,28,28,0.5) 0%, transparent 50%);
}
.ap-card__tag {
    position: absolute; top: 14px; left: 14px;
    font-family: var(--ap-font); font-size: 9px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    background: var(--ap-yellow); color: var(--ap-charcoal);
    padding: 4px 10px; border-radius: 3px;
}
.ap-card__img--placeholder {
    display: flex; align-items: center; justify-content: center;
}
.ap-card__img--placeholder svg {
    width: 48px; height: 48px; color: rgba(28,28,28,0.15);
}

.ap-card__body { padding: 24px 24px 28px; }
.ap-card__icon {
    width: 44px; height: 44px;
    background: rgba(255,205,17,0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #a07800; margin-bottom: 14px;
}
.ap-card__icon svg { width: 22px; height: 22px; }
.ap-card__name {
    font-family: var(--ap-font); font-size: 17px; font-weight: 700;
    color: var(--ap-charcoal); margin: 0 0 8px; line-height: 1.3;
}
.ap-card__desc {
    font-family: var(--ap-font); font-size: 13.5px; line-height: 1.65;
    color: var(--ap-text-dim); margin: 0 0 18px;
}
.ap-card__machines {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px;
}
.ap-card__machine-tag {
    font-family: var(--ap-font); font-size: 10px; font-weight: 600;
    letter-spacing: 0.06em;
    background: var(--ap-gray); color: var(--ap-charcoal);
    padding: 4px 10px; border-radius: 4px;
    border: 1px solid var(--ap-border);
}
.ap-card__link {
    font-family: var(--ap-font); font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ap-charcoal);
    display: flex; align-items: center; gap: 6px;
    transition: gap var(--ap-trans);
}
.ap-card:hover .ap-card__link { gap: 10px; color: #a07800; }
.ap-card__link svg { width: 12px; height: 12px; }

/* ══════════════════════════════════════════════════════
   MACHINES CROSS-REF SECTION
══════════════════════════════════════════════════════ */
.ap-machines {
    background: var(--ap-gray);
    padding: 80px 0;
    border-top: 3px solid var(--ap-yellow);
}
.ap-machines__head { text-align: center; margin-bottom: 56px; }
.ap-machines__head .ap-section-title { color: var(--ap-charcoal); }
.ap-machines__head .ap-section-sub { color: var(--ap-text-dim); margin: 0 auto; }

.ap-machines__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.ap-machine-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: 10px; padding: 28px 28px 32px;
    transition: border-color var(--ap-trans), background var(--ap-trans);
}
.ap-machine-card:hover {
    border-color: var(--ap-yellow);
    background: var(--ap-white);
}
.ap-machine-card__series {
    font-family: var(--ap-font); font-size: 9px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ap-yellow); margin-bottom: 8px; display: block;
}
.ap-machine-card__name {
    font-family: var(--ap-font); font-size: 22px; font-weight: 800;
    color: var(--ap-charcoal); margin: 0 0 10px;
}
.ap-machine-card__desc {
    font-family: var(--ap-font); font-size: 13.5px; line-height: 1.65;
    color: var(--ap-text-dim); margin: 0 0 20px;
}
.ap-machine-card__apps {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px;
}
.ap-machine-card__app {
    font-family: var(--ap-font); font-size: 10px; font-weight: 600;
    background: rgba(255,205,17,0.15); color: #a07800;
    padding: 4px 10px; border-radius: 4px;
    border: 1px solid rgba(255,205,17,0.3);
}
.ap-machine-card__cta {
    font-family: var(--ap-font); font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ap-charcoal); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    transition: gap var(--ap-trans);
}
.ap-machine-card__cta:hover { gap: 10px; }
.ap-machine-card__cta svg { width: 12px; height: 12px; }

/* ══════════════════════════════════════════════════════
   IMPACT STATS
══════════════════════════════════════════════════════ */
.ap-stats {
    background: var(--ap-yellow);
    padding: 60px 0;
}
.ap-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.ap-stat {
    text-align: center;
    padding: 16px 24px;
    border-right: 1px solid rgba(28,28,28,0.12);
}
.ap-stat:last-child { border-right: none; }
.ap-stat__num {
    font-family: var(--ap-font); font-size: 42px; font-weight: 800;
    color: var(--ap-charcoal); display: block; line-height: 1;
    letter-spacing: -0.02em;
}
.ap-stat__label {
    font-family: var(--ap-font); font-size: 11px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(28,28,28,0.6); margin-top: 8px; display: block;
}

/* ══════════════════════════════════════════════════════
   LOGOS SECTION (shared hp- classes, same as homepage)
══════════════════════════════════════════════════════ */
.ap-logos-section {
    border-top: 1px solid #f0f0f0;
}

/* ══════════════════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════════════════ */
.ap-cta {
    background: #1C1C1C;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.ap-cta__inner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 48px;
}
.ap-cta__title {
    font-family: var(--ap-font); font-size: 34px; font-weight: 800;
    color: #ffffff; margin: 0 0 10px; line-height: 1.2;
}
.ap-cta__title em { font-style: normal; color: rgba(255,255,255,0.45); }
.ap-cta__desc {
    font-family: var(--ap-font); font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,0.55); margin: 0; max-width: 480px;
}
.ap-cta__actions { display: flex; gap: 12px; flex-shrink: 0; align-items: center; }
/* Override btn colours inside dark CTA */
.ap-cta .ap-btn--outline {
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.2);
}
.ap-cta .ap-btn--outline:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ap-inner { padding: 0 32px; }
    .ap-hero__title { font-size: 42px; }
    .ap-cards { grid-template-columns: repeat(2, 1fr); }
    .ap-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .ap-stat { border-right: none; border-bottom: 1px solid rgba(28,28,28,0.12); }
    .ap-stat:nth-child(2n) { border-bottom: none; }
}
@media (max-width: 768px) {
    .ap-hero__inner { grid-template-columns: 1fr; }
    .ap-hero__img-wrap { height: 240px; }
    .ap-hero { padding: 56px 0 52px; }
    .ap-hero__title { font-size: 34px; }
    .ap-machines__grid { grid-template-columns: 1fr; }
    .ap-cta__inner { flex-direction: column; text-align: center; }
    .ap-cta__desc { margin: 0 auto; }
}
@media (max-width: 600px) {
    .ap-inner { padding: 0 20px; }
    .ap-cards { grid-template-columns: 1fr; }
    .ap-grid-section__head { flex-direction: column; align-items: flex-start; }
    .ap-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Hero summary panel (replaces old mosaic) ── */
.ap-hero__summary {
    background: #ffffff;
    border: 1px solid rgba(28,28,28,0.09);
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}
.ap-hero__summary-label {
    display: block;
    font-family: var(--ap-font, 'Poppins', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a07800;
    margin-bottom: 20px;
}
.ap-hero__summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.ap-hero__summary-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f9f9f7;
    border: 1px solid rgba(28,28,28,0.09);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--ap-font, 'Poppins', sans-serif);
    font-size: 12px;
    font-weight: 600;
    color: #1C1C1C;
}
.ap-hero__summary-tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #a07800;
}
.ap-hero__summary-note {
    font-family: var(--ap-font, 'Poppins', sans-serif);
    font-size: 11px;
    color: #888;
    margin: 0;
    line-height: 1.6;
}

/* ── Marquee logos (same as homepage/products) ── */
.hp-logos-section {
    background: #ffffff;
    padding: 56px 0 60px;
    overflow: hidden;
    border-top: 1px solid #f0f0f0;
}
.hp-logos-block { margin-bottom: 40px; }
.hp-logos-block:last-child { margin-bottom: 0; }
.hp-logos-block__eyebrow {
    font-family: var(--ap-font, 'Poppins', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 18px;
    text-align: center;
}
.hp-marquee-wrap {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    padding: 8px 0;
}
.hp-marquee-strip {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
}
.hp-marquee-wrap--ltr .hp-marquee-strip { animation: hp-ltr 22s linear infinite; }
.hp-marquee-wrap--rtl .hp-marquee-strip { animation: hp-rtl 26s linear infinite; }
@keyframes hp-ltr { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes hp-rtl { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.hp-marquee-wrap:hover .hp-marquee-strip { animation-play-state: paused; }
.hp-marquee-wrap--ltr .hp-marquee-strip img { height: 80px; width: auto; max-width: 180px; object-fit: contain; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.hp-marquee-wrap--rtl .hp-marquee-strip img { height: 64px; width: auto; max-width: 150px; object-fit: contain; display: inline-block; vertical-align: middle; flex-shrink: 0; filter: grayscale(0.4) opacity(0.75); transition: filter 0.2s ease; }
.hp-marquee-wrap--rtl .hp-marquee-strip img:hover { filter: none; }
.hp-logos-block--clients { padding-top: 40px; border-top: 1px solid #f0f0f0; }

@media (max-width: 768px) {
    .ap-hero__summary { padding: 24px 20px; }
    .ap-hero__summary-tags { gap: 8px; }
    .ap-hero__summary-tag { font-size: 11px; padding: 6px 10px; }
}

/* ══════════════════════════════════════════════════════
   CLIENT LOGO CAROUSEL (hp-caro-*)
   Used in: "Our clients" / "Clients in this sector"
══════════════════════════════════════════════════════ */
.hp-caro-viewport {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.hp-caro-track {
    display: flex;
    will-change: transform;
}
.hp-caro-slide {
    flex: 0 0 calc(100% / 8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
}
.hp-caro-slide img {
    height: 56px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    filter: grayscale(0.4) opacity(0.75);
    transition: filter 0.2s ease;
}
.hp-caro-slide img:hover { filter: none; }
.hp-caro-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.hp-caro-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(28,28,28,0.15);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hp-caro-dot.is-active {
    background: #FFCD11;
    transform: scale(1.25);
}
@media (max-width: 768px) {
    .hp-caro-slide { flex: 0 0 calc(100% / 4); }
}
@media (max-width: 480px) {
    .hp-caro-slide { flex: 0 0 calc(100% / 3); }
}

