/* Custom component styles for Team and Partners pages */

/* ===== VARS ===== */
:root {
    --primary: #ff6d1f;
    --primary-hover: #e55a10;
    --bg-light: #f3f4f6;
    --card-light: #fff;
    --text-heading: #111827;
    --text-body: #374151;
    --bg-dark: #09090b;
    --card-dark: #18181b;
    --g50: #f9fafb;
    --g100: #f3f4f6;
    --g200: #e5e7eb;
    --g300: #d1d5db;
    --g400: #9ca3af;
    --g500: #6b7280;
    --g800: #1f2937;
}

/* ===== HERO ===== */
.hero {
    padding: 90px 1rem 32px;
    text-align: center;
}

@media(min-width:768px) {
    .hero {
        padding: 100px 1rem 40px;
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: .75rem;
}

@media(min-width:768px) {
    .hero h1 {
        font-size: 3.75rem;
    }
}

.text-grad {
    background: linear-gradient(90deg, #ff6d1f 26%, #ff9b63 94%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

:where(.dark) .hero p {
    color: var(--g400);
}

/* ===== FILTER ===== */
.filter-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
}

@media(min-width:768px) {
    .filter-wrap {
        padding: 0 2.5rem 2rem;
    }
}

.filter-bar {
    display: none;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

@media(min-width:768px) {
    .filter-bar {
        display: flex;
    }
}

/* Mobile dropdown */
.filter-select-wrap {
    display: flex;
    justify-content: center;
}

@media(min-width:768px) {
    .filter-select-wrap {
        display: none;
    }
}

.filter-select {
    width: 100%;
    max-width: 360px;
    padding: .75rem 2.5rem .75rem 1rem;
    border-radius: .75rem;
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid var(--g200);
    background: var(--card-light);
    color: var(--text-body);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 16px;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 109, 31, .15);
}

:where(.dark) .filter-select {
    background-color: var(--card-dark);
    color: var(--g300);
    border-color: rgba(255, 255, 255, .1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

:where(.dark) .filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 109, 31, .2);
}

.filter-btn {
    padding: .5rem 1.25rem;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--g200);
    background: var(--card-light);
    color: var(--text-body);
    transition: all .2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(255, 109, 31, .3);
}

:where(.dark) .filter-btn {
    background: var(--card-dark);
    color: var(--g300);
    border-color: rgba(255, 255, 255, .1);
}

:where(.dark) .filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

:where(.dark) .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.f-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 9999px;
    padding: 0 5px;
    font-size: .7rem;
    font-weight: 800;
    margin-left: .35rem;
    background: rgba(255, 109, 31, .15);
    color: var(--primary);
}

.filter-btn.active .f-count {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

/* ===== CARDS ===== */
.cards-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

@media(min-width:768px) {
    .cards-wrap {
        padding: 0 2.5rem 5rem;
    }
}

.cards-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

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

/* ===== HORIZONTAL CARD ===== */
.p-card {
    display: flex;
    flex-direction: column;
    background: var(--card-light);
    border: 1px solid var(--g200);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all .35s ease;
}

@media(min-width:640px) {
    .p-card {
        flex-direction: row;
    }
}

.p-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
    border-color: var(--primary);
}

:where(.dark) .p-card {
    background: var(--card-dark);
    border-color: rgba(255, 255, 255, .08);
}

:where(.dark) .p-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
    border-color: var(--primary);
}

/* Photo side */
.p-photo {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, var(--primary), #ff9b63);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media(min-width:640px) {
    .p-photo {
        width: 280px;
        min-height: auto;
    }
}

.p-photo::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    pointer-events: none;
}

.p-photo::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.photo-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 2.5rem 1rem 1.5rem;
}

.photo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.photo-circle:hover {
    transform: scale(1.03);
}

.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
}

.photo-leader {
    font-size: .95rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    max-width: 200px;
    line-height: 1.3;
}

.photo-role {
    font-size: .7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255, 255, 255, .15);
    padding: .2rem .6rem;
    border-radius: .3rem;
}

/* City badge on photo */
.p-city-tag {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .625rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
}

.p-city-tag .material-symbols-outlined {
    font-size: 13px;
}

/* Info side */
.p-info {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.p-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: .625rem;
    border-bottom: 1px solid var(--g100);
}

:where(.dark) .p-title-block {
    border-color: rgba(255, 255, 255, .08);
}

.p-company {
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-heading);
}

:where(.dark) .p-company {
    color: #fff;
}

