/* =========================================================================
 * Attorna — Lawyer Team Section (RTL)
 * Mirrors design tokens from assets/css/story-section.css
 * ========================================================================= */

.lt-section {
    --lt-ink:        #1c1c1c;
    --lt-ink-soft:   #5c564c;
    --lt-gold:       #a38753;
    --lt-gold-dark:  #8a7143;
    --lt-bg:         #fbf8f2;
    --lt-line:       rgba(30, 28, 24, 0.12);
    --lt-shadow:     0 30px 60px -28px rgba(23, 20, 14, 0.30);
    --lt-gap:        24px;

    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            rgba(251, 248, 242, 0.99) 0%,
            rgba(251, 248, 242, 0.92) 100%
        );
    color: var(--lt-ink);
    direction: rtl;
    text-align: right;
    padding: 88px 0 96px;
    font-family: var(--font-family-base, 'IRANSans', Tahoma, sans-serif);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

/* Soft gold glow behind the header */
.lt-section::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 480px;
    background: radial-gradient(closest-side, rgba(163, 135, 83, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ---------- Watermark ---------- */
.lt-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(40px, 8vw, 96px);
    font-family: 'Jost', 'IRANSans', Tahoma, sans-serif;
    font-size: clamp(80px, 15vw, 190px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(29, 29, 29, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    z-index: 0;
}

.lt-watermark--img {
    background: center / contain no-repeat;
    opacity: 0.06;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

/* ---------- Container ---------- */
.lt-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Header block ---------- */
.lt-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 24px;
    text-align: right;
    margin-bottom: 48px;
}

.lt-eyebrow {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: var(--font-weight-medium, 500);
    color: var(--lt-gold);
    letter-spacing: 0.02em;
}
.lt-eyebrow::before {
    content: "";
    width: 38px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.lt-title {
    grid-column: 1;
    margin: 0;
    font-family: var(--font-family-heading, 'Jost', 'IRANSans', Tahoma, sans-serif);
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.4;
    font-weight: var(--font-weight-bold, 700);
    color: var(--lt-ink);
}

.lt-btn {
    position: relative;
    align-self: center;
    align-items: baseline;
    margin: 0;
    padding: 4px 0;
    background: none;
    color: var(--lt-ink);
    font-family: var(--font-family-heading, 'Jost', 'IRANSans', Tahoma, sans-serif);
    font-weight: var(--font-weight-bold, 700);
    font-size: 15px;
    text-decoration: none;
    border: none;
    border-radius: 0;
    letter-spacing: 0.02em;
    box-shadow: none;
    transition: color 0.25s ease;
    cursor: pointer;
}
.lt-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--lt-gold-dark);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.lt-btn:hover,
.lt-btn:focus-visible {
    color: var(--lt-gold-dark);
    text-decoration: none;
    transform: none;
    box-shadow: none;
}
.lt-btn:hover::after,
.lt-btn:focus-visible::after {
    transform: scaleX(1);
}
.lt-btn:focus-visible {
    outline: 2px solid var(--lt-gold-dark);
    outline-offset: 3px;
}
.lt-btn__arrow {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
}
.lt-btn:hover .lt-btn__arrow {
    transform: translateX(-4px);
}

/* =========================================================================
 * Carousel
 * ========================================================================= */
.lt-carousel {
    position: relative;
    width: 100%;
}

.lt-carousel__viewport {
    overflow: hidden;
    width: 100%;
    min-height: 320px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.lt-track {
    display: flex;
    gap: var(--lt-gap);
    width: max-content;
    will-change: transform;
    transform: translate3d(0,0,0);
    transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}

.lt-track.is-dragging {
    transition: none;
}

/* Card sizing: 4 per view on desktop */
.lt-card {
    position: relative;
    flex: 0 0 auto;
    width: calc((min(1200px, 100vw - 56px) - (var(--lt-gap) * 3)) / 4);
    min-height: 420px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8f2 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 36px -22px rgba(23, 20, 14, 0.35),
                0 0 0 1px rgba(23, 20, 14, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 56px -22px rgba(23, 20, 14, 0.45),
                0 0 0 1px rgba(163, 135, 83, 0.18);
}

/* Gold hairline that fades in on hover (top edge of card) */
.lt-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, #a38753 30%, #d3bd8a 50%, #a38753 70%, transparent);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: 2;
    pointer-events: none;
}
.lt-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.lt-card__media {
    margin: 0;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(150deg, #efe9dd 0%, #e5dcc9 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lt-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.lt-card:hover .lt-card__media img {
    transform: scale(1.06);
}

/* Missing image state → monogram */
.lt-card__media.is-missing img {
    display: none;
}
.lt-card__media.is-missing::before {
    content: attr(data-initials);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Jost', 'IRANSans', Tahoma, sans-serif;
    font-size: clamp(56px, 9vw, 100px);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(163, 135, 83, 0.55);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 60%),
        linear-gradient(150deg, #efe9dd 0%, #e5dcc9 100%);
}

.lt-mono {
    font-family: 'Jost', 'IRANSans', Tahoma, sans-serif;
    font-size: clamp(56px, 9vw, 100px);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(163, 135, 83, 0.55);
}

.lt-card__body {
    padding: 18px 20px 8px;
    text-align: center;
    flex: 1 1 auto;
}

.lt-card__name {
    margin: 0 0 6px;
    font-family: var(--font-family-heading, 'Jost', 'IRANSans', Tahoma, sans-serif);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--lt-ink);
}

.lt-card__role {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--lt-ink-soft);
}

/* Socials */
.lt-card__social {
    list-style: none;
    margin: 10px 0 0;
    padding: 14px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid rgba(23, 20, 14, 0.06);
}
.lt-card__social-item {
    margin: 0;
}
.lt-card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--lt-ink-soft);
    border: 1px solid rgba(23, 20, 14, 0.10);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}
.lt-card__social-link:hover,
.lt-card__social-link:focus-visible {
    background: var(--lt-gold);
    color: #fff;
    border-color: var(--lt-gold);
    transform: translateY(-2px);
}
.lt-card__social-link:focus-visible {
    outline: 2px solid var(--lt-gold-dark);
    outline-offset: 2px;
}
.lt-card__social-link svg {
    display: block;
    fill: currentColor;
}

/* =========================================================================
 * Controls (RTL)
 * ========================================================================= */
.lt-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.lt-btn-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--lt-gold);
    color: var(--lt-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    padding: 0;
}
.lt-btn-nav:hover,
.lt-btn-nav:focus-visible {
    background: var(--lt-gold);
    color: #fff;
    transform: translateY(-2px);
}
.lt-btn-nav:focus-visible {
    outline: 2px solid var(--lt-gold-dark);
    outline-offset: 3px;
}
.lt-btn-nav:disabled,
.lt-btn-nav.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent !important;
    color: var(--lt-gold) !important;
    transform: none !important;
}
.lt-btn-nav svg {
    display: block;
    fill: currentColor;
}

/* =========================================================================
 * Responsive breakpoints
 * ========================================================================= */

/* Tablet: ≤ 1024px → 2 per view */
@media (max-width: 1024px) {
    .lt-card {
        width: calc((min(1200px, 100vw - 56px) - (var(--lt-gap) * 1)) / 2);
    }
    .lt-section { padding: 72px 0 80px; }
}

/* Mobile: ≤ 576px → 1 per view */
@media (max-width: 576px) {
    .lt-section { padding: 56px 0 64px; }
    .lt-container { padding: 0 14px; }
    .lt-card {
        width: calc(100vw - 28px);
    }
    .lt-title { font-size: clamp(24px, 7.2vw, 32px); }
    .lt-btn {
        font-size: 16px;
    }
    .lt-watermark {
        font-size: 64px;
        padding-top: 24px;
    }
    .lt-controls {
        margin-top: 24px;
    }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .lt-track {
        transition: none !important;
    }
    .lt-card,
    .lt-btn,
    .lt-btn-nav {
        transition: none !important;
    }
}
