/*
 * Trinity CMS — Page extras stylesheet
 *
 * Shared styling for hero slider + case-studies + testimonials
 * sections used on industries.php and products.php (and reusable
 * by other pages that need the same pattern).
 *
 * All classes are prefixed with `px-` to avoid clashing with the
 * existing global styles in style.css.
 *
 * Uses the existing CSS variables from :root in style.css —
 * --primary-color, --accent-color, --secondary-color, --text-light,
 * --background-light. Brand changes propagate automatically.
 */

/* =====================================================================
   1. HERO SLIDER
   ===================================================================== */
/* The global "section { padding: 80px 0; }" rule in style.css would otherwise
   leave a white gap above and below the hero. Override to flush against nav. */
.px-hero {
    position: relative;
    padding: 0;
}

.px-hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.px-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
    color: #fff;
}
.px-hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.px-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}
.px-hero-slide .container { position: relative; z-index: 2; }
.px-hero-inner { max-width: 720px; }

.px-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 20px;
}
.px-hero-slide h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 18px;
    color: #fff;
}
.px-hero-slide p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 28px;
    opacity: 0.95;
    max-width: 600px;
}
.px-hero-cta { padding: 14px 28px; font-size: 1rem; }
.px-hero-cta i { margin-left: 8px; }

/* ============================================================
   IMAGE-ONLY hero modifier
   Used on index / industries / products. Each slide is a pure
   full-width image with NO overlay text/eyebrow/CTA button.
   Optionally each slide can be wrapped in a clickable link
   (.px-hero-link) — the entire image becomes the click target.
   ============================================================ */
.px-hero--images-only .px-hero-slide {
    /* Reset overlay-text styling — no flex centering, no white text */
    align-items: stretch;
    color: inherit;
    /* Fallback colour if the image fails to load — prevents an invisible
       520px-tall void on the page */
    background-color: #1a1a1a;
}
.px-hero--images-only .px-hero-slide::before {
    /* Remove the dark overlay that exists to make overlay text legible */
    display: none;
}
.px-hero--images-only .px-hero-link {
    /* Full-slide click target — no visible link styling */
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}
.px-hero--images-only .px-hero-link:focus-visible {
    /* Keyboard accessibility — show a focus ring inside the slide */
    outline: 3px solid #fff;
    outline-offset: -6px;
}

/* Slider arrows */
.px-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 5;
    transition: background 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(6px);
}
.px-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}
.px-arrow--prev { left: 24px; }
.px-arrow--next { right: 24px; }

/* Slider dots */
.px-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.px-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}
.px-dot.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

/* =====================================================================
   2. SECTION HEADING
   ===================================================================== */
.px-section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}
.px-section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}
.px-section-heading h2 {
    font-size: 2.25rem;
    margin: 0 0 14px;
    color: var(--secondary-color);
}
.px-section-heading p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}
.px-section-heading--light .px-section-eyebrow { color: var(--accent-color); }
.px-section-heading--light h2 { color: #fff; }
.px-section-heading--light p  { color: rgba(255, 255, 255, 0.8); }

/* =====================================================================
   3. INDUSTRIES / PRODUCTS GRID WRAPPER
   ===================================================================== */
.px-grid-section {
    padding: 90px 0;
    background: #fff;
}
.px-empty-note {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

/* =====================================================================
   4. CASE STUDIES
   ===================================================================== */
.px-cases-section {
    padding: 90px 0;
    background: var(--background-light);
}
.px-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.px-case-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.px-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}
.px-case-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.px-case-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.px-case-client { display: flex; flex-direction: column; }
.px-case-client strong {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 2px;
}
.px-case-client span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.px-case-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0 0 12px;
}
.px-case-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 20px;
    flex-grow: 1;
}
.px-case-metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.px-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}
.px-metric-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================================
   5. TESTIMONIALS
   ===================================================================== */