.p-role-text {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-body);
    opacity: 0.9;
}

:where(.dark) .p-role-text {
    color: var(--g300);
}

.p-details {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.p-row {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    font-size: .84rem;
    color: var(--text-body);
    line-height: 1.5;
}

:where(.dark) .p-row {
    color: var(--g300);
}

.p-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 109, 31, .07);
    color: var(--primary);
}

:where(.dark) .p-icon {
    background: rgba(255, 109, 31, .12);
}

.p-icon .material-symbols-outlined {
    font-size: 16px;
}

.p-val {
    padding-top: .2rem;
    word-break: break-word;
}

.p-val a {
    color: var(--primary);
    font-weight: 600;
    transition: opacity .15s;
}

.p-val a:hover {
    opacity: .75;
}

.p-socials {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--g100);
}

:where(.dark) .p-socials {
    border-color: rgba(255, 255, 255, .07);
}

.s-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .6rem;
    border-radius: .375rem;
    font-size: .72rem;
    font-weight: 700;
    background: var(--g50);
    color: var(--text-body);
    transition: all .2s;
}

.s-link:hover {
    background: rgba(255, 109, 31, .1);
    color: var(--primary);
}

:where(.dark) .s-link {
    background: rgba(255, 255, 255, .05);
    color: var(--g300);
}

:where(.dark) .s-link:hover {
    background: rgba(255, 109, 31, .15);
    color: var(--primary);
}

.s-link svg {
    width: 14px;
    height: 14px;
}

/* No results */
.no-res {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--g400);
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.p-card {
    animation: slideIn .45s ease-out both;
}

.p-card:nth-child(1) { animation-delay: .04s; }
.p-card:nth-child(2) { animation-delay: .08s; }
.p-card:nth-child(3) { animation-delay: .12s; }
.p-card:nth-child(4) { animation-delay: .16s; }
.p-card:nth-child(5) { animation-delay: .2s; }
.p-card:nth-child(6) { animation-delay: .24s; }
.p-card:nth-child(7) { animation-delay: .28s; }
.p-card:nth-child(8) { animation-delay: .32s; }
.p-card:nth-child(9) { animation-delay: .36s; }
.p-card:nth-child(10) { animation-delay: .4s; }

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    background: var(--card-light);
    border-top: 1px solid var(--g200);
    padding: 5rem 1rem;
}

:where(.dark) .reviews-section {
    background: var(--bg-dark);
    border-color: rgba(255, 255, 255, 0.08);
}

.reviews-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.reviews-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reviews-header h2 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

:where(.dark) .reviews-header h2 {
    color: #fff;
}

.reviews-header p {
    font-size: 1.05rem;
    color: var(--g500);
    line-height: 1.5;
}

:where(.dark) .reviews-header p {
    color: var(--g400);
}

.reviews-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

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

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

.rev-card {
    background: var(--bg-light);
    border: 1px solid var(--g200);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

:where(.dark) .rev-card {
    background: var(--card-dark);
    border-color: rgba(255, 255, 255, 0.06);
}

.rev-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

:where(.dark) .rev-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border-color: var(--primary);
}

.rev-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rev-user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rev-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(255, 109, 31, 0.2);
}

.rev-card:nth-child(2n) .rev-avatar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.rev-card:nth-child(3n) .rev-avatar {
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.rev-card:nth-child(4n) .rev-avatar {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.rev-card:nth-child(5n) .rev-avatar {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
}

.rev-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rev-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-heading);
}

:where(.dark) .rev-name {
    color: #fff;
}

.rev-date {
    font-size: 0.75rem;
    color: var(--g500);
}

:where(.dark) .rev-date {
    color: var(--g400);
}

.rev-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(92, 194, 31, 0.1);
    color: #459a11;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
}

:where(.dark) .rev-badge {
    background: rgba(92, 194, 31, 0.15);
    color: #6ed62e;
}

.rev-stars {
    display: flex;
    gap: 0.15rem;
    color: #ffb700;
    font-size: 1rem;
}

.rev-text {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(.dark) .rev-text {
    color: var(--g300);
}

.rev-action-area {
    text-align: center;
    margin-top: 1rem;
}

.btn-2gis {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: #252b28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 2rem;
    border-radius: 1.25rem;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-2gis:hover {
    transform: translateY(-2px) scale(1.02);
    background: #2f3733;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-2gis:active {
    transform: translateY(0) scale(1);
}

.btn-2gis-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-2gis-brand {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
