/**
 * Photo Pro Studio — custom.css
 *
 * PURPOSE: Bridge Bootstrap 5 with the existing compiled Tailwind design.
 *
 * IMPORTANT RULE: Do NOT re-declare any variable already set by design.css.
 * design.css uses space-separated HSL format: --primary: 0 100% 47%
 * Tailwind utilities consume them as: background-color: hsl(var(--primary))
 * Re-declaring with hsl() wrapper breaks every color utility → always white/transparent.
 *
 * This file ONLY:
 *   1. Maps Bootstrap tokens to the design tokens (read-only bridge)
 *   2. Adds component styles not in design.css
 *   3. Adds PHP-site-specific helpers
 */

/* ── Bootstrap ↔ Design token bridge ─────────────────────────────────────── */
/*
 * design.css already sets :root { ... }
 * We translate those to Bootstrap's expected format here.
 * We use computed values (no variables referencing variables) to be safe.
 */
:root {
    /* Fonts (supplement design.css — same values, harmless) */
    --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
    --font-sans:    "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

    /* Bootstrap primary → red  (matches --primary: 0 100% 47%) */
    --bs-primary:              #ef0000;
    --bs-primary-rgb:          239, 0, 0;
    --bs-link-color:           #ef0000;
    --bs-link-hover-color:     #c40000;

    /* Bootstrap body → matches design background/foreground */
    --bs-body-font-family:     var(--font-sans);
    --bs-body-color:           hsl(220 15% 10%);   /* --foreground exact value */
    --bs-body-bg:              hsl(0 0% 98%);       /* --background exact value */
    --bs-border-color:         hsl(220 12% 90%);    /* --border exact value     */
    --bs-border-radius:        0.75rem;
    --bs-border-radius-lg:     1rem;
    --bs-border-radius-pill:   50rem;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.min-h-half  { min-height: 65vh; }
.bg-red-50   { background-color: hsl(0deg 75% 96.86%) !important; }

/* ── Hero layout — single flex container, content truly centered ─────────── */
.pps-hero {
    display: flex;
    align-items: center;
    /* height controlled per-page via min-h-screen (index) or min-h-half (others) */
}
.pps-hero-overlay {
    background: linear-gradient(
        100deg,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.25) 60%,
        rgba(0,0,0,.05) 100%
    );
    pointer-events: none;
}
.pps-hero-body {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 80rem;   /* matches site max-width */
    margin: 0 auto;
    padding: 7rem 1.5rem 3rem; /* top = nav(4rem) + extra, bottom = breathing room */
}
body.has-promo-bar .pps-hero-body {
    padding-top: calc(7rem + var(--promo-h));
}
@media (min-width: 768px) {
    .pps-hero-body {
        padding: 7rem 3rem 3rem;
    }
}

/* ── Dark callout card — more internal padding ───────────────────────────── */
.bg-foreground.rounded-3xl {
    padding: 4rem 3.5rem !important;
}
@media (max-width: 639px) {
    .bg-foreground.rounded-3xl {
        padding: 2.5rem 1.5rem !important;
    }
}