.px-testimonials {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.px-testimonials::before,
.px-testimonials::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.07;
    pointer-events: none;
}
.px-testimonials::before {
    background: var(--primary-color);
    top: -150px; left: -150px;
}
.px-testimonials::after {
    background: var(--accent-color);
    bottom: -150px; right: -150px;
}

.px-testimonial-carousel {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}
.px-testimonial-track {
    position: relative;
    min-height: 360px;
}
.px-testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 50px 50px 40px;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    backdrop-filter: blur(8px);
}
.px-testimonial-card.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.px-quote-mark {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.35;
}
.px-rating {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.25);
}
.px-rating .is-filled { color: var(--accent-color); }
.px-quote {
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    border: 0;
    padding: 0;
}
.px-author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.px-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}
.px-author-meta strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2px;
}
.px-author-meta span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}
.px-testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}
.px-testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}
.px-testimonial-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.px-testimonial-dots { display: flex; gap: 8px; }
.px-testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}
.px-testimonial-dot.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

/* =====================================================================
   6. CTA BAND
   ===================================================================== */
.px-cta-band {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    text-align: center;
}
.px-cta-band h2 {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 12px;
}
.px-cta-band p {
    font-size: 1.1rem;
    margin: 0 0 28px;
    opacity: 0.95;
}
.px-cta-band .btn-primary {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    padding: 14px 32px;
}
.px-cta-band .btn-primary:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}
.px-cta-band .btn-primary i { margin-left: 8px; }

/* =====================================================================
   7. PRODUCTS-SPECIFIC GRID
   ===================================================================== */
.px-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.px-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 32px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.px-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}
.px-product-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.px-product-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 0 0 10px;
}
.px-product-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 20px;
    flex-grow: 1;
}
.px-product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}
.px-product-features li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
}
.px-product-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 0.8rem;
}
.px-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}
.px-product-link:hover { gap: 10px; }
.px-product-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 99px;
    font-weight: 600;
}

/* =====================================================================
   8. ABOUT — split-layout intro (text + visual)
   ===================================================================== */
.px-about-intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}
.px-about-intro-text .px-section-eyebrow {
    text-align: left;
    margin-bottom: 14px;
}
.px-about-intro-text h2 {
    font-size: 2.25rem;
    color: var(--secondary-color);
    margin: 0 0 22px;
    line-height: 1.2;
}
.px-about-intro-text .px-lead {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.7;
    margin: 0 0 18px;
    font-weight: 500;
}
.px-about-intro-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 24px;
}
.px-about-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.px-about-cta-row .btn-primary i { margin-left: 8px; }

.px-about-intro-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}
.px-about-badge {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(207, 75, 58, 0.25);
}
.px-about-badge-num {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}
.px-about-badge-num sup {
    font-size: 2rem;
    vertical-align: super;
    margin-left: 4px;
}
.px-about-badge-label {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    opacity: 0.95;
}
.px-about-rating {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.px-about-rating-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 6px;
}
.px-about-rating-num span {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}
.px-about-rating .px-rating {
    margin: 8px 0 6px;
    color: rgba(0,0,0,0.15);
}
.px-about-rating-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
}

/* =====================================================================
   9. ABOUT — three pillars
   ===================================================================== */
.px-pillars-section {
    padding: 90px 0;
    background: var(--background-soft);
}
.px-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.px-pillar-card {
    background: #fff;
    border-radius: 14px;
    padding: 40px 34px 34px;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.px-pillar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.px-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.px-pillar-card:hover::after { transform: scaleX(1); }
.px-pillar-num {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.08;
    line-height: 1;
}
.px-pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 22px;
}
.px-pillar-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 0 0 12px;
}
.px-pillar-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* =====================================================================
   10. ABOUT — values / mission / vision cards
   ===================================================================== */
.px-vmv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.px-vmv-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 36px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.px-vmv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}
.px-vmv-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
}
.px-vmv-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 0 0 12px;
}
.px-vmv-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* =====================================================================
   11. ABOUT — stats counter band
   ===================================================================== */
