﻿/* ================================ 
   Pippsino Partners (Bootstrap 5)
   Depends on v2-base.css for brand tokens
   Mobile-first
   ================================ */

.pps-scope {
    --pps-red: var(--ps-red, #df1f26);
    --pps-ink: #000000;
    --pps-bg: #ffffff;
    --pps-line: #f0f0f0;
    --pps-muted: #666666;
    --pps-badge-bg: #fff5f5;
    --pps-shadow: 0 6px 18px rgba(0,0,0,.06);
    --pps-radius: 8px;
}

/* Center the content and cap the width */
.pps-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Base typography & sections
   ========================================= */

.pps-scope,
.pps-scope p,
.pps-scope li,
.pps-scope input,
.pps-scope select,
.pps-scope button {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pps-ink);
}

    .pps-scope .pps-section {
        padding: 45px 0;
        border-bottom: 1px solid var(--pps-line);
        background-color: var(--pps-bg);
    }

    /* Hero logo + subtitle */

    .pps-scope .pps-logo {
        width: 90px;
        margin-bottom: 8px;
    }

    .pps-scope .pps-subtitle {
        color: var(--pps-muted);
        margin: 0 0 5px;
        letter-spacing: .06em;
    }

    /* Headings */

    .pps-scope .pps-h1 {
        margin: 10px 0 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--pps-red);
        font-size: 32px;
        line-height: 1.1;
        letter-spacing: .5px;
    }

    .pps-scope .pps-h2 {
        margin: 0 0 16px;
        font-weight: 700;
        font-size: 24px;
    }

    .pps-scope .pps-h3 {
        margin: 0 0 10px;
        font-weight: 700;
        font-size: 20px;
    }

    .pps-scope .pps-lead {
        margin: 0 auto 15px;
        max-width: 720px;
        line-height: 1.6;
    }

    .pps-scope .pps-copy {
        margin: 0 auto 10px;
        max-width: 720px;
        line-height: 1.5;
    }

/* Larger-screen heading tweaks */
@media (min-width: 768px) {
    .pps-scope .pps-h1 {
        font-size: 42px;
    }

    .pps-scope .pps-h2 {
        font-size: 30px;
    }

    .pps-scope .pps-h3 {
        font-size: 24px;
    }
}

/* =========================================
   Buttons / CTAs
   ========================================= */

/* Mobile-first: stacked, full-width */
.pps-scope .pps-cta .btn {
    display: block;
    width: 100%;
    margin: 0 0 10px;
}

/* Inline layout on ≥576px */
@media (min-width: 576px) {
    .pps-scope .pps-cta .btn {
        display: inline-block;
        width: auto;
        margin-right: 10px;
        margin-bottom: 0;
    }
}

/* Primary/secondary look (works with Bootstrap .btn / .btn-outline-danger) */
.pps-scope .pps-btn-primary {
    border-width: 2px;
}

.pps-scope .pps-btn-secondary,
.pps-scope .btn-outline-danger {
    border-width: 2px;
    border-color: var(--pps-red) !important;
    color: var(--pps-red) !important;
}

    .pps-scope .btn-outline-danger:hover,
    .pps-scope .pps-btn-secondary:hover {
        background-color: var(--pps-red) !important;
        color: #fff !important;
    }

/* "View Details" button in cards should always be full-width */
.pps-scope .pps-details.btn {
    display: block;
    width: 100%;
    margin-top: 6px;
}

/* =========================================
   Partner Levels strip
   ========================================= */

.pps-scope .pps-levels {
    margin-top: 10px;
    justify-content: center; /* centers on larger screens too */
}

.pps-scope .pps-level {
    margin-bottom: 15px;
    display: flex; /* allow inner card to stretch */
}

.pps-scope .pps-level-card {
    background: #fff;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    padding: 14px;
    box-shadow: var(--pps-shadow);
    text-align: center;
    height: 100%;
    width: 100%;
}

.pps-scope .pps-level-icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 999px;
    margin: 0 auto 8px;
    background: var(--pps-badge-bg);
    color: var(--pps-red);
    font-size: 18px;
}

.pps-scope .pps-level-title {
    font-weight: 700;
    margin: 0 0 2px;
    text-transform: uppercase;
}

.pps-scope .pps-level-meta {
    color: var(--pps-muted);
    margin: 0;
    font-size: 14px;
}