/* ── Utilitaires de couleur (icônes nav/menu) — absents du build Tailwind ──── */
.text-primary  { color: hsl(0 100% 47%) !important; }
.text-blue-600 { color:#2563eb !important; }
.text-indigo-600{ color:#4f46e5 !important; }
.text-green-600{ color:#16a34a !important; }
.text-red-600  { color:#dc2626 !important; }
.text-purple-600{ color:#9333ea !important; }
.text-yellow-600{ color:#ca8a04 !important; }
.text-sky-600  { color:#0284c7 !important; }
.text-rose-500 { color:#f43f5e !important; }
.text-violet-400{ color:#a78bfa !important; }
.text-emerald-600{ color:#059669 !important; }
.text-amber-600{ color:#d97706 !important; }
.text-teal-600 { color:#0d9488 !important; }
.text-orange-600{ color:#ea580c !important; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
#main-nav {
    animation: nav-fade-in 0.5s ease both;
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
@keyframes nav-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid hsl(220 12% 90% / .7);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .08) !important;
}
/* Mobile menu always has a solid background */
#mobile-menu {
    background: #fff;
}
/* Hide hero animation column on mobile */
@media (max-width: 1023px) {
    .pps-hero .animation {
        display: none !important;
    }
}

/* On mobile the nav is always opaque — transparent nav over hero images
   makes dark text invisible on small screens */
@media (max-width: 767px) {
    #main-nav {
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid hsl(220 12% 90% / .6);
    }
    /* La barre est blanche sur mobile → forcer texte + icônes en sombre,
       même avec .nav-hero (qui les passe en blanc pour le hero sombre desktop).
       Le bouton rouge (.bg-primary) garde son texte blanc. */
    #main-nav.nav-hero a,
    #main-nav.nav-hero button:not(.bg-primary),
    #main-nav #mobile-menu-btn,
    #main-nav #mobile-menu-btn svg { color: hsl(220 15% 10%) !important; }
}

/* Dropdown panel animation */
.nav-dropdown-menu {
    animation: pps-fade-in .15s ease;
}
@keyframes pps-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Mega menu uses its own centered animation */
@keyframes mega-fade-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dropdown-arrow.rotated { transform: rotate(180deg); }

/* ── Mega menu layout (bracket Tailwind classes won't compile — use real CSS) */
.nav-mega-wrap {
    width: 820px;
}
/* Responsive: prevent overflow on narrower screens */
@media (max-width: 900px) {
    .nav-mega-wrap {
        width: calc(100vw - 32px);
        left: 50% !important;
    }
}
.nav-mega-body {
    display: flex;
    height: 420px;
}
.nav-mega-left {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-right: 1px solid hsl(220 12% 90% / .6);
    padding: 12px 0;
    background: hsl(220 12% 97% / .5);
}
.nav-mega-right {
    flex: 1 1 0;
    position: relative;
    overflow: hidden;
}
/* Each panel scrolls independently if content is tall */
.mega-panel {
    overflow-y: auto;
}

/* Left column — all features link */
.mega-left-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: hsl(220 15% 40%) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}
.mega-left-all-link::before {
    content: '→';
    color: #ef0000;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform .15s ease;
}
.mega-left-all-link:hover {
    color: hsl(220 15% 10%) !important;
    text-decoration: none;
}
.mega-left-all-link:hover::before {
    transform: translateX(3px);
}

/* Right panel components */
.mega-panel-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    background: hsl(0 100% 47% / .08);
    color: #ef0000;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.mega-panel-tags {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}
.mega-panel-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid hsl(220 12% 92%);
    color: hsl(220 15% 40%);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}
.mega-panel-tag::before {
    content: '→';
    color: #ef0000;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform .15s ease;
}
.mega-panel-tag:hover {
    color: hsl(220 15% 10%);
    text-decoration: none;
}
.mega-panel-tag:hover::before {
    transform: translateX(3px);
}
.mega-panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid hsl(220 12% 85%);
    color: hsl(220 15% 10%) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
    letter-spacing: .01em;
}
.mega-panel-cta:hover {
    background: #ef0000;
    border-color: #ef0000;
    color: #fff !important;
    text-decoration: none;
}

/* Mega menu — active tab state */
.mega-tab-active {
    background: #fff;
    color: hsl(220 15% 10%);
    border-right: 2px solid #ef0000;
}
.mega-tab:not(.mega-tab-active):hover {
    background: rgba(255,255,255,.6);
    color: hsl(220 15% 10%);
}

/* Smooth panel transitions — driven by JS class, not auto-play */
.mega-panel {
    opacity: 1;
    display: none;
    position: absolute;
    inset: 0;
    padding: 2rem;
    flex-direction: column;
    justify-content: space-between;
}
.mega-panel:not(.hidden) {
    display: flex;
}
.mega-panel.is-entering {
    animation: pps-fade-in-panel .18s ease both;
}
@keyframes pps-fade-in-panel {
    from { opacity: 0; transform: translateX(6px); }
    to   { opacity: 1; transform: none; }
}

/* Mega menu — keep within viewport on smaller screens */
@media (max-width: 900px) {
    .nav-mega-wrap {
        width: calc(100vw - 2rem);
        left: 0 !important;
    }
}

/* ── Scroll-to-top button ────────────────────────────────────────────────── */
#btn-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
#btn-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Glass card (referenced in several pages) ────────────────────────────── */
.glass-card {
    background:           rgba(255, 255, 255, 0.72);
    border:               1px solid hsl(220 12% 90%);
    backdrop-filter:      blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-card-hover {
    transition: transform .2s ease, box-shadow .2s ease;
}
.glass-card-hover:hover {
    transform:  translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .10);
}

/* ── Bootstrap buttons → match design primary red ────────────────────────── */
.btn-primary,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: #ef0000 !important;
    border-color:     #ef0000 !important;
    color:            #fff    !important;
    border-radius:    var(--bs-border-radius-pill);
}
.btn-primary:hover { background-color: #c40000 !important; border-color: #c40000 !important; }

/* Bootstrap form focus → red ring */
.form-control:focus,
.form-select:focus {
    border-color: #ef0000;
    box-shadow: 0 0 0 .2rem rgba(239, 0, 0, .20);
}

/* Bootstrap card / modal border-radius */
.card          { border-radius: 1rem; }
.modal-content { border-radius: 1.25rem; }

/* ── Inline-style reveal animation (original React app used framer-motion)  */
/* Elements with style="opacity:0" are revealed by JS IntersectionObserver.  */
/* Ensure they start hidden but don't cause layout shift.                     */
[style*="opacity: 0"] {
    will-change: opacity, transform;
}

/* ── AJAX contact form ───────────────────────────────────────────────────── */
#contact-alert { transition: opacity .3s ease; }

/* ── Utility: rounded-full pill links (Tailwind class not in Bootstrap) ──── */
.rounded-full { border-radius: 9999px !important; }

/* ── bg-primary/8 — not generated by Tailwind at this opacity step ──────── */
.bg-primary\/8 { background-color: hsl(0 100% 47% / .08) !important; }

/* ── Promo bar (fixed above nav, dismissable) ──────────────────────────── */
.promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 44px 9px 16px;
    background: #ef0000;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.promo-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.promo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.promo-bar-sparkle {
    font-size: 11px;
    opacity: .8;
    animation: promo-pulse 2s ease-in-out infinite;
}
@keyframes promo-pulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.15); }
}
.promo-bar-msg {
    margin: 0;
    font-weight: 500;
    letter-spacing: .01em;
}
.promo-bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 18px;
    background: #fff;
    color: #ef0000 !important;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, transform .15s ease;
}
.promo-bar-cta:hover {
    background: rgba(255,255,255,.9);
    color: #c40000 !important;
    text-decoration: none;
    transform: translateX(2px);
}
.promo-bar-cta svg {
    transition: transform .2s ease;
}
.promo-bar-cta:hover svg {
    transform: translateX(2px);
}
.promo-bar-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    border-radius: 50%;
    transition: color .2s ease, background .2s ease;
}
.promo-bar-close:hover {
    color: #fff;
    background: rgba(255,255,255,.15);
}

