/* =========================================================
   SAZEH POUYESH — ACHIEVEMENTS PAGE
   ========================================================= */
.sp-achpage {
    --sp-line: #DCE3E8;
    --sp-orange-rgb: 242, 105, 30;
    --sp-shadow-rgb: 27, 38, 48;
    --sp-ink: #1B2630;
    --sp-ink-soft: #55616B;
    --sp-ease: cubic-bezier(.22, 1, .36, 1);
    background: #F4F6F8;
    color: var(--sp-ink);
    overflow-x: clip;
}

    .sp-achpage * {
        box-sizing: border-box;
    }

[data-sp-reveal] {
    opacity: 1;
    transform: none;
}

.sp-js [data-sp-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s var(--sp-ease) var(--sp-reveal-delay, 0s), transform .65s var(--sp-ease) var(--sp-reveal-delay, 0s);
}

    .sp-js [data-sp-reveal].sp-in {
        opacity: 1;
        transform: none;
    }

/* ─── HERO ─── */
.sp-acp-hero {
    position: relative;
    min-height: min(38vh, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #C3CDD4 0%, #AEBCC6 100%);
}

.sp-acp-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 70% at 70% 20%, rgba(255,255,255,.35), transparent 55%);
}

.sp-acp-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

    .sp-acp-hero-particles::before,
    .sp-acp-hero-particles::after {
        content: "";
        position: absolute;
        left: 0;
        top: 100%;
        width: 2px;
        height: 2px;
        background: transparent;
        box-shadow: 8vw 85vh rgba(255,255,255,.5), 22vw 50vh rgba(255,255,255,.4), 40vw 70vh rgba(255,255,255,.55), 58vw 35vh rgba(255,255,255,.45), 75vw 60vh rgba(255,255,255,.5), 90vw 40vh rgba(255,255,255,.4);
        animation: spAcpParticles 28s linear infinite;
    }

    .sp-acp-hero-particles::after {
        width: 3px;
        height: 3px;
        animation-duration: 40s;
        animation-delay: -12s;
    }

@keyframes spAcpParticles {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-200vh);
    }
}

.sp-acp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 24px 64px;
    color: var(--sp-ink);
}

.sp-acp-hero-eyebrow {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--sp-steel-deeper);
    margin-bottom: 10px;
}

/* ===== Title exactly matching the reference ===== */
.sp-acp-hero-title.mud-typography {
    font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.2rem) !important;
    font-weight: 800 !important;
    color: var(--sp-ink) !important;
    margin: 0 0 12px !important;
}

    .sp-acp-hero-title.mud-typography::after {
        content: "";
        display: block;
        width: 64px;
        height: 4px;
        margin: 14px auto 0;
        border-radius: 4px;
        background: linear-gradient(90deg, var(--sp-orange), var(--sp-orange-deep));
    }

.sp-acp-hero-sub.mud-typography {
    color: var(--sp-steel-deeper) !important;
    max-width: 620px;
    margin: 0 auto !important;
    line-height: 1.9 !important;
    font-size: 1.02rem !important;
}

/* Wave remains as you had it */
.sp-acp-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    overflow: hidden;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}

.sp-acp-wave-svg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 100%;
    display: block;
    will-change: transform;
}

.sp-acp-wave-1 {
    animation: spAcpWave 18s linear infinite;
}

.sp-acp-wave-2 {
    animation: spAcpWave 26s linear infinite reverse;
}

@keyframes spAcpWave {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ─── SECTION ─── */
.sp-acp-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 40px;
}

.sp-acp-intro {
    text-align: center;
    margin-bottom: 40px;
}

.sp-acp-label {
    display: inline-block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--sp-steel-deep);
    margin-bottom: 8px;
}

.sp-acp-heading {
    font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
    font-weight: 800;
    color: var(--sp-ink);
    margin: 0 0 12px;
}

.sp-acp-lead {
    max-width: 640px;
    margin: 0 auto;
    font-size: .96rem;
    line-height: 1.9;
    color: var(--sp-ink-soft);
}

