/* ================================================
   team.css — Стилове само за страница Нашият екип
   ================================================ */

/* ---------- Hero ---------- */
.team-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 50%, #f8fafc 100%);
    padding: 4rem 0 5rem;
}

.team-hero__dots {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(circle at 2px 2px, #f85319 1px, transparent 0);
    background-size: 44px 44px;
    pointer-events: none;
}

.team-hero__blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
    pointer-events: none;
}

.team-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffedd5;
    color: #f85319;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.team-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.team-hero__title span {
    background: linear-gradient(to right, #f85319, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-hero__sub {
    font-size: 1.125rem;
    color: #475569;
    max-width: 42rem;
    line-height: 1.7;
}

/* ---------- Stats bar ---------- */
.team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .team-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-stat-item {
    background: white;
    border: 2px solid #fed7aa;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgb(248 83 25 / 0.18);
}

.team-stat-item__number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(to right, #f85319, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.team-stat-item__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Section header ---------- */
.team-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-section-header__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.team-section-header__sub {
    font-size: 1rem;
    color: #64748b;
    max-width: 38rem;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---------- Team grid ---------- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Team card ---------- */
.team-card {
    background: white;
    border-radius: 1.25rem;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.team-card:hover {
    border-color: #f85319;
    box-shadow: 0 20px 40px -10px rgb(248 83 25 / 0.2);
    transform: translateY(-4px);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #f85319, #ff6b35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.team-card:hover::before {
    opacity: 1;
}

/* Photo area */
.team-card__photo-wrap {
    position: relative;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    padding: 2rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card__avatar {
    width: 90px;
    height: 90px;
    border-radius: 9999px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgb(248 83 25 / 0.2);
    transition: transform 0.3s ease;
}

.team-card:hover .team-card__avatar {
    transform: scale(1.05);
}

/* Placeholder avatar (initials) */
.team-card__avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f85319, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgb(248 83 25 / 0.25);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.team-card:hover .team-card__avatar-placeholder {
    transform: scale(1.05);
}

/* License badge */
.team-card__license-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid #bbf7d0;
}

/* Card body */
.team-card__body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-card__name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.2rem;
    text-align: center;
}

.team-card__role {
    font-size: 0.78rem;
    font-weight: 600;
    color: #f85319;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* City badge */
.team-card__city {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    margin: 0 auto 0.875rem;
}

/* Specialization tags */
.team-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-bottom: 0.875rem;
}

.team-card__tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

/* Mini stats row */
.team-card__mini-stats {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: 0.625rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.team-card__mini-stat {
    text-align: center;
}

.team-card__mini-stat-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f85319;
    line-height: 1;
}

.team-card__mini-stat-lbl {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0.15rem;
}

/* CTA button */
.team-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: linear-gradient(to right, #f85319, #ff6b35);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    margin-top: auto;
}

.team-card__btn:hover {
    box-shadow: 0 8px 20px rgb(249 115 22 / 0.45);
    transform: scale(1.02);
    color: white;
}

.team-card__btn svg {
    transition: transform 0.2s ease;
}

.team-card__btn:hover svg {
    transform: translateX(3px);
}

/* ---------- Trust / cert section ---------- */
.team-trust {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    color: white;
    margin-top: 4rem;
}

.team-trust__title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.team-trust__sub {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.team-trust__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .team-trust__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-trust__items {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.125rem;
    transition: background 0.2s ease;
}

.team-trust__item:hover {
    background: rgba(248, 83, 25, 0.12);
    border-color: rgba(248,83,25,0.3);
}

.team-trust__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #f85319, #ff6b35);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-trust__item-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.team-trust__item-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ---------- CTA bottom ---------- */
.team-cta {
    background: linear-gradient(135deg, #f85319, #ff6b35);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.team-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.12) 1px, transparent 0);
    background-size: 30px 30px;
}

.team-cta__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    position: relative;
}

.team-cta__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.75rem;
    position: relative;
}

.team-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #f85319;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.875rem 2.25rem;
    border-radius: 0.875rem;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.team-cta__btn:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
    color: #f85319;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-fade-in {
    animation: fadeInUp 0.55s ease both;
}

.team-fade-in:nth-child(1)  { animation-delay: 0.05s; }
.team-fade-in:nth-child(2)  { animation-delay: 0.10s; }
.team-fade-in:nth-child(3)  { animation-delay: 0.15s; }
.team-fade-in:nth-child(4)  { animation-delay: 0.20s; }
.team-fade-in:nth-child(5)  { animation-delay: 0.25s; }
.team-fade-in:nth-child(6)  { animation-delay: 0.30s; }
.team-fade-in:nth-child(7)  { animation-delay: 0.35s; }
.team-fade-in:nth-child(8)  { animation-delay: 0.40s; }
.team-fade-in:nth-child(9)  { animation-delay: 0.45s; }
.team-fade-in:nth-child(10) { animation-delay: 0.50s; }
.team-fade-in:nth-child(11) { animation-delay: 0.55s; }
.team-fade-in:nth-child(12) { animation-delay: 0.60s; }
.team-fade-in:nth-child(13) { animation-delay: 0.65s; }
.team-fade-in:nth-child(14) { animation-delay: 0.70s; }
.team-fade-in:nth-child(15) { animation-delay: 0.75s; }