/* Push fixed nav down when promo bar visible — !important needed to beat Tailwind top-0 */
body.has-promo-bar { --promo-h: 38px; }
body.has-promo-bar #main-nav { top: var(--promo-h) !important; }
body.has-promo-bar .pt-32 { padding-top: calc(8rem + var(--promo-h)) !important; }
body.has-promo-bar .pt-24 { padding-top: calc(6rem + var(--promo-h)) !important; }
body.has-promo-bar .pt-40 { padding-top: calc(10rem + var(--promo-h)) !important; }
body.has-promo-bar .pps-hero { padding-top: var(--promo-h) !important; }
body.has-promo-bar .sticky.top-16 { top: calc(4rem + var(--promo-h)) !important; }

@media (max-width: 640px) {
    .promo-bar { font-size: 12px; padding: 8px 38px 8px 12px; }
    .promo-bar-cta { font-size: 11px; padding: 4px 14px; }
    .promo-bar-sparkle { display: none; }
}

/* ── Plateforme de gestion — equal height cards ─────────────────────────── */
.pps-feature-grid {
    align-items: stretch;
}
.pps-feature-grid > a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.pps-feature-grid > a > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pps-feature-grid > a > div > p {
    flex: 1;
}

/* ── Example card (feature pages) ──────────────────────────────────────── */
.pps-example-card {
    background: hsl(202.15deg 45.36% 80.1% / 33%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    width: 100%;
}
.pps-example-card p {
    font-size: 13.5px;
    color: hsl(220 15% 30%);
    line-height: 1.65;
    margin: 0 0 12px;
}
.pps-example-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #ef0000 !important;
    text-decoration: none;
    letter-spacing: .02em;
    transition: gap .15s ease;
}
.pps-example-cta:hover {
    gap: 8px;
    text-decoration: none;
    color: #c40000 !important;
}