/* ─── GRID ─── */

.sp-acp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* ─────────────────────────────────────────────────────────
   CARD
   ───────────────────────────────────────────────────────── */

.sp-acp-card {
    position: relative;
    height: 520px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 22px;
    background: #17231f;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(26, 26, 46, .08), 0 4px 10px rgba(26, 26, 46, .04);
    transition: transform .5s var(--sp-ease), box-shadow .5s ease;
}

    .sp-acp-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 28px 55px rgba(26, 26, 46, .16), 0 8px 18px rgba(26, 26, 46, .08);
    }

/* ─────────────────────────────────────────────────────────
   IMAGE
   ───────────────────────────────────────────────────────── */

.sp-acp-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform .9s var(--sp-ease), filter .6s ease;
}

.sp-acp-card:hover .sp-acp-card-image {
    transform: scale(1.055);
    filter: saturate(1.05);
}

/* ─────────────────────────────────────────────────────────
   MAIN DARK OVERLAY
   ───────────────────────────────────────────────────────── */

.sp-acp-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20, 29, 37, 0) 28%, rgba(20, 29, 37, .18) 40%, rgba(20, 29, 37, .62) 58%, rgba(20, 29, 37, .88) 80%, rgba(16, 24, 31, .96) 100%);
    pointer-events: none;
    transition: background .5s ease;
}

.sp-acp-card:hover .sp-acp-card-overlay {
    background: linear-gradient(180deg, rgba(20, 29, 37, 0) 24%, rgba(20, 29, 37, .22) 39%, rgba(20, 29, 37, .7) 56%, rgba(20, 29, 37, .92) 78%, rgba(16, 24, 31, .98) 100%);
}

.sp-acp-card-pattern {
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -5%;
    height: 58%;
    z-index: 2;
    pointer-events: none;
    opacity: .28;
    background-image: radial-gradient( circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 1.5px );
    background-size: 10px 10px;
    mask-image: linear-gradient( to bottom, transparent 0%, rgba(0,0,0,.18) 18%, #000 48%, #000 100% );
    -webkit-mask-image: linear-gradient( to bottom, transparent 0%, rgba(0,0,0,.18) 18%, #000 48%, #000 100% );
    transform: translateY(10px);
    transition: opacity .5s ease, transform .6s var(--sp-ease);
}

.sp-acp-card:hover .sp-acp-card-pattern {
    opacity: .38;
    transform: translateY(0);
}

.sp-acp-card-pattern::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(255,255,255,.04), transparent 45%, rgba(255,255,255,.025) );
    backdrop-filter: blur(.6px);
    -webkit-backdrop-filter: blur(.6px);
}

/* ─────────────────────────────────────────────────────────
   CONTENT
   ───────────────────────────────────────────────────────── */

.sp-acp-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0 28px 30px;
    color: var(--sp-paper);
}

/* ─────────────────────────────────────────────────────────
   TITLE + STANDARD
   ───────────────────────────────────────────────────────── */

.sp-acp-card-heading {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 3px;
    margin-bottom: 9px;
}

.sp-acp-card-title {
    margin: 0;
    color: var(--sp-paper);
    font-size: clamp( 1.35rem, 1.05rem + .8vw, 1.85rem );
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.025em;
    text-shadow: 0 2px 14px rgba(0,0,0,.2);
}

.sp-acp-card-standard {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    color: rgba(255,255,255,.9);
    font-size: .72rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    opacity: .9;
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────
   DESCRIPTION
   ───────────────────────────────────────────────────────── */

.sp-acp-card-desc {
    max-width: 94%;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: .82rem;
    line-height: 1.7;
    font-weight: 500;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0,0,0,.18);
}

/* ─────────────────────────────────────────────────────────
   TOP GLASS HIGHLIGHT
   ───────────────────────────────────────────────────────── */

.sp-acp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.13);
    pointer-events: none;
    opacity: .7;
    transition: border-color .4s ease, opacity .4s ease;
}

