/**
 * About V2 — صفحه درباره ما
 */

body.hpb-about-v2 {
    background: #fff;
    color: #1e293b;
}

body.hpb-about-v2 main.crafto-about,
body.hpb-about-v2 #primary .crafto-about {
    box-sizing: border-box;
    width: 100% !important;
    max-width: var(--hpb-site-container-max, 1400px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    padding-block: var(--h-gap, 20px);
}

.crafto-about {
    --h-navy: var(--hpb-theme-brand-deep, #0d48a2);
    --h-navy-deep: var(--hpb-theme-brand-deep, #0a3578);
    --h-cyan: var(--hpb-theme-cyan, #5ec8f0);
    --h-muted: var(--hpb-theme-text-muted, #64748b);
    --h-line: var(--hpb-theme-border, #e2e8f0);
    --h-surface: #ffffff;
    --h-bg: #fff;
    --h-radius: 16px;
    --h-gap: 20px;
    --h-shadow: 0 4px 24px rgba(13, 72, 162, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--h-gap);
}

.crafto-about .crafto-container {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 0;
}

.crafto-about .crafto-section {
    margin: 0;
}

/* Hero */
.about-hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--h-radius) + 4px);
    background: linear-gradient(135deg, var(--h-navy-deep) 0%, var(--h-navy) 52%, #1a6fd4 100%);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
    min-height: 280px;
    display: flex;
    align-items: center;
}

.about-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.about-hero__glow--1 {
    width: 280px;
    height: 280px;
    background: var(--h-cyan);
    top: -80px;
    left: -40px;
}

.about-hero__glow--2 {
    width: 220px;
    height: 220px;
    background: #fff;
    bottom: -60px;
    right: 10%;
    opacity: 0.12;
}

.about-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.about-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.about-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.65rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.about-hero__lead {
    margin: 0;
    font-size: clamp(0.95rem, 1.4vw, 1.12rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    max-width: 52ch;
}

.about-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    cursor: pointer;
}

.about-btn--primary {
    background: #fff;
    color: var(--h-navy-deep);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.about-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: var(--h-navy-deep);
}

.about-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.about-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: -36px;
    position: relative;
    z-index: 2;
    padding-inline: 4px;
}

.about-stat {
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: var(--h-radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--h-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 72, 162, 0.12);
}

.about-stat__num {
    display: block;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: var(--h-navy);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.about-stat__suffix {
    font-size: 0.85em;
    color: var(--h-cyan);
}

.about-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--h-muted);
}

/* Story */
.about-story {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    background: var(--h-surface);
    border-radius: calc(var(--h-radius) + 2px);
    border: 1px solid var(--h-line);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--h-shadow);
}

.about-story__badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--h-navy);
    background: rgba(94, 200, 240, 0.18);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.about-story__title {
    margin: 0 0 14px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 900;
    color: var(--h-navy-deep);
    line-height: 1.35;
}

.about-story__text {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #334155;
}

.about-story__text:last-of-type {
    margin-bottom: 0;
}

.about-story__visual {
    position: relative;
    min-height: 260px;
    border-radius: var(--h-radius);
    background: linear-gradient(145deg, rgba(13, 72, 162, 0.08), rgba(94, 200, 240, 0.15));
    border: 1px solid rgba(13, 72, 162, 0.1);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.about-story__visual-inner {
    text-align: center;
    padding: 24px;
}

.about-story__logo-wrap {
    width: min(100%, 220px);
    min-height: 100px;
    margin: 0 auto 16px;
    padding: 18px 20px;
    border-radius: var(--h-radius);
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 40px rgba(13, 72, 162, 0.14);
    border: 1px solid rgba(13, 72, 162, 0.08);
}

.about-story__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.about-story__logo-fallback {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--h-navy-deep);
}

.about-story__tagline {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--h-navy-deep);
    letter-spacing: -0.01em;
}

.about-story__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(13, 72, 162, 0.12) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.5;
    pointer-events: none;
}

/* Values */
.about-values__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 20px;
}

.about-values__head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 900;
    color: var(--h-navy-deep);
}

.about-values__head p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--h-muted);
    line-height: 1.7;
}

/* CardLab Depth — ارزش‌های ما */
.about-v2-values .about-v2-values-grid {
    margin-top: 12px;
    overflow: visible;
    gap: clamp(34px, calc(2.4vw + 20px), 42px);
}

.about-v2-values .about-v2-values-grid .hpb-cl-depth-content {
    padding-top: 100px;
}

/* Support band */
.about-support {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: calc(var(--h-radius) + 2px);
    background: linear-gradient(90deg, var(--h-navy-deep), var(--h-navy));
    color: #fff;
    box-shadow: var(--h-shadow);
}

.about-support__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
}

.about-support__icon svg {
    width: 28px;
    height: 28px;
}

.about-support__title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
}

.about-support__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.about-support__cta {
    white-space: nowrap;
}

/* Partners */
.about-partners {
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    border-radius: calc(var(--h-radius) + 2px);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--h-shadow);
}

.about-partners__head {
    text-align: center;
    margin-bottom: 12px;
}

.about-partners__head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 900;
    color: var(--h-navy-deep);
}

.about-partners__head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--h-muted);
}

.crafto-about .about-partners .hpb-carousel__swiper {
    min-height: 72px;
    padding-bottom: 0;
}

.crafto-about .about-partners .hpb-carousel__slide {
    opacity: 1 !important;
    animation: none !important;
}

/* CTA cards */
.about-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.about-cta-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 18px;
    border-radius: var(--h-radius);
    background: var(--h-surface);
    border: 1px solid var(--h-line);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--h-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-cta-card:hover {
    transform: translateY(-4px);
    border-color: var(--h-cyan);
    color: inherit;
}

.about-cta-card strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--h-navy-deep);
}

.about-cta-card span {
    font-size: 0.85rem;
    color: var(--h-muted);
    line-height: 1.6;
}

.about-cta-card em {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--h-navy);
    margin-top: auto;
}

/* Reveal animation */
.about-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.about-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 991.98px) {
    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -24px;
    }

    .about-story {
        grid-template-columns: 1fr;
    }

    .about-story__visual {
        min-height: 200px;
        order: -1;
    }

    .about-support {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-support__icon {
        margin-inline: auto;
    }

    .about-support__cta {
        justify-self: center;
    }

    .about-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .about-stat {
        padding: 14px 10px;
    }

    .about-hero__actions {
        flex-direction: column;
    }

    .about-btn {
        width: 100%;
    }
}
