/* ==========================================================================
   About Us Page Styles
   ========================================================================== */

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 2rem auto;
    max-width: var(--container-width);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--text-main);
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        margin: 16px;
    }
}

section {
    max-width: 1240px;
    margin: 2rem auto;
}

.about-page {
    padding-top: 30px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* 1. Hero / Story Card */
.about-hero {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ==================== Hero Decorative Animation — Painting EH ==================== */
/* پس‌زمینه‌ی کانتینر: از رنگ‌های خودِ برند استفاده شد */
.about-hero__image {
    position: relative;
    width: 100%;
    height: 380px;
    min-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(47, 93, 80, 0.06) 0%,
        var(--color-bg) 55%,
        rgba(200, 120, 63, 0.08) 100%
    );
}

.about-hero__canvas {
    width: 92%;
    height: 92%;
}

/* بومِ نقاشی */
.about-hero__board {
    fill: #ffffff;
    stroke: rgba(47, 93, 80, 0.12);
    stroke-width: 2;
}

/* حروف EH: با قلم‌مو نوشته می‌شن */
.about-hero__letters {
    animation: aboutLettersFade 10s ease-in-out infinite;
}

.about-hero__letter {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 100;
}

.about-hero__letter--e {
    stroke: var(--color-primary);
}

.about-hero__letter--h {
    stroke: var(--color-accent);
}

.about-hero__letter--e1 {
    animation: aboutDrawE1 10s linear infinite;
}
.about-hero__letter--e2 {
    animation: aboutDrawE2 10s linear infinite;
}
.about-hero__letter--e3 {
    animation: aboutDrawE3 10s linear infinite;
}
.about-hero__letter--h1 {
    animation: aboutDrawH1 10s linear infinite;
}
.about-hero__letter--h2 {
    animation: aboutDrawH2 10s linear infinite;
}
.about-hero__letter--h3 {
    animation: aboutDrawH3 10s linear infinite;
}

@keyframes aboutLettersFade {
    0% {
        opacity: 0;
    }
    4% {
        opacity: 1;
    }
    97% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes aboutDrawE1 {
    0%,
    12% {
        stroke-dashoffset: 100;
    }
    20%,
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes aboutDrawE2 {
    0%,
    27% {
        stroke-dashoffset: 100;
    }
    34%,
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes aboutDrawE3 {
    0%,
    41% {
        stroke-dashoffset: 100;
    }
    48%,
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes aboutDrawH1 {
    0%,
    65% {
        stroke-dashoffset: 100;
    }
    72%,
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes aboutDrawH2 {
    0%,
    78% {
        stroke-dashoffset: 100;
    }
    84%,
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes aboutDrawH3 {
    0%,
    90% {
        stroke-dashoffset: 100;
    }
    96%,
    100% {
        stroke-dashoffset: 0;
    }
}

/* پالت رنگ */
.about-hero__palette ellipse {
    fill: #ffffff;
    stroke: rgba(47, 93, 80, 0.15);
    stroke-width: 2;
}

.about-hero__paint--1 {
    fill: var(--color-primary);
}
.about-hero__paint--2 {
    fill: var(--color-accent);
}
.about-hero__paint--3 {
    fill: var(--color-primary-dark);
}
.about-hero__paint--4 {
    fill: var(--color-accent);
}

/* قلم‌مو */
.about-hero__brush {
    animation: aboutBrushMove 10s ease-in-out infinite;
    transform-origin: 0 0;
    will-change: transform;
}

.about-hero__brush-handle {
    stroke: var(--color-primary-dark);
    stroke-width: 4;
    stroke-linecap: round;
}

.about-hero__brush-ferrule {
    fill: #c9ccd1;
}

.about-hero__brush-tip {
    fill: var(--color-accent);
}

@keyframes aboutBrushMove {
    0%,
    4% {
        transform: translate(32px, 146px) rotate(-25deg);
    }
    8% {
        transform: translate(70px, 80px) rotate(-25deg);
    }
    12% {
        transform: translate(108px, 54px) rotate(-25deg);
    }
    20% {
        transform: translate(162px, 54px) rotate(-25deg);
    }
    23% {
        transform: translate(135px, 76px) rotate(-25deg);
    }
    27% {
        transform: translate(108px, 98px) rotate(-25deg);
    }
    34% {
        transform: translate(162px, 98px) rotate(-25deg);
    }
    37% {
        transform: translate(130px, 120px) rotate(-25deg);
    }
    41% {
        transform: translate(108px, 142px) rotate(-25deg);
    }
    48% {
        transform: translate(162px, 142px) rotate(-25deg);
    }
    52% {
        transform: translate(90px, 158px) rotate(-25deg);
    }
    56%,
    59% {
        transform: translate(32px, 146px) rotate(-25deg);
    }
    62% {
        transform: translate(150px, 90px) rotate(20deg);
    }
    65% {
        transform: translate(196px, 54px) rotate(65deg);
    }
    72% {
        transform: translate(196px, 142px) rotate(65deg);
    }
    75% {
        transform: translate(220px, 110px) rotate(-10deg);
    }
    78% {
        transform: translate(196px, 98px) rotate(-10deg);
    }
    84% {
        transform: translate(256px, 98px) rotate(-10deg);
    }
    87% {
        transform: translate(256px, 80px) rotate(65deg);
    }
    90% {
        transform: translate(256px, 54px) rotate(65deg);
    }
    96% {
        transform: translate(256px, 142px) rotate(65deg);
    }
    98% {
        transform: translate(270px, 160px) rotate(30deg);
    }
    100% {
        transform: translate(32px, 146px) rotate(-25deg);
    }
}

@media (max-width: 992px) {
    .about-hero__image {
        height: 260px;
        min-height: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-hero__letters,
    .about-hero__letter,
    .about-hero__brush {
        animation: none;
    }
    .about-hero__letter {
        stroke-dashoffset: 0;
    }
}

.about-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-hero__badge {
    background-color: #f1f5f9;
    color: #0f766e;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.about-hero__title {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 16px;
}

.about-hero__desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-hero__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-feature__icon {
    width: 44px;
    height: 44px;
    background-color: #f0fdf4;
    color: #16a34a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-feature__text {
    display: flex;
    flex-direction: column;
}

.hero-feature__text strong {
    font-size: 14px;
    color: #1e293b;
}

.hero-feature__text span {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* 2. Sections Header & Cards */
.about-section__header {
    text-align: center;
    margin-bottom: 24px;
}

.about-section__header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.about-section__header p {
    font-size: 13px;
    color: #64748b;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card__icon {
    width: 54px;
    height: 54px;
    background-color: #f8fafc;
    color: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

/* 3. Statistics Card */
.stats-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.stats-card__title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #f1f5f9;
}

.stat-item__number {
    font-size: 28px;
    font-weight: 900;
    color: #0d9488;
    margin-bottom: 6px;
    direction: ltr;
}

.stat-item__label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* 4. Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card__avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
}

.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.team-card__role {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.team-card__socials {
    display: flex;
    gap: 10px;
}

.team-card__socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 10px 10px;
}

.team-card__socials a:hover {
    background-color: #0d9488;
    color: #ffffff;
}

/* 5. Map Section */
.about-map {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.about-map__frame {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.about-map__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.about-map__address {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 20px;
    background-color: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 14px;
}

.about-map__address-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background-color: #0f766e;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-map__address p {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.8;
    font-weight: 500;
}

@media (max-width: 576px) {
    .about-map {
        padding: 20px;
    }
    .about-map__frame {
        height: 280px;
        border-radius: 12px;
    }
    .about-map__address {
        padding: 14px 16px;
        gap: 10px;
    }
    .about-map__address p {
        font-size: 13px;
    }
}

/* 6. CTA Bar */
.about-cta {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-cta__icon {
    width: 52px;
    height: 52px;
    background-color: #f0fdf4;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-cta__content {
    flex: 1;
    margin-right: 20px;
}

.about-cta__content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.about-cta__content p {
    font-size: 12px;
    color: #64748b;
}

.about-cta__btn {
    background-color: #0f766e;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.about-cta__btn:hover {
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-hero {
        grid-template-columns: 1fr;
    }
    .values-grid,
    .stats-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    .about-cta {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .about-cta__content {
        margin-right: 0;
    }
    .about-hero {
        padding: 20px;
    }
    .about-hero__image {
        height: 220px;
    }
    .about-hero__title {
        font-size: 21px;
    }
    .about-hero__features {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    .stats-card {
        padding: 20px;
    }
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-item::after {
        display: none;
    }
}