/* ================================================================
   Cross-industry UI/UX improvements layer.
   Loaded AFTER each industry's own /css/industries-<slug>.css so it
   stacks on top of the agri-light-page design system without
   replacing it. Body opt-in via the existing `agri-light-page` class
   so nothing here leaks to other parts of the site.
   ================================================================ */

body.agri-light-page {
    --ind-red: #E63946;
    --ind-red-dark: #b91c2c;
}

/* ============================================================
   TRUST STRIP — white card on the dark page background.
   Inserted just below the hero. Compact, auto-marquee, heading
   uses the .agri-section__title typography to match other H2s.
   ============================================================ */
body.agri-light-page .ind-trust-strip,
body.healthcare-page .ind-trust-strip {
    background: #ffffff !important;
    padding: 28px 0 32px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
body.agri-light-page .ind-trust-strip .container,
body.healthcare-page .ind-trust-strip .container {
    background: transparent !important;
}
body.agri-light-page .ind-trust-strip__title,
body.healthcare-page .ind-trust-strip__title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important;
    font-weight: 800 !important;
    text-align: center;
    margin: 0 0 18px !important;
    padding: 0 !important;
    letter-spacing: -0.01em;
    line-height: 1.25 !important;
}
body.agri-light-page .ind-trust-strip__title .accent,
body.healthcare-page .ind-trust-strip__title .accent {
    background: linear-gradient(135deg, var(--ind-red) 0%, var(--ind-red-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}
body.agri-light-page .ind-trust-strip__marquee,
body.healthcare-page .ind-trust-strip__marquee {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
body.agri-light-page .ind-trust-strip__track,
body.healthcare-page .ind-trust-strip__track {
    display: flex !important;
    gap: 60px;
    width: max-content;
    align-items: center;
    padding: 0 !important;
    animation: indMarquee 38s linear infinite;
}
body.agri-light-page .ind-trust-strip__marquee:hover .ind-trust-strip__track,
body.healthcare-page .ind-trust-strip__marquee:hover .ind-trust-strip__track {
    animation-play-state: paused;
}
body.agri-light-page .ind-trust-strip__track img,
body.healthcare-page .ind-trust-strip__track img {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
body.agri-light-page .ind-trust-strip__track img:hover,
body.healthcare-page .ind-trust-strip__track img:hover {
    transform: scale(1.08);
}
@keyframes indMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   CLICKABLE STORY CARD — when the <article> is upgraded to <a>,
   the whole card becomes a link. Hover lifts the card, zooms the
   image, and animates the "Explore Full Case Study" pill.
   ============================================================ */
body.agri-light-page a.agri-story-card {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column;
    background: #0f1729 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s ease, border-color 0.4s ease;
}
body.agri-light-page a.agri-story-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 57, 70, 0.50) !important;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(230, 57, 70, 0.20);
}
body.agri-light-page a.agri-story-card .agri-story-card__media {
    overflow: hidden;
}
body.agri-light-page a.agri-story-card .agri-story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
body.agri-light-page a.agri-story-card:hover .agri-story-card__media img {
    transform: scale(1.06);
}
body.agri-light-page a.agri-story-card .agri-story-card__body {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
    flex: 1;
}
body.agri-light-page a.agri-story-card .agri-story-card__title {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}
body.agri-light-page a.agri-story-card .agri-story-card__desc {
    color: #94a3b8 !important;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 18px;
}

/* "Explore Full Case Study" CTA — pill button at card bottom */
body.agri-light-page .agri-story-card__cta {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--ind-red) 0%, var(--ind-red-dark) 100%);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    align-self: flex-start;
    box-shadow: 0 10px 22px rgba(230, 57, 70, 0.30);
    transition: gap 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
body.agri-light-page a.agri-story-card:hover .agri-story-card__cta {
    gap: 14px;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(230, 57, 70, 0.42);
}
body.agri-light-page .agri-story-card__cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.25s ease;
}
body.agri-light-page a.agri-story-card:hover .agri-story-card__cta svg {
    transform: translateX(3px);
}

/* Backwards compat: if any page still has the old text-link CTA, hide it
   (the upgraded markup uses .agri-story-card__cta instead). */
body.agri-light-page a.agri-story-card .agri-story-card__link {
    display: none !important;
}

/* ============================================================
   FINAL CTA banner spacing tweak — add a bit more breathing room
   when the agri-cta-banner is the last section, so it feels
   premium and spacious rather than crammed against the footer.
   ============================================================ */
body.agri-light-page .agri-cta-banner {
    padding: 64px 56px !important;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    body.agri-light-page .agri-cta-banner {
        padding: 48px 28px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.agri-light-page .ind-trust-strip__track,
    body.healthcare-page .ind-trust-strip__track { animation: none !important; }
}
