/* ============================================
   AL-QAND EXCHANGE — FLAT BRANCH PILLS
   ============================================ */

/* ============================================
   FLAT BRANCH PILLS (redesigned branches section)
   ============================================ */

.branches-flat {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-top: 48px;
    row-gap: 32px;
}

.branch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 22px;
    position: relative;
    width: 190px;
    flex: 0 0 auto;
}

/* Group label (Baghdad / Governorates) — takes a full row so the pills
   below it read as one group */
.branches-flat .branch-group-title {
    flex: 0 0 100%;
    margin: 0 0 6px;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
}

.branches-flat .branch-group-title ~ .branch-group-title {
    margin-top: 28px;
}

/* Same shimmering highlight as the "Touch" word in the contact heading */
.branches-flat .branch-group-title .hl {
    text-shadow: 0 0 50px var(--orange-glow);
    background: linear-gradient(100deg, var(--orange-dark) 0%, var(--orange) 25%, var(--orange-light) 50%, var(--orange) 75%, var(--orange-dark) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: hlShimmer 7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .branches-flat .branch-group-title .hl {
        animation: none !important;
    }
}

/* The pill opening a group starts a fresh row, so it gets no divider */
.branches-flat .branch-group-title + .branch-item::before {
    display: none;
}

.branch-item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 4px;
    inset-inline-start: 0;
    width: 1px;
    height: 44px;
    background: rgba(0, 0, 0, 0.14);
}

.branches-flat .branch-btn.branch-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 12px 28px;
    border: 1px solid rgba(232, 93, 4, 0.2) !important;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    text-align: center;
    transition: all 0.3s ease;
}

.branches-flat .branch-btn.branch-pill:hover {
    border-color: var(--orange) !important;
    background: rgba(232, 93, 4, 0.1);
    color: var(--ink);
    padding: 12px 28px;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 93, 4, 0.15);
}

.branch-address {
    margin: 14px 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.68);
    max-width: 180px;
}

@media (max-width: 900px) {
    .branch-item:not(:first-child)::before {
        display: none;
    }

    .branch-item {
        width: 44%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .branch-item {
        width: 100%;
    }
}
