/* =====================================================
   Branches Widget for Elementor — Front-end Styles
   ===================================================== */

.branches-section {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #0a0f1f;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.branches-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    background: radial-gradient(60% 50% at 50% 0%, rgba(220, 230, 245, 0.7), transparent 70%);
}

.branches-container {
    position: relative;
    z-index: 1;
    max-width: 1152px;
    margin: 0 auto;
    padding: 80px 24px;
}

@media (min-width: 640px) {
    .branches-container {
        padding: 112px 24px;
    }
}

/* ---------- Header ---------- */
.branches-header {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.branches-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
}

.branches-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #1f2a44;
}

.branches-title {
    margin: 24px 0 0;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
}

@media (min-width: 640px) {
    .branches-title {
        font-size: 48px;
    }
}

.branches-subtitle {
    margin: 16px 0 0;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .branches-subtitle {
        font-size: 18px;
    }
}

/* ---------- Grid ---------- */
.branches-grid {
    margin-top: 64px;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

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

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

/* ---------- Card ---------- */
.branch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 42, 68, 0.3);
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.2);
}

/* Top accent line */
.branch-accent {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 42, 68, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.branch-card:hover .branch-accent {
    opacity: 1;
}

/* ---------- Card Top ---------- */
.branch-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.branch-eyebrow {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6b7280;
}

.branch-name {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.branch-area {
    margin: 2px 0 0;
    font-size: 14px;
    color: #6b7280;
}

/* Location icon */
.branch-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #1f2a44;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.branch-card:hover .branch-icon-wrap {
    background: #1f2a44;
    color: #ffffff;
}

/* ---------- Divider ---------- */
.branch-divider {
    height: 1px;
    width: 100%;
    background: #e5e7eb;
    margin: 24px 0;
}

/* ---------- Info List ---------- */
.branch-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
}

.branch-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    color: rgba(10, 15, 31, 0.9);
}

.branch-info svg {
    margin-top: 2px;
    flex-shrink: 0;
    color: #6b7280;
}

.branch-phone {
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #0a0f1f;
    text-decoration: none;
    text-underline-offset: 4px;
}

.branch-phone:hover {
    text-decoration: underline;
}

/* ---------- Actions ---------- */
.branch-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    flex: 1;
    background: #1f2a44;
    color: #ffffff;
}

.btn-primary:hover {
    background: rgba(31, 42, 68, 0.9);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: #0a0f1f;
    border-color: #e5e7eb;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.btn-secondary svg {
    transition: transform 0.2s ease;
}

.btn-secondary:hover svg {
    transform: translate(2px, -2px);
}