/* ── Responsive type scaling ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .text-5xl { font-size: 2.5rem !important; }
    .text-6xl { font-size: 2.75rem !important; }
    .text-7xl { font-size: 3.25rem !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PPS WORKFLOW TIMELINE
   Impressive horizontal timeline (4 steps), vertical on mobile
   ════════════════════════════════════════════════════════════════════════════ */
.pps-workflow-wrap {
    background: linear-gradient(160deg, hsl(0 0% 97%) 0%, hsl(0 0% 99%) 100%);
    padding: 5rem 1.5rem;
    overflow: hidden;
    position: relative;
}
.pps-workflow-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, hsl(0 100% 47% / .15), transparent);
}

.pps-workflow-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}
.pps-workflow-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: hsl(0 100% 47%);
    background: hsl(0 100% 47% / .08);
    border: 1px solid hsl(0 100% 47% / .18);
    border-radius: 50rem;
    padding: .3rem .85rem;
    margin-bottom: 1.25rem;
}
.pps-workflow-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 600;
    font-family: var(--font-display);
    color: hsl(220 15% 10%);
    margin-bottom: .75rem;
    line-height: 1.2;
}
.pps-workflow-header p {
    font-size: .975rem;
    color: hsl(220 10% 45%);
    line-height: 1.65;
}

/* Timeline track */
.pps-workflow-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    gap: 0;
    max-width: 72rem;
    margin: 0 auto;
}

/* The connecting line — runs through center of nodes */
.pps-workflow-track::before {
    content: '';
    position: absolute;
    top: 2.75rem; /* half of node height (88px / 2 = 44px ≈ 2.75rem) */
    left: calc(12.5%);
    right: calc(12.5%);
    height: 2px;
    background: linear-gradient(
        90deg,
        hsl(0 100% 47% / .12),
        hsl(0 100% 47% / .5) 50%,
        hsl(0 100% 47% / .12)
    );
    z-index: 0;
    pointer-events: none;
}

.pps-workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

/* Node circle */
.pps-workflow-node {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid hsl(220 12% 88%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    cursor: default;
}
.pps-workflow-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px hsl(0 100% 47% / .14);
    border-color: hsl(0 100% 47% / .35);
}
.pps-workflow-node i {
    font-size: 1.75rem;
    color: hsl(0 100% 47%);
}

/* Step number badge */
.pps-workflow-num {
    position: absolute;
    top: -.45rem;
    right: -.45rem;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: hsl(0 100% 47%);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(239,0,0,.35);
    line-height: 1;
}

/* Step text */
.pps-workflow-step h3 {
    font-size: .875rem;
    font-weight: 700;
    color: hsl(220 15% 10%);
    margin-bottom: .45rem;
    line-height: 1.35;
}
.pps-workflow-step p {
    font-size: .78rem;
    color: hsl(220 10% 47%);
    line-height: 1.65;
    max-width: 11rem;
    margin: 0 auto;
}

/* ── Tablet: 2×2 grid ─── */
@media (max-width: 767px) {
    .pps-workflow-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
    }
    .pps-workflow-track::before { display: none; }
    .pps-workflow-step p { max-width: none; }
}

