/* ===== OUR BRANCHES SECTION ===== */
.branches-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 50%, #f8fbff 100%);
    overflow: hidden;
}

.branches-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* === Section Header === */
.branches-header {
    text-align: center;
    margin-bottom: 60px;
}

.branches-badge {
    display: none;
}

.branches-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #0F4C6B;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.branches-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #F58220, #1B9CFC, #F58220);
    border-radius: 2px;
    animation: underline-expand 3s ease-inout infinite;
}

@keyframes underline-expand {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}

.branches-subtitle {
    font-size: 18px;
    color: #475569;
    margin-top: 24px;
    margin-bottom: 30px;
    font-weight: 400;
}

.branches-stats {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(15, 76, 107, 0.05), rgba(245, 130, 32, 0.03));
    border: 1px solid rgba(15, 76, 107, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item strong {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #0F4C6B, #F58220);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(15, 76, 107, 0.3), transparent);
}

/* === Branches Grid === */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.branch-card {
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.branch-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 76, 107, 0.1);
    box-shadow: 0 4px 20px rgba(15, 76, 107, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.branch-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #F58220, #1B9CFC);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.branch-card:hover .branch-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(245, 130, 32, 0.15);
    border-color: rgba(245, 130, 32, 0.3);
}

.branch-card:hover .branch-card-inner::before {
    opacity: 1;
}

.branch-card.featured .branch-card-inner {
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.03), rgba(15, 76, 107, 0.02));
    border-color: rgba(245, 130, 32, 0.2);
}

.branch-card.featured .branch-card-inner::after {
    content: '⭐';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 14px;
}

/* Branch Icon */
.branch-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-emoji {
    font-size: 28px;
    position: relative;
    z-index: 2;
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.1), rgba(15, 76, 107, 0.05));
    border: 2px solid rgba(245, 130, 32, 0.15);
    transition: all 0.4s ease;
}

.branch-card:hover .icon-ring {
    transform: translate(-50%, -50%) scale(1.1);
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.15), rgba(15, 76, 107, 0.1));
    border-color: rgba(245, 130, 32, 0.3);
}

/* Branch Info */
.branch-info {
    flex: 1;
    min-width: 0;
}

.branch-city {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0F4C6B;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.branch-card:hover .branch-city {
    color: #F58220;
}

.branch-state {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.location-pin {
    width: 14px;
    height: 14px;
    color: #F58220;
}

/* Branch Arrow */
.branch-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.branch-arrow svg {
    width: 20px;
    height: 20px;
    color: #F58220;
}

.branch-card:hover .branch-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* === Call to Action === */
.branches-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(15, 76, 107, 0.05), rgba(245, 130, 32, 0.03));
    border-radius: 20px;
    border: 1px solid rgba(15, 76, 107, 0.15);
}

.cta-text {
    font-size: 18px;
    color: #0F4C6B;
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #F58220, #e67e22);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(245, 130, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 130, 32, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* === Background Decorations === */
.branches-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: #0F4C6B;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: #F58220;
}

.circle-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #0F4C6B, #F58220);
}

/* === Responsive Design === */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .branches-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .branches-title {
        font-size: 42px;
    }
    
    .branches-container {
        padding: 0 30px;
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .branches-section {
        padding: 80px 0;
    }
    
    .branches-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
    
    .branches-title {
        font-size: 36px;
    }
    
    .branches-subtitle {
        font-size: 16px;
    }
    
    .branches-stats {
        padding: 16px 30px;
        gap: 24px;
    }
    
    .stat-item strong {
        font-size: 24px;
    }
    
    .branches-container {
        padding: 0 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .branches-section {
        padding: 60px 0;
    }
    
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }
    
    .branches-title {
        font-size: 32px;
    }
    
    .branches-subtitle {
        font-size: 15px;
    }
    
    .branches-badge {
        display: none;
    }
    
    .branches-stats {
        flex-direction: row;
        gap: 20px;
        padding: 14px 24px;
    }
    
    .stat-divider {
        width: 1px;
        height: 30px;
    }
    
    .branch-card-inner {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .branch-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .icon-emoji {
        font-size: 22px;
    }
    
    .icon-ring {
        width: 38px;
        height: 38px;
    }
    
    .branch-city {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .branch-state {
        font-size: 12px;
        justify-content: center;
    }
    
    .location-pin {
        width: 12px;
        height: 12px;
    }
    
    .branch-arrow {
        display: none;
    }
    
    .branches-cta {
        padding: 30px 20px;
    }
    
    .cta-text {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 12px 28px;
        font-size: 15px;
    }
    
    .branches-container {
        padding: 0 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .branches-section {
        padding: 50px 0;
    }
    
    .branches-header {
        margin-bottom: 40px;
    }
    
    .branches-title {
        font-size: 28px;
    }
    
    .branches-title::after {
        width: 60px;
        height: 3px;
    }
    
    .branches-badge {
        display: none;
    }
    
    .branches-stats {
        padding: 12px 16px;
        gap: 16px;
    }
    
    .stat-item strong {
        font-size: 20px;
    }
    
    .stat-item span {
        font-size: 11px;
    }
    
    .stat-divider {
        height: 25px;
    }
    
    .branch-card-inner {
        padding: 14px 10px;
        gap: 8px;
    }
    
    .branch-icon {
        width: 40px;
        height: 40px;
    }
    
    .icon-emoji {
        font-size: 20px;
    }
    
    .icon-ring {
        width: 34px;
        height: 34px;
    }
    
    .branch-city {
        font-size: 13px;
    }
    
    .branch-state {
        font-size: 11px;
    }
    
    .location-pin {
        width: 11px;
        height: 11px;
    }
    
    .cta-text {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 11px 24px;
        font-size: 14px;
    }
    
    .branches-container {
        padding: 0 12px;
    }
    
    .branches-grid {
        gap: 10px;
    }
    
    .bg-circle {
        display: none;
    }
}