.px-stats-section {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.px-stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.08;
    pointer-events: none;
}
.px-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}
.px-stat-item {
    text-align: center;
    position: relative;
}
.px-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.px-stat-value {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}
.px-stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.75);
}

/* =====================================================================
   12. ABOUT — leadership profile cards
   ===================================================================== */
.px-leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.px-leader-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.px-leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}
.px-leader-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.px-leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.px-leader-initials {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.px-leader-body {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.px-leader-body h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin: 0 0 4px;
}
.px-leader-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}
.px-leader-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}
.px-leader-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.px-leader-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.px-leader-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

/* =====================================================================
   13. RESPONSIVE
   ===================================================================== */
@media (max-width: 992px) {
    .px-hero-slider { height: 460px; }
    .px-hero-slide h1 { font-size: 2.2rem; }

    .px-about-intro { grid-template-columns: 1fr; gap: 40px; }
    .px-about-intro-visual { flex-direction: row; }
    .px-about-badge { padding: 30px 20px; }
    .px-about-badge-num { font-size: 3.5rem; }

    .px-pillars-grid { grid-template-columns: 1fr; gap: 20px; }
    .px-vmv-grid { grid-template-columns: 1fr; gap: 20px; }

    .px-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .px-stat-item:nth-child(2)::after { display: none; }
    .px-stat-value { font-size: 2.6rem; }
}
@media (max-width: 768px) {
    .px-hero-slider { height: 480px; }
    .px-hero-slide h1 { font-size: 1.75rem; }
    .px-hero-slide p { font-size: 1rem; }
    .px-arrow { width: 40px; height: 40px; }
    .px-arrow--prev { left: 12px; }
    .px-arrow--next { right: 12px; }

    .px-grid-section,
    .px-cases-section,
    .px-pillars-section,
    .px-testimonials { padding: 60px 0; }
    .px-section-heading h2 { font-size: 1.65rem; }
    .px-about-intro-text h2 { font-size: 1.65rem; }

    .px-testimonial-card { padding: 36px 26px 30px; }
    .px-quote { font-size: 1rem; }
    .px-quote-mark { font-size: 2rem; top: 20px; right: 24px; }
    .px-testimonial-track { min-height: 420px; }

    .px-cta-band h2 { font-size: 1.5rem; }
    .px-case-card { padding: 24px; }

    .px-about-intro-visual { flex-direction: column; }
    .px-stats-section { padding: 50px 0; }
    .px-stat-item::after { display: none !important; }
}
@media (max-width: 480px) {
    .px-cases-grid,
    .px-products-grid,
    .px-leaders-grid { grid-template-columns: 1fr; }
    .px-stats-grid { gap: 30px 16px; }
    .px-stat-value { font-size: 2.2rem; }
    .px-pillar-num { font-size: 3rem; }
}

/* =====================================================================
   9. CLIENT LOGO SCROLLER (Marquee) — Used on homepage
   ===================================================================== */