/* =========================================
   Filters row
   ========================================= */

.pps-scope .pps-filters {
    margin: 10px 0 18px;
}

.pps-scope .pps-input,
.pps-scope .pps-select {
    border-radius: 6px;
    border: 1px solid var(--pps-line);
    font-size: 16px;
}

/* =========================================
   Partner cards grid ("Our Partners")
   ========================================= */

.pps-scope .pps-cards {
    margin-top: 5px;
}

    /* Make each column act as a flex container */
    .pps-scope .pps-cards .pps-card {
        margin-bottom: 18px;
        display: flex; /* column becomes flex container */
    }

    /* Inner card stretches to equalize card heights, but stays row layout */
    .pps-scope .pps-cards .pps-card-inner {
        flex: 1 1 auto;
        background: #fff;
        border: 1px solid var(--pps-line);
        border-radius: var(--pps-radius);
        padding: 12px;
        box-shadow: var(--pps-shadow);
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

/* Shared avatar base styles (card + modal) */
.pps-scope .pps-avatar,
.pps-scope .pps-avatar-lg {
    background: #fafafa;
    color: #999;
    text-align: center;
    overflow: hidden;
}

/* Card avatar */
.pps-scope .pps-avatar {
    margin-top: 15px;
    width: 66px;
    height: 66px;
    border-radius: 8px;
    line-height: 66px;
    font-size: 22px;
    flex-shrink: 0;
}

/* Modal avatar (large) */
.pps-scope .pps-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    line-height: 110px;
    font-size: 28px;
}

    .pps-scope .pps-avatar img,
    .pps-scope .pps-avatar-lg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Card body (right side) laid out as column so button can sit at bottom */
.pps-scope .pps-card-body {
    padding-left: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badge = level chip (card + modal share this) */
.pps-scope .pps-badge,
.pps-scope .pps-modal-badge {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    border: 1px solid var(--pps-red);
    color: var(--pps-red);
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    align-self: flex-start;
}

    .pps-scope .pps-badge i,
    .pps-scope .pps-modal-badge i {
        margin-right: 5px;
        font-size: 0.85rem;
    }

/* Card text */
.pps-scope .pps-name {
    margin: 0 0 4px;
    font-weight: 700;
}

.pps-scope .pps-type,
.pps-scope .pps-location {
    color: var(--pps-muted);
    margin: 0 10px 6px 0;
    font-size: 13px;
}

/* Pin the "View Details" button to the bottom inside the card body */
.pps-scope .pps-card-body .pps-details {
    margin-top: auto;
}

/* =========================================
   CTA boxes at bottom
   ========================================= */

.pps-scope .pps-cta-box {
    border: 2px solid var(--pps-red);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}

    .pps-scope .pps-cta-box .btn {
        margin: 8px 6px 0;
    }

/* =========================================
   Details Modal (Bootstrap 5)
   ========================================= */

/* Mobile-first: narrower dialog */
.pps-scope #ppsModal .modal-dialog {
    max-width: 95%;
    margin: 0 auto;
}

/* Wider, centered dialog on larger screens */
@media (min-width: 768px) {
    .pps-scope #ppsModal .modal-dialog {
        max-width: 900px;
    }
}

/* Card-like modal shell */
.pps-scope #ppsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* Header */
.pps-scope #ppsModal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.5rem 0.75rem;
}

.pps-scope #ppsModal .modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Body spacing */
.pps-scope #ppsModal .modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Name + meta */
.pps-scope .pps-modal-name {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 1.2rem;
}

.pps-scope .pps-modal-meta {
    color: var(--pps-muted);
    margin: 0 0 6px;
    font-size: 0.95rem;
}

/* Description */
.pps-scope .pps-modal-desc {
    margin: 14px 0 10px;
    line-height: 1.5;
    font-size: 0.98rem;
}

/* Visit Website button – outlined red */
.pps-scope .pps-modal-links .btn-outline-danger {
    border-width: 2px;
    border-color: var(--pps-red);
    color: var(--pps-red);
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

    .pps-scope .pps-modal-links .btn-outline-danger:hover,
    .pps-scope .pps-modal-links .btn-outline-danger:focus {
        background-color: var(--pps-red);
        color: #fff;
    }

/* =========================================
   Larger-screen breathing room
   ========================================= */

@media (min-width: 768px) {
    .pps-scope .pps-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
