/**
 * Static Pages Styles — About, FAQ, Careers, Payments, Privacy
 * Uses existing theme-variables.css tokens
 */

/* ── Hero Banner ── */
.sp-hero {
    background: linear-gradient(135deg, var(--ch-dark) 0%, var(--ch-gray) 100%);
    color: var(--white);
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 960px;
    margin: var(--space-lg) auto 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.sp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(0, 173, 181, 0.08);
    pointer-events: none;
}

.sp-hero__eyebrow {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--ch-teal);
    margin-bottom: var(--space-sm);
}

.sp-hero__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-md);
    color: var(--white);
}

.sp-hero__subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* ── Page Container ── */
.sp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ── Section Titles ── */
.sp-section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-bold);
    color: var(--ch-dark);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.sp-section-subtitle {
    font-size: var(--font-size-base);
    color: var(--gray-500);
    text-align: center;
    max-width: 640px;
    margin: -0.5rem auto var(--space-xl);
    line-height: var(--leading-relaxed);
}

/* ── Card Grid ── */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.sp-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sp-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--ch-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.sp-card__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-semibold);
    color: var(--ch-dark);
    margin-bottom: var(--space-sm);
}

.sp-card__text {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ── Stats Row ── */
.sp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.sp-stat__number {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-extrabold);
    color: var(--ch-teal);
    line-height: 1;
}

.sp-stat__label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-top: var(--space-xs);
}

/* ── FAQ Accordion ── */
.sp-faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.sp-faq-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.sp-faq-pill:hover,
.sp-faq-pill--active {
    background: var(--ch-teal);
    color: var(--white);
    border-color: var(--ch-teal);
}

.sp-faq-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow var(--transition-base);
}

.sp-faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.sp-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-lg);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-semibold);
    color: var(--ch-dark);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    min-height: var(--touch-target);
}

.sp-faq-question i {
    color: var(--gray-400);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.sp-faq-item.open .sp-faq-question i {
    transform: rotate(180deg);
    color: var(--ch-teal);
}

.sp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.sp-faq-item.open .sp-faq-answer {
    max-height: 500px;
}

.sp-faq-answer__inner {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

/* ── Payment Cards ── */
.sp-payment-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sp-payment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.sp-payment-card__logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    font-weight: var(--font-bold);
    color: var(--white);
}

.sp-payment-card__logo--jazzcash {
    background: linear-gradient(135deg, #e4002b, #ff1744);
}

.sp-payment-card__logo--easypaisa {
    background: linear-gradient(135deg, #3aaa35, #56c651);
}

.sp-payment-card__logo--raast {
    background: linear-gradient(135deg, #1a237e, #3949ab);
}

.sp-payment-card__logo--cod {
    background: linear-gradient(135deg, var(--ch-gray), var(--ch-dark));
}

.sp-payment-card__body {
    flex: 1;
}

.sp-payment-card__name {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--ch-dark);
    margin-bottom: var(--space-xs);
}

.sp-payment-card__desc {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
}

.sp-payment-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.sp-payment-steps li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

.sp-payment-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--ch-teal);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Career Position Cards ── */
.sp-position {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
    transition: box-shadow var(--transition-base);
}

.sp-position:hover {
    box-shadow: var(--shadow-md);
}

.sp-position__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-semibold);
    color: var(--ch-dark);
    margin-bottom: var(--space-xs);
}

.sp-position__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.sp-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-medium);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.sp-tag--gray {
    background: var(--gray-50);
    color: var(--gray-600);
}

.sp-position__desc {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    line-height: var(--leading-relaxed);
}

/* ── Perks Grid ── */
.sp-perks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.sp-perk {
    text-align: center;
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.sp-perk__icon {
    font-size: 1.5rem;
    color: var(--ch-teal);
    margin-bottom: var(--space-sm);
}

.sp-perk__label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    color: var(--ch-dark);
}

/* ── Trust / Security ── */
.sp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    margin-top: var(--space-xl);
}

.sp-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: var(--font-medium);
}

.sp-trust-item i {
    color: var(--ch-teal);
    font-size: 1.1rem;
}

/* ── CTA Banner ── */
.sp-cta {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    margin-top: var(--space-xl);
}

.sp-cta__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-bold);
    color: var(--ch-dark);
    margin-bottom: var(--space-sm);
}

.sp-cta__text {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.sp-btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.sp-btn--primary {
    background: var(--ch-teal);
    color: var(--white);
    border: none;
}

.sp-btn--primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.sp-btn--outline {
    background: transparent;
    color: var(--ch-teal);
    border: 1.5px solid var(--ch-teal);
}

.sp-btn--outline:hover {
    background: var(--ch-teal);
    color: var(--white);
}

/* ── Content Prose ── */
.sp-prose {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    line-height: var(--leading-relaxed);
}

.sp-prose p {
    margin-bottom: var(--space-md);
}

.sp-prose strong {
    color: var(--ch-dark);
}

.sp-prose a {
    color: var(--ch-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sp-prose a:hover {
    color: var(--primary-dark);
}

/* ── Entrance Animation ── */
.sp-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: spFadeUp 0.5s ease forwards;
}

.sp-animate:nth-child(2) {
    animation-delay: 0.1s;
}

.sp-animate:nth-child(3) {
    animation-delay: 0.2s;
}

.sp-animate:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes spFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .sp-hero {
        padding: var(--space-2xl) var(--space-md);
    }

    .sp-hero__title {
        font-size: var(--font-size-2xl);
    }

    .sp-hero__subtitle {
        font-size: var(--font-size-base);
    }

    .sp-container {
        padding: var(--space-xl) var(--space-md);
    }

    .sp-section-title {
        font-size: var(--font-size-xl);
    }

    .sp-grid {
        grid-template-columns: 1fr;
    }

    .sp-payment-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sp-payment-card__body {
        text-align: left;
    }

    .sp-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-perks {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-faq-question {
        font-size: var(--font-size-sm);
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .sp-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--space-md);
    }

    .sp-perks {
        grid-template-columns: 1fr;
    }
}