.px-clients-strip {
    padding: 60px 0 70px;
    background: var(--background-light);
    overflow: hidden;
    /* Override global section { padding: 80px 0 } subtly (we want tight spacing) */
}
.px-clients-eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 30px;
}
.px-clients-marquee {
    width: 100%;
    overflow: hidden;
    /* Fade edges so logos scroll in/out softly instead of hard-cutting */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.px-clients-track {
    display: flex;
    gap: 60px;
    width: max-content;
    /* Track contains 2 copies of the logo set; animate -50% to loop seamlessly */
    animation: px-marquee 40s linear infinite;
}
.px-clients-marquee:hover .px-clients-track { animation-play-state: paused; }
@keyframes px-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.px-client-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 180px;
    justify-content: center;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.px-client-logo:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.px-client-logo i { font-size: 1.5rem; color: var(--primary-color); }
.px-client-logo img { max-height: 40px; max-width: 140px; object-fit: contain; }

@media (max-width: 768px) {
    .px-clients-strip { padding: 40px 0 50px; }
    .px-clients-track { gap: 30px; animation-duration: 25s; }
    .px-client-logo { min-width: 140px; padding: 10px 16px; font-size: 0.85rem; }
}

/* =====================================================================
   10. HOMEPAGE HERO TIGHTENING
   The global "section { padding: 80px 0 }" rule applies even though
   index.php has only the hero at top. .px-hero already overrides this
   to padding:0 — no further work needed here, just re-asserting.
   ===================================================================== */

/* =====================================================================
   ERP Excellence Hero — replaces the homepage slider
   Two-column desktop layout (headline + tiles | ERP hub diagram)
   collapses to single-column on tablet/phone. Bottom red trust strip.
   ===================================================================== */
.erp-hero {
    position: relative;
    background:
        linear-gradient(110deg, #ffffff 0%, #ffffff 50%, #f4f6fa 100%);
 background-image: url("../images/logo/Intro_BG.jpg");
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
    padding: 60px 0 0;
    overflow: hidden;
}
.erp-hero::before {
    /* Subtle skyline silhouette behind the right column. Pure CSS so we
       don't depend on any image asset — works out-of-the-box. */
    content: '';
    position: absolute;
    inset: auto 0 90px 0;
    height: 240px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(20, 30, 60, 0.05) 100%);
    pointer-events: none;
}

.erp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 500px;
}

/* ---- LEFT COLUMN ---- */
.erp-hero-title {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.12;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.erp-hero-accent { color: #cf4b3a; }
.erp-hero-rule {
    display: block;
    width: 80px;
    height: 4px;
    background: #cf4b3a;
    margin: 0 0 18px;
    border-radius: 2px;
}
.erp-hero-lede {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #444;
    max-width: 540px;
    margin: 0 0 36px;
}
.erp-hero-lede strong {
    color: #cf4b3a;
    font-weight: 600;
}

/* ---- 5 SERVICE TILES (left column bottom) ---- */
.erp-tiles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid #e7e7e7;
}
.erp-tiles > li {
    border-right: 1px solid #e7e7e7;
}
.erp-tiles > li:last-child { border-right: 0; }

.erp-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 24px 10px 18px;
    color: inherit;
    transition: transform 0.18s ease, background 0.18s ease;
}
.erp-tile:hover {
    background: #fff5f3;
    transform: translateY(-3px);
}
.erp-tile-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #f1d5d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cf4b3a;
    font-size: 1.4rem;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(207, 75, 58, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.erp-tile:hover .erp-tile-icon {
    border-color: #cf4b3a;
    box-shadow: 0 4px 14px rgba(207, 75, 58, 0.18);
}
.erp-tile h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #cf4b3a;
    margin: 0 0 8px;
}
.erp-tile p {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #555;
    margin: 0;
    max-width: 180px;
}

/* ---- RIGHT COLUMN: ERP HUB DIAGRAM ---- */
.erp-hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.erp-hub {
    position: relative;
    /* Container must be large enough to fit the nodes (sized by node-size)
       AROUND the hub at distance --hub-radius from centre. So container
       diameter = 2 * (radius + node_size/2) plus a few px breathing room. */
    width: min(480px, 100%);
    aspect-ratio: 1 / 1;
    --hub-radius: 180px;        /* distance from centre to each node's centre */
    --hub-node-size: 84px;
    /* Padding gives the nodes' labels room to bleed slightly without being
       clipped on extreme-edge nodes. */
}

/* Dashed orbit ring — sized so it passes through the CENTRES of the nodes.
   The ring's radius (in px) needs to equal --hub-radius. With box-sizing
   border-box, inset: calc(50% - var(--hub-radius)) places the ring's outer
   edge at exactly the node-centre distance. */
.erp-hub::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--hub-radius) * 2);
    height: calc(var(--hub-radius) * 2);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px dashed rgba(207, 75, 58, 0.5);
    background: radial-gradient(circle at center, rgba(207,75,58,0.04) 0%, transparent 70%);
}
/* Inner solid ring — half the radius, decorative */
.erp-hub::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--hub-radius) * 1.05);
    height: calc(var(--hub-radius) * 1.05);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(207, 75, 58, 0.25);
}

