﻿/* wwwroot/css/about.css */

/* پالت و متغیرها */
:root {
    --bg: #f7f5f0;
    --text: #1f1f1f;
    --muted: #676767;
    --primary: #3a5a40; /* سبز */
    --primary-contrast: #ffffff;
    --accent: #a68a64; /* خاکی */
    --card: #ffffff;
    --border: #e6e0d4;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* تم تاریک: کافیست کلاس theme-dark روی html یا body قرار بگیرد */
.theme-dark {
    --bg: #121212;
    --text: #f1f1f1;
    --muted: #b0b0b0;
    --primary: #4ea47f;
    --primary-contrast: #121212;
    --accent: #b89c77;
    --card: #1c1c1c;
    --border: #2a2a2a;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
}

html, body {
    background: var(--bg);
    color: var(--text);
}

/* Hero */
.about-hero {
    position: relative;
    min-height: 70vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .about-hero .hero-media {
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 600px at 80% 20%, rgba(166,138,100,.20), transparent 60%), linear-gradient(180deg, rgba(58,90,64,.25), rgba(58,90,64,0)), url("../images/about/hero.jpg") center/cover no-repeat;
    }

    .about-hero .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 50%);
    }

    .about-hero .brand-mark {
        position: absolute;
        left: 2rem;
        bottom: 2rem;
        width: 120px;
        height: auto;
        opacity: .85;
        filter: drop-shadow(0 6px 18px rgba(0,0,0,.3));
    }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: 3rem 1rem;
    color: var(--primary);
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    letter-spacing: .5px;
    margin-bottom: .75rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-cta .btn {
    display: inline-block;
    margin: .5rem;
    padding: .8rem 1.2rem;
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-contrast);
    box-shadow: 0 6px 18px rgba(58,90,64,.35);
}

    .btn-primary:hover {
        transform: translateY(-2px);
    }

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

    .btn-outline:hover {
        background: rgba(255,255,255,.12);
    }

.hero-scroll .scroll-down {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin-top: 1.2rem;
}

.hero-scroll .chev {
    width: 12px;
    height: 12px;
    border-right: 2px solid #3a5a40;
    border-bottom: 2px solid #3a5a40;
    transform: rotate(45deg);
    animation: bounce 1.6s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(6px) rotate(45deg);
    }
}

/* بخش‌های عمومی */
.section {
    padding: 64px 0;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 24px;
}

.two-col {
    grid-template-columns: 1.2fr 1fr;
}

.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 940px) {
    .two-col, .four-col, .three-col {
        grid-template-columns: 1fr;
    }
}

/* کارت‌ها */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ماموریت */
.mission .values {
    margin-top: .75rem;
    color: var(--muted);
}

    .mission .values li {
        margin: .35rem 0;
    }

/* Craft Steps */
.craft .steps {
    grid-template-columns: repeat(3, 1fr);
}

.craft .step {
    padding: 18px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
}

    .craft .step .icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(58,90,64,.12);
        display: grid;
        place-items: center;
        margin-bottom: .6rem;
    }

    .craft .step svg {
        width: 24px;
        height: 24px;
        fill: var(--primary);
    }

    .craft .step h3 {
        margin-bottom: .25rem;
    }

/* Timeline */
.timeline .line {
    position: relative;
    margin-top: 24px;
}

    .timeline .line::before {
        content: "";
        position: absolute;
        inset-inline-start: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(var(--primary), var(--accent));
        transform: translateX(-50%);
    }

.timeline .item {
    position: relative;
    width: min(520px, 92%);
    margin: 22px auto;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

    .timeline .item time {
        font-weight: 700;
        color: var(--primary);
    }

/* Stats */
.stats .stat {
    text-align: center;
    padding: 20px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
}

.stats .num {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--primary);
}

.stats .label {
    color: var(--muted);
    margin-top: .25rem;
}

/* Team */
.team .member img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.team .member .info {
    padding: 14px;
}

.team .member .role {
    color: var(--muted);
    font-size: .95rem;
}

/* Testimonials */
.testimonials .slider {
    position: relative;
}

.testimonials .slides {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow: hidden;
    scroll-snap-type: x mandatory;
}

.testimonials .slide {
    scroll-snap-align: start;
    padding: 18px;
    min-height: 140px;
}

.testimonials .controls {
    position: absolute;
    inset: auto 12px 12px 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.testimonials .prev,
.testimonials .next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
}

.testimonials .dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

    .testimonials .dots button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: var(--border);
    }

        .testimonials .dots button.active {
            background: var(--primary);
        }

/* Partners */
.partners .logos {
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
}

    .partners .logos img {
        max-width: 160px;
        filter: grayscale(1);
        opacity: .8;
        transition: filter .2s, opacity .2s;
    }

        .partners .logos img:hover {
            filter: grayscale(0);
            opacity: 1;
        }

/* CTA */
.cta {
    text-align: center;
    padding: 22px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0);
    }