.sp-acp-card:hover::before {
    border-color: rgba(255,255,255,.22);
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────
   SOFT LIGHT SWEEP
   ───────────────────────────────────────────────────────── */

.sp-acp-card::after {
    content: "";
    position: absolute;
    z-index: 5;
    top: -20%;
    left: -80%;
    width: 45%;
    height: 140%;
    background: linear-gradient( 90deg, transparent, rgba(255,255,255,.08), transparent );
    transform: rotate(12deg);
    pointer-events: none;
    transition: left .9s var(--sp-ease);
}

.sp-acp-card:hover::after {
    left: 135%;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────── */

@media (max-width: 1100px) {

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

    .sp-acp-card {
        height: 500px;
    }
}

@media (max-width: 640px) {

    .sp-acp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sp-acp-card {
        height: 500px;
        border-radius: 20px;
    }

    .sp-acp-card-content {
        padding: 0 22px 24px;
    }

    .sp-acp-card-title {
        font-size: 1.45rem;
    }

    .sp-acp-card-desc {
        max-width: 100%;
        font-size: .8rem;
    }
}

/* ─── TRUST ─── */
.sp-acp-trust {
    max-width: 1000px;
    margin: 8px auto 40px;
    padding: 0 20px;
}

.sp-acp-trust-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: var(--sp-paper);
    border: 1px solid rgba(var(--sp-steel-rgb), 0.26);
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 10px 28px rgba(var(--sp-shadow-rgb), .05);
}

.sp-acp-trust-item {
    text-align: center;
}

    .sp-acp-trust-item strong {
        display: block;
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--sp-steel-deep);
        margin-bottom: 4px;
    }

    .sp-acp-trust-item span {
        font-size: .82rem;
        color: var(--sp-ink-soft);
    }

/* ─── CTA ─── */
.sp-acp-cta {
    background: linear-gradient(160deg, #C3CDD4 0%, #AEBCC6 100%);
    padding: 64px 20px;
    text-align: center;
    color: var(--sp-ink);
}

.sp-acp-cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.sp-acp-cta h2 {
    font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem);
    font-weight: 800;
    margin: 0 0 12px;
}

.sp-acp-cta p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--sp-steel-deeper);
    margin: 0 0 24px;
}

.sp-acp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sp-cta {
    border: none;
    cursor: pointer;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 700;
    background: var(--sp-paper);
    color: var(--sp-steel-deep);
    box-shadow: 0 10px 26px rgba(0,0,0,.16);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .sp-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(0,0,0,.2);
    }

.sp-cta-ghost {
    border: 1.5px solid rgba(27, 38, 48, .34);
    background: transparent;
    color: var(--sp-ink);
    padding: 12px 24px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

    .sp-cta-ghost:hover {
        background: rgba(255, 255, 255, .5);
        border-color: var(--sp-ink);
    }

/* ─── LIGHTBOX ─── */
.sp-acp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 16, 12, .88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

    .sp-acp-lightbox img {
        max-width: min(900px, 94vw);
        max-height: 78vh;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 24px 60px rgba(0,0,0,.4);
        background: var(--sp-paper);
        cursor: default;
    }

.sp-acp-lightbox-cap {
    margin: 16px 0 0;
    color: var(--sp-paper);
    font-weight: 700;
    font-size: .95rem;
    text-align: center;
}

.sp-acp-lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: var(--sp-paper);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sp-acp-lightbox-close:hover {
        background: #AEBCC6;
    }

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
    .sp-acp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .sp-acp-grid {
        grid-template-columns: 1fr;
    }

    .sp-acp-card-media {
        height: 240px;
    }

    .sp-acp-trust-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sp-acp-section {
        padding: 36px 16px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-acp-wave-1,
    .sp-acp-wave-2,
    .sp-acp-hero-particles::before,
    .sp-acp-hero-particles::after {
        animation: none !important;
    }
}

/* palette v4: small orange accent before eyebrow */
.sp-acp-hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    margin-inline-end: 10px;
    vertical-align: middle;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sp-orange), var(--sp-orange-deep));
}