/* Center disc */
.erp-hub-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 46%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 16px;
}
.erp-hub-center-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #cf4b3a;
    line-height: 1;
    letter-spacing: 0.02em;
}
.erp-hub-center-sub {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.18em;
    margin: 4px 0 10px;
}
.erp-hub-center-tag {
    font-size: 0.7rem;
    color: #777;
    line-height: 1.4;
    font-weight: 500;
}

/* Module nodes — positioned around the centre using --angle */
.erp-hub-node {
    position: absolute;
    top: 50%; left: 50%;
    /* Math: rotate around origin, translate out by --hub-radius, then rotate back
       so the node itself stays upright. Negative --hub-radius keeps the icon visible. */
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translate(var(--hub-radius))
        rotate(calc(-1 * var(--angle)));
    width: var(--hub-node-size);
    height: var(--hub-node-size);
    border-radius: 50%;
    background: #cf4b3a;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(207, 75, 58, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    z-index: 3;
}
.erp-hub-node i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}
.erp-hub-node span {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}
.erp-hub-node:hover {
    background: #b03e30;
    box-shadow: 0 6px 20px rgba(207, 75, 58, 0.55);
    /* Keep angle position but pop slightly outward */
    transform:
        translate(-50%, -50%)
        rotate(var(--angle))
        translate(calc(var(--hub-radius) + 6px))
        rotate(calc(-1 * var(--angle)))
        scale(1.06);
}
.erp-hub-node:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ---- BOTTOM RED TRUST STRIP ---- */
.erp-hero-stripe {
    margin-top: 48px;
    background: linear-gradient(90deg, #cf4b3a 0%, #b03e30 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.erp-hero-stripe::after {
    /* faint dotted texture on the right */
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 30%;
    background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.6;
    pointer-events: none;
}
.erp-hero-stripe-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 22px 0;
    position: relative;
    z-index: 1;
}
.erp-hero-stripe-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255,255,255,0.25);
    padding: 6px 10px;
    transition: opacity 0.18s ease;
}
.erp-hero-stripe-item:last-child { border-right: 0; }
.erp-hero-stripe-item i {
    font-size: 1.4rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
}
.erp-hero-stripe-item:hover { opacity: 0.85; }