/* ── Mobile: vertical ─── */
@media (max-width: 479px) {
    .pps-workflow-track {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pps-workflow-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.25rem;
        padding: 0 0 2.5rem;
    }
    .pps-workflow-node {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .pps-workflow-step p { max-width: none; }
    /* Vertical line */
    .pps-workflow-track::before {
        display: block;
        top: 2.75rem;
        left: 2.75rem;
        right: auto;
        bottom: 2.75rem;
        width: 2px;
        height: auto;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   PPS VITRINE PROBLEM/SOLUTION SECTIONS
   Enhanced alternating sections with tall images and strong CTAs
   ════════════════════════════════════════════════════════════════════════════ */

/* Problem badge */
.pps-problem-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: hsl(0 72% 45%);
    background: hsl(0 80% 97%);
    border: 1px solid hsl(0 72% 88%);
    border-radius: 50rem;
    padding: .3rem .85rem;
    margin-bottom: .75rem;
}
.pps-problem-box {
    background: hsl(0 75% 96.86%);   /* matches text-red-800 card style from vitrine */
    border: 1px solid hsl(0 72% 90%);
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
/* Auto-inject "Le problème" label — matches vitrine page style */
.pps-problem-box::before {
    content: 'Le problème';
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: hsl(0 90% 60%);   /* text-red-500 */
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .4rem;
}
.pps-problem-box p {
    font-size: .875rem;
    color: hsl(0 63% 31%);   /* text-red-800 = #991b1b */
    line-height: 1.65;
    margin: 0;
}

/* Solution section */
.pps-solution-section {
    padding: 0 1.5rem;
}
.pps-solution-row {
    max-width: 75rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 0;
    border-bottom: 1px solid hsl(220 12% 93%);
}
.pps-solution-row:last-child {
    border-bottom: none;
}
.pps-solution-row.pps-reversed .pps-solution-img { order: 2; }
.pps-solution-row.pps-reversed .pps-solution-text { order: 1; }

/* Big image block */
.pps-solution-img {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.12);
}
.pps-solution-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.pps-solution-img:hover img {
    transform: scale(1.03);
}
/* Decorative accent corner */
.pps-solution-img::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: hsl(0 100% 47% / .08);
    pointer-events: none;
}

/* Text side */
.pps-solution-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    color: hsl(220 15% 10%);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.pps-solution-text .pps-lead {
    font-size: 1rem;
    color: hsl(220 10% 40%);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Big CTA button */
.pps-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: hsl(0 100% 47%);
    color: #fff !important;
    font-size: .9375rem;
    font-weight: 600;
    padding: .75rem 2rem;
    border-radius: 50rem;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 6px 24px hsl(0 100% 47% / .3);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    line-height: 1;
}
.pps-cta-primary:hover {
    background: hsl(0 100% 40%);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px hsl(0 100% 47% / .38);
    color: #fff !important;
}
.pps-cta-primary i { font-size: 1.15rem; transition: transform .2s; }
.pps-cta-primary:hover i { transform: translateX(3px); }

/* Secondary ghost CTA */
.pps-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: hsl(0 100% 47%) !important;
    font-size: .875rem;
    font-weight: 600;
    padding: .65rem 1.5rem;
    border-radius: 50rem;
    border: 1.5px solid hsl(0 100% 47% / .35);
    cursor: pointer;
    text-decoration: none !important;
    transition: all .2s ease;
    line-height: 1;
}
.pps-cta-ghost:hover {
    background: hsl(0 100% 47% / .06);
    border-color: hsl(0 100% 47%);
    color: hsl(0 100% 40%) !important;
    transform: translateY(-1px);
}

/* CTA group */
.pps-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 991px) {
    .pps-solution-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
    .pps-solution-row.pps-reversed .pps-solution-img { order: 1; }
    .pps-solution-row.pps-reversed .pps-solution-text { order: 2; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PPS FEATURES OVERVIEW GRID (features.php)
   ════════════════════════════════════════════════════════════════════════════ */
.pps-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 72rem;
    margin: 0 auto;
}
.pps-module-card {
    background: #fff;
    border: 1px solid hsl(220 12% 91%);
    border-radius: 1.25rem;
    padding: 1.75rem;
    text-decoration: none !important;
    display: block;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pps-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    border-color: hsl(