/*
 * Component: image accordion (section 4).
 * Wrapper spec: transparent (global #F7F7F7 shows through — no distinct white
 * card), boxed max-width 1500px centred, 5px padding all sides.
 * Panels: centred title + hover-revealed CTA, smooth hover expansion.
 */

.tr-section--accordion {
    background-color: transparent;
    max-width: 1500px;
    margin: 0 auto;
    padding: 5px 5px 5px 5px;
}

/* Neutralise the global .tr-home inter-section gap (5px padding is the spacing). */
.tr-home > .tr-section--accordion {
    margin-top: 0;
}

.tr-accordion {
    display: flex;
    gap: 5px;
    height: 560px;
    overflow: hidden;
}

.tr-accordion__panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    overflow: hidden;
    /* Incredibly smooth expansion. */
    transition: flex-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: flex-grow;
}

/* Hover: the hovered panel grows, siblings gently shrink (subtle, like the ref). */
.tr-accordion:hover .tr-accordion__panel { flex-grow: 0.82; }
.tr-accordion:hover .tr-accordion__panel:hover { flex-grow: 1.7; }

.tr-accordion__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    transition: background-color 0.55s ease;
}
.tr-accordion__panel:hover .tr-accordion__scrim {
    background: rgba(0, 0, 0, 0.15);
}

.tr-accordion__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
}

.tr-accordion__title {
    font-family: var(--tr-font-ka-head);   /* MarkGeo — bold Georgian display */
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.5px;
    color: var(--tr-white);
}

.tr-accordion__btn {
    font-family: var(--tr-font-ka);         /* FiraGO */
    font-size: 14px;
    font-weight: 500;
    color: var(--tr-white);
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    /* Revealed on hover with a soft rise. */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease, color 0.2s ease, border-color 0.2s ease;
}
.tr-accordion__panel:hover .tr-accordion__btn {
    opacity: 1;
    transform: translateY(0);
}
.tr-accordion__btn:hover {
    color: #ff3030;
    border-color: #ff3030;
}

/* ── Mobile: stack the panels ── */
@media (max-width: 768px) {
    .tr-accordion {
        flex-direction: column;
        height: auto;
    }
    .tr-accordion__panel { height: 200px; }
    .tr-accordion:hover .tr-accordion__panel,
    .tr-accordion:hover .tr-accordion__panel:hover { flex-grow: 0; }
    .tr-accordion__btn { opacity: 1; transform: none; }
}