/* ---- RESPONSIVE BREAKPOINTS ---- */
@media (max-width: 992px) {
    .erp-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .erp-hero-right {
        min-height: 420px;
        order: -1;  /* show diagram above text on tablet */
    }
    .erp-tiles { grid-template-columns: repeat(3, 1fr); }
    .erp-tiles > li:nth-child(3) { border-right: 0; }
    .erp-tiles > li:nth-child(n+4) {
        border-top: 1px solid #e7e7e7;
    }
    .erp-tiles > li:nth-child(4) { border-right: 1px solid #e7e7e7; }
}

@media (max-width: 700px) {
    .erp-hero { padding: 36px 0 0; }
    .erp-hero-title { font-size: 1.65rem; }
    .erp-hero-lede { font-size: 0.95rem; }
    .erp-tiles { grid-template-columns: repeat(2, 1fr); }
    .erp-tiles > li {
        border-right: 1px solid #e7e7e7 !important;
        border-bottom: 1px solid #e7e7e7;
    }
    .erp-tiles > li:nth-child(2n) { border-right: 0 !important; }
    .erp-hub {
        --hub-radius: 150px;
        --hub-node-size: 64px;
    }
    .erp-hub-node i { font-size: 1.05rem; }
    .erp-hub-node span { font-size: 0.45rem; }
    .erp-hero-stripe-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .erp-hero-stripe-item {
        border-right: 0 !important;
        justify-content: flex-start;
        padding-left: 18px;
    }
}

@media (max-width: 460px) {
    .erp-hub {
        --hub-radius: 120px;
        --hub-node-size: 54px;
    }
    .erp-hub-center-tag { display: none; }
}

/* =====================================================================
   Anchor scroll offset
   The site header is position:sticky; jumping to #finance / #hcm / etc.
   would land the target under the header. scroll-margin-top pushes the
   browser's scroll-to position down by ~140px so the heading is fully
   visible after the jump. Applies to all anchor-able cards on service
   pages — pillar cards (the "how we deliver" phases) and capability
   cards (the per-module deep-link targets from the homepage ERP hub).
   ===================================================================== */
.px-pillar-card[id],
.px-vmv-card[id] {
    scroll-margin-top: 140px;
}

/* When an anchor card receives focus (i.e. just been scrolled to via
   a #fragment), give it a brief visual cue so the user can see where
   they landed. The :target pseudo-class is built into CSS for this. */
.px-pillar-card:target,
.px-vmv-card:target {
    box-shadow: 0 0 0 3px #cf4b3a, 0 8px 24px rgba(207, 75, 58, 0.18);
    transition: box-shadow 0.4s ease;
}

/* Smooth scroll for same-page anchor jumps. Browsers natively handle
   cross-page #fragment loads (e.g. erp-solutions.php#finance from the
   homepage) with the scroll-margin above; this rule only affects in-page
   jumps. Honours user's "reduce motion" accessibility preference. */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* =====================================================================
   Module detail sections — used on rich service pages (ERP, CRM)
   Each module is a deep-link target from the homepage ERP hub. Layout:
   left column has icon + numbered title + tagline; right column has
   intro paragraph, bullet list, tech-stack pills, and a CTA.
   ===================================================================== */
.px-modules-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfafc 100%);
}
.px-modules-section .px-section-heading {
    margin-bottom: 50px;
}

.px-module {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    scroll-margin-top: 140px;       /* clear the sticky header on anchor jumps */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.px-module:hover {
    box-shadow: 0 6px 28px rgba(207, 75, 58, 0.10);
    transform: translateY(-2px);
}
/* When the user has just scrolled here from the homepage hash link */
.px-module:target {
    box-shadow: 0 0 0 3px #cf4b3a, 0 8px 32px rgba(207, 75, 58, 0.18);
    border-color: #cf4b3a;
}

.px-module-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2.4fr;
    gap: 40px;
    align-items: start;
}

.px-module-head {
    position: relative;
    padding-right: 20px;
}
.px-module-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cf4b3a 0%, #e57161 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(207, 75, 58, 0.25);
}
.px-module-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #cf4b3a;
    background: #fff5f3;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.px-module-head h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.2;
}
.px-module-subtitle {
    font-size: 0.95rem;
    color: #cf4b3a;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.px-module-body {
    color: #444;
}
.px-module-intro {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 20px;
    color: #555;
}
.px-module-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.px-module-bullets li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.55;
    font-size: 0.95rem;
}
.px-module-bullets i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff5f3;
    color: #cf4b3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-top: 3px;
}
.px-module-tech {
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #cf4b3a;
}
.px-module-tech-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 8px;
}
.px-module-tech-pill {
    display: inline-block;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.82rem;
    margin: 3px 4px 3px 0;
    font-weight: 500;
}
.px-module-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #cf4b3a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: gap 0.2s ease;
}
.px-module-cta:hover {
    gap: 14px;
}
.px-module-cta i {
    font-size: 0.85rem;
}

/* Capability-card "jump to module" links */
.px-vmv-jump {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.px-vmv-jump:hover {
    color: #cf4b3a;
}
.px-vmv-jump i {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.px-vmv-jump:hover i {
    opacity: 1;
    transform: translateY(2px);
}

@media (max-width: 800px) {
    .px-modules-section { padding: 50px 0; }
    .px-module { padding: 28px 22px; }
    .px-module-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .px-module-head { padding-right: 0; }
    .px-module-head h3 { font-size: 1.35rem; }
}